:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #1b1d22;
  --muted: #5c626b;
  --faint: #8a8f98;
  --line: #e4e1d8;
  --line-2: #d7d3c8;
  --green: #13795b;
  --green-2: #1d9a73;
  --red: #b23b3b;
  --orange: #c27a1a;
  --blue: #2f6fed;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 0;
}
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
h1 {
  margin: 6px 0 6px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.sub { margin: 0; color: var(--muted); max-width: 680px; }
.sub strong { color: var(--ink); }
nav {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding: 0 0 12px;
  overflow-x: auto;
  white-space: nowrap;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); border-color: var(--ink); }
main { padding: 24px 0 10px; }
.asof { margin: 0 0 18px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(30, 27, 20, 0.03);
}
.section-head { margin-bottom: 16px; }
h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h3 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 800px; font-size: 12.5px; }
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.pos-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 6px;
  background: #fdfcf9;
  min-width: 0;
}
.pos-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pos-ticker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pos-name { color: var(--faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-pct { font-family: var(--mono); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pos-since { color: var(--faint); font-family: var(--mono); font-size: 9.5px; margin-top: 1px; }
.pos-chart { min-height: 104px; margin-top: 4px; }
.pos-chart svg { display: block; width: 100%; height: auto; }
.chart-block { margin-top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hint { color: var(--faint); font-family: var(--mono); font-size: 9.5px; }
.chart { min-height: 260px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 8px; font-size: 10.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.era { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.era:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.era-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.era-head span { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fdfcf9; }
.card span { display: block; font-family: var(--mono); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.card strong { display: block; margin-top: 2px; font-family: var(--mono); font-size: 17px; font-weight: 600; }
.card em { display: block; font-style: normal; color: var(--faint); font-size: 9.5px; margin-top: 1px; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.flat { color: var(--muted); }
.year-table { margin-top: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
th {
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
th:first-child, td:first-child { text-align: left; }
td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}
td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #faf8f2; }
.year-table td, .year-table th { font-size: 10.5px; }
.note { margin: 8px 0 0; color: var(--faint); font-size: 10.5px; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.trade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trade-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fdfcf9; min-width: 0; }
.trade-card h3 { margin-bottom: 4px; }
.bar-cell { width: 110px; }
.bar-track { height: 6px; background: #eee9de; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green-2); border-radius: 3px; }
.foot { padding: 12px 0 34px; color: var(--faint); font-size: 10.5px; }
.foot p { margin: 3px 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .panel { padding: 16px; border-radius: 12px; }
  .top { padding-top: 24px; }
  nav { gap: 14px; }
  .pos-grid { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-cell { width: 80px; }
}
.bar-fill.loss { background: var(--red); }
.pos-ext { display:flex; justify-content:space-between; gap:8px; margin:2px 0 2px; font-family:var(--mono); font-size:8.5px; }
.subhead { margin:18px 0 8px; }
.subhead p { margin:2px 0 0; color:var(--faint); font-size:10.5px; }
.size-pie { display:flex; justify-content:center; padding:8px 0 2px; }
.size-pie svg { width:min(260px, 100%); height:auto; display:block; }
.public-tip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(30,27,20,.12);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
}
.public-tip strong { font-size: 11px; }
.pos-chart { min-height: 104px; }
.tip-head { font-weight:700; margin-bottom:4px; }
.tip-sec { margin-top:5px; color:var(--faint); font-size:8px; text-transform:uppercase; letter-spacing:.06em; }
.tip-row { display:flex; align-items:center; gap:5px; margin-top:1px; }
.tip-row i { width:7px; height:7px; border-radius:2px; flex:0 0 auto; }
.tip-row span { flex:1; }
.tip-row b { font-weight:600; }
.tip-row.hot { background:#f3efe3; }
.tip-more { color:var(--faint); margin-top:3px; font-size:9px; }
.subperiod { margin-top:10px; }
.scrub { display:flex; align-items:center; gap:10px; margin:0 0 10px; }
.scrub-label { font-family:var(--mono); font-size:9px; color:var(--faint); text-transform:uppercase; letter-spacing:.08em; }
.scrub input[type=range] { flex:1; accent-color: var(--green); }
.scrub-date { font-family:var(--mono); font-size:10px; color:var(--muted); min-width:100px; text-align:right; }
.pos-scrub-readout { font-family:var(--mono); font-size:8.5px; color:var(--faint); min-height:11px; margin-top:1px; }
.weighted { margin:12px 0 8px; }
.weighted-head { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:6px; }
.weighted-head div { border:1px solid var(--line); border-radius:8px; padding:7px 9px; background:#fdfcf9; }
.weighted-head span { display:block; font-family:var(--mono); font-size:8px; color:var(--faint); text-transform:uppercase; letter-spacing:.06em; }
.weighted-head strong { display:block; font-family:var(--mono); font-size:15px; margin-top:1px; }
.weighted-meta { font-family:var(--mono); font-size:9.5px; color:var(--muted); margin:2px 0 6px; }
.weighted-row td { font-weight:700; border-top:1px solid var(--line-2); }
.weighted-foot { color:var(--faint); font-size:9.5px; margin-top:5px; }
@media(max-width:760px){ .weighted-head { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.weighted-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfcf9;
  margin: 12px 0 10px;
}
.weighted-main .eyebrow { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; color: var(--faint); }
.weighted-big { display: block; font-family: var(--mono); font-size: 44px; line-height: 1; letter-spacing: -.04em; margin: 5px 0 4px; }
.weighted-sub { display: block; color: var(--muted); font-size: 10.5px; }
.weighted-bench { display: grid; gap: 7px; }
.bench-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px 92px; align-items: center; gap: 8px; }
.bench-name { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.bench-track { height: 8px; background: #eee9de; border-radius: 4px; overflow: hidden; }
.bench-track i { display: block; height: 100%; border-radius: 4px; background: #8a8f98; }
.bench-row:nth-child(2) .bench-track i { background: #b8b3a8; }
.bench-val { font-family: var(--mono); font-size: 12px; font-weight: 700; text-align: right; }
.bench-delta { font-family: var(--mono); font-size: 9.5px; text-align: right; }
.weighted-note { color: var(--faint); font-family: var(--mono); font-size: 9px; margin-top: 1px; }
.era-weights { margin: 8px 0 10px; }
.era-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.era-track { display: flex; height: 9px; border-radius: 5px; overflow: hidden; background: #eee9de; margin-top: 4px; }
.era-track i { display: block; height: 100%; }
.era-schwab { background: #8a8f98; }
.era-robinhood { background: var(--green); }
.era-legend { display: flex; gap: 16px; margin-top: 4px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.era-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; }
.era-legend .dot.schwab { background: #8a8f98; }
.era-legend .dot.robinhood { background: var(--green); }
.weighted-table { margin-top: 2px; }
.weighted-table table { min-width: 620px; }
.weighted-foot { color: var(--faint); font-size: 9px; margin-top: 5px; }
@media (max-width: 760px) {
  .weighted-hero { grid-template-columns: 1fr; padding: 12px; gap: 11px; }
  .weighted-big { font-size: 38px; }
  .bench-row { grid-template-columns: 34px minmax(0, 1fr) 58px; }
  .bench-delta { grid-column: 2 / 4; text-align: left; margin-top: -4px; }
  .chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart svg { min-width: 620px; }
  .weighted-table table { min-width: 640px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}
.mobile-only { display: none; }
@media (max-width: 760px) {
  .mobile-only { display: inline; color: var(--faint); font-family: var(--mono); font-size: 8.5px; white-space: nowrap; }
  .weighted-table table { min-width: 0; }
  .weighted-table th:nth-child(4), .weighted-table td:nth-child(4),
  .weighted-table th:nth-child(5), .weighted-table td:nth-child(5) { display: none; }
  .weighted-table th, .weighted-table td { padding: 6px 4px; font-size: 9.5px; }
  .year-table th:nth-child(3), .year-table td:nth-child(3),
  .year-table th:nth-child(4), .year-table td:nth-child(4) { display: none; }
  .year-table th, .year-table td { padding: 6px 4px; font-size: 9.5px; }
  .subperiod table { font-size: 9.5px; }
  .subperiod th, .subperiod td { padding: 6px 4px; }
  .trade-card .table-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 760px) {
  .subperiod { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .subperiod table { table-layout: fixed; width: 100%; font-size: 8.5px; }
  .subperiod th, .subperiod td { padding: 6px 3px; white-space: normal; }
}
.book-grid { display:grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap:14px; align-items:center; margin:6px 0 14px; }
.book-panel { min-width:0; }
.book-title { font-family:var(--mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); margin-bottom:2px; }
.book-table table { min-width:0; }
.all-metrics { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:8px; margin:10px 0 8px; }
.all-main, .all-bench { border:1px solid var(--line); border-radius:8px; padding:9px 11px; background:#fdfcf9; }
.all-main span, .all-bench span { display:block; font-family:var(--mono); font-size:8.5px; color:var(--faint); text-transform:uppercase; letter-spacing:.06em; }
.all-main strong { display:block; font-family:var(--mono); font-size:25px; line-height:1; margin:3px 0 2px; }
.all-main em, .all-bench em { font-style:normal; color:var(--faint); font-size:9px; }
.all-bench b { display:block; font-family:var(--mono); font-size:16px; margin:2px 0; }
.pos-chart svg { cursor: crosshair; touch-action: none; }
@media (max-width:760px){
  .book-grid { grid-template-columns:1fr; }
  .all-metrics { grid-template-columns:1fr 1fr; }
  .all-main { grid-column:1 / -1; }
  .book-table table { min-width:0; }
}
.public-tip.is-mobile {
  pointer-events: auto;
  width: min(340px, calc(100vw - 24px));
  max-height: 56vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30,27,20,.18);
}
.cagr-table-wrap { min-width:0; }
.cagr-table { width:100%; border-collapse:collapse; font-size:10px; }
.cagr-table th { font-family:var(--mono); font-size:8px; text-transform:uppercase; letter-spacing:.05em; color:var(--faint); text-align:right; padding:3px 4px; border-bottom:1px solid var(--line-2); font-weight:500; }
.cagr-table th:first-child, .cagr-table td:first-child { text-align:left; }
.cagr-table td { font-family:var(--mono); font-size:11px; padding:4px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }
.cagr-table tr:last-child td { border-bottom:0; }
@media(max-width:760px){ .cagr-table th { font-size:7px; padding:3px 2px; } .cagr-table td { font-size:9px; padding:3px 2px; } }
.house-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:8px 0 10px; }
.house-card { border:1px solid var(--line); border-radius:8px; padding:9px 11px; background:#fdfcf9; }
.house-card span { display:block; font-family:var(--mono); font-size:8.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); }
.house-card strong { display:block; font-family:var(--mono); font-size:22px; line-height:1.1; margin-top:2px; }
.house-closed td { border-top:1px solid var(--line-2); color:var(--muted); }
@media(max-width:760px){ .house-summary { grid-template-columns:1fr 1fr; } .house-summary .house-card:first-child { grid-column:1 / -1; } }

.house-free { font-size:8px; letter-spacing:.06em; text-transform:uppercase; color:var(--green); border:1px solid currentColor; border-radius:4px; padding:1px 4px; margin-left:4px; }

.house-over { font-size:8px; color:var(--muted); letter-spacing:.04em; margin-left:4px; white-space:nowrap; }
