/* insider.css — Components for the Insider Trades pages.
   Layered on top of intelligence.css; uses the same CSS variables. */

/* ── Major Companies grid ──────────────────────────────────────────────── */
.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.major-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.major-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px -16px rgba(16, 185, 129, .35);
}
.major-card__head { display: flex; align-items: center; gap: 10px; }
.major-card__head .avatar { flex: none; }
.major-card__symbol { font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.major-card__name { font-size: 12px; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.major-card__stats { display: flex; gap: 14px; align-items: baseline; }
.major-card__stat { display: flex; flex-direction: column; }
.major-card__stat-val { font-weight: 700; font-size: 14px; color: var(--text); }
.major-card__stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.major-card__bias {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  align-self: flex-start;
}
.major-card__bias--buy  { background: rgba(16,185,129,.13); color: #10b981; }
.major-card__bias--sell { background: rgba(239,68,68,.13);  color: #ef4444; }
.major-card__bias--neutral { background: rgba(148,163,184,.13); color: #94a3b8; }
.major-card__price { font-size: 12px; color: var(--text-muted); margin-left: auto; text-align: right; }
.major-card__price strong { color: var(--text); font-weight: 700; }
.major-card__delta-pos { color: #10b981; }
.major-card__delta-neg { color: #ef4444; }

/* ── Trade table ─────────────────────────────────────────────────────── */
.trade-table {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}
.trade-table__head {
  display: grid;
  grid-template-columns: 56px 1fr 110px 110px 130px 80px;
  gap: 12px;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg-card2, rgba(255,255,255,.02));
  border-bottom: 1px solid var(--border);
}
.trade-row {
  display: grid;
  grid-template-columns: 56px 1fr 110px 110px 130px 80px;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease;
  text-decoration: none;
  color: inherit;
}
.trade-row:last-child { border-bottom: none; }
.trade-row:hover { background: var(--bg-card2, rgba(255,255,255,.03)); }
.trade-row__co { display: flex; flex-direction: column; min-width: 0; }
.trade-row__co-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trade-row__sym { font-weight: 800; font-size: 14px; }
.trade-row__name { font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.trade-row__filer { font-size: 13px; color: var(--text); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade-row__role { font-size: 11px; color: var(--text-muted); }
.trade-row__cell { display: flex; flex-direction: column; gap: 2px; }
.trade-row__cell-main { font-size: 13px; font-weight: 600; color: var(--text); }
.trade-row__cell-sub  { font-size: 11px; color: var(--text-muted); }
.trade-row__num-pos { color: #10b981; }
.trade-row__num-neg { color: #ef4444; }
.trade-row__pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  min-width: 56px; white-space: nowrap;
}
.trade-row__pill--buy          { background: rgba(16,185,129,.15);  color: #10b981; }
.trade-row__pill--sell         { background: rgba(239,68,68,.15);   color: #ef4444; }
.trade-row__pill--other        { background: rgba(148,163,184,.15); color: #94a3b8; }
.trade-row__pill--award        { background: rgba(245,158,11,.15);  color: #f59e0b; }
.trade-row__pill--exercise     { background: rgba(99,102,241,.15);  color: #4f46e5; }
.trade-row__pill--withholding { background: rgba(14,165,233,.15);  color: #0ea5e9; }
.trade-row__pill--gift         { background: rgba(168,85,247,.15);  color: #a855f7; }

/* ─── Feed controls bar ─────────────────────────────────────────────────── */
.feed-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 18px;
}
.feed-controls__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-controls__divider {
  width: 1px; height: 22px;
  background: var(--border);
  flex-shrink: 0;
}
.feed-controls__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); white-space: nowrap;
}
.feed-controls .search-input {
  width: 130px; padding: 6px 10px; font-size: 13px; border-radius: 8px;
}
.feed-controls .sort-select { font-size: 13px; padding: 6px 10px; }

@media (max-width: 820px) {
  .trade-table__head { display: none; }
  .trade-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    padding: 12px 14px;
    row-gap: 4px;
  }
  .trade-row > .avatar { grid-row: 1 / 3; }
  .trade-row__co  { grid-column: 2; grid-row: 1; }
  .trade-row__pill{ grid-column: 3; grid-row: 1; }
  .trade-row__cell-value { grid-column: 2 / 4; grid-row: 2; }
  .trade-row__cell-price,
  .trade-row__cell-current { display: none; }
}

/* ── Detail page ─────────────────────────────────────────────────────── */
.detail-hero {
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
  margin: 18px 0 24px;
}
.detail-hero__logo {
  width: 64px; height: 64px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: none;
}
.detail-hero__logo img { width: 80%; height: 80%; object-fit: contain; }
.detail-hero__main { flex: 1; min-width: 240px; }
.detail-hero__symline { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.detail-hero__co { font-size: 24px; font-weight: 800; }
.detail-hero__sym { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.detail-hero__insider { margin-top: 8px; font-size: 15px; color: var(--text); }
.detail-hero__role { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.detail-hero__badge {
  align-self: flex-start;
  padding: 8px 14px; border-radius: 10px;
  font-weight: 800; letter-spacing: .04em; font-size: 13px;
}
.detail-hero__badge--buy  { background: rgba(16,185,129,.15); color: #10b981; }
.detail-hero__badge--sell { background: rgba(239,68,68,.15);  color: #ef4444; }
.detail-hero__badge--other{ background: rgba(148,163,184,.15); color: #94a3b8; }

.detail-summary {
  padding: 16px 18px; margin-bottom: 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; line-height: 1.55; color: var(--text);
}

.key-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.key-card {
  padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
}
.key-card__lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.key-card__val { font-size: 18px; font-weight: 800; color: var(--text); margin-top: 6px; }
.key-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.txn-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  font-size: 13px; background: var(--bg-card);
}
.txn-table thead th {
  background: var(--bg-card2, rgba(255,255,255,.02));
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
  font-size: 11px; font-weight: 700; padding: 10px 12px; text-align: left;
}
.txn-table tbody td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; }
.txn-table tbody tr:hover { background: var(--bg-card2, rgba(255,255,255,.02)); }
.txn-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.fn-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.fn-list li {
  padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; color: var(--text);
}
.fn-list li strong { color: var(--text); margin-right: 8px; }

.section-title-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 32px 0 12px;
  gap: 14px;
}
.section-title-bar h2 { font-size: 18px; font-weight: 800; }
.section-title-bar .sub { color: var(--text-muted); font-size: 13px; }

/* Sort + secondary controls */
.sort-select {
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; padding: 6px 10px; cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--primary); }

/* ─── Code-type filter dropdown ─────────────────────────────────────────── */
.code-filter-btn { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.code-filter-badge {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px;
  background:var(--primary); color:#fff;
  border-radius:999px; font-size:11px; font-weight:700;
}
.code-filter-dropdown {
  position:absolute; right:0; top:calc(100% + 6px); z-index:300;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:12px 16px; min-width:230px;
  box-shadow:0 8px 28px rgba(0,0,0,.30);
}
.code-filter-dropdown__title {
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--text-muted); margin-bottom:10px;
}
.code-filter-option {
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text); padding:5px 0;
  cursor:pointer; white-space:nowrap; user-select:none;
}
.code-filter-option input[type=checkbox] { cursor:pointer; accent-color:var(--primary); width:14px; height:14px; flex-shrink:0; }
.code-pill {
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:6px; flex-shrink:0;
  font-size:11px; font-weight:800;
  background:rgba(99,102,241,.12); color:var(--text-muted);
}
.code-pill--buy  { background:rgba(16,185,129,.15); color:#10b981; }
.code-pill--sell { background:rgba(239,68,68,.15);  color:#ef4444; }
.code-filter-reset {
  margin-top:10px; width:100%; padding:6px;
  border:1px solid var(--border); border-radius:8px;
  background:transparent; color:var(--text-muted);
  font-size:12px; cursor:pointer; font-family:inherit;
}
.code-filter-reset:hover { border-color:var(--primary); color:var(--primary); }

/* Monthly mini bars */
.month-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 12px 0; }
.month-bar  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.month-bar__stack { display: flex; flex-direction: column-reverse; width: 100%; max-width: 32px; height: 70px; }
.month-bar__buy   { background: #10b981; border-radius: 3px 3px 0 0; }
.month-bar__sell  { background: #ef4444; border-radius: 0 0 3px 3px; margin-top: 2px; }
.month-bar__other { background: rgba(148,163,184,.45); border-radius: 3px; margin-top: 2px; }
.month-bar__lbl   { font-size: 10px; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────────────────────── */
/* Company-level insider page (/insider-trades/:ticker)                        */
/* ─────────────────────────────────────────────────────────────────────────── */

.month-bar__label { font-size: 10px; color: var(--text-muted); }

/* Ticker search */
.ticker-search { position: relative; }
.ticker-search__inner { display: flex; gap: 8px; align-items: center; }
.ticker-search__inner input {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.ticker-search__inner input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.ticker-search__results {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); max-height: 360px; overflow-y: auto;
}
.ticker-search__item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 14px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.ticker-search__item:last-child { border-bottom: none; }
.ticker-search__item:hover { background: var(--bg-hover, rgba(99,102,241,.08)); }
.ticker-search__sym { font-weight: 700; font-size: 14px; }
.ticker-search__name { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-search__meta { font-size: 11px; color: var(--text-muted); }
.ticker-search__empty { padding: 14px; color: var(--text-muted); font-size: 13px; text-align: center; }

/* Company hero */
.company-hero {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px;
}
.company-hero__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.company-hero__logo {
  width: 64px; height: 64px; border-radius: 12px; background: #fff;
  object-fit: contain; padding: 6px; border: 1px solid var(--border); flex-shrink: 0;
}
.company-hero__logo--fallback {
  background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; padding: 0;
}
.company-hero__main { flex: 1; min-width: 200px; }
.company-hero__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.company-hero__name { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
.company-hero__sym { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.company-hero__exch { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--bg-hover, rgba(148,163,184,.15)); color: var(--text-muted); }
.company-hero__meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.company-hero__price { text-align: right; }
.company-hero__px { font-size: 22px; font-weight: 800; }
.company-hero__ch { font-size: 13px; font-weight: 600; }
.company-hero__ch.pos { color: #10b981; }
.company-hero__ch.neg { color: #ef4444; }

.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(99,102,241,.12); color: var(--primary); font-weight: 600; }
.chip--ghost { background: var(--bg-hover, rgba(148,163,184,.12)); color: var(--text-muted); }

/* Form 4 activity tracker */
.form4-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin: 0 0 24px;
  padding: 18px;
}
.form4-tracker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.form4-tracker__tag {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.form4-tracker h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.form4-tracker__meta {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.form4-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 210px;
  overflow-x: auto;
  padding: 6px 2px 2px;
}
.form4-chart__bar-wrap {
  display: grid;
  grid-template-rows: 24px 150px 30px;
  gap: 6px;
  min-width: 42px;
  text-align: center;
}
.form4-chart__value {
  align-self: end;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.form4-chart__track {
  align-items: end;
  background: rgba(148, 163, 184, .08);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 10px;
  display: flex;
  overflow: hidden;
}
.form4-chart__bar {
  background: linear-gradient(180deg, var(--primary-l), var(--primary));
  border-radius: 9px 9px 0 0;
  box-shadow: 0 -8px 20px rgba(0, 212, 170, .18);
  min-height: 4px;
  width: 100%;
}
/* Stacked bar */
.form4-chart__stack {
  border-radius: 9px 9px 0 0;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  width: 100%;
}
.form4-chart__seg {
  min-height: 2px;
  width: 100%;
}
.form4-chart__seg--buy {
  background: linear-gradient(180deg, #34d399, #10b981);
  border-radius: 9px 9px 0 0;
  box-shadow: 0 -6px 16px rgba(16, 185, 129, .22);
}
.form4-chart__seg--sell {
  background: linear-gradient(180deg, #f87171, #ef4444);
}
.form4-chart__seg--other {
  background: rgba(148, 163, 184, .22);
}
/* Legend */
.form4-chart__legend {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.form4-chart__legend-item {
  align-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: .03em;
  opacity: .35;
  padding: 0;
  text-transform: uppercase;
  transition: opacity .15s;
}
.form4-chart__legend-item--on   { opacity: 1; }
.form4-chart__legend-item:hover { opacity: .65; }
.form4-chart__legend-item--on:hover { opacity: .82; }
.form4-chart__legend-item::before {
  border-radius: 3px;
  content: '';
  display: block;
  height: 8px;
  width: 12px;
}
.form4-chart__legend-item--buy::before   { background: #10b981; }
.form4-chart__legend-item--sell::before  { background: #ef4444; }
.form4-chart__legend-item--other::before { background: rgba(148, 163, 184, .35); border: 1px solid rgba(148, 163, 184, .45); }
.form4-chart__label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.form4-chart__label span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: .75;
}
.form4-chart__empty {
  color: var(--text-muted);
  font-size: 13px;
  grid-column: 1 / -1;
  padding: 36px 0;
  text-align: center;
}

@media (max-width: 720px) {
  .form4-tracker__head { flex-direction: column; }
  .form4-tracker__meta { text-align: left; }
  .form4-chart { grid-auto-columns: minmax(54px, 1fr); grid-template-columns: repeat(12, minmax(54px, 1fr)); }
}

/* Stats grid */
.company-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 18px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.stat-card--buy { border-left: 3px solid #10b981; }
.stat-card--sell { border-left: 3px solid #ef4444; }
.stat-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; }
.stat-card__value { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.skel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }

/* Period cards */
.periods-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.period-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.period-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.period-card__head h3 { font-size: 14px; font-weight: 700; margin: 0; }
.period-card__rows { display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
.period-card__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.period-card__rows .dim { color: var(--text-muted); }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge--buy { background: rgba(16,185,129,.15); color: #10b981; }
.badge--sell { background: rgba(239,68,68,.15); color: #ef4444; }
.badge--mixed { background: rgba(245,158,11,.15); color: #f59e0b; }
.badge--neutral { background: rgba(148,163,184,.18); color: var(--text-muted); }

/* Direction arrows */
.dir { font-size: 14px; margin-right: 4px; }
.dir--up { color: #10b981; }
.dir--down { color: #ef4444; }
.dir--flat { color: var(--text-muted); }

/* Code pill */
.code-pill {
  display: inline-block; min-width: 28px; padding: 2px 6px; border-radius: 6px;
  text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; font-size: 12px;
  background: rgba(148,163,184,.18); color: var(--text);
}
.code-pill.pos { background: rgba(16,185,129,.15); color: #10b981; }
.code-pill.neg { background: rgba(239,68,68,.15); color: #ef4444; }

/* Data tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table thead th { background: var(--bg-hover, rgba(148,163,184,.06)); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .pos { color: #10b981; }
.data-table .neg { color: #ef4444; }
.data-table .dim { color: var(--text-muted); }
.data-table .sm { font-size: 11px; }

/* Insider cell */
.insider-cell { display: flex; align-items: center; gap: 10px; }
.insider-cell__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.insider-cell__name { font-weight: 600; }

/* Button extras */
.btn--xs { padding: 4px 10px; font-size: 11px; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--bg-hover, rgba(148,163,184,.1)); }

/* Empty state */
.empty-state { padding: 32px 16px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-card); }
.empty-state h2 { color: var(--text); margin: 0 0 6px; }

@media (max-width: 640px) {
  .company-hero__price { text-align: left; }
  .company-hero__name { font-size: 20px; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* Server-rendered article page (/insider-trades/:ticker/:slug)                */
/* ─────────────────────────────────────────────────────────────────────────── */

.article { max-width: 920px; margin: 0 auto; }
.article__hero { padding: 8px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.article__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.article__headline { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 0 0 14px; color: var(--text); }
.article__summary { font-size: 16px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.article__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article__meta a.chip { text-decoration: none; }
.article__section { margin: 36px 0; }
.article__section h2.section-title-bar { margin-bottom: 14px; }
.article__section > p { line-height: 1.7; color: var(--text); }
.article__related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article__related-list li a {
  display: block; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px;
  transition: border-color .15s;
}
.article__related-list li a:hover { border-color: var(--primary); }
.article__footnotes { padding-left: 20px; line-height: 1.7; color: var(--text-muted); }
.article__footnotes li { margin-bottom: 6px; }
.article__filing-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.article__filing-meta li { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.article__filing-meta a { color: var(--primary); text-decoration: none; }
.article__filing-meta a:hover { text-decoration: underline; }

.data-source-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.table-cell-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.data-table tr:hover .table-cell-link {
  color: inherit;
}

@media (max-width: 640px) {
  .article__headline { font-size: 24px; }
  .article__summary { font-size: 15px; }
}
