/* Alpha Tracker — page-specific styles */

.alpha-intro .alpha-lede {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 72ch;
}
.alpha-intro code { font-family: var(--font-mono); font-size: 0.85em; color: var(--cyan); }

.rolling-card { margin-top: 1rem; }
.rolling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.rolling-card-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rolling-card-item.positive { border-left: 3px solid var(--green); }
.rolling-card-item.negative { border-left: 3px solid var(--red); }
.rolling-card-item.neutral  { border-left: 3px solid var(--text-muted); }
.rolling-card-item.pending  { border-left: 3px solid var(--border); opacity: 0.75; }

.rolling-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.rolling-basket {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rolling-window {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  background: var(--bg-card);
  border-radius: 2px;
}
.rolling-alpha {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rolling-card-item.positive .rolling-alpha { color: var(--green); }
.rolling-card-item.negative .rolling-alpha { color: var(--red); }
.rolling-card-item.pending  .rolling-alpha { color: var(--text-muted); font-size: 1.1rem; }

.rolling-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.alpha-footer-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.cohort-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.cohort-controls label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cohort-controls select {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}
.cohort-controls select:focus { outline: 1px solid var(--blue); }

.window-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.window-tag.window-1w { color: var(--blue); border-color: var(--blue); }
.window-tag.window-1m { color: var(--purple); border-color: var(--purple); }
.window-tag.window-3m { color: var(--cyan); border-color: var(--cyan); }
.window-tag.window-between { color: var(--text-muted); border-style: dashed; }

.basket-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  margin-right: 0.4rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
}

td.pos { color: var(--green); }
td.neg { color: var(--red); }
td.muted { color: var(--text-muted); }

.alpha-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 1.5rem;
  text-align: center;
}

.alpha-method .method-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}
.alpha-method .method-list strong { color: var(--text-primary); }
.alpha-method code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--cyan);
  background: var(--bg-primary);
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
}

.window-table {
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  width: 100%;
  max-width: 680px;
}
.window-table th,
.window-table td {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}
.window-table thead th {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.window-table tbody tr:nth-child(1) td:first-child { color: var(--blue); }
.window-table tbody tr:nth-child(2) td:first-child { color: var(--purple); }
.window-table tbody tr:nth-child(3) td:first-child { color: var(--cyan); }
.window-table tbody td:last-child {
  font-family: var(--font-sans, sans-serif);
  color: var(--text-muted);
  font-size: 0.8rem;
}
