/* Careers page: openings as staff passes on lanyards (includes/career-openings.php) */
.career-open { --ink: #071a31; --blue: #169ef5; --deep: #0a6cb4; --yellow: #ffd749; --soft: #55637a; --line: #e6ebf3; --mono: 'DM Mono', ui-monospace, monospace; position: relative; margin: 0 0 60px; padding: 0 20px 76px; background: radial-gradient(900px 420px at 50% 0, rgba(255, 255, 255, .95), transparent 70%), linear-gradient(180deg, #e6f3fe, #f1f8ff 55%, #e9f4fe); border-top: 1px solid #d6e9fb; border-bottom: 1px solid #d6e9fb; color: var(--ink); overflow: hidden; }
.career-open__inner { max-width: 1280px; margin: 0 auto; }

/* ---------- words: centred above the passes ---------- */
.career-open__head { max-width: 900px; margin: 0 auto; padding-top: 64px; text-align: center; }
.career-open .career-open__head h2 { margin: 0; line-height: 1.2; }
.career-open__eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--deep); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .3em; line-height: 1.6; text-transform: uppercase; }
.career-open__eyebrow::before, .career-open__eyebrow::after { content: ""; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--deep)); }
.career-open__eyebrow::after { transform: scaleX(-1); }
.career-open__title { display: block; margin-top: 18px; color: var(--ink); font-size: clamp(40px, 5.6vw, 74px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.career-open__title em { position: relative; display: inline-block; font-style: normal; white-space: nowrap; }
.career-open__title em b { font-weight: inherit; background: linear-gradient(100deg, #0a6cb4, #169ef5 55%, #3cc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.career-open__title em svg { position: absolute; left: 1%; bottom: -.16em; width: 98%; height: .24em; fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; overflow: visible; }
.career-open__intro { max-width: 540px; margin: 28px auto 0; color: var(--soft); font-size: 18px; line-height: 1.75; }

.career-open__bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.career-open__count, .career-open .career-open__bar a { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 8px 22px; border-radius: 999px; font-size: 15.5px; line-height: 1.4; }
.career-open__count { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 10px 26px -16px rgba(7, 26, 49, .35); }
.career-open__count i { width: 9px; height: 9px; border-radius: 50%; background: #17a864; box-shadow: 0 0 0 4px rgba(23, 168, 100, .16); }
.career-open__count b { color: var(--deep); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.career-open .career-open__bar a { border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; transition: translate .25s ease, box-shadow .25s ease; }
.career-open .career-open__bar a span { color: var(--yellow); }
.career-open .career-open__bar a:hover { translate: 0 -2px; box-shadow: 0 14px 24px -14px rgba(7, 26, 49, .7); color: #fff; }

/* ---------- the passes: four in a row, a short last row stays centred ---------- */
.career-jobs { --cols: 1; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px var(--gap); margin: 46px 0 0; padding: 0; list-style: none; }
.career-job { position: relative; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 330px; margin: 0; perspective: 1100px; }
@media (min-width: 640px) { .career-jobs { --cols: 2; } }
@media (min-width: 1200px) { .career-jobs { --cols: 4; --gap: 22px; } }
.career-open--one .career-job { width: min(100%, 350px); max-width: 350px; }

/* brushed metal rail: each pass carries a piece, so every row gets one continuous rod */
.career-job::before { content: ""; position: absolute; z-index: 4; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); top: 0; height: 9px; background: linear-gradient(180deg, #eef2f8, #fff 22%, #aebbcd 62%, #75859d); box-shadow: 0 7px 12px -4px rgba(7, 26, 49, .28); }
/* the mount that holds each lanyard */
.career-job::after { content: ""; position: absolute; z-index: 5; left: 50%; top: -4px; width: 52px; height: 17px; margin-left: -26px; border-radius: 6px; background: linear-gradient(180deg, #33496b, #071a31); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 5px 10px -3px rgba(7, 26, 49, .5); }

.pass { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }

/* woven navy lanyard with stitched edges */
.pass__strap { position: relative; z-index: 1; display: flex; justify-content: center; width: 36px; height: 92px; overflow: hidden; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 4px), linear-gradient(90deg, #04101f, #10315a 50%, #04101f); box-shadow: 0 10px 16px -8px rgba(7, 26, 49, .45); }
.pass__strap::before { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; right: 4px; border-left: 1px dashed rgba(255, 215, 73, .75); border-right: 1px dashed rgba(255, 215, 73, .75); }
.pass__strap span { position: relative; writing-mode: vertical-rl; color: rgba(255, 255, 255, .9); font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; white-space: nowrap; }
.pass__clip { position: relative; z-index: 2; width: 48px; height: 20px; margin-top: -2px; border-radius: 5px; background: linear-gradient(180deg, #fff, #c3cfde 52%, #7b8aa1); box-shadow: inset 0 -1px 0 rgba(7, 26, 49, .3), 0 4px 8px rgba(7, 26, 49, .22); }
.pass__clip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 24px; margin-left: -7px; border: 3px solid #aebccf; border-top: 0; border-radius: 0 0 9px 9px; }

.pass__card { --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 0%; position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; margin-top: 10px; padding: 38px 22px 14px; border: 1px solid #dfe6f0; border-radius: 24px; background: linear-gradient(180deg, #fff 62%, #f6f9fd); color: var(--ink); box-shadow: 0 1px 2px rgba(7, 26, 49, .08), 0 12px 22px -12px rgba(7, 26, 49, .22), 0 36px 56px -30px rgba(7, 26, 49, .45); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: box-shadow .35s ease, border-color .35s ease; }   /* the tilt is smoothed by the script */
.pass__card.is-tilt { border-color: #b9dcf7; box-shadow: 0 1px 2px rgba(7, 26, 49, .08), 0 18px 28px -14px rgba(22, 158, 245, .35), 0 48px 66px -32px rgba(7, 26, 49, .55); }
/* fine security-print rings behind the top of the pass */
.pass__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; border-radius: 23px 23px 0 0; background: repeating-radial-gradient(circle at 100% 0, transparent 0 9px, rgba(22, 158, 245, .11) 9px 10px); -webkit-mask-image: linear-gradient(200deg, #000, transparent 68%); mask-image: linear-gradient(200deg, #000, transparent 68%); pointer-events: none; }
.pass__card > * { position: relative; }
.pass__card > .pass__slot { position: absolute; left: 50%; top: 13px; width: 58px; height: 10px; margin-left: -29px; border-radius: 999px; background: #dbe3ee; box-shadow: inset 0 2px 4px rgba(7, 26, 49, .35); }

.pass__brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; }
.pass__brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 62%, var(--blue) 62% 86%, var(--yellow) 86%); }
.pass__brand img { width: auto; max-width: 124px; height: 38px; object-fit: contain; object-position: left; mix-blend-mode: multiply; }   /* hides the logo file's white box */
.pass__type { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #cfe6fb; border-radius: 999px; background: #eef7ff; color: var(--deep); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; white-space: nowrap; }
.pass__type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pass__type--internship { border-color: #f2df9b; background: #fff8de; color: #7a5a00; }
.pass__type--part-time { border-color: #ddd4fa; background: #f4f1ff; color: #4b32b8; }
.pass__type--contract { border-color: #c3e8d5; background: #ecfaf3; color: #0d6b41; }

.pass__who { display: flex; align-items: flex-end; gap: 14px; margin: 18px 0; }
.pass__photo { flex: none; width: 90px; height: 108px; padding: 3px; border-radius: 16px; background: linear-gradient(150deg, var(--blue), #bfe3ff 45%, var(--yellow)); }
.pass__photo > span { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 50% 18%, #2a7fc4, #0a2c52 72%); }
.pass__photo svg { position: absolute; left: 50%; bottom: 25px; width: 58px; height: 70px; margin-left: -29px; fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; stroke-dasharray: 4 5; }
.pass__photo b { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.8; letter-spacing: .12em; text-align: center; }
.pass__photo > span::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 28%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .45), transparent); }
.pass__name { flex: 1; min-width: 0; padding-bottom: 2px; }
/* hologram seal: its colours turn as the pass tilts */
.pass__seal { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 12px auto; border-radius: 50%; background: conic-gradient(#9fe3ff, #d9c8ff, #ffe9a6, #b9f5da, #9fe3ff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 3px 8px -3px rgba(7, 26, 49, .35); filter: hue-rotate(calc(var(--ry) * 14)); }
.pass__seal::after { content: "TB"; display: grid; place-items: center; width: 28px; height: 28px; border: 1px dashed rgba(7, 26, 49, .45); border-radius: 50%; color: rgba(7, 26, 49, .75); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.pass__name small, .pass__role small { display: block; color: #7c889b; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; line-height: 1.6; text-transform: uppercase; }
.career-open .pass__name em { display: block; padding: 0 0 2px; border-bottom: 1px solid #ccd6e4; color: #7f8da3; font-family: 'Caveat', cursive !important; font-size: 23px; font-style: normal; line-height: 1.3; white-space: nowrap; }

.career-open .pass__role h3 { margin: 3px 0 0; color: var(--ink); font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; text-transform: uppercase; overflow-wrap: anywhere; }
@media (min-width: 640px) { .career-open .pass__role h3 { min-height: 2.4em; } }   /* one or two line titles keep passes level */

.pass__info { margin-top: 12px; }
@media (min-width: 640px) { .pass__info { min-height: 128px; } }   /* every pass in a row ends at the same height */
.pass__facts { margin: 0; border-top: 1px solid var(--line); }
.pass__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pass__facts dt { color: #7c889b; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pass__facts dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }

.career-desc { margin: 6px 0 0; }
.career-desc summary { display: inline-flex; align-items: center; gap: 9px; color: var(--deep); font-size: 14.5px; font-weight: 700; list-style: none; cursor: pointer; }
.career-desc summary::-webkit-details-marker { display: none; }
.career-desc summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 15px; line-height: 1; }
.career-desc[open] summary::before { content: "\2212"; }
.career-open .career-desc p { margin: 2px 0 6px; color: #445268; font-size: 14.5px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }

/* tear-off line above the barcode */
.pass__code { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 10px 0 14px; padding-top: 14px; border-top: 1px dashed #cdd7e5; }
.pass__code span { flex: 1; max-width: 160px; height: 26px; opacity: .85; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 13px, transparent 13px 15px, var(--ink) 15px 16px, transparent 16px 19px); }
.pass__code small { color: #7c889b; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; white-space: nowrap; }

.career-open .career-apply { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -9px -1px; padding: 8px 8px 8px 22px; border-radius: 999px; background: linear-gradient(135deg, #0d2b4f, var(--ink)); color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: .01em; overflow: hidden; isolation: isolate; box-shadow: 0 14px 22px -14px rgba(7, 26, 49, .75); }
.career-apply::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: circle(0 at var(--tap, 0px) 50%); transition: clip-path .5s cubic-bezier(.2, .8, .2, 1); }   /* spreads from the tap point */
.career-apply i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); transition: background-color .3s ease; }
.career-apply svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s ease, stroke .3s ease; }
.career-open .career-apply:focus-visible, .career-open .career-apply.is-pressed { color: var(--ink); }
.career-apply:focus-visible::before, .career-apply.is-pressed::before { clip-path: circle(150% at var(--tap, 0px) 50%); }
.career-apply:focus-visible i, .career-apply.is-pressed i { background: var(--ink); }
.career-apply:focus-visible svg, .career-apply.is-pressed svg { stroke: var(--yellow); translate: 3px 0; }
/* hover only where there is a real mouse, so nothing stays stuck after a tap */
@media (hover: hover) {
  .career-open .career-apply:hover { color: var(--ink); }
  .career-apply:hover::before { clip-path: circle(150% at var(--tap, 0px) 50%); }
  .career-apply:hover i { background: var(--ink); }
  .career-apply:hover svg { stroke: var(--yellow); translate: 3px 0; }
}

/* ---------- touch feel ---------- */
.career-apply, .career-desc summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.career-open .career-apply { scale: 1; transition: color .3s ease, scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.career-open .career-apply.is-pressed { scale: .96; transition: color .2s ease, scale .08s ease; }
.career-desc summary { min-height: 40px; }
.career-desc.is-closing summary::before { content: "+"; }
/* swipe sideways to swing a pass; up and down still scrolls the page */
.career-open.is-live .career-job { touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; }
.career-open.is-live .pass__card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.career-open.is-live .career-desc p { -webkit-user-select: text; user-select: text; }
.career-open.is-live .pass img { -webkit-user-drag: none; pointer-events: none; }
.career-open.is-live .pass { will-change: rotate; }
@media (hover: hover) and (pointer: fine) {
  .career-open.is-live .pass__card { cursor: grab; }
  .career-open.is-live .career-job.is-held .pass__card { cursor: grabbing; }
}
/* the picked position glows once in the form */
.career-field select.career-picked { animation: pickedGlow 1.8s ease .35s; }
@keyframes pickedGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 73, 0); } 25%, 65% { box-shadow: 0 0 0 5px rgba(255, 215, 73, .75); } }
.career-open a:focus-visible, .career-desc summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* foil light that follows the mouse across the pass */
.pass__card > .pass__shine { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .75), transparent 55%), linear-gradient(115deg, transparent 38%, rgba(22, 158, 245, .16) 46%, rgba(255, 215, 73, .22) 52%, rgba(157, 118, 255, .14) 58%, transparent 66%); mix-blend-mode: soft-light; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.pass__card.is-tilt > .pass__shine { opacity: 1; }
.pass__card > .career-apply { z-index: 3; }

/* ---------- motion: passes drop in, swing and settle ---------- */
@media (prefers-reduced-motion: no-preference) {
  .career-open.is-waiting .pass { opacity: 0; }
  .career-open.is-in .pass { animation: passDrop .6s cubic-bezier(.22, .8, .24, 1) calc(var(--i, 0) * .18s) backwards; }   /* the swing comes from the spring */
  .pass__photo > span::after { animation: passScan 3.4s ease-in-out infinite; }
  .career-open__count i { animation: openPulse 2s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .pass__card, .career-apply, .career-apply::before, .career-apply i, .career-apply svg { transition: none; } }
@keyframes passDrop { from { opacity: 0; translate: 0 -60px; } to { opacity: 1; translate: 0 0; } }
@keyframes passScan { 0%, 35% { top: -30%; } 75%, 100% { top: 105%; } }
@keyframes openPulse { 0% { box-shadow: 0 0 0 0 rgba(23, 168, 100, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(23, 168, 100, 0); } }

/* ---------- narrow screens ---------- */
@media (min-width: 1200px) and (max-width: 1319.98px) {
  .pass__card { padding-left: 18px; padding-right: 18px; }
  .pass__brand img { max-width: 106px; }
  .career-open .pass__role h3 { font-size: 20px; }
  .pass__photo { width: 80px; height: 98px; }
  .career-open .pass__name em { font-size: 20px; }
}
@media (max-width: 991.98px) {
  .pass__strap { height: 66px; }
}
@media (max-width: 639.98px) {
  .career-open__eyebrow::before, .career-open__eyebrow::after { width: 24px; }
  .career-open__bar { flex-direction: column; }
}
@media (max-width: 374.98px) {
  .career-open { padding-left: 12px; padding-right: 12px; }
  .pass__card { padding-left: 17px; padding-right: 17px; }
  .pass__photo { width: 76px; height: 94px; }
  .pass__brand img { max-width: 100px; height: 32px; }
}
