/* ============================================================
   AAGH — career page redesign (job.html: job detail + apply,
   merged into one page; careers.html the listing). Same architecture
   as PowerVacMEP's career-redesign.css (shared/group tooling), with
   AAGH's own real theme: dark bronze ground, goldenrod accent,
   translucent surfaces (AAGH's site never used a white card -- see
   the career-site.css overrides this file replaces, which already
   opted it out of that look on purpose). Poppins, not Inter --
   AAGH's sitewide font (styles/css/styles.css).
   Every id/class the existing JS (job.js, apply.js, cv-parser.js,
   cv-ai.js, cv-autofill.js, career.js) reads or creates is kept
   exactly as it was.
   ============================================================ */

:root {
    --pv-ink:        rgb(253 253 255);
    --pv-text:       rgb(226 221 206);
    --pv-muted:      rgb(190 180 155);
    --pv-line:       rgba(253, 253, 255, .14);
    --pv-line-2:     rgba(253, 253, 255, .26);
    --pv-surface:    rgba(255, 255, 255, .055);
    --pv-soft:       rgba(0, 0, 0, .16);
    --pv-soft-2:     rgba(255, 255, 255, .09);
    --pv-accent:     goldenrod;
    --pv-accent-ink: #f0cf6c;
    --pv-accent-soft:rgba(218, 165, 32, .16);
    --pv-dark:       #16140f;
    /* The hero's bar-chart SVG (careers.html, .career-hero__art) fills its
       bars with these -- never defined before, so they fell back to the
       initial SVG fill (black), near-invisible against this hero's own
       dark bronze gradient. Three warm tones off --pv-accent-ink instead,
       all clearly lighter than the hero background. */
    --pv-bar-accent: var(--pv-accent-ink);
    --pv-bar-blue:   #9c8352;
    --pv-bar-tan:    #d8c79a;
    --pv-ok:         #5fcf8f;
    --pv-ok-soft:    rgba(95, 207, 143, .14);
    --pv-warn:       #e8c468;
    --pv-warn-soft:  rgba(232, 196, 104, .14);
    --pv-danger:     #ff8f84;
    --pv-danger-soft:rgba(255, 143, 132, .14);

    --pv-radius-sm:  10px;
    --pv-radius:     16px;
    --pv-radius-lg:  22px;
    --pv-shadow-sm:  0 1px 2px rgba(0, 0, 0, .25);
    --pv-shadow:     0 8px 24px -8px rgba(0, 0, 0, .45), 0 1px 2px rgba(0,0,0,.2);
    --pv-shadow-lg:  0 24px 60px -20px rgba(0, 0, 0, .6);
    --pv-font:       'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --pv-max:        min(1180px, 92%);

    /* cv-autofill.css reads these same tokens for the auto-fill panels --
       values carried over from apply.html's own pre-existing theme block
       (its real, already-chosen goldenrod), not reinvented here. */
    --cv-af-font: var(--pv-font);
    --cv-af-ink: var(--pv-ink); --cv-af-text: var(--pv-text); --cv-af-muted: var(--pv-muted);
    --cv-af-line: var(--pv-line); --cv-af-line-strong: var(--pv-line-2);
    --cv-af-surface: var(--pv-surface); --cv-af-soft: var(--pv-soft);
    --cv-af-accent: #daa520; --cv-af-accent-hover: #b88a1b; --cv-af-accent-soft: rgba(218, 165, 32, .18);
    --cv-af-ok: var(--pv-ok); --cv-af-ok-soft: var(--pv-ok-soft);
    --cv-af-warn: var(--pv-warn); --cv-af-warn-soft: var(--pv-warn-soft); --cv-af-warn-line: rgba(232, 196, 104, .4);
    --cv-af-todo: var(--pv-danger); --cv-af-todo-soft: var(--pv-danger-soft); --cv-af-todo-line: rgba(255, 143, 132, .4);
    --cv-af-ai: #b9a6ff; --cv-af-ai-soft: rgba(185, 166, 255, .14);
    --cv-af-radius: var(--pv-radius); --cv-af-radius-sm: var(--pv-radius-sm);
    --cv-af-shadow: var(--pv-shadow-sm); --cv-af-shadow-hover: var(--pv-shadow);
    --cv-af-focus: 0 0 0 4px rgba(218, 165, 32, .2);
}

/* ── Reset for this page's own content only ── */
/* body, not just .job-page: .job-page (<main>) is only as tall as its own
   content, and the apply-section's height varies a lot (a sibling-company
   redirect card is much shorter than the full CV-autofill form) -- without
   this, any space below a short page shows the browser's default white,
   not this page's own dark ground. Semi-transparent, not solid: the site's
   own .abtbg animation (styles/css/styles.css, three sliding diagonal
   layers, fixed behind everything at z-index:-1) needs to show through,
   same as it does on every other page -- a fully opaque background here
   would hide it completely. */
