/* Leaderboard: quiet sage surfaces, tabular numbers, trader rows with collapsible channel rows. */
.report-shell{min-height:100vh;background:#f6f7f3}.research-board{max-width:1680px;margin:auto;padding:28px clamp(20px,4vw,64px) 60px}.research-heading{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:12px 24px;margin-bottom:18px}.board-heading-tools{flex-wrap:wrap;gap:14px}.research-heading h1{font-size:30px;margin:4px 0 6px;letter-spacing:-1px}.research-heading p{color:var(--muted);font-size:13px}.research-heading .board-eyebrow{font-size:10px;letter-spacing:2px;color:var(--green)}.board-columns{position:relative}.board-columns>summary{cursor:pointer;list-style:none;min-height:40px;display:inline-flex;align-items:center;padding:10px 14px;background:white;border:1px solid var(--line);border-radius:7px;font-size:13px;color:var(--muted)}.board-columns>div{position:absolute;z-index:5;top:46px;left:0;background:white;border:1px solid var(--line);border-radius:8px;padding:12px 16px;display:grid;gap:8px;box-shadow:0 8px 20px #21352914;white-space:nowrap}.board-columns label{display:flex;gap:8px;align-items:center;font-size:12px;color:#29453d}.board-tools{margin-bottom:16px;flex-wrap:wrap}.board-search{width:290px;min-height:40px;padding:10px 14px;background:white;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:13px}.board-count{font-size:12px;color:var(--muted)}

.research-table{overflow:auto;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 1px 2px #1f352a0d,0 6px 18px #1f352a0a}
.research-table table{width:100%;border-spacing:0;border-collapse:separate;font-size:13px;font-variant-numeric:tabular-nums}
.research-table th{position:sticky;top:0;z-index:3;padding:11px 14px;text-align:right;font-size:12px;font-weight:600;color:#5d6f67;background:#f8faf7;border-bottom:1px solid var(--line);white-space:nowrap}
.research-table th.research-sorted{color:var(--green);box-shadow:inset 0 -2px 0 var(--green)}
.column-sort{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0}
.column-sort .sort-mark{font-size:10px;opacity:.35}.research-sorted .column-sort .sort-mark{opacity:1}.column-sort:hover .sort-mark{opacity:.8}
.research-table td{padding:12px 14px;border-bottom:1px solid #edf1ec;text-align:right;color:#33443d;background:#fff;white-space:nowrap;vertical-align:middle}
.research-table tbody tr:last-child td{border-bottom:0}
.research-table td.research-sorted{background:#fbfcf9}
.research-table tbody tr.board-row:hover td{background:#f4f8f4}
.research-value{font-weight:500}
.research-return{font-weight:650;font-size:14px}
.research-table td.research-positive .research-return{color:var(--green)}.research-table td.research-negative .research-return{color:var(--red)}
.r-coverage{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-weight:400}

.research-table .research-rank{width:52px;text-align:center}
.rank-badge{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:12px;color:#7b8982;font-size:12px;font-weight:600}
.rank-badge.rank-1{background:#f6ecd2;color:#8a6618}.rank-badge.rank-2{background:#eceff1;color:#5a656c}.rank-badge.rank-3{background:#f4e3d7;color:#8b5632}
.research-table .research-identity{position:sticky;left:0;z-index:2;min-width:260px;text-align:left;white-space:normal}
.research-table th.research-identity{z-index:4}
.identity-line{display:flex;align-items:flex-start;gap:10px}
.row-toggle{flex:0 0 auto;width:24px;height:24px;margin-top:1px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:white;color:#55675f;cursor:pointer;padding:0}
.row-toggle span{display:block;font-size:16px;line-height:1;transition:transform .15s}
.row-toggle[aria-expanded="true"] span{transform:rotate(90deg)}.row-toggle:hover{border-color:var(--green);color:var(--green)}
.channel-toggle{display:inline-flex;align-items:center;gap:3px;border:0;background:none;padding:0;font:inherit;color:var(--green);cursor:pointer}
.channel-toggle span{display:inline-block;font-size:13px;line-height:1;transition:transform .15s}
.channel-toggle[aria-expanded="true"] span{transform:rotate(90deg)}.channel-toggle:hover{text-decoration:underline}
.trader-identity{min-width:0}
.trader-name-line{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;white-space:nowrap}
.research-trader-name{color:var(--ink);font-size:15px;font-weight:700;letter-spacing:.01em;text-decoration:none;overflow-wrap:anywhere}.research-trader-name:hover{color:var(--green)}
.trader-tag{display:inline-flex;align-items:center;gap:4px;padding:1px 8px 1px 6px;border:1px solid;border-radius:5px;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap}
.trader-tag::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.trader-tag.tone-0{color:#17735f;background:#e9f5f0;border-color:#c5e4d8}
.trader-tag.tone-1{color:#2f5f9e;background:#eaf1fb;border-color:#cbdcf2}
.trader-tag.tone-2{color:#9a5b16;background:#fcf2e5;border-color:#f0d9b8}
.trader-tag.tone-3{color:#7b4aa3;background:#f4edfa;border-color:#e0d0ef}
.trader-tag.tone-4{color:#a2434f;background:#fbecee;border-color:#f1cdd2}
.trader-tag.tone-5{color:#4d6470;background:#eef2f4;border-color:#d5dee3}
.research-trader-meta:empty{display:none}
.research-table th.board-draggable{cursor:grab}
/* Metric columns take the wider of header and values. The identity column has a preferred width so long
   source notes wrap instead of widening it; names and tags still set its minimum. */
.research-table .research-identity{min-width:0;width:220px}
.research-table th.is-dragging{opacity:.45}
.research-table th.is-drop-target{box-shadow:inset 3px 0 0 var(--green)}
.research-trader-meta{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5}.research-trader-meta strong{font-weight:600;color:#9a6a2a}.research-trader-meta .meta-muted{color:var(--muted)}
.board-row.is-open td{border-bottom-color:transparent}

.board-child td{background:#f9fbf8;padding-top:9px;padding-bottom:9px;font-size:12px}
.board-child .research-return{font-size:13px}
.board-child .research-identity{background:#f9fbf8}
.child-line{position:relative;margin-left:4px;padding-left:12px;border-left:2px solid #d9e5dc;display:grid;grid-template-columns:1fr;gap:2px;align-items:center}
.child-name{display:flex;align-items:center;gap:8px;min-width:0}.child-name a{color:#25423a;font-weight:600;text-decoration:none;overflow-wrap:anywhere}.child-name a:hover{color:var(--green)}
.child-line small{grid-column:1;color:var(--muted);font-size:10px}.child-line small.child-warn{color:#9a6a2a;font-weight:600}
.child-action{border:1px solid var(--line);background:white;color:#4c5f57;border-radius:6px;padding:3px 6px;font-size:11px;cursor:pointer;white-space:nowrap}
.board-child.is-excluded td.research-rank>*{opacity:1}
.child-action:hover{border-color:var(--green);color:var(--green)}
.child-badge{padding:1px 6px;border-radius:4px;background:#eceee9;color:#6f7b75;font-size:10px;font-weight:600}
.board-child.is-excluded td>*{opacity:.5}.board-child.is-excluded .research-identity>*{opacity:1}.board-child.is-excluded .child-name a{color:#7b8781;text-decoration:line-through}
.board-child.is-excluded .child-action{border-color:var(--green);color:var(--green)}
.board-child+.board-row td{border-top:1px solid var(--line)}
.board-all-excluded{text-align:center!important;color:var(--muted);font-size:12px}

.research-empty{text-align:center;padding:55px 20px}.research-empty p{color:var(--muted);margin:15px 0 25px}
@media(max-width:850px){.research-board{padding:25px 16px}.research-table .research-identity{min-width:210px}}@media(max-width:500px){.board-search{width:100%}.research-heading h1{font-size:25px}.research-topbar{gap:8px}.research-table .research-identity{position:static}.research-heading{gap:12px}.child-line{margin-left:12px}}


/* Thirds among trader rows: green/red judge good/bad; orange/blue only show a leaning. Text keeps its own sign color. */
.grade-legend i{font-style:normal;padding:2px 8px;border-radius:4px}
.grade-legend .grade-good{background:#e6f4ec}.grade-legend .grade-bad{background:#fbeaea}
.grade-legend .grade-warm{background:#fdf0e1}.grade-legend .grade-cool{background:#e8f0fb}


/* Paired columns: two metrics stacked in one cell, each with its own sort button and grade color. */
.research-table th .pair-sep{margin:0 6px;color:#b5c2bb;font-weight:400}
.research-table th .column-sort:not(.is-active){color:#5d6f67}
.research-table td.metric-cell{padding:8px 10px}
.research-table .pair-line{display:flex;justify-content:flex-end;align-items:center}
.research-table .cell-chip{padding:4px 6px;border-radius:5px}
.research-table td .pair-sep{margin:0 2px;color:#b5c2bb}
.research-table .cell-chip.grade-good{background:#e6f4ec}.research-table .cell-chip.grade-bad{background:#fbeaea}
.research-table .cell-chip.grade-warm{background:#fdf0e1}.research-table .cell-chip.grade-cool{background:#e8f0fb}

/* Header row: darker, heavier labels on a tinted band. The table scrolls inside a viewport-high box so the header
   (and the identity column) stay frozen while scrolling; a page-level sticky header is impossible inside overflow:auto. */
.research-table{max-height:calc(100vh - 24px)}
.research-table th{font-size:12.5px;font-weight:700;color:#24372e;background:#eef4f0;border-bottom:2px solid #d5e2da;padding-top:12px;padding-bottom:12px}
.research-table th .column-sort:not(.is-active){color:#24372e}
.research-table th .column-sort .sort-mark{opacity:.45}
.research-table th.research-sorted{color:var(--green);background:#e3f0e9;box-shadow:inset 0 -2px 0 var(--green)}
.research-table th.research-sorted .column-sort.is-active{color:var(--green)}

.hero-chart{display:block;width:100%;height:auto}
.hero-empty{margin:auto;color:var(--muted);font-size:13px}
.hero-chart .hero-grid{stroke:#e2ebe6}
.hero-chart .hero-zero{stroke:#9db3a8;stroke-dasharray:4 4}
.hero-chart .hero-axis{font:11px var(--font-ui);fill:#7a8e85}
.hero-chart .hero-line{fill:none;stroke-width:2.8;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 3px 4px #087f6b33)}
.hero-chart .week-guide{stroke:#cfded6;stroke-dasharray:2 4}
.hero-chart .week-dot{fill:#fff;stroke:#087f6b;stroke-width:2}
.hero-chart text.week-value{font:700 11px var(--font-ui);fill:#087f6b;paint-order:stroke;stroke:#f6faf8;stroke-width:4px}
.hero-chart text.week-value.is-negative{fill:#c0392b}
.hero-chart .hero-end{fill:#067a64;stroke:#fff;stroke-width:2}

/* Toolbar: table filters on the left, month and site-wide switches on the right. */
.board-tools{flex-wrap:wrap;gap:10px;margin-bottom:8px}
.board-global-tools{display:flex;align-items:center;gap:14px;padding:4px 6px 4px 4px;border:1px solid #dbe7e0;border-radius:10px;background:#fff}
.board-global-tools select{border:0;background:#eef5f1;font-weight:600}
.grade-legend{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;font-size:11px;color:#5d6f67;cursor:help}
.board-tools{margin-bottom:12px}

/* Compact page heading: title and one-line description on a single row. */
.research-board{padding-top:16px}
.research-heading{margin:6px 0 12px}
.research-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px}
.research-heading .board-eyebrow{display:none}
.research-heading h1{font-size:22px;margin:0;letter-spacing:-.5px}
.research-heading p{margin:0;font-size:13px;color:var(--muted)}

/* Community return card: title and figures on top, chart full width below, note at the bottom. */
.board-hero{margin:0 0 22px;padding:24px 28px 18px;border-radius:16px;border:1px solid #dbe7e0;background:linear-gradient(180deg,#ffffff 0%,#f4faf7 100%);box-shadow:0 2px 4px #12352a0d,0 18px 40px #12352a12}
.hero-header{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px 24px;margin-bottom:8px}
.hero-eyebrow{margin:0;font-size:10px;font-weight:700;letter-spacing:2.5px;color:var(--green)}
.hero-intro h2{margin:6px 0 6px;font-size:22px;letter-spacing:-.4px}
.hero-pitch{margin:0;font-size:15px;font-weight:500;color:#29453d}
.hero-stats{display:flex;gap:12px;align-items:stretch}
.hero-count,.hero-total{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px 18px;border-radius:12px}
.hero-count{border:1px solid var(--line);background:#fff}
.hero-count strong{font:700 26px/1.1 var(--mono);color:var(--ink)}.hero-count span{font-size:12px;color:var(--muted)}
.hero-total{padding:12px 22px;background:#087f6b}
.hero-total strong{font:700 32px/1.1 var(--mono);color:#fff;letter-spacing:-.5px}.hero-total span{font-size:12px;color:#d3f1e8}
.board-hero.is-negative .hero-total{background:#b4473b}
.hero-chart-wrap{display:flex;align-items:center;min-height:180px}
.hero-note{margin:4px 0 0;font-size:12px;line-height:1.7;color:var(--muted)}
@media(max-width:600px){.board-hero{padding:18px 16px 14px}.hero-stats{width:100%}.hero-count,.hero-total{flex:1}.hero-total strong{font-size:30px}}

/* Community invite in the top bar: a dark pill with platform icons; the menu opens on hover or click. */
/* Return switch: two segmented groups choosing the return columns (cumulative / per trade) and units (% / R). */
.return-switch{display:flex;align-items:center;gap:4px;padding:3px 4px 3px 8px;border:1px solid #dbe7e0;border-radius:10px;background:#fff;font-size:12px;color:var(--muted)}
.return-segment{display:inline-flex;padding:2px;border-radius:8px;background:#eef3f0}
.return-segment button{min-width:30px;height:24px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#5d6f67;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.return-segment button:hover{color:var(--forest)}
.return-segment button.is-on{background:#fff;color:var(--green);box-shadow:0 1px 3px #1f352a26}
.return-segment button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.board-tools .grade-legend{flex:1 1 180px;justify-content:flex-end;min-width:0}

/* The top bar stays pinned while the page scrolls; the table box leaves room for it. */
.research-topbar{position:sticky;top:0;z-index:20}
.research-table{max-height:calc(100vh - 150px)}
@media(max-width:850px){.research-table{max-height:calc(100vh - 210px)}}

/* Trader avatar: a round photo, or the first character of the name when none is uploaded. */
.trader-avatar{flex:none;align-self:center;width:34px;height:34px;border-radius:50%;object-fit:cover;background:#eef3f0;box-shadow:0 0 0 1px #dbe7e0}
.avatar-initial{display:grid;place-items:center;font-size:15px;font-weight:700;color:#fff}
.avatar-initial.tone-0{background:#2f9a80}.avatar-initial.tone-1{background:#4a78c2}.avatar-initial.tone-2{background:#c4892a}
.avatar-initial.tone-3{background:#8a62b8}.avatar-initial.tone-4{background:#c25563}.avatar-initial.tone-5{background:#6b8290}
