/* The author identity belongs to the vacancy's author, using DLE profile tags. */
.ej-job-heading{display:flex;align-items:flex-start;gap:24px;margin-top:16px}
.ej-job-heading__main{flex:1;min-width:0}
.ej-job-heading__main>.fullstory__title{margin-top:0}
.ej-employer{display:flex;flex:0 0 136px;flex-direction:column;align-items:center;gap:10px;text-align:center}
.ej-employer__logo{display:flex;align-items:center;justify-content:center;width:104px;height:104px;padding:8px;border:1px solid var(--line,#dce3e8);border-radius:16px;background:var(--surface-soft,#f7f9fb)}
.ej-employer__logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:9px}
.ej-employer__since{display:flex;flex-direction:column;gap:2px;margin:0;color:var(--muted,#5f6b76);font-size:12px;line-height:1.45}
.ej-employer__since time{color:var(--text,#263844);font-weight:650}

/* Public profile: identity, membership and vacancies, with the native editor. */
.ep-profile__head{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:24px}
.ep-profile__logo{display:block;width:112px;height:112px;padding:8px;object-fit:contain;border:1px solid var(--line,#dce3e8);border-radius:18px;background:var(--surface-soft,#f7f9fb)}
.ep-profile__identity{min-width:0}
.ep-profile__role{display:inline-flex;margin:0 0 10px;padding:5px 10px;border-radius:7px;background:var(--accent-soft,#e8f0f6);color:var(--accent-strong,#496c8b);font-size:13px;font-weight:650;line-height:1.4}
.ep-profile .ep-profile__name{margin:0;font-size:28px;font-weight:750;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere}
.ep-profile__login{margin:6px 0 0;font-size:13px;color:var(--muted,#5f6b76)}
.ep-profile__meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:14px 0 0;color:var(--muted,#5f6b76);font-size:14px;line-height:1.5}
.ep-profile__since{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px}
.ep-profile__since .icon{width:16px;height:16px;margin-inline-end:2px}
.ep-profile__since time{color:var(--text,#263844);font-weight:650}
.ep-profile__activity{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.ep-profile__activity .is-online{display:inline-flex;align-items:center;gap:6px}
.ep-profile__activity .is-online:before{content:"";width:7px;height:7px;border-radius:50%;background:#4f8c6c}
.ep-profile__location{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:var(--muted,#5f6b76);font-size:14px}
.ep-profile__location .icon{width:16px;height:16px}
.ep-profile__actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.ep-profile__actions:empty{display:none}
.ep-profile__actions>a{display:inline-flex;align-items:center;min-height:42px;padding:10px 16px;border-radius:10px;background:var(--surface-soft,#f7f9fb);color:var(--text,#263844);font-size:14px;text-decoration:none}
.ep-profile__actions>a:hover{background:var(--accent-soft,#e8f0f6)}
.ep-profile__about{margin-top:24px;padding-top:22px;border-top:1px solid var(--line,#dce3e8)}
.ep-profile__about h2{margin:0 0 12px;font-size:20px}
.ep-profile .profile-settings{margin-top:24px;padding-top:20px;border-top:1px solid var(--line,#dce3e8)}
.ep-profile .profile-settings>.form-body{margin-top:20px}
.ep-profile-jobs{margin-block:28px}
.ep-profile-jobs .section-heading p{margin:5px 0 0;color:var(--muted,#5f6b76);font-size:14px}
@media(max-width:600px){
 .ej-job-heading{gap:14px}.ej-employer{flex-basis:88px;gap:8px}.ej-employer__logo{width:76px;height:76px;padding:6px;border-radius:12px}.ej-employer__since{font-size:11px}
 .ep-profile__head{grid-template-columns:76px minmax(0,1fr);gap:16px}.ep-profile__logo{width:76px;height:76px;padding:5px;border-radius:13px}.ep-profile .ep-profile__name{font-size:23px}.ep-profile__role{margin-bottom:8px;font-size:12px}.ep-profile__meta{gap:8px 14px;margin-top:10px;font-size:13px}.ep-profile__activity{font-size:12px}.ep-profile__about h2{font-size:18px}
}


/* Author information and system controls share one native DLE form. */
.ep-profile .profile-settings>summary>span{display:inline}
.ep-settings__tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid var(--line,#dce3e8)}
.ep-settings__tabs[hidden]{display:none}
.ep-settings__tabs button{min-height:46px;padding:11px 16px;border:1px solid var(--line,#dce3e8);border-radius:10px;background:var(--surface-soft,#f7f9fb);color:var(--muted,#5f6b76);font:inherit;font-size:14px;font-weight:650;line-height:1.35}
.ep-settings__tabs button[aria-selected=true]{border-color:var(--accent,#6686a3);background:var(--accent-soft,#e8f0f6);color:var(--accent-strong,#496c8b)}
.ep-settings__tabs button:focus-visible{outline:2px solid var(--accent,#6686a3);outline-offset:3px}
.ep-settings__panel[hidden]{display:none!important}
.ep-tabs-ready .ep-settings__title{display:none}
.ep-settings__title{margin:0 0 20px;font-size:21px}
.ep-settings__intro{margin:0 0 20px;color:var(--muted,#5f6b76);font-size:14px;line-height:1.6}
.ep-employer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.ep-employer-grid .form-row{margin:0;min-width:0}
.ep-employer-grid__wide{grid-column:1/-1}
.ep-native-field input,.ep-native-field select,.ep-native-field textarea{display:block;width:100%;min-width:0;min-height:46px;box-sizing:border-box;padding:11px 13px;border:1px solid var(--line,#dce3e8);border-radius:10px;background:var(--surface-soft,#f7f9fb);color:var(--text,#263844);font:inherit;font-size:15px;line-height:1.4}
.ep-native-field select{appearance:auto}.ep-native-field input:focus,.ep-native-field select:focus{outline:2px solid var(--accent,#6686a3);outline-offset:1px}
.ep-field-help{margin:7px 0 0;color:var(--muted,#5f6b76);font-size:12px;line-height:1.5}
.ep-settings__avatar{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:18px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid var(--line,#dce3e8)}
.ep-settings__avatar-preview{display:block;width:80px;height:80px;padding:5px;object-fit:contain;border:1px solid var(--line,#dce3e8);border-radius:13px;background:var(--surface-soft,#f7f9fb)}
.ep-settings__avatar .form-row{margin:0 0 12px}.ep-settings__avatar .form-row:last-child{margin-bottom:0}
.ep-settings__private{grid-column:1/-1;margin:5px 0 0;padding-top:20px;border-top:1px solid var(--line,#dce3e8);font-size:17px;font-weight:650}
.ep-profile__contacts{display:flex;flex-wrap:wrap;gap:14px 30px;margin:0}
.ep-profile__contacts>div{min-width:0;margin-top:18px}
.ep-profile__contacts dt{font-size:12px;color:var(--muted,#5f6b76)}
.ep-profile__contacts dd{margin:5px 0 0;font-size:14px;overflow-wrap:anywhere}
.ep-profile__contact-person{margin:7px 0 0;font-size:14px;color:var(--muted,#5f6b76)}
@media(max-width:600px){.ep-employer-grid{grid-template-columns:minmax(0,1fr);gap:18px}.ep-native-field input,.ep-native-field select,.ep-native-field textarea{font-size:16px}.ep-settings__tabs{gap:6px}.ep-settings__tabs button{padding:10px 8px;font-size:13px}.ep-settings__avatar{grid-template-columns:64px minmax(0,1fr);gap:12px}.ep-settings__avatar-preview{width:64px;height:64px}.ep-profile__contacts{gap:10px 20px}}


/* Keep the vacancy facts directly below its title and author. */
.ej-job-full>.fullstory__head{display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto min-content 1fr;column-gap:24px;align-items:start}
.ej-job-full>.fullstory__head>.story-top{grid-column:1/-1}
.ej-job-full .ej-job-heading{display:contents}
.ej-job-full .ej-job-heading__main{grid-column:1;grid-row:2;margin-top:16px;align-self:start}
.ej-job-full .ej-employer{grid-column:2;grid-row:2/span 2;width:136px;margin-top:16px;align-self:start}
.ej-job-full>.fullstory__head>.ej-facts{grid-column:1;grid-row:3;margin:16px 0 0;align-self:start}
@media(max-width:600px){.ej-job-full>.fullstory__head{column-gap:14px}.ej-job-full .ej-employer{grid-row:2;width:88px}.ej-job-full>.fullstory__head>.ej-facts{grid-column:1/-1}}

/* Profile settings and private vacancy management share one toolbar. */
.ep-profile-tools { --ep-paid-accent: #9b4e28; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line, #dce3e8); }
.ep-profile-tools__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-profile-tools__buttons[hidden] { display: none; }
.ep-profile-tools__buttons .soft-button { cursor: pointer; }
.ep-profile-tools__buttons .soft-button > span, .ep-vacancy-management > summary > span { display: inline; }
.ep-profile-tools__buttons .soft-button[aria-expanded="true"] { background: var(--accent-strong, #496c8b); color: #fff; }
.ep-profile-tools__buttons .soft-button[aria-controls="ep-vacancy-slots"],
.ep-vacancy-management :is(.sbslots-expand, .sbj-manage-promote) {
    border: 1px solid color-mix(in srgb, var(--ep-paid-accent) 50%, var(--line, #dce3e8));
    background: color-mix(in srgb, var(--ep-paid-accent) 14%, var(--surface, #fff));
    color: var(--text, #263844);
}
.ep-profile-tools__buttons .soft-button[aria-controls="ep-vacancy-slots"]:is(:hover, [aria-expanded="true"]),
.ep-vacancy-management :is(.sbslots-expand, .sbj-manage-promote):hover {
    border-color: var(--ep-paid-accent);
    background: var(--ep-paid-accent);
    color: #fff;
}
.ep-profile-tools.ep-profile-tools--ready > details { margin: 0; padding: 0; border: 0; }
.ep-profile-tools.ep-profile-tools--ready > details > summary { display: none; }
.ep-profile-tools.ep-profile-tools--ready > details[open] > .form-body,
.ep-vacancy-management__body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line, #dce3e8); }
.ep-vacancy-management { scroll-margin-top: 180px; }
.ep-vacancy-management > summary { margin-top: 10px; cursor: pointer; }
.ep-vacancy-management__body > h2 { margin: 0 0 20px; font-size: 23px; }
.ep-vacancy-management .newsup-profile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.ep-vacancy-management .newsup-profile-title,
.ep-vacancy-management :is(.ep-manage-group--slots, .ep-manage-group--list) { grid-column: 1 / -1; }
.ep-vacancy-management .newsup-profile-title { margin: 0; font-size: 17px; }
.ep-manage-group--slots > .sbslots-summary { padding: 0; }
.ep-manage-group__title { margin: 0; font-size: 16px; }
.ep-manage-group__rule { margin: 4px 0 10px; }
.ep-manage-group .newsup-profile-grid > span { display: grid; gap: 3px; }
.ep-manage-group .newsup-profile-grid b,
.ep-manage-group .newsup-profile-note { color: var(--muted, #5f6b76); font-size: 12px; }
.ep-manage-group .newsup-profile-note { margin-top: 8px; }
.ep-manage-group--list .ep-manage-heading { margin: 0 0 10px; }
.ep-manage-group--list .ep-manage-table-wrap {
    container: vacancy-table / inline-size;
    padding-inline: clamp(8px, 1vw, 12px);
    border: 1px solid var(--line, #dce3e8);
    border-radius: 9px;
    background: var(--surface, #fff);
}
.ep-manage-group--list .ep-manage-table tbody tr:last-child,
.ep-manage-group--list .ep-manage-table tbody tr:last-child td { border-bottom: 0; }
.ep-manage-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ep-manage-heading h3 { margin: 0; font-size: 18px; }
.ep-manage-heading > span, .ep-manage-id, .ep-manage-note { color: var(--muted, #5f6b76); }
.ep-manage-table-wrap { max-width: 100%; overflow-x: auto; }
.ep-manage-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ep-manage-table th { text-align: left; font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line, #dce3e8); }
.ep-manage-table th:nth-child(n + 2) { width: 1%; }
.ep-manage-table td { padding: 13px 8px; vertical-align: top; border-bottom: 1px solid var(--line, #dce3e8); }
.ep-manage-title { overflow-wrap: anywhere; }
.ep-manage-id { display: block; font-size: 12px; margin-bottom: 3px; }
.ep-manage-status { display: inline-flex; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-soft, #f7f9fb); }
.ep-manage-status--active { background: #e8f4ec; color: #28613c; }
.ep-manage-status--pending { background: #fff0d2; color: #884108; }
.ep-manage-status--archived { background: #fff1ef; color: #913c31; }
.ep-manage-actions { display: flex; gap: 6px; }
.ep-manage-actions .ep-manage-action { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line, #dce3e8); border-radius: 9px; background: var(--surface-soft, #f7f9fb); color: var(--text, #263844); font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap; text-decoration: none; }
.ep-manage-actions .newsup-up { background: #fff0d2; border-color: #e8b45b; color: #884108; }
.ep-manage-actions .newsup-up:hover { background: #ffe1a7; border-color: #d79630; color: #713305; }
.ep-manage-actions .newsup-archive { background: #fff1ef; border-color: #e4b1aa; color: #913c31; }
.ep-manage-actions .newsup-archive:hover { background: #ffe0db; border-color: #cd8277; color: #782f26; }
.ep-manage-actions .newsup-hide:hover, .ep-manage-actions .newsup-activate:hover { background: var(--accent-soft, #e8f0f6); }
.ep-manage-actions .ep-manage-action:focus-visible { outline: 2px solid var(--accent-strong, #496c8b); outline-offset: 2px; }
.ep-manage-actions .ep-manage-action[aria-busy="true"] { opacity: .65; cursor: wait; }
.ep-manage-actions .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.ep-manage-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }

.ep-manage-guide { margin-block-start: 18px; }
.ep-manage-guide h4 { margin: 0; font-size: 18px; line-height: 1.3; }
.ep-manage-guide__hint { margin: 5px 0 12px; color: var(--muted, #5f6b76); font-size: 13px; line-height: 1.5; }
.ep-manage-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 12px;
}
.ep-manage-guide__free { --ep-group-accent: #627d36; }
.ep-manage-guide__paid { --ep-group-accent: var(--ep-paid-accent, #9b4e28); }
.ep-manage-guide h5 { margin: 0 0 9px; font-size: 16px; line-height: 1.35; }
.ep-manage-guide dl { display: grid; gap: 10px; margin: 0; }
.ep-manage-guide dt { font-size: 14px; font-weight: 700; }
.ep-manage-guide dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ep-manage-guide__terms {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line, #dce3e8);
    color: var(--muted, #5f6b76);
    font-size: 13px;
    line-height: 1.5;
}
.ep-manage-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ep-manage-empty { color: var(--muted, #5f6b76); }
@container vacancy-table (max-width: 700px) {
  .ep-manage-table, .ep-manage-table tbody, .ep-manage-table tr, .ep-manage-table td { display: block; }
  .ep-manage-table thead { display: none; }
  .ep-manage-table tr { padding: 14px 0; border-bottom: 1px solid var(--line, #dce3e8); }
  .ep-manage-table td { padding: 0; border: 0; }
  .ep-manage-table .ep-manage-status-cell { margin: 9px 0; }
  .ep-manage-actions { padding: 4px; margin: -4px -6px; overflow-x: auto; scrollbar-width: thin; }
}

@container vacancy-table (max-width: 460px) {
  .ep-manage-actions { gap: 4px; }
  .ep-manage-actions .ep-manage-action { gap: 0; padding-inline: 5px; font-size: 12px; }
  .ep-manage-actions .icon { display: none; }
}

@media (max-width: 700px) {
  .ep-vacancy-management .newsup-profile-card { grid-template-columns: minmax(0, 1fr); }
  .ep-profile-tools__buttons > .soft-button { flex: 1 1 220px; justify-content: center; }
}

.ep-manage-status--active,
.ep-manage-status--pending {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.ep-manage-ready.is-ready {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    background: #e7f0fc;
    color: #264f78;
    font-weight: 700;
}
.ep-manage-pin { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 6px; }
.ep-manage-status--pinned { background: #f2ebfb; color: #583481; font-size: 13px; white-space: normal; }
.ep-manage-pin-term { color: var(--muted, #536579); font-size: 12px; line-height: 1.35; }

/* Employer profile editor */
.ep-profile [data-ep-panel="author"] :is(.ep-media-grid, .ep-employer-grid) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
}

.ep-profile [data-ep-panel="author"] :is(.ep-media-grid, .ep-employer-grid) > .form-row + .form-row,
.ep-profile [data-ep-panel="author"] .ep-settings__avatar + .ep-media-grid {
    padding-top: 14px;
    border-top: 1px solid var(--line, #dce3e8);
}

/* Groups in the profile editor and vacancy management */
.ep-profile [data-ep-panel="author"] :is(.ep-editor-group, .ep-location-editor),
.ep-vacancy-management .ep-manage-group {
    min-width: 0;
    margin: 0;
    padding: 14px clamp(10px, 2vw, 18px) 16px;
    border: 1px solid var(--line, #dce3e8);
    border-color: color-mix(in srgb, var(--ep-group-accent) 28%, var(--line, #dce3e8));
    border-inline-start: 3px solid var(--ep-group-accent);
    border-radius: 12px;
    background: var(--surface-soft, #f7f9fb);
    background: color-mix(in srgb, var(--ep-group-accent) 8%, var(--surface, #fff));
}

.ep-profile [data-ep-panel="author"] :is(.ep-editor-group, .ep-location-editor) > legend {
    padding: 0 7px;
    color: var(--text, #263844);
    font-size: 15px;
    font-weight: 650;
}

.ep-editor-group--appearance { --ep-group-accent: #7762a7; }
.ep-editor-group--company { --ep-group-accent: #4572a0; }
.ep-editor-group--contacts { --ep-group-accent: #2e8070; }
.ep-profile [data-ep-panel="author"] .ep-location-editor { --ep-group-accent: #ad8240; }
.ep-editor-group--details { --ep-group-accent: #63758a; }
.ep-editor-group--details .ep-editor-group__fields > .ep-field-help {
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--line, #dce3e8);
    border-inline-start: 3px solid var(--accent-strong, #496c8b);
    border-radius: 9px;
    background: var(--accent-soft, #e8f0f6);
    color: var(--text, #263844);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
.ep-manage-group--slots { --ep-group-accent: var(--ep-paid-accent); }
.ep-manage-group--add { --ep-group-accent: #277f9e; }
.ep-manage-group--up { --ep-group-accent: #627d36; }
.ep-manage-group--list { --ep-group-accent: #53618b; }

.ep-editor-group__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.ep-profile [data-ep-panel="author"] .ep-editor-group__fields > .form-row + .form-row {
    padding-top: 12px;
    border-top: 1px solid var(--line, #dce3e8);
}

.ep-profile [data-ep-panel="author"] .ep-editor-group--appearance :is(.ep-settings__avatar, .ep-media-grid) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