body:has(.job-page) { background: #1c1810; }
.job-page, .job-page * { box-sizing: border-box; }
.job-page {
    font-family: var(--pv-font);
    color: var(--pv-text);
    background: linear-gradient(180deg, rgba(28, 24, 16, .82) 0%, rgba(38, 31, 19, .82) 100%);
}
.job-page h1, .job-page h2, .job-page h3, .job-page h4 { margin: 0; color: var(--pv-ink); font-family: var(--pv-font); }
.job-page p { margin: 0; }
.job-page a { color: inherit; }

/* ── Loading overlay ── */
#loading-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20, 17, 11, .9);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column; gap: 14px;
    text-align: center;
}
#loading-overlay p { font-family: var(--pv-font); font-weight: 600; color: var(--pv-ink); }
.loader {
    width: 46px; height: 46px;
    border: 4px solid var(--pv-line-2);
    border-top-color: var(--pv-accent);
    border-radius: 50%;
    animation: pv-spin .8s linear infinite;
}
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* ============================================================
   JOB HERO
   ============================================================ */
.job-hero {
    background: linear-gradient(180deg, rgba(26, 22, 15, .82) 0%, rgba(42, 34, 20, .82) 100%);
    border-bottom: 1px solid var(--pv-line);
    padding: clamp(96px, 12vw, 136px) 0 clamp(36px, 5vw, 56px);
}
.job-hero__in { width: var(--pv-max); margin: 0 auto; }
.job-hero__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; color: var(--pv-muted);
    text-decoration: none; margin-bottom: 18px;
}
.job-hero__back:hover { color: var(--pv-accent-ink); }
.job-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.job-hero__chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--pv-surface); border: 1px solid var(--pv-line-2);
    font-size: 12.5px; font-weight: 600; color: var(--pv-text);
}
.job-hero__chip--accent { background: var(--pv-accent-soft); border-color: rgba(218,165,32,.4); color: var(--pv-accent-ink); }
.job-hero__chip:empty, #career-cname:empty, #job-type:empty { display: none; }
.job-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
    max-width: 18ch;
}
.job-page .job-hero__date {
    margin-top: 12px; font-size: 14px; color: var(--pv-muted); font-weight: 500;
}
.job-hero__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.pv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 26px;
    border-radius: 999px; border: none;
    font-family: var(--pv-font); font-size: 15px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pv-btn--primary {
    background: linear-gradient(to right, #1a1817, var(--pv-accent));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.pv-btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.pv-btn--ghost {
    background: var(--pv-surface); color: var(--pv-ink);
    border: 1px solid var(--pv-line-2);
}
.pv-btn--ghost:hover { background: var(--pv-soft-2); }

/* ============================================================
   JOB BODY — description (main) + sticky info card (side)
   ============================================================ */
.job-body {
    width: var(--pv-max); margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
.job-card {
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: var(--pv-radius);
    box-shadow: var(--pv-shadow-sm);
    backdrop-filter: blur(6px);
}
.job-body__main { padding: clamp(24px, 3.5vw, 40px); }
.job-section + .job-section { margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--pv-line); }
.job-section__eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--pv-accent-ink); margin-bottom: 8px;
}
.job-section h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
#job-desc { font-size: 15px; line-height: 1.7; color: var(--pv-text); white-space: pre-line; text-align: left; }

.aagh-custom-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.aagh-custom-list .cutsom-square-icon {
    display: inline-flex; flex: 0 0 auto;
    width: 22px; height: 22px; border-radius: 7px;
    background: var(--pv-accent-soft);
    position: relative;
}
.aagh-custom-list .cutsom-square-icon::after {
    content: ""; position: absolute; inset: 0;
    margin: auto; width: 8px; height: 8px;
    background: var(--pv-accent); border-radius: 2px;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.aagh-custom-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 14px; }
.aagh-custom-list p { font-size: 14.5px; line-height: 1.55; color: var(--pv-text); align-self: center; text-align: left; }

