/* Overview page extras: the grid of project cards. Everything else comes
 * from /static/style.css (the site's design system, light + dark themes). */

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
}

.pcard {
  display: block;
  padding: 14px 16px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pcard:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.pcard:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.pcard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: rgba(128, 128, 128, 0.45);
}

.pcard[data-st='up'] .pdot {
  background: var(--green-live, #34c759);
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.55);
}

.pcard[data-st='down'] .pdot {
  background: var(--red, #d70015);
  box-shadow: 0 0 6px rgba(215, 0, 21, 0.5);
}

.pname {
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psym {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
  flex: none;
}

.pcard-value {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.pcard-sub {
  font-size: 12px;
  color: var(--muted);
  min-height: 15px;
  font-variant-numeric: tabular-nums;
}

.pcard-rows {
  margin-top: 11px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.prow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.prow span {
  color: var(--muted);
}

.prow b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pcard-cta {
  margin-top: 11px;
  font-size: 13px;
  font-weight: 550;
  color: var(--accent);
}

.pcard[data-st='down'] .pcard-value,
.pcard[data-st='down'] .prow b {
  color: var(--muted);
}

.grid-note {
  margin-top: 14px;
  line-height: 1.5;
}

.grid-note code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.95em;
}

@media (max-width: 560px) {
  .pool-grid {
    grid-template-columns: 1fr;
  }
}
