/*
 * Open Positions page, ported from the approved /jobs/ v2 mockup. Loads after ege-jobs.css, which
 * supplies the tokens, the header band, the ownership panel, the buttons and the legal band.
 * Every rule is scoped to .ege-list so nothing leaks into The7 or WPBakery.
 */

.ege-list { --ege-row-hover: #f3f5fb; --ege-list-ease: cubic-bezier(0.25, 1, 0.5, 1); --ege-list-ease-x: cubic-bezier(0.16, 1, 0.3, 1); --ege-catbar-top: 0px; --ege-catbar-h: 68px; }
.ege-list p { margin: 0; text-wrap: pretty; }
.ege-list ul { margin: 0; padding: 0; }
.ege-list ul.ege-list__jobs, .ege-list ul.ege-list__jump { margin: 0 !important; padding: 0 !important; }
body.ege-list-page #page { overflow: clip; }
.ege-list .ege-list__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Header ---- */
.ege-list .ege-list__hero { padding-bottom: clamp(40px, 6vw, 72px); }
.ege-list .ege-list__hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr); grid-template-areas: "crumbs crumbs" "main jump"; column-gap: clamp(32px, 6vw, 96px); align-items: end; padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.ege-list .ege-list__crumbs { grid-area: crumbs; margin-bottom: clamp(20px, 3vw, 32px); }
.ege-list .ege-list__main { grid-area: main; }
.ege-list .ege-list__count { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 10px; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; font: 600 15px/1 var(--ege-head); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.ege-list .ege-list__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / 0.2); }
.ege-list h1.ege-list__title { max-width: 18ch; color: #fff !important; font-size: clamp(2.375rem, 1.2rem + 3.6vw, 4.25rem); font-weight: 600; letter-spacing: -0.005em; line-height: 1.02; }
.ege-list .ege-list__sub { max-width: 46ch; margin-top: 16px; font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; color: #dfe2f2; }
.ege-list .ege-list__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; }
.ege-list a.ege-list__award { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(28px, 3.5vw, 40px); padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.22); color: #fff; text-decoration: none; }
.ege-list .ege-list__award img { flex: none; width: 62px; height: auto; filter: drop-shadow(0 6px 14px rgb(4 6 24 / 0.4)); transition: transform 320ms var(--ege-list-ease-x); }
.ege-list .ege-list__award-txt { display: grid; gap: 4px; }
.ege-list .ege-list__award-txt strong { font: 600 1.125rem/1.1 var(--ege-head); letter-spacing: 0.01em; color: #fff; }
.ege-list .ege-list__award-txt span { font-size: 15px; color: #c9cde6; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 4px; transition: color 200ms var(--ege-list-ease); }
.ege-list a.ege-list__award:hover img { transform: rotate(-4deg) scale(1.04); }
.ege-list a.ege-list__award:hover .ege-list__award-txt span { color: #fff; text-decoration-color: #fff; }
.ege-list .ege-list__jump { grid-area: jump; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.25); }
.ege-list .ege-list__jump li { margin: 0; list-style: none; border-bottom: 1px solid rgb(255 255 255 / 0.25); }
.ege-list .ege-list__jump a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; color: #fff; text-decoration: none; font: 600 1.375rem/1.1 var(--ege-head); transition: color 200ms var(--ege-list-ease); }
.ege-list .ege-list__jump a span { display: flex; align-items: center; gap: 12px; font: 500 15px/1 var(--ege-body); color: #c9cde6; }
.ege-list .ege-list__jump a svg { transition: transform 320ms var(--ege-list-ease-x); }
.ege-list .ege-list__jump a:hover { color: var(--ege-blue, #69a6d5); }
.ege-list .ege-list__jump a:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: no-preference) {
	.ege-list .ege-list__dot { animation: ege-list-pulse 2.4s var(--ege-list-ease) infinite; }
	@keyframes ege-list-pulse { 50% { box-shadow: 0 0 0 7px rgb(61 220 132 / 0.08); } }
}

/* ---- Heading and sticky category bar ---- */
.ege-list .ege-list__roles-head { display: grid; gap: 6px; padding-top: clamp(16px, 2vw, 24px); }
.ege-list h2.ege-list__roles-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.875rem); font-weight: 600; }
.ege-list .ege-list__roles-count { margin-left: 0.2em; color: var(--ege-muted); font: 400 0.5em/1 var(--ege-body); letter-spacing: 0; vertical-align: 0.35em; }
.ege-list .ege-list__roles-sub { color: var(--ege-muted); font-size: 16px; }
.ege-list .ege-list__catbar { position: sticky; top: var(--ege-catbar-top); z-index: 20; margin-top: 6px; isolation: isolate; }
.ege-list .ege-list__catbar::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ege-line); }
/* Chips wrap rather than scroll sideways, so every category is visible on a phone. */
.ege-list .ege-list__catbar-in { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.ege-list .ege-list__catbar-in::-webkit-scrollbar { display: none; }
.ege-list a.ege-list__cat { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ege-line); border-radius: 999px; background: #fff; color: var(--ege-navy); font: 500 15px/1 var(--ege-body); text-decoration: none; white-space: nowrap; transition: background-color 200ms var(--ege-list-ease), color 200ms var(--ege-list-ease), border-color 200ms var(--ege-list-ease); }
.ege-list .ege-list__cat b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #f7f7f7; color: var(--ege-navy); font: 700 13px/1 var(--ege-body); transition: inherit; }
.ege-list a.ege-list__cat:hover { border-color: #222c6a; color: var(--ege-navy); }
.ege-list a.ege-list__cat.is-active { background: var(--ege-navy); border-color: var(--ege-navy); color: #fff; }
.ege-list .ege-list__cat.is-active b { background: var(--ege-red); color: #fff; }

/* ---- Role groups and rows ---- */
.ege-list .ege-list__roles { padding-block: clamp(16px, 3vw, 32px) clamp(48px, 7vw, 96px); }
.ege-list .ege-list__group { scroll-margin-top: calc(var(--ege-catbar-top) + var(--ege-catbar-h) + 16px); margin-top: clamp(32px, 4vw, 48px); }
.ege-list .ege-list__group:first-child { margin-top: clamp(24px, 4vw, 40px); }
.ege-list .ege-list__group[hidden] { display: none; }
.ege-list .ege-list__group-head { position: relative; isolation: isolate; display: flex; align-items: baseline; gap: 12px; padding: 16px 0 14px; margin-bottom: 4px; }
/* Light band behind each category heading, to the content column plus the rows' 12px hover inset, with a thin red top line (approved 2026-10-21). */
.ege-list .ege-list__group-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; right: -12px; z-index: -1; background: #f3f4f7; border-top: 2px solid #ec1c2d; }
.ege-list .ege-list__group-head h2 { font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); font-weight: 600; }
.ege-list .ege-list__group-n { font: 500 15px var(--ege-body); color: #5c5f6a; }
.ege-list .ege-list__cols, .ege-list a.ege-list__link { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr) 150px; align-items: center; column-gap: clamp(16px, 2vw, 28px); }
.ege-list .ege-list__cols { padding: 10px 12px 6px; margin-inline: -12px; font: 500 12px/1.3 var(--ege-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ege-muted); }
.ege-list .ege-list__cols span:last-child { text-align: right; }
.ege-list .ege-list__jobs { list-style: none; }
.ege-list .ege-list__job { margin: 0; list-style: none; border-bottom: 1px solid var(--ege-line); }
.ege-list a.ege-list__link { padding: 12px; margin-inline: -12px; min-height: 60px; border-radius: 6px; text-decoration: none; color: inherit; transition: background-color 220ms var(--ege-list-ease); }
.ege-list a.ege-list__link:hover { background: var(--ege-row-hover); }
.ege-list .ege-list__head { min-width: 0; }
.ege-list h3.ege-list__job-title { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); font-weight: 600; line-height: 1.2; transition: color 220ms var(--ege-list-ease); }
.ege-list a.ege-list__link:hover h3.ege-list__job-title { color: #222c6a !important; }
.ege-list .ege-list__pay { margin-top: 4px; font: 500 14px/1.3 var(--ege-body); color: var(--ege-muted); }
.ege-list .ege-list__facts { display: contents; margin: 0; }
.ege-list .ege-list__facts > div { min-width: 0; }
.ege-list .ege-list__facts dt { display: none; }
.ege-list .ege-list__facts dd { margin: 0; font: 400 15px/1.35 var(--ege-body); color: var(--ege-ink); }
.ege-list .ege-list__fact-m { display: none; }
.ege-list .ege-list__go { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ege-list .ege-list__n { font: 600 14px/1 var(--ege-head); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ege-muted); white-space: nowrap; }
.ege-list .ege-list__n--many { padding: 6px 9px; border-radius: 3px; background: #fde8ea; color: #9b0f1c; }
.ege-list .ege-list__arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ege-navy); color: #fff; transition: transform 320ms var(--ege-list-ease-x), background-color 220ms var(--ege-list-ease); }
.ege-list .ege-list__arrow svg { width: 18px; height: 18px; }
.ege-list a.ege-list__link:hover .ege-list__arrow, .ege-list a.ege-list__link:focus-visible .ege-list__arrow { transform: translateX(4px); background: #e01b2b; }
.ege-list a.ege-list__link:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ege-list .ege-list__job { animation: ege-list-settle 560ms var(--ege-list-ease-x) both; animation-delay: calc(var(--i) * 35ms + 120ms); }
	@keyframes ege-list-settle { from { transform: translateY(12px); } }
	.ege-list .ege-list__group.is-entering .ege-list__job { animation: ege-list-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
	.ege-list .ege-list__group.is-entering .ege-list__job:nth-child(2) { animation-delay: 30ms; }
	.ege-list .ege-list__group.is-entering .ege-list__job:nth-child(3) { animation-delay: 60ms; }
	.ege-list .ege-list__group.is-entering .ege-list__job:nth-child(4) { animation-delay: 90ms; }
	.ege-list .ege-list__group.is-entering .ege-list__job:nth-child(5) { animation-delay: 120ms; }
	.ege-list .ege-list__group.is-entering .ege-list__job:nth-child(n+6) { animation-delay: 150ms; }
	@keyframes ege-list-in { from { opacity: 0.001; transform: translateY(6px); } }
}

/* ---- No open jobs ---- */
.ege-list .ege-list__empty { padding-block: clamp(48px, 7vw, 88px); }
.ege-list .ege-list__empty h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; }
.ege-list .ege-list__empty p { max-width: 52ch; margin-top: 12px; font-size: 1.125rem; }

/* ---- Inc. award section ---- */
.ege-list .ege-list__award-sec { position: relative; isolation: isolate; }
.ege-list .ege-list__award-sec::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; border-top: 1px solid var(--ege-line); }
.ege-list .ege-list__award-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.ege-list .ege-list__award-media { position: relative; min-height: clamp(240px, 26vw, 340px); border-radius: 8px; background: var(--ege-navy) var(--ege-award-img, none) center / cover no-repeat; }
.ege-list .ege-list__award-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgb(19 26 70 / 0.1), rgb(19 26 70 / 0.55)); }
.ege-list .ege-list__award-badge { position: absolute; z-index: 1; right: clamp(-28px, -2vw, -12px); bottom: clamp(-28px, -2vw, -12px); width: clamp(96px, 10vw, 136px); height: auto; filter: drop-shadow(0 10px 24px rgb(4 6 24 / 0.35)); }
.ege-list .ege-list__award-kicker { font: 600 14px/1.3 var(--ege-body); text-transform: uppercase; letter-spacing: 0.08em; color: #c2410c; }
.ege-list .ege-list__award-copy h2 { margin-top: 10px; font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 600; }
.ege-list .ege-list__award-copy > p:not(.ege-list__award-kicker) { max-width: 62ch; margin-top: 14px; color: var(--ege-text); }
.ege-list .ege-list__award-copy .ege-job-btn { margin-top: 24px; }
.ege-list a.ege-list__btn-outline, .ege-list a.ege-list__btn-outline:visited { box-shadow: inset 0 0 0 2px var(--ege-navy); color: var(--ege-navy) !important; background: transparent; }
.ege-list a.ege-list__btn-outline:hover, .ege-list a.ege-list__btn-outline:focus { background: var(--ege-navy); color: #fff !important; }

/* ---- General application (navy band) ---- */
.ege-list .ege-list__general { position: relative; isolation: isolate; color: #e7e9f5; }
.ege-list .ege-list__general::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1; background: var(--ege-navy); }
.ege-list .ege-list__general-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(44px, 6vw, 80px); }
.ege-list .ege-list__general h2 { color: #fff !important; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 600; }
.ege-list .ege-list__general-lead { margin-top: 10px; font-size: 1.1875rem; color: #fff; }
.ege-list .ege-list__general-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ege-list a.ege-list__btn-light, .ege-list a.ege-list__btn-light:visited { background: #fff; color: var(--ege-navy) !important; }
.ege-list a.ege-list__btn-light:hover, .ege-list a.ege-list__btn-light:focus { background: #dfe6f7; color: var(--ege-navy) !important; }
.ege-list .ege-list__person { padding: 24px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 6px; }
.ege-list .ege-list__person-q { font-size: 15px; color: #c9cde6; }
.ege-list .ege-list__person-name { margin-top: 4px; font: 600 1.375rem/1.2 var(--ege-head); color: #fff; }
.ege-list a.ege-list__person-tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: #69a6d5; font: 500 1.125rem/1 var(--ege-body); text-decoration: underline; text-underline-offset: 4px; }
.ege-list a.ege-list__person-tel:hover { color: #fff; }

/* ---- Legal ---- */
.ege-list .ege-list__drug { margin-bottom: 8px; font: 700 15px var(--ege-head); letter-spacing: 0.06em; color: var(--ege-navy); }

@media (prefers-reduced-motion: reduce) {
	.ege-list a.ege-list__cat, .ege-list a.ege-list__link, .ege-list .ege-list__arrow, .ege-list h3.ege-list__job-title { transition: none; }
}

/* ---- Responsive: rows become stacked cards of facts ---- */
@media (max-width: 960px) {
	.ege-list .ege-list__cols { display: none; }
	.ege-list a.ege-list__link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head go" "facts facts"; row-gap: 8px; padding-block: 14px; }
	.ege-list .ege-list__head { grid-area: head; }
	.ege-list .ege-list__go { grid-area: go; }
	.ege-list .ege-list__facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 4px 20px; }
	.ege-list .ege-list__facts dt { display: inline; font: 500 11px/1.3 var(--ege-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ege-muted); margin-right: 6px; }
	.ege-list .ege-list__facts dd { display: inline; }
}
@media (max-width: 860px) {
	.ege-list .ege-list__hero-in { grid-template-columns: 1fr; grid-template-areas: "crumbs" "main"; }
	.ege-list .ege-list__jump { display: none; }
	.ege-list .ege-list__award-in, .ege-list .ege-list__general-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ege-list .ege-list__n { display: none; }
	.ege-list .ege-list__fact-m { display: block; }
	.ege-list .ege-list__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
	.ege-list .ege-list__facts dt { display: block; margin: 0; }
	.ege-list .ege-list__facts dd { display: block; }
	.ege-list .ege-list__actions .ege-job-btn { flex: 1 1 100%; }
}