.job-body__side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.job-info-card { padding: 22px; }
.job-info-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.job-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--pv-line); }
.job-info-row:first-of-type { border-top: none; padding-top: 0; }
.job-info-row__label { font-size: 12.5px; color: var(--pv-muted); font-weight: 600; }
.job-info-row__value { font-size: 13.5px; color: var(--pv-ink); font-weight: 600; text-align: right; }
.job-info-row__value:empty::before { content: '—'; color: var(--pv-muted); font-weight: 400; }
.job-apply-card { padding: 22px; text-align: center; background: var(--pv-dark); border: 1px solid rgba(218,165,32,.25); }
.job-apply-card p { color: #d8d2c2; font-size: 13px; margin-bottom: 14px; }
.job-apply-card .pv-btn { width: 100%; }

/* Points at a sibling company's own career site instead of an inline form --
   see .apply-redirect below for the matching apply-section treatment. */
.job-apply-card--redirect { background: var(--pv-surface); border-color: var(--pv-line-2); }

.margin-bottom { margin-bottom: 10px; }
.margin-top { margin-top: 10px; }

@media (max-width: 760px) {
    .job-body { grid-template-columns: 1fr; }
    .job-body__side { position: static; }
}

/* ============================================================
   APPLY SECTION
   ============================================================ */
:root {
    --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-6: 48px;
    --apply-container-max: 1000px;
    --apply-container-pad: var(--space-2);
}
.apply-section { padding-block-end: 0; }
.apply-container {
    max-width: var(--apply-container-max);
    margin-inline: auto;
    padding-inline: var(--apply-container-pad);
    padding-block: var(--space-4) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.applying-for {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: 10px 20px;
    max-width: 100%;
    background: var(--pv-accent-soft); border: 1px solid rgba(218,165,32,.4);
    border-radius: 999px; font-size: 13.5px; color: var(--pv-accent-ink); font-weight: 600;
}
.applying-for__lead, .applying-for__dot, .applying-for__type { flex: 0 0 auto; }
.applying-for__title {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--pv-ink);
}
.applying-for__title:empty::before { content: 'this role'; color: inherit; }
.applying-for__type { color: var(--pv-ink); }
.applying-for__dot {
    width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5;
}
.applying-for__type:empty { display: none; }
.applying-for__dot:has(+ .applying-for__type:empty) { display: none; }
@media (max-width: 480px) {
    .applying-for { max-width: 100%; }
    .applying-for__title {
        white-space: normal; overflow: visible; text-overflow: clip;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
}

/* A sibling company's job: no inline form here, just a clear way out to
   where it actually lives -- same card recipe as the apply form shell, so
   it doesn't look like a dead end. */
.apply-redirect {
    background: var(--pv-surface); border: 1px solid var(--pv-line);
    border-radius: var(--pv-radius-lg); box-shadow: var(--pv-shadow-sm);
    padding: clamp(28px, 4vw, 44px); text-align: center;
}
.apply-redirect__icon {
    width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
    background: var(--pv-accent-soft); color: var(--pv-accent-ink);
    display: grid; place-items: center;
}
.apply-redirect__icon svg { width: 24px; height: 24px; }
.apply-redirect h2 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.apply-redirect p { color: var(--pv-muted); font-size: 14.5px; line-height: 1.6; max-width: 46ch; margin: 0 auto 20px; }

/* ── Form shell ── */
.aagh-career-form {
    max-width: 100%; width: 100%;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-radius: var(--pv-radius-lg);
    box-shadow: var(--pv-shadow);
    padding: clamp(24px, 4vw, 44px);
    container-type: inline-size;
}
.aagh-career-form.cv-af-waiting { padding: 0; border: none; box-shadow: none; background: transparent; }
.aagh-career-form.cv-af-waiting .cv-af-banner { margin-bottom: 0; }

.aagh-career-sub-heading {
    font-size: 17px; font-weight: 700; color: var(--pv-ink);
    margin: 30px 0 4px;
}
.aagh-career-sub-heading:first-child { margin-top: 0; }
.career-vr-line { height: 1px; background: var(--pv-line); margin: 14px 0 18px; }

.make-input-2-column, .cv-af-grid {
    display: grid; grid-template-columns: 1fr; column-gap: 24px;
    align-items: start;
}
@container (min-width: 600px) {
    .make-input-2-column, .cv-af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.make-input-2-column > textarea, .cv-af-grid > textarea,
.make-input-2-column > .career-verify, .cv-af-grid > .career-verify,
.make-input-2-column .input-field-margin:has(> textarea),
.cv-af-grid .input-field-margin:has(> textarea) {
    grid-column: 1 / -1;
}

.input-field-margin { margin: 16px 0 0; }
.input-field-margin label:not(.error-message) {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 600; color: var(--pv-ink);
}
.input-field-margin label span:not(.cv-af-field-icon):not(.cv-af-field-unit):not(.optional-note) {
    color: var(--pv-danger); margin-left: 2px;
}
.optional-note, .cv-af-field-unit { color: var(--pv-muted); font-weight: 400; font-size: 12px; margin-left: 2px; }
.cv-af-field-icon {
    font-size: 16px !important; line-height: 1; vertical-align: -3px;
    margin-right: 6px; color: var(--pv-muted);
}
label.error-message, .error-message {
    display: block; min-height: 0; margin-top: 5px;
    font-size: 12px; color: var(--pv-danger); font-weight: 600;
}
label.error-message:empty, .error-message:empty { display: none; }

.aagh-input-field {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--pv-line-2); border-radius: var(--pv-radius-sm);
    background: rgba(0,0,0,.18); color: var(--pv-ink);
    font-family: var(--pv-font); font-size: 14.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.aagh-input-field::placeholder { color: var(--pv-muted); }
.aagh-input-field:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 4px var(--pv-accent-soft); }
.aagh-input-field:disabled { background: rgba(0,0,0,.3); color: var(--pv-muted); }

input[type="file"].aagh-input-field, .file-name-input {
    height: auto; min-height: 46px; padding: 10px 46px 10px 14px;
    border: 1px dashed var(--pv-line-2); background: rgba(0,0,0,.12);
    font-size: 13.5px;
}
.file-name-input { border-style: solid; background: rgba(0,0,0,.18); }
input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 7px 14px;
    border: 1px solid var(--pv-line-2); border-radius: 8px;
    background: var(--pv-soft-2); color: var(--pv-ink);
    font: 600 12.5px var(--pv-font); cursor: pointer;
}

.select { position: relative; display: block; width: 100%; height: 46px; }
.select::after {
    content: ""; position: absolute; top: 50%; right: 15px;
    width: 8px; height: 8px;
    border-right: 2px solid var(--pv-muted); border-bottom: 2px solid var(--pv-muted);
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.select select.career-select-element {
    display: block; width: 100%; height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--pv-line-2); border-radius: var(--pv-radius-sm);
    background: rgba(0,0,0,.18); color: var(--pv-ink);
    font-family: var(--pv-font); font-size: 14.5px;
    appearance: none; cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select select.career-select-element:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 4px var(--pv-accent-soft); }
.select select option, select option { color: var(--pv-ink); background: #2a2415; }

.career-splited-input { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Languages ── */
.languageaccordion-item-header {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    height: 46px; padding: 0 36px 0 14px;
    border: 1px solid var(--pv-line-2); border-radius: var(--pv-radius-sm);
    background: rgba(0,0,0,.18); font-family: var(--pv-font); font-size: 14.5px; font-weight: 400; color: var(--pv-ink);
    cursor: pointer;
}
.languageaccordion-item-header .icon { font-size: 0; }
.languageaccordion-item-header::after {
    content: ""; position: absolute; top: 50%; right: 15px;
    width: 8px; height: 8px;
    border-right: 2px solid var(--pv-muted); border-bottom: 2px solid var(--pv-muted);
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.languageaccordion-item-content {
    padding: 14px; margin-top: 8px;
    border: 1px solid var(--pv-line); border-radius: var(--pv-radius-sm);
    background: rgba(0,0,0,.12);
}
.language-level-row { display: grid; grid-template-columns: 1fr max-content; gap: 10px; margin-bottom: 10px; }
.language-level-row select {
    height: 42px; padding: 0 12px;
    border: 1px solid var(--pv-line-2); border-radius: 8px;
    background: rgba(0,0,0,.18); color: var(--pv-ink); font-family: var(--pv-font); font-size: 13.5px;
}
.add-language-btn, .remove-language-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--pv-line-2); background: var(--pv-surface);
    font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.add-language-btn { color: var(--pv-accent-ink); }
.add-language-btn:hover { background: var(--pv-accent-soft); border-color: transparent; }
.remove-language-btn { color: var(--pv-danger); }
.remove-language-btn:hover { background: var(--pv-danger-soft); border-color: transparent; }
.remove-language-btn.remove-btn-hidden, .remove-language-btn[style*="hidden"] { display: none; }
#selectedLanguagesString { margin-top: 10px; font-size: 13px; color: var(--pv-muted); }
#languageList { margin-top: 4px; }

/* ── Additional files ── */
.additional-file-container { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 20px; margin-top: 14px; }
.additional-file-col { width: auto; margin: 0; }
.additional-file-col > label.aagh-career-paragrapg { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--pv-ink); }
.splitted-name-button { display: flex; align-items: center; gap: 10px; }
.splitted-name-button > span[style*="border"] { display: none; }
@media (max-width: 640px) { .additional-file-container { grid-template-columns: 1fr; } }

.remove-button, .removeButtonCV {
    all: unset; box-sizing: border-box;
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--pv-line-2); background: var(--pv-surface);
    color: var(--pv-danger); font-size: 12px; cursor: pointer;
    display: grid; place-items: center;
}
.remove-button:hover { background: var(--pv-danger-soft); }
.aagh-input-field[id^="career-cv"], .aagh-input-field[id^="cover-letter"], .aagh-input-field[id^="additional-file"] { position: relative; }
.input-field-margin > div[style*="position: relative"] { position: relative; }

/* ── Verify / captcha ── */
.career-verify {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3);
    margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--pv-line);
}
.career-verify__code { display: flex; align-items: center; gap: 8px; }
#captcha {
    display: flex; align-items: center; justify-content: center;
    min-width: 160px; height: 46px; padding: 0 16px;
    border: 1px dashed var(--pv-line-2); border-radius: var(--pv-radius-sm);
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 9px), rgba(0,0,0,.2);
    color: var(--pv-ink); font-family: Georgia, serif; font-size: 23px; letter-spacing: .18em;
    user-select: none;
}
.career-verify__refresh {
    all: unset; width: 42px; height: 42px; border-radius: var(--pv-radius-sm);
    border: 1px solid var(--pv-line-2); background: var(--pv-surface); color: var(--pv-text);
    display: grid; place-items: center; cursor: pointer;
}
.career-verify__refresh:hover { background: var(--pv-soft-2); }
.career-verify__answer { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; max-width: 280px; }
.career-verify__answer label span { color: #ffc4bb; }
#userInput {
    height: 42px; padding: 0 12px; border: 1px solid var(--pv-line-2); border-radius: var(--pv-radius-sm);
    background: rgba(0,0,0,.18); color: var(--pv-ink); font-size: 14px; font-family: var(--pv-font);
}
#userInput:focus { outline: none; border-color: var(--pv-accent); box-shadow: 0 0 0 4px var(--pv-accent-soft); }
#error { min-height: 1.3em; margin-top: 8px; font-size: 13px; color: var(--pv-danger); }
#error:empty { display: none; }

