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

.ec-head { display: flex; gap: 14px; align-items: flex-start; }
.ec-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--ec-line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ec-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ec-id { flex: 1; min-width: 0; }
.ec-id h3 { margin: 2px 0 4px; font-size: 1.05rem !important; font-weight: 600 !important; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.ec-id h3 a { color: var(--ec-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-id h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card opens the company */
.ec-id h3 a:hover { color: var(--ec-accent); }
.ec-verified { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2e90fa; color: #fff; font-size: 10px; }
.ec-sub { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ec-muted); font-size: .82rem; }
.ec-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #b54708; }
.ec-rating i { color: #f79009; }

.ec-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(--ec-line); color: var(--ec-muted); background: #fff; text-decoration: none; }
.ec-follow:hover { color: var(--ec-accent); border-color: var(--ec-accent); }
.ec-follow .following { color: #f79009; }
.ec-follow:has(.following) { border-color: #fdb022; background: #fffaeb; }

.ec-about { margin: 0; color: var(--ec-muted); font-size: .875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

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

.ec-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--ec-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ec-jobs { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; white-space: nowrap; }
.ec-jobs.is-empty { color: #667085; background: var(--ec-soft); border-color: var(--ec-line); }
.ec-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(--ec-accent); background: color-mix(in srgb, var(--ec-accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--ec-accent) 28%, #fff); border-radius: var(--appearance-button-border-radius, 10px); transition: background .2s, color .2s; }
.ec-view:hover, .ec:hover .ec-view { background: var(--ec-accent); color: #fff; }

body.dark-mode .ec { --ec-ink: #f2f4f7; --ec-muted: #a6aebb; --ec-line: #2a3140; --ec-soft: #1b2230; background: #141a24; }
body.dark-mode .ec-follow { background: #1b2230; }
body.dark-mode .ec-logo { background: #f8fafc; border-color: #2a3140; }
body.dark-mode .ec-view { background: color-mix(in srgb, var(--ec-accent) 18%, #141a24); border-color: color-mix(in srgb, var(--ec-accent) 40%, #141a24); color: #fff; }
body.dark-mode .ec-jobs { color: #75e0a7; background: rgb(117 224 167 / .12); border-color: rgb(117 224 167 / .3); }
body.dark-mode .ec-jobs.is-empty { color: #a6aebb; background: #1b2230; border-color: #2a3140; }
body.dark-mode .ec-rating { color: #fec84b; }

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