/* ── Card Grid ───────────────────────────────────────────────────────────────── */
.cw-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cw-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cw-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Opportunity Card ─────────────────────────────────────────────────────────── */
.cw-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s var(--ease);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  text-decoration: none;
  color: inherit;
}

.cw-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

.cw-card.featured { border-color: var(--g); }
.cw-card.featured .cw-card-btn { background: var(--g); }

/* ── Card Image Placeholder ──────────────────────────────────────────────────── */
.cw-card-img {
  width: 100%;
  height: 180px;
  padding: 6px 6px 0;
  flex-shrink: 0;
}

.cw-card-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 14px 14px 0 0;
}

/* ── Card Body ───────────────────────────────────────────────────────────────── */
.cw-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Badges + Save row ───────────────────────────────────────────────────────── */
.cw-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.cw-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

.cw-card-save {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--faint);
  flex-shrink: 0;
  padding: 0;
  transition: color .15s;
}
.cw-card-save:hover,
.cw-card-save.saved { color: var(--c); }

/* ── Title ───────────────────────────────────────────────────────────────────── */
.cw-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -.2px;
  text-decoration: none;
}

/* ── Meta row ────────────────────────────────────────────────────────────────── */
.cw-card-meta {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Bottom row — score + deadline + button ──────────────────────────────────── */
.cw-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 8px;
  margin-top: auto;
}

/* ── Match score ring ────────────────────────────────────────────────────────── */
.cw-score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cw-ring {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.cw-ring svg { transform: rotate(-90deg); }

.cw-ring-bg   { fill: none; stroke: var(--line); stroke-width: 3.5; }
.cw-ring-fill { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke: var(--g); }

.cw-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-ring-pct {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink);
}

.cw-score-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--g);
  line-height: 1;
}
.cw-score-lbl {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--faint);
}

/* ── Deadline + button ───────────────────────────────────────────────────────── */
.cw-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cw-deadline {
  font-size: 11px;
  font-weight: 700;
  color: var(--c);
}
.cw-deadline.safe    { color: var(--g); }
.cw-deadline.rolling { color: var(--muted); }

.cw-card-btn {
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}
.cw-card-btn:hover { background: var(--ink-2); }

/* ── Mobile card adjustments ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cw-card         { border-radius: 16px; }
  .cw-card-img     { height: 160px; padding: 5px 5px 0; }
  .cw-card-img-inner { border-radius: 12px 12px 0 0; }
  .cw-card-body    { padding: 14px 16px 16px; }
  .cw-card-title   { font-size: 13px; }
  .cw-card-meta    { font-size: 11px; }
  .cw-ring         { width: 34px; height: 34px; }
  .cw-score-num    { font-size: 15px; }
  .cw-card-btn     { padding: 7px 13px; font-size: 11px; }
}

/* ── Load more ───────────────────────────────────────────────────────────────── */
.cw-load-more {
  text-align: center;
  margin-top: 48px;
  padding-bottom: 60px;
}

.cw-load-btn {
  padding: 14px 40px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.cw-load-btn:hover { border-color: var(--g); color: var(--g); }

.cw-load-note {
  font-size: 12px;
  color: var(--faint);
  margin-top: 10px;
}