/* ── Submit ── */
.career-submit-row { margin-top: var(--space-3); text-align: left; }
.career-submit-button, .pv-btn.career-submit-button { all: unset; }
a.career-submit-button, #submit-application {
    display: inline-flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 34px; border-radius: 999px;
    background: linear-gradient(to right, #1a1817, var(--pv-accent)); color: #fff;
    font-family: var(--pv-font); font-weight: 700; font-size: 15.5px;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 12px 26px -10px rgba(0,0,0,.6);
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
#submit-application:hover { filter: brightness(1.12); transform: translateY(-1px); }
#submit-application.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.job-page .submit-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--space-1); margin: var(--space-4) 0 0; font-size: 13px; line-height: 1.5; }
.submit-note__lead { color: #e8e2d0; font-weight: 600; }
.submit-note__count { padding: 2px 10px; border-radius: 999px; background: var(--pv-danger-soft); color: var(--pv-danger); font-weight: 700; font-size: 12px; }
.submit-note__link {
    all: unset; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
    border: 1px solid rgba(255,143,132,.4); border-radius: 999px; background: rgba(0,0,0,.2); color: var(--pv-danger);
    font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.submit-note__link-icon { width: 13px; height: 13px; flex: 0 0 auto; }
.submit-note__link:hover { background: var(--pv-danger-soft); }
.submit-note.is-ready { color: var(--pv-ok); font-weight: 600; }

/* ============================================================
   CV AUTO-FILL (cv-autofill.js builds this markup itself; this
   just restyles the exact classes it creates)
   ============================================================ */
.cv-af-waiting > :not(.cv-af-banner) { display: none; }

.cv-af-banner,
.apply-steps {
    border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg);
    background: var(--pv-surface); box-shadow: var(--pv-shadow-sm);
    padding: var(--space-3);
}
.apply-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--space-4); row-gap: var(--space-3);
    align-items: start;
}
.apply-steps__item { display: flex; gap: 14px; align-items: flex-start; }
.apply-steps__num {
    position: relative;
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
    background: var(--pv-accent-soft); color: var(--pv-accent-ink);
    display: grid; place-items: center;
}
.apply-steps__num svg { width: 19px; height: 19px; }
.apply-steps__num b {
    position: absolute; right: -6px; bottom: -6px;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--pv-accent); color: #1a1813;
    display: grid; place-items: center;
    font-size: 10px; font-weight: 800; font-style: normal;
    box-shadow: 0 0 0 2px var(--pv-dark);
}
.apply-steps__item h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--pv-ink); text-align: left; }
.apply-steps__item p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--pv-muted); text-align: left; }
.aagh-career-form:not(.cv-af-waiting) + .apply-steps { display: none; }
@media (max-width: 768px) {
    .apply-steps { grid-template-columns: 1fr; row-gap: var(--space-3); }
}

