/* Employers directory — same visual language as the modern homepage */

body.jobcv-employers-page,
body.jobcv-employers-page .site-content,
body.jobcv-employers-page .site-main,
body.jobcv-employers-page .emp-dir-page {
    background: #f7f6fb !important;
    overflow-x: hidden;
    overflow-x: clip;
}

body.jobcv-employers-page .content-section,
body.jobcv-employers-page .content-section > div {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.emp-dir {
    --emp-ink: #22263a;
    --emp-muted: #75798c;
    --emp-violet: #7c6cf0;
    --emp-violet-deep: #6556d8;
    --emp-lilac: #f0eef8;
    --emp-line: rgba(110, 100, 170, 0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2.2vw, 1.5rem) 2.4rem;
    padding-left: max(clamp(1rem, 2.2vw, 1.5rem), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(1rem, 2.2vw, 1.5rem), env(safe-area-inset-right, 0px));
    color: var(--emp-ink);
    font-family: Inter, system-ui, sans-serif;
}

.emp-dir *,
.emp-dir *::before,
.emp-dir *::after {
    box-sizing: border-box;
}

.emp-dir__hero {
    position: relative;
    isolation: isolate;
    margin: 0 calc(-1 * clamp(1rem, 2.2vw, 1.5rem));
    padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1rem, 4vw, 2rem) 1.35rem;
    text-align: center;
    background: linear-gradient(180deg, #faf9fc 0%, #f7f6fb 100%);
}

.emp-dir__hero::before,
.emp-dir__hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: 0.14;
}

.emp-dir__hero::before {
    left: -3rem;
    top: 10%;
    width: 16rem;
    height: 16rem;
    background: #d8d2ea;
}

.emp-dir__hero::after {
    right: -3rem;
    top: 0;
    width: 18rem;
    height: 18rem;
    background: #d4cde6;
}

.emp-dir__kicker,
.emp-dir h1,
.emp-dir__lead,
.emp-dir__search {
    position: relative;
    z-index: 1;
}

.emp-dir__kicker {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emp-violet);
}

.emp-dir h1 {
    margin: 0 auto 0.5rem;
    max-width: 16ch;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: var(--emp-ink);
}

.emp-dir__lead {
    margin: 0 auto 1.2rem;
    max-width: 42ch;
    font-size: clamp(0.86rem, 1.1vw, 0.95rem);
    line-height: 1.55;
    font-weight: 500;
    color: var(--emp-muted);
}

.emp-dir__search {
    display: flex;
    align-items: stretch;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 0.32rem 0.32rem 0.32rem 0.9rem;
    border: 1px solid rgba(120, 110, 160, 0.07);
    border-radius: 999px;
    background: #fff;
    box-shadow:
        0 18px 40px -28px rgba(50, 40, 90, 0.28),
        0 2px 10px rgba(50, 40, 90, 0.035);
}

.emp-dir__search-icon {
    display: inline-flex;
    align-items: center;
    color: #9b96ad;
    flex-shrink: 0;
}

.emp-dir__search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 0.7rem;
    border: 0;
    background: transparent;
    font-size: 16px;
    color: var(--emp-ink);
    box-shadow: none;
}

.emp-dir__search input:focus {
    outline: none;
    box-shadow: none;
}

.emp-dir__search input::placeholder {
    color: #9b96ad;
}

.emp-dir__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 44px;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #8474f0, #6d5ce0);
    box-shadow: 0 10px 20px -12px rgba(100, 85, 190, 0.55);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.emp-dir__panel {
    margin-top: 0.15rem;
    padding: 1.05rem 0 0.15rem;
    border: 1px solid var(--emp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px -20px rgba(50, 40, 90, 0.18);
    overflow: hidden;
}

.emp-dir__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0 1.15rem 0.85rem;
    border-bottom: 1px solid var(--emp-line);
}

.emp-dir__heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--emp-ink);
}

.emp-dir__count {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 750;
    color: var(--emp-violet);
    white-space: nowrap;
}

.emp-dir__empty {
    margin: 0;
    padding: 2rem 0.5rem;
    text-align: center;
    color: var(--emp-muted);
}

.emp-dir__empty[hidden] {
    display: none !important;
}

.emp-dir__list {
    display: flex;
    flex-direction: column;
}

.emp-dir__list .emp-row[hidden] {
    display: none !important;
}

