/* Coverage overview + universe leaderboard ------------------------------- */

.hero { padding: 54px 0 30px; max-width: 820px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 20px;
}
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p { font-size: clamp(15px, 2vw, 18px); color: var(--muted); line-height: 1.6; margin: 0 0 26px; max-width: 660px; }
.hero .cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--accent-2); border: 1px solid rgba(91,185,139,0.35); border-radius: 999px; padding: 10px 18px; transition: background .18s; }
.hero .cta:hover { background: var(--accent-dim); }
.hero .cta::after { content: "↗"; }
.hero .stamp { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-left: 16px; }

.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 46px 0 18px; }
.section-h h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0; letter-spacing: .01em; }
.section-h .sub { font-size: 13px; color: var(--faint); }

/* covered cards */
.covered-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cvcard {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; transition: border-color .2s, transform .2s, background .2s; position: relative; overflow: hidden;
}
.cvcard:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.cvcard .row1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cvcard .tk { font-family: var(--mono); font-size: 12.5px; color: var(--brass); letter-spacing: .05em; }
.cvcard .tk::before { content: "$"; opacity: .7; }
.cvcard h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 10px 0 2px; letter-spacing: .01em; }
.cvcard .sector { font-size: 12px; color: var(--faint); }
.cvcard .priceline { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.cvcard .price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 20px; }
.cvcard .chg { font-family: var(--mono); font-size: 12.5px; }
.cvcard .spark { height: 40px; margin: 8px 0 12px; }
.cvcard .thesis { font-size: 13.5px; color: #cfcbbf; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.score-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.score-chip b { font-weight: 500; color: var(--accent-2); }
.score-chip .mini { width: 34px; height: 4px; border-radius: 999px; background: rgba(236,233,223,.1); overflow: hidden; }
.score-chip .mini i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* thematic rows */
.thematic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.thcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; transition: border-color .18s, background .18s; }
.thcard:hover { border-color: var(--line-2); background: var(--surface-2); }
.thcard > div:first-child { min-width: 0; flex: 1 1 auto; }  /* let the long ETF name ellipsize instead of overrunning the price */
.thcard .tk { font-family: var(--mono); font-size: 12px; color: var(--brass); }
.thcard .nm { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thcard .r { margin-left: auto; flex: 0 0 auto; text-align: right; font-family: var(--mono); font-size: 12.5px; }

/* leaderboard */
.lb-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lb-search { flex: 1; min-width: 180px; }
.lb-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font-family: var(--sans); font-size: 13.5px; outline: none;
}
.lb-search input:focus { border-color: var(--line-2); }
.lb-search input::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.lb { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lb-table th {
  text-align: right; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 400; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none;
}
.lb-table th:first-child, .lb-table td:first-child { text-align: left; }
.lb-table th.name-col, .lb-table td.name-col { text-align: left; }
.lb-table th:hover { color: var(--muted); }
.lb-table th.sorted { color: var(--accent-2); }
.lb-table th .car { font-size: 8px; }
.lb-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tbody tr { cursor: pointer; transition: background .12s; }
.lb-table tbody tr:hover { background: var(--surface-2); }
.lb-rank { color: var(--faint); width: 34px; }
.lb-name { display: flex; flex-direction: column; gap: 1px; }
.lb-name .tk { color: var(--brass); font-size: 12.5px; }
.lb-name .nm { color: var(--muted); font-family: var(--sans); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.lb-score { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.lb-score .n { color: var(--text); min-width: 34px; }
.lb-score .bar { width: 60px; height: 5px; border-radius: 999px; background: rgba(236,233,223,.08); overflow: hidden; }
.lb-score .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lb-sub { color: var(--muted); }
.lb-spark { width: 74px; height: 26px; vertical-align: middle; }
.lb-empty { padding: 30px; text-align: center; color: var(--faint); }
@media (max-width: 760px) { .hide-sm { display: none; } .lb-name .nm { max-width: 120px; } }

.lb-more { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); text-align: center; }
.lb-more a { color: var(--accent); }

/* editorial homepage: tools launchpad + light screen teaser */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tool-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 17px; text-decoration: none; color: inherit; transition: border-color .18s, background .18s, transform .18s; }
.tool-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.tool-h { font-family: var(--serif); font-size: 17px; display: flex; align-items: center; justify-content: space-between; }
.tool-arrow { color: var(--accent); font-size: 15px; transition: transform .18s; }
.tool-card:hover .tool-arrow { transform: translateX(3px); }
.tool-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 7px 0 0; }

.screen-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.screen-chip { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 13px; text-decoration: none; color: inherit; transition: border-color .18s; }
.screen-chip:hover { border-color: var(--line-2); }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-top .tk { font-family: var(--mono); font-size: 12.5px; color: var(--brass); }
.sc-score { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.sc-nm { font-size: 12px; color: var(--muted); margin: 5px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: flex; gap: 6px; }
.screen-more { display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--accent-dim);
  border: 1px solid var(--accent); border-radius: var(--r-md); padding: 12px; text-decoration: none; color: var(--accent);
  font-size: 12.5px; line-height: 1.5; }
.screen-more span { color: var(--muted); font-family: var(--mono); font-size: 11px; }

/* Substack subscribe block */
.join { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; margin-top: 46px; }
@media (max-width: 820px) { .join { grid-template-columns: 1fr; gap: 20px; } }
.join-copy .eyebrow { color: var(--accent-2); margin-bottom: 12px; }
.join-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.08; margin: 0 0 12px; }
.join-copy p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; max-width: 460px; }
.join-copy p em { color: var(--text); font-style: italic; }
.join-bullets { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.join-bullets li { font-size: 13.5px; color: var(--text); padding-left: 24px; position: relative; }
.join-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-size: 13px; }
.join-reassure { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .03em; }
.join-embed { display: flex; flex-direction: column; gap: 8px; }
.join-embed iframe { width: 100%; height: 320px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-2); }
.join-fallback { font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; text-align: center; }