.cv-af-banner {
    display: flex; align-items: center; gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-family: var(--pv-font); font-size: 15px; line-height: 1.5; color: var(--pv-text);
}
.cv-af-banner__media { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--pv-accent-soft); color: var(--pv-accent-ink); display: grid; place-items: center; }
.cv-af-banner__media--warn { background: var(--pv-warn-soft); color: var(--pv-warn); }
.cv-af-banner__media--busy { background: var(--pv-soft-2); }
.cv-af-icon { width: 24px; height: 24px; }
.cv-af-banner__body { flex: 1 1 auto; min-width: 0; text-align: left; }
.cv-af-banner__title { font-size: 17px; font-weight: 700; color: var(--pv-ink); margin: 0; text-align: left; }
.cv-af-banner__text { margin: 4px 0 0; color: var(--pv-muted); text-align: left; }
.cv-af-banner__privacy { display: flex; align-items: center; gap: 6px; margin-top: var(--space-2); color: var(--pv-muted); font-size: 12.5px; text-align: left; }
.cv-af-banner__privacy .cv-af-icon { width: 14px; height: 14px; flex: 0 0 auto; }
@media (max-width: 640px) {
    .cv-af-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    .cv-af-button { width: 100%; }
}

.cv-af-button {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px;
    border: none; background: linear-gradient(to right, #1a1817, var(--pv-accent)); color: #fff;
    font-family: var(--pv-font); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.cv-af-button:hover { filter: brightness(1.12); }
.cv-af-button--ghost { background: var(--pv-surface); color: var(--pv-ink); border: 1px solid var(--pv-line-2); }
.cv-af-button--ghost:hover { background: var(--pv-soft-2); }
.cv-af-button__icon { width: 17px; height: 17px; }

.cv-af-ring { --cv-af-progress: 0; flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pv-ok) calc(var(--cv-af-progress)*1%), var(--pv-line-2) 0); }
.cv-af-ring__value { width: 56px; height: 56px; border-radius: 50%; background: var(--pv-dark); display: flex; align-items: baseline; justify-content: center; padding-top: 18px; font-size: 17px; font-weight: 800; color: var(--pv-ink); }
.cv-af-ring__value small { font-size: 10.5px; font-weight: 700; color: var(--pv-muted); margin-left: 1px; }

.cv-af-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cv-af-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cv-af-chip__icon { width: 12px; height: 12px; }
.cv-af-chip--todo { background: var(--pv-danger-soft); color: var(--pv-danger); }
.cv-af-chip--done { background: var(--pv-ok-soft); color: var(--pv-ok); }
.cv-af-chip--confirm { background: var(--pv-warn-soft); color: var(--pv-warn); }
.cv-af-chip--ai { background: var(--cv-af-ai-soft); color: var(--cv-af-ai); }
.cv-af-chip--action { border: 0; cursor: pointer; font-family: var(--pv-font); }
.cv-af-chip--action:hover { filter: brightness(1.15); text-decoration: underline; }

.cv-af-spinner { width: 24px; height: 24px; border: 3px solid var(--pv-line-2); border-top-color: var(--pv-accent); border-radius: 50%; animation: pv-spin .8s linear infinite; }
.cv-af-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.cv-af-steps__item { display: inline-flex; align-items: center; gap: 6px; color: var(--pv-muted); }
.cv-af-steps__mark { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--pv-line-2); box-sizing: border-box; }
.cv-af-steps__item--done { color: var(--pv-ok); }
.cv-af-steps__item--done .cv-af-steps__mark { border: 0; }
.cv-af-steps__item--active { color: var(--pv-ink); font-weight: 700; }
.cv-af-steps__item--active .cv-af-steps__mark { border-color: var(--pv-accent); border-top-color: transparent; animation: pv-spin .8s linear infinite; }