.emp-dir .emp-row {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0 1rem !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.7rem 1.2rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--emp-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: inherit !important;
    flex-direction: unset !important;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.emp-dir .emp-row:last-child {
    border-bottom: 0 !important;
}

@media (hover: hover) {
    .emp-dir .emp-row:hover {
        background: #f7f6fb !important;
    }
    .emp-dir .emp-row:hover .emp-row__name {
        color: var(--emp-violet);
    }
    .emp-dir .emp-row:hover .emp-row__chevron {
        color: var(--emp-violet);
        transform: translateX(2px);
    }
}

.emp-dir .emp-row__logo {
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f4f2fa !important;
    border: 0 !important;
    position: relative !important;
    flex: 0 0 56px !important;
}

.emp-dir .emp-row__logo .jobcv-avatar,
.emp-dir .emp-row__logo .emp-row__avatar {
    position: absolute !important;
    inset: 0 !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 0 !important;
    max-width: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.emp-dir .emp-row__logo .jobcv-avatar > span,
.emp-dir .emp-row__logo .jobcv-avatar img,
.emp-dir .emp-row__logo img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
}

.emp-dir .emp-row__main {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    min-width: 0 !important;
}

.emp-dir .emp-row__name {
    display: block;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--emp-ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-dir .emp-row__tagline {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.3;
    color: #5c6074;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-dir .emp-row__meta {
    display: block;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--emp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-dir .emp-row__aside {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
}

.emp-dir .emp-row__jobs {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--emp-violet);
    white-space: nowrap;
}

.emp-dir .emp-row__chevron {
    display: inline-flex;
    color: #b8b4c8;
    transition: color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 720px) {
    .emp-dir {
        padding-bottom: 2rem;
    }

    .emp-dir__hero {
        margin: 0 calc(-1 * clamp(1rem, 2.2vw, 1.5rem));
        padding: 1.25rem 1rem 1rem;
    }

    .emp-dir h1 {
        font-size: 1.7rem;
    }

    .emp-dir__lead {
        margin-bottom: 1rem;
        font-size: 0.88rem;
    }

    .emp-dir__search {
        width: 100%;
        padding: 0.28rem 0.28rem 0.28rem 0.75rem;
    }

    .emp-dir__search input {
        height: 44px;
    }

    .emp-dir__search button {
        min-width: 78px;
        height: 44px;
        padding: 0 0.9rem;
    }

    .emp-dir__panel {
        border-radius: 16px;
    }

    .emp-dir__heading {
        padding: 0 0.9rem 0.75rem;
    }

    .emp-dir__heading h2 {
        font-size: 0.98rem;
    }

    .emp-dir .emp-row {
        grid-template-columns: 48px minmax(0, 1fr) auto !important;
        gap: 0 0.8rem !important;
        padding: 0.65rem 0.9rem !important;
    }

    .emp-dir .emp-row__logo {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
        border-radius: 50% !important;
    }

    .emp-dir .emp-row__logo .jobcv-avatar,
    .emp-dir .emp-row__logo .emp-row__avatar {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        border-radius: 50% !important;
    }

    .emp-dir .emp-row__name {
        font-size: 1rem;
    }

    .emp-dir .emp-row__jobs {
        font-size: 0.78rem;
    }
}

@media (max-width: 380px) {
    .emp-dir__search button {
        min-width: 70px;
        padding: 0 0.75rem;
    }

    .emp-dir .emp-row__chevron {
        display: none;
    }
}

html[data-color-scheme="dark"] body.jobcv-employers-page,
html[data-color-scheme="dark"] body.jobcv-employers-page .site-content,
html[data-color-scheme="dark"] body.jobcv-employers-page .emp-dir-page {
    background: #0a0f1c !important;
}

html[data-color-scheme="dark"] .emp-dir {
    --emp-ink: #e2e8f0;
    --emp-muted: #94a3b8;
}

html[data-color-scheme="dark"] .emp-dir__hero {
    background: linear-gradient(180deg, #0c1324 0%, #0a0f1c 100%);
}

html[data-color-scheme="dark"] .emp-dir__search,
html[data-color-scheme="dark"] .emp-dir__panel {
    background: #151e32;
    border-color: rgba(167, 139, 250, 0.14);
    box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.7);
}

html[data-color-scheme="dark"] .emp-dir__search input {
    color: #e2e8f0;
    background: transparent;
}

html[data-color-scheme="dark"] .emp-dir .emp-row,
html.is-dark .emp-dir .emp-row {
    background: #151e32 !important;
    border-bottom-color: rgba(167, 139, 250, 0.16) !important;
    color: #e8eef8 !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row:hover,
html.is-dark .emp-dir .emp-row:hover {
    background: #1a243c !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__logo,
html.is-dark .emp-dir .emp-row__logo {
    background: #0f1629 !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__name,
html.is-dark .emp-dir .emp-row__name {
    color: #f1f5f9 !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__tagline,
html.is-dark .emp-dir .emp-row__tagline {
    color: #cbd5e1 !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__meta,
html.is-dark .emp-dir .emp-row__meta {
    color: #94a3b8 !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__jobs,
html.is-dark .emp-dir .emp-row__jobs {
    color: #c4b5fd !important;
}

html[data-color-scheme="dark"] .emp-dir .emp-row__chevron,
html.is-dark .emp-dir .emp-row__chevron {
    color: #94a3b8 !important;
}

html[data-color-scheme="dark"] .emp-dir h1,
html.is-dark .emp-dir h1,
html[data-color-scheme="dark"] .emp-dir__heading h2,
html.is-dark .emp-dir__heading h2 {
    color: #f1f5f9 !important;
}
