.sfn-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 80px; }
.sfn-crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.sfn-crumbs a { color: var(--accent-soft); text-decoration: none; }
.sfn-crumbs a:hover { text-decoration: underline; }

.sfn-header h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.sfn-header .sfn-lead { color: var(--text-muted); margin: 0 0 20px; line-height: 1.65; font-size: 15px; }

/* Company summary bar */
.sfn-company-bar {
  background: var(--card); border: 1px solid #1c2942; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-start;
}
.sfn-company-bar .sfn-cb-text { flex: 1; min-width: 200px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.sfn-company-bar .sfn-cb-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sfn-company-bar .sfn-cb-chip {
  font-size: 12px; color: var(--text-muted);
  background: #0d1829; border: 1px solid #1c2942; border-radius: 6px;
  padding: 3px 10px; white-space: nowrap;
}
.sfn-company-bar .sfn-cb-chip strong { color: var(--text); }

/* Activity summary */
.sfn-activity {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  margin-bottom: 24px;
}
.sfn-act-card {
  background: var(--card); border: 1px solid #1c2942; border-radius: 10px;
  padding: 14px 16px; text-align: center;
}
.sfn-act-card .act-num { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.sfn-act-card .act-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.sfn-act-card.bull .act-num { color: #4ade80; }
.sfn-act-card.bear .act-num { color: #f87171; }
.sfn-act-card.neu .act-num { color: #facc15; }
.sfn-act-card.total .act-num { color: var(--text); }
.sfn-act-card.insider .act-num { color: #93c5fd; }
.sfn-act-card.event .act-num { color: #a78bfa; }

/* Section divider */
.sfn-section-title {
  font-size: 17px; font-weight: 700; color: var(--text); margin: 28px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid #1c2942;
  display: flex; align-items: center; gap: 8px;
}

/* Filing cards */
.sfn-list { display: flex; flex-direction: column; gap: 14px; }
.sfn-group { margin-bottom: 40px; }
.sfn-group-count {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  text-transform: none; letter-spacing: 0; margin-left: auto; white-space: nowrap;
}
.sfn-jump {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 28px; font-size: 13px; color: var(--text-muted);
}
.sfn-jump a {
  color: #cbd5e1; text-decoration: none; background: #111c30;
  border: 1px solid #1f2f4a; border-radius: 999px; padding: 4px 12px;
}
.sfn-jump a:hover { border-color: #22c55e; color: #fff; }
.sfn-explainer { margin: 0 0 18px; max-width: 820px; }
.sfn-explainer p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 10px; }
.sfn-legend {
  background: #0d1729; border: 1px solid #1a2740; border-radius: 10px;
  padding: 14px 16px; margin: 0 0 18px;
}
.sfn-legend h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin: 0 0 10px; font-weight: 600;
}
.sfn-legend dl { margin: 0; }
.sfn-legend-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 0; border-bottom: 1px solid #16233a; }
.sfn-legend-row:last-child { border-bottom: none; }
.sfn-legend dt { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.sfn-legend dt em { font-style: normal; color: var(--text-muted); font-size: 12px; }
.sfn-legend dd { flex: 1 1 300px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.sfn-nature-note {
  color: var(--text-muted); font-size: 13px; line-height: 1.6;
  border-left: 2px solid #2a3d5f; padding-left: 10px; margin: 0 0 10px;
}
.sfn-nat-purchase { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.sfn-nat-sale { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.sfn-nat-mixed { background: rgba(168,85,247,.12); color: #c084fc; border: 1px solid rgba(168,85,247,.35); }
.sfn-nat-award { background: rgba(59,130,246,.12); color: #60a5fa; border: 1px solid rgba(59,130,246,.35); }
.sfn-nat-exercise, .sfn-nat-conversion { background: rgba(14,165,233,.12); color: #38bdf8; border: 1px solid rgba(14,165,233,.35); }
.sfn-nat-tax, .sfn-nat-disposition { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.35); }
.sfn-nat-gift { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.35); }
.sfn-nat-other, .sfn-nat-unclassified { background: rgba(100,116,139,.12); color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }
table.sfn-txn { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 12px; }
table.sfn-txn caption {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); padding-bottom: 6px;
}
table.sfn-txn th, table.sfn-txn td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #16233a; }
table.sfn-txn thead th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
table.sfn-txn tbody tr:last-child td { border-bottom: none; }
table.sfn-txn td.num, table.sfn-txn th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.sfn-txn code { background: #0d1729; padding: 1px 6px; border-radius: 4px; color: #cbd5e1; }
.sfn-deriv {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
  color: #94a3b8; background: rgba(148,163,184,.1); border: 1px solid rgba(148,163,184,.25);
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle;
}
.sfn-card-title { font-size: 17px; margin: 4px 0 8px; color: var(--text); line-height: 1.35; font-weight: 600; }
.sfn-card {
  background: var(--card); border: 1px solid var(--border, #1c2942);
  border-radius: 12px; padding: 18px 18px 16px;
  transition: border-color .15s ease;
}
.sfn-card:hover { border-color: #2a3d5f; }
.sfn-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sfn-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.sfn-b-bull { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.sfn-b-bear { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.35); }
.sfn-b-neutral { background: rgba(234,179,8,.10); color: #facc15; border: 1px solid rgba(234,179,8,.30); }
.sfn-b-info { background: rgba(96,165,250,.12); color: #93c5fd; border: 1px solid rgba(96,165,250,.30); }
.sfn-b-form { background: #142037; color: #cbd5e1; border: 1px solid #213352; }
.sfn-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.sfn-card h2 { font-size: 17px; margin: 4px 0 8px; color: var(--text); line-height: 1.35; }
.sfn-card .sfn-summary { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.sfn-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-muted); border-top: 1px solid #182542; padding-top: 10px; }
.sfn-meta strong { color: var(--text); font-weight: 600; }
.sfn-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.sfn-link { font-size: 13px; color: var(--accent-soft); text-decoration: none; font-weight: 500; }
.sfn-link:hover { text-decoration: underline; }
.sfn-empty { background: var(--card); border: 1px dashed #233452; border-radius: 12px; padding: 40px; text-align: center; color: var(--text-muted); }
.sfn-intro { background: var(--card); border: 1px solid #1c2942; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.sfn-intro strong { color: var(--text); }

/* Filing activity snapshot */
.sfn-snapshot { margin-bottom: 24px; }
.sfn-snapshot-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
}
.sfn-snap-period {
  font-size: 11.5px; font-weight: 400; color: var(--text-muted);
  background: #0d1829; border: 1px solid #1c2942; border-radius: 6px;
  padding: 2px 9px; margin-left: 4px;
}
.sfn-snap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.sfn-snap-card {
  background: var(--card); border: 1px solid #1c2942; border-radius: 10px;
  padding: 14px 16px;
}
.sfn-snap-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.sfn-snap-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sfn-snap-buy  { font-size: 16px; font-weight: 800; color: #4ade80; }
.sfn-snap-sell { font-size: 16px; font-weight: 800; color: #f87171; }
.sfn-snap-sep  { font-size: 12px; color: var(--text-muted); }
.sfn-snap-big  { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.sfn-snap-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.sfn-snap-codes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.sfn-snap-code {
  font-size: 11px; font-weight: 600; font-family: monospace;
  background: #142037; color: #93c5fd; border: 1px solid #213352;
  border-radius: 5px; padding: 2px 7px;
}

/* Educational section */
.sfn-edu { background: #060e1d; border: 1px solid #1c2942; border-radius: 12px; padding: 24px; margin-top: 32px; }
.sfn-edu h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.sfn-edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sfn-edu-item { }
.sfn-edu-item h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 5px; }
.sfn-edu-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* FAQ */
.sfn-faq { margin-top: 32px; }
.sfn-faq h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.sfn-faq-item { border: 1px solid #1c2942; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.sfn-faq-q { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sfn-faq-q h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.4; }
.sfn-faq-chevron { flex-shrink: 0; width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s; }
.sfn-faq-item.active .sfn-faq-chevron { transform: rotate(180deg); }
.sfn-faq-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.sfn-faq-body-inner { padding: 0 18px 14px; font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* Related tools */
.sfn-tools { margin-top: 32px; }
.sfn-tools h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.sfn-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sfn-tool-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid #1c2942; border-radius: 10px;
  padding: 12px 14px; text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 500; transition: border-color .15s;
}
.sfn-tool-link:hover { border-color: rgba(34,197,94,.3); color: var(--accent); }

/* Back to stock CTA */
.sfn-back-cta {
  margin-top: 36px; background: linear-gradient(135deg,rgba(34,197,94,.07),rgba(34,197,94,.03));
  border: 1px solid rgba(34,197,94,.2); border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sfn-back-cta h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.sfn-back-cta p { font-size: 13px; color: var(--text-muted); margin: 0; }
.sfn-back-cta a.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#22c55e,#16a34a); color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px 22px; border-radius: 8px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(34,197,94,.2);
}

@media (max-width: 600px) {
  .sfn-activity { grid-template-columns: repeat(3, 1fr); }
  .sfn-back-cta { flex-direction: column; }
}