/* panels */
.cv-af-panel { padding: 0; margin-bottom: 14px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius); background: var(--pv-surface); box-shadow: var(--pv-shadow-sm); transition: box-shadow .2s, border-color .2s; }
.cv-af-panel:hover { box-shadow: var(--pv-shadow); }
.cv-af-panel.is-open { border-color: var(--pv-line-2); }
.cv-af-panel__heading { margin: 0; }
.cv-af-panel__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 20px; border: 0; border-radius: var(--pv-radius); background: transparent; color: var(--pv-ink); font-family: var(--pv-font); text-align: left; cursor: pointer; }
.cv-af-panel__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.cv-af-panel__icon .cv-af-icon { width: 20px; height: 20px; }
.cv-af-panel--required .cv-af-panel__icon { background: var(--pv-accent-soft); color: var(--pv-accent-ink); }
.cv-af-panel--missing .cv-af-panel__icon { background: var(--pv-danger-soft); color: var(--pv-danger); }
.cv-af-panel--optional .cv-af-panel__icon { background: var(--pv-soft-2); color: var(--pv-muted); }
.cv-af-panel--filled .cv-af-panel__icon { background: var(--pv-ok-soft); color: var(--pv-ok); }
.cv-af-panel--attachments .cv-af-panel__icon { background: rgba(120,170,230,.16); color: #9cc3ef; }
.cv-af-panel__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cv-af-panel__title { font-size: 15.5px; font-weight: 700; }
.cv-af-panel__subtitle { font-size: 13px; color: var(--pv-muted); }
.cv-af-panel__count { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--pv-soft-2); font-size: 12px; font-weight: 700; }
.cv-af-panel--required .cv-af-panel__count, .cv-af-panel--missing .cv-af-panel__count { background: var(--pv-danger-soft); color: var(--pv-danger); }
.cv-af-panel--filled .cv-af-panel__count { background: var(--pv-ok-soft); color: var(--pv-ok); }
.cv-af-panel__chevron { flex: 0 0 auto; width: 18px; height: 18px; color: var(--pv-muted); transition: transform .25s ease; }
.cv-af-panel.is-open .cv-af-panel__chevron { transform: rotate(180deg); }
.cv-af-panel__region { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.cv-af-panel.is-open .cv-af-panel__region { grid-template-rows: 1fr; }
.cv-af-panel__inner { min-height: 0; overflow: hidden; }
.cv-af-panel__body { padding: 2px 16px 16px; border-top: 1px solid var(--pv-line); }
.cv-af-panel:not(.is-open) .cv-af-panel__body { border-top-color: transparent; }
.cv-af-panel .input-field-margin { margin: 16px 0 0; }
.cv-af-panel .aagh-career-sub-heading { margin: 22px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pv-muted); }
.cv-af-panel .aagh-career-sub-heading:first-child { margin-top: 4px; }
.cv-af-panel .career-vr-line { display: none; }
.cv-af-panel .cv-af-solo { display: block !important; }
.make-input-2-column > .input-field-margin:last-child:nth-child(odd),
.cv-af-grid > .input-field-margin:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.cv-af-panel--filled .cv-af-panel__body {
    display: grid; grid-template-columns: 1fr; column-gap: 24px; align-items: start;
}
@container (min-width: 600px) {
    .cv-af-panel--filled .cv-af-panel__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cv-af-panel--filled .cv-af-panel__body > .make-input-2-column { display: contents; }
.cv-af-panel--filled .aagh-career-sub-heading,
.cv-af-panel--filled .career-vr-line { display: none; }
.cv-af-panel--filled .make-input-2-column > .input-field-margin:last-child:nth-child(odd) {
    grid-column: auto;
}

.cv-af--missing, .cv-af-frame--missing select { border-color: var(--cv-af-todo-line); background-color: rgba(255,143,132,.06); }
.cv-af--check, .cv-af-frame--check select { border-color: var(--cv-af-warn-line); background-color: rgba(232,196,104,.07); }
.cv-af--ai { border-color: rgba(185,166,255,.4); background-color: var(--cv-af-ai-soft); }

/* Tag after the label: "From CV", "Please confirm", "AI · Please confirm" */
.cv-af-panel .input-field-margin:has(.cv-af--high) > label:first-child::after,
.cv-af-panel .input-field-margin:has(.cv-af--check) > label:first-child::after {
    display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px;
}
.cv-af-panel .input-field-margin:has(.cv-af--high) > label:first-child::after { content: "From CV"; background: var(--cv-af-ok-soft); color: var(--cv-af-ok); }
.cv-af-panel .input-field-margin:has(.cv-af--check) > label:first-child::after { content: "Please confirm"; background: var(--cv-af-warn-soft); color: var(--cv-af-warn); }
.cv-af-panel .input-field-margin:has(.cv-af--ai) > label:first-child::after { content: "AI · Please confirm"; background: var(--cv-af-ai-soft); color: var(--cv-af-ai); }

.cv-af-hint { margin-top: 6px; font-size: 12px; line-height: 1.45; }
.cv-af-hint--high, .cv-af-hint--plain { display: none; }
.cv-af-hint--check { color: var(--pv-warn); }
.cv-af-hint--missing { color: var(--pv-danger); }

/* ============================================================
   MODAL (#mycModal) & review-confirm dialog
   ============================================================ */
.cmodal { display: none; position: fixed; z-index: 10001; inset: 0; background: rgba(10,8,5,.65); align-items: center; justify-content: center; }
.cmodal[style*="block"] { display: flex !important; }
.career-cmodal-content {
    background: #2a2314; width: min(420px, 88vw); margin: 0; padding: 32px 28px;
    border: 1px solid var(--pv-line); border-radius: var(--pv-radius-lg); box-shadow: var(--pv-shadow-lg); text-align: center; position: relative;
}
.career-close-cmodal-icon { position: absolute; top: 14px; right: 16px; font-weight: 700; color: var(--pv-muted); cursor: pointer; font-family: var(--pv-font); font-size: 14px; }
.career-close-cmodal-icon:hover { color: var(--pv-ink); }
#career-submit-message { font-size: 17px; font-weight: 700; color: var(--pv-ink); margin-top: 10px; }
.career-cmodal-content .fa-check, .career-cmodal-content .fa-xmark { font-size: 42px !important; }
.career-cmodal-content a.career-submit-button { margin-top: 20px; height: 46px; padding: 0 28px; font-size: 14px; }

.review-confirm { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; }
.review-confirm.is-open { display: flex; }
.review-confirm__backdrop { position: absolute; inset: 0; background: rgba(10,8,5,.65); backdrop-filter: blur(3px); }
.review-confirm__box { position: relative; width: 100%; max-width: 440px; padding: 28px 24px 22px; border-radius: var(--pv-radius-lg); background: #2a2314; border: 1px solid var(--pv-line); box-shadow: var(--pv-shadow-lg); text-align: left; font-family: var(--pv-font); }
.review-confirm__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 13px; background: var(--pv-accent-soft); color: var(--pv-accent-ink); }
.review-confirm__icon svg { width: 24px; height: 24px; }
.review-confirm__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--pv-ink); }
.review-confirm__text { margin: 0; color: var(--pv-muted); font-size: 14px; line-height: 1.55; }
.review-confirm__check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--pv-line); border-radius: 12px; background: rgba(0,0,0,.2); font-size: 14px; font-weight: 500; cursor: pointer; }
.review-confirm__check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--pv-accent); }
.review-confirm__check:has(input:checked) { border-color: rgba(218,165,32,.4); background: var(--pv-accent-soft); }
.review-confirm__actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.review-confirm__button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: none; background: linear-gradient(to right, #1a1817, var(--pv-accent)); color: #fff; font: 700 14px var(--pv-font); cursor: pointer; }
.review-confirm__button:disabled { opacity: .45; cursor: not-allowed; }
.review-confirm__button--ghost { background: var(--pv-surface); color: var(--pv-text); border: 1px solid var(--pv-line-2); }
body.review-confirm-open { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
    .job-hero { padding-top: 84px; }
    .job-hero__actions { flex-direction: column; }
    .job-hero__actions .pv-btn { width: 100%; }
    .job-body__main { padding: 22px; }
    .career-verify { gap: 12px; }
    .career-verify__answer { max-width: none; }
    .additional-file-container { grid-template-columns: 1fr; }
}

/* ============================================================
   LISTING PAGE (careers.html)
   ============================================================ */
.career-page, .career-page * { box-sizing: border-box; }
.career-page { font-family: var(--pv-font); color: var(--pv-text); }
.career-page h1, .career-page h2, .career-page h3 { margin: 0; color: var(--pv-ink); font-family: var(--pv-font); }
/* .career-page itself stays transparent (not even the semi-transparent
   tint .job-hero/.job-page use): .abtbg sits at z-index:-1 behind the whole
   body, so a background here would only ever cover it, never blend --
   body:has(.job-page) below gives the page its base dark tone instead. */
body:has(.career-page) { background: #1c1810; }

.nav-container, .container-nav { max-width: var(--pv-max); }

.career-hero {
    position: relative;
    overflow: hidden;
    /* Transparent on purpose: this site's real background is the 3 layered,
       independently-animated .abtbg divs every page carries (careers.html
       already has them in markup; styles/css/styles.css defines them) --
       the same gray/dark-gold diagonal the About page's hero/CEO-message
       sections sit directly on top of, with no override of their own. An
       opaque background here would just hide that site-wide system again. */
    background: transparent;
    border-bottom: 1px solid var(--pv-line);
    padding: 150px 0 clamp(36px, 4.5vw, 52px);
}
.career-hero__grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--pv-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--pv-line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 75%);
}
/* min-height: the art is position:absolute (out of normal flow), so without
   this the container's height comes only from the text block beside it --
   at wide viewports the art can grow taller than the text, overflowing the
   container and getting clipped by .career-hero's own overflow:hidden.
   180px comfortably covers this site's art at its tallest possible size. */
