/* Candidate card (components/frontend/cards/candidate-one). Shares the job card's
   language: site accent (--clr-primary-code), Customize panel radius. */
.cc {
    --cc-accent: rgb(var(--clr-primary-code, 200, 16, 46));
    --cc-ink: #101828; --cc-muted: #5b6475; --cc-line: #e7e9ef; --cc-soft: #f6f7f9;
    --cc-open: #12b76a;
    height: 100%; display: flex; flex-direction: column; gap: 14px;
    padding: 20px; background: #fff; text-align: start;
    border: 1px solid var(--cc-line); border-radius: var(--appearance-card-border-radius, 12px);
    position: relative; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cc:hover { border-color: color-mix(in srgb, var(--cc-accent) 40%, var(--cc-line)); box-shadow: 0 12px 28px -14px rgb(16 24 40 / .25); transform: translateY(-2px); }
.cc:focus-within { border-color: var(--cc-accent); }

.cc-head { display: flex; gap: 14px; align-items: flex-start; }
.cc-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--cc-line); }
.cc-avatar.is-open { background: conic-gradient(var(--cc-open), #32d583, var(--cc-open)); }
.cc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; }
.cc-id { flex: 1; min-width: 0; }
.cc-id h3 { margin: 2px 0 2px; font-size: 1.05rem !important; font-weight: 600 !important; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.cc-id h3 a { color: var(--cc-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-id h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card opens the profile */
.cc-id h3 a:hover { color: var(--cc-accent); }
.cc-verified { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2e90fa; color: #fff; font-size: 10px; }
.cc-role { margin: 0; color: var(--cc-muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-role span { color: #98a2b3; }
.cc-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
.cc-open i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc-open); }

.cc-follow { position: relative; z-index: 1; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--cc-line); color: var(--cc-muted); background: #fff; text-decoration: none; }
.cc-follow:hover { color: var(--cc-accent); border-color: var(--cc-accent); }
.cc-follow .following { color: var(--cc-accent); }
.cc-follow:has(.following) { border-color: var(--cc-accent); background: color-mix(in srgb, var(--cc-accent) 8%, #fff); }

.cc-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-skills li { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cc-soft); color: #344054; border: 1px solid var(--cc-line); }
.cc-skills .cc-more { color: var(--cc-accent); }

.cc-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-facts li { display: flex; gap: 8px; align-items: flex-start; color: var(--cc-muted); font-size: .875rem; line-height: 1.4; }
.cc-facts i { color: var(--cc-accent); margin-top: 2px; }
.cc-facts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cc-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--cc-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-pay { display: grid; min-width: 0; }
.cc-pay strong { color: var(--cc-ink); font-size: 1.05rem; font-weight: 800; }
.cc-pay small { color: var(--cc-muted); font-size: .75rem; }
.cc-view { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 14px; font-size: .875rem; font-weight: 700; text-decoration: none;
    color: var(--cc-accent); background: color-mix(in srgb, var(--cc-accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--cc-accent) 28%, #fff); border-radius: var(--appearance-button-border-radius, 10px); transition: background .2s, color .2s; }
.cc-view:hover, .cc:hover .cc-view { background: var(--cc-accent); color: #fff; }

body.dark-mode .cc { --cc-ink: #f2f4f7; --cc-muted: #a6aebb; --cc-line: #2a3140; --cc-soft: #1b2230; background: #141a24; }
body.dark-mode .cc-follow, body.dark-mode .cc-avatar img { background: #1b2230; border-color: #2a3140; }
body.dark-mode .cc-view { background: color-mix(in srgb, var(--cc-accent) 18%, #141a24); border-color: color-mix(in srgb, var(--cc-accent) 40%, #141a24); color: #fff; }
body.dark-mode .cc-open { color: #75e0a7; background: rgb(117 224 167 / .12); border-color: rgb(117 224 167 / .3); }
body.dark-mode .cc-skills li { color: #d0d5dd; }

@media (prefers-reduced-motion: reduce) { .cc, .cc-view { transition: none; } .cc:hover { transform: none; } }
@media (max-width: 575.98px) { .cc { padding: 16px; } }
