:root {
  --bg: #232323;
  --muted: #8a8a8a;
  --text: #bbb;
  --border: #2b2b2b;
  --footer-bg: #181818;
  --link: #5691cd;
  --link-hover: #bbb;
  --shadow: 0 1px 2px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.22);
  --shadow-hover: 0 10px 15px rgba(0,0,0,.22), 0 4px 6px rgba(0,0,0,.18);
  --radius: 8px;
  --card-height: 260px;
}

.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 255px));
  justify-content: start;
  max-width: 1100px;
  margin: 0 auto;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 200ms ease;
  height: var(--card-height);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.card-link:hover .card {
  box-shadow: var(--shadow-hover);
}

.card__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #202020;
}

.card__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  min-width: 0;
}

.card__title {
  margin: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__body {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.overview {
  margin: 0;
}

.label {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

.value {
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.value--muted {
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* Change if --card-height changes */
  line-clamp: 3; /* Likewise */
  overflow: hidden;
}

.card__footer {
  background: var(--footer-bg);
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card__footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.card-link:hover .card__footer-link {
  color: var(--link-hover);
}