.career-hero__container { position: relative; z-index: 1; max-width: var(--pv-max); margin: 0 auto; min-height: 180px; }
.career-hero__art {
    position: absolute; top: 50%; right: 0; transform: translateY(-50%);
    width: clamp(260px, 26vw, 380px);
    pointer-events: none;
}
.career-hero__art::before {
    content: ""; position: absolute; inset: -45%;
    background: radial-gradient(ellipse 60% 60% at 60% 45%, rgba(218, 165, 32, .22) 0%, transparent 70%);
}
.career-hero__art svg { position: relative; width: 100%; height: auto; display: block; }
.career-hero__in { position: relative; max-width: 620px; }
.career-hero .job-hero__chip--accent {
    background: var(--pv-accent-soft); color: var(--pv-accent-ink); border: 1px solid rgba(218,165,32,.4);
}
.career-hero h1 {
    margin-top: 14px; color: var(--pv-ink);
    font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.career-hero h1 em { color: var(--pv-accent-ink); font-style: normal; }
.career-hero__sub { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--pv-text); max-width: 48ch; text-align: left; }
@media (max-width: 860px) {
    .career-hero__art { opacity: .3; width: clamp(200px, 36vw, 300px); }
}
@media (max-width: 560px) {
    .career-hero { padding-top: 118px; }
    .career-hero__art { display: none; }
    /* The art is hidden here, so the container no longer needs room for it. */
    .career-hero__container { min-height: 0; }
}

/* Transparent on purpose, same reasoning as .career-hero above: this
   page already carries the real site background (the 3 layered .abtbg
   divs in careers.html + styles/css/styles.css), gray/dark-gold diagonal,
   already animated -- not a stand-in built here, the genuine site-wide
   one, same as every other AAGH page (compare the About page, whose
   sections carry no background override either). */
.career-list-section { background: transparent; padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 9vw, 110px); }
.career-list-section__in { max-width: var(--pv-max); margin: 0 auto; }
.career-list-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.career-list-section__head { position: sticky; top: 24px; }
.career-list-section__head h2 {
    margin-top: 6px; color: var(--pv-ink);
    font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.career-list-section__rule { width: 52px; height: 3px; border-radius: 2px; background: var(--pv-accent); margin: 22px 0 20px; }

.career-open-count__num {
    display: block; font-size: clamp(30px, 3vw, 38px); font-weight: 800; line-height: 1;
    color: var(--pv-ink);
}
.career-open-count__label {
    display: block; margin-top: 5px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-muted);
}

.career-page .career-group__title {
    margin: 34px 0 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--pv-muted);
}
.career-page .career-group__title:first-child { margin-top: 0; }
#jobs-available { margin-top: 4px; }
.career-group__list { display: flex; flex-direction: column; gap: 10px; }
.career-group__list:empty { display: none; }

@media (max-width: 860px) {
    .career-list-grid { grid-template-columns: 1fr; gap: 28px; }
    .career-list-section__head { position: static; }
}

/* AAGH lists vacancies from every company it holds -- career.js already
   sets each row's text as "<title> | <companyName>"; style that company
   name as its own quiet tag instead of plain inline text. */
.job-title-name-anchor {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px;
    background: var(--pv-surface);
    border: 1px solid var(--pv-line);
    border-left: 4px solid var(--pv-accent);
    border-radius: var(--pv-radius-sm);
    text-decoration: none;
    font-size: 16px; font-weight: 700; color: var(--pv-ink);
    box-shadow: var(--pv-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.job-title-name-anchor::after {
    content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: .7em; opacity: .5; color: var(--pv-muted); flex: 0 0 auto;
    transition: transform .15s ease, opacity .15s ease;
}
.job-title-name-anchor:hover {
    transform: translateY(-2px);
    box-shadow: var(--pv-shadow);
    border-left-color: var(--pv-accent-ink);
    background: var(--pv-soft-2);
}
.job-title-name-anchor:hover::after { transform: translateX(3px); opacity: .9; }

.career-empty {
    display: none;
    padding: 48px 32px; text-align: center;
    background: var(--pv-surface); border: 1px dashed var(--pv-line-2); border-radius: var(--pv-radius);
}
.career-empty h3 { font-size: 17px; font-weight: 700; }
.career-empty p { margin-top: 8px; color: var(--pv-muted); font-size: 14.5px; }

/* ============================================================
   In-panel mode: job.html loaded inside careers.html's slide-over
   panel (see the in-panel class set on <html> in job.html's
   <head>, and job-panel.js/job-panel.css on careers.html).
   ============================================================ */
html.in-panel .header-area,
html.in-panel .footer-container-main,
html.in-panel .job-hero__back,
html.in-panel .job-hero__other-roles { display: none !important; }
html.in-panel .job-hero { padding-top: clamp(28px, 5vw, 40px); }
html.in-panel .job-body { width: 92%; }

.apply-back {
    display: none; align-self: flex-start; align-items: center; gap: 10px;
    padding: 6px 18px 6px 6px;
    background: var(--pv-surface); border: 1px solid var(--pv-line);
    border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--pv-text);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.apply-back__icon {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    background: var(--pv-soft-2); color: var(--pv-ink);
    display: grid; place-items: center; font-size: 12px;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.apply-back:hover { border-color: rgba(218,165,32,.4); background: var(--pv-accent-soft); color: var(--pv-accent-ink); }
.apply-back:hover .apply-back__icon { background: var(--pv-accent); color: #1a1813; transform: translateX(-2px); }
html.in-panel.js-showing-apply .apply-back { display: inline-flex; }
html.in-panel.js-showing-apply #job-detail { display: none; }
/* The site's own global style.css forces `div{overflow-x:hidden!important;
   overflow-y:hidden}` on every plain <div> (no class needed to match it) --
   #job-detail is one, and that silently breaks position:sticky on
   .job-body__side inside it. See PowerVacMEP's career-redesign.css for the
   full explanation -- same bug, same fix, carried over verbatim. */
#job-detail { overflow: visible !important; }
html.in-panel:not(.js-showing-apply) .apply-section { display: none; }
