/* ===========================================================
   BHE UNI — Job details page (v2 redesign)
   Builds on we-are.css (section, buttons, CTA, reveal); the page
   root carries both .weare-v2 and .jd-page. Only job-details
   blocks live here.
   =========================================================== */
.jd-page a { text-decoration: none; }
.jd-page :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #ff9823; outline-offset: 3px; }

/* ---- hero ---- */
.jd-page .jd-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #0a1a33, #0f2747 62%, #16315a); padding: 56px 0 60px; }
.jd-page .jd-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 88% 10%, rgba(244,123,32,.2), transparent 60%), radial-gradient(50% 70% at 6% 96%, rgba(45,212,191,.14), transparent 62%); pointer-events: none; }
.jd-page .jd-hero::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(90% 80% at 70% 10%, #000, transparent); mask-image: radial-gradient(90% 80% at 70% 10%, #000, transparent); }
.jd-page .jd-hero > * { position: relative; z-index: 1; }
.jd-page .jd-back { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; color: rgba(255,255,255,.7); transition: gap .2s, color .2s; }
.jd-page .jd-back:hover { gap: 11px; color: #fff; }
.jd-page .jd-hero h1 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem) !important; line-height: 1.12; color: #fff; margin: 18px 0 0; max-width: 900px; }
.jd-page .jd-lead { font-weight: 300; font-size: 16px !important; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 40rem; margin: 14px 0 0; }
.jd-page .jd-metarow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.jd-page .jd-mpill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 8px 16px; }
.jd-page .jd-mpill i { color: var(--brand-400); }
.jd-page .jd-dept-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 999px; background: rgba(244,123,32,.16); color: var(--brand-300); border: 1px solid rgba(244,123,32,.3); }
.jd-page .jd-dept-pill.is-closed { background: rgba(225,29,72,.16); color: #fda4af; border-color: rgba(225,29,72,.35); }
.jd-page .jd-hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #fff; background: var(--orange-grad); box-shadow: 0 16px 34px -14px rgba(244,123,32,.7); transition: transform .2s, box-shadow .2s; }
.jd-page .jd-hero-cta:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 22px 42px -14px rgba(244,123,32,.8); }

/* ---- content blocks ---- */
.jd-page .jd-block { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid #eef2f7; }
.jd-page .jd-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.jd-page .jd-block > h2 { position: relative; font-weight: 600; font-size: 22px !important; line-height: 1.3; color: var(--navy-900); margin: 0 0 18px; padding-left: 16px; }
.jd-page .jd-block > h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 999px; background: var(--orange-grad); }
.jd-page .jd-detail-img { display: block; width: 100%; height: auto; border-radius: 18px; margin-top: 24px; }

/* Rich text from the admin editor; bullet lists use the reference's check style. */
.jd-page .jd-rich { font-weight: 300; font-size: 15.5px; line-height: 1.75; color: #5b6b82; overflow-wrap: anywhere; }
.jd-page .jd-rich :is(p, li, span, td) { font-size: 15.5px !important; font-weight: 300; line-height: 1.75; color: #5b6b82; }
.jd-page .jd-rich p { margin: 0 0 12px; }
.jd-page .jd-rich p:last-child { margin-bottom: 0; }
.jd-page .jd-rich :is(strong, b) { font-weight: 600; color: var(--navy-900); }
.jd-page .jd-rich :is(h1, h2, h3, h4, h5, h6) { font-weight: 600; font-size: 16px !important; color: var(--navy-900); margin: 18px 0 8px; }
.jd-page .jd-rich a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.jd-page .jd-rich ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.jd-page .jd-rich ul li { position: relative; padding-left: 30px; line-height: 1.6; }
.jd-page .jd-rich ul li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: #0d9488; font-size: 18px; line-height: 1.3; }
.jd-page .jd-rich ul li p { margin: 0; }
.jd-page .jd-rich ol { margin: 0 0 12px; padding-left: 20px; }

.jd-page .jd-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.jd-page .jd-benefit { display: flex; gap: 14px; align-items: flex-start; background: #f8fafc; border: 1px solid rgba(226,232,240,.7); border-radius: 14px; padding: 16px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.jd-page .jd-benefit:hover { transform: translateY(-3px); border-color: rgba(255,184,119,.7); box-shadow: 0 18px 38px -24px rgba(244,123,32,.4); }
.jd-page .jd-benefit .bic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px; color: var(--brand-500); background: #fff3ea; }
.jd-page .jd-benefit .bt { font-weight: 600; font-size: 15px; color: var(--navy-900); }
.jd-page .jd-benefit .bd { font-weight: 300; font-size: 13px; line-height: 1.5; color: #64748b; margin-top: 3px; }
@media (max-width: 575px) { .jd-page .jd-benefits { grid-template-columns: 1fr; } }

.jd-page .jd-note { display: flex; gap: 14px; background: var(--brand-50); border: 1px solid rgba(244,123,32,.2); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.jd-page .jd-note > i { color: var(--brand-500); font-size: 20px; line-height: 1.3; }
.jd-page .jd-note-title { font-weight: 600; font-size: 15px; color: var(--navy-900); margin-bottom: 4px; }
.jd-page .jd-note .jd-rich, .jd-page .jd-note .jd-rich :is(p, span) { font-size: 14px !important; color: #5b6b82 !important; }
.jd-page .jd-eeo { font-size: 13.5px !important; line-height: 1.65; color: #94a3b8; margin: 0; }

/* ---- sidebar ---- */
.jd-page .jd-card { background: #fff; border: 1px solid rgba(226,232,240,.85); border-radius: 20px; padding: 26px; box-shadow: 0 26px 54px -34px rgba(10,26,51,.28); }
.jd-page .jd-card h3 { font-weight: 600; font-size: 18px !important; color: var(--navy-900); margin: 0 0 18px; }
.jd-page .jd-facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.jd-page .jd-fact { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #eef2f7; }
.jd-page .jd-fact:last-child { padding-bottom: 0; border-bottom: 0; }
.jd-page .jd-fact .fic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 17px; color: #2a55cf; background: #eef3fc; }
.jd-page .fk { font-size: 12px; color: #94a3b8; line-height: 1.2; }
.jd-page .jd-fact .fv { font-weight: 600; font-size: 14.5px; color: var(--navy-900); margin-top: 3px; overflow-wrap: anywhere; }
.jd-page .jd-fact .fv.sal-hi { color: #0d9488; }
.jd-page .jd-fact .fv.is-closed { color: #e11d48; }
.jd-page .jd-share { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-page .jd-share :is(a, button) { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--brand-500); background: #fff; display: grid; place-items: center; color: var(--brand-500); font-size: 15px; cursor: pointer; padding: 0; transition: all .2s; }
.jd-page .jd-share :is(a, button):hover { background: var(--brand-500); color: #fff; transform: translateY(-2px); }

/* ---- application form ---- */
.jd-page #apply-form { scroll-margin-top: 90px; }
.jd-page .jd-form { position: relative; background: #fff; border: 1px solid rgba(226,232,240,.85); border-radius: 20px; padding: 30px; box-shadow: 0 26px 54px -34px rgba(10,26,51,.28); overflow: hidden; }
.jd-page .jd-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--orange-grad); }
.jd-page .jd-form h2 { font-weight: 600; font-size: 23px !important; color: var(--navy-900); margin: 0 0 6px; }
.jd-page .jf-sub { font-weight: 300; font-size: 14px !important; color: #64748b; margin: 0 0 22px; }
.jd-page .jf-alert { background: #fff5f6; border: 1px solid #fecdd3; color: #be123c; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.jd-page .jf-field label { display: block; font-weight: 500; font-size: 13.5px; color: var(--navy-800); margin-bottom: 7px; }
.jd-page .jf-field .req { color: #e11d48; }
.jd-page .jf-optional { font-weight: 300; color: #94a3b8; }
.jd-page .jf-input { display: block; width: 100%; min-height: 50px; border: 1px solid #dde5ef; border-radius: 12px; padding: 12px 16px; font-family: inherit; font-size: 14.5px; font-weight: 300; color: var(--navy-900); background: #f8fafc; transition: border-color .2s, background .2s, box-shadow .2s; }
.jd-page textarea.jf-input { resize: vertical; min-height: 120px; line-height: 1.6; }
.jd-page select.jf-input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239aa6b6'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.jd-page .jf-input:focus { outline: none; border-color: var(--brand-400); background-color: #fff; box-shadow: 0 0 0 3px rgba(244,123,32,.12); }
.jd-page .jf-input.is-invalid { border-color: #e11d48; background-color: #fff5f6; }
.jd-page .jf-input.is-valid { border-color: #5eead4; }
.jd-page .jf-error { display: block; min-height: 0; font-size: 12.5px; color: #e11d48; margin-top: 5px; }
.jd-page .jf-error:empty { margin-top: 0; }
.jd-page .jf-count { font-size: 12px; color: #94a3b8; margin-top: 5px; white-space: nowrap; }
.jd-page .jf-file { position: relative; border: 1.5px dashed #cdd7e5; border-radius: 12px; padding: 18px; text-align: center; background: #f8fafc; transition: border-color .2s, background .2s; }
.jd-page .jf-file:hover, .jd-page .jf-file:focus-within { border-color: var(--brand-400); background: #fff7f1; }
.jd-page .jf-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.jd-page .jf-file .ff-ic { font-size: 24px; color: var(--brand-500); }
.jd-page .jf-file .ff-t { font-weight: 500; font-size: 14px; color: var(--navy-800); margin-top: 6px; overflow-wrap: anywhere; }
.jd-page .jf-file .ff-s { font-weight: 300; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.jd-page .jf-file.has-file { border-color: #0d9488; background: #f0fdfa; }
.jd-page .jf-file.has-file :is(.ff-ic, .ff-t) { color: #0d9488; }
.jd-page .jf-file:has(input.is-invalid) { border-color: #e11d48; background: #fff5f6; }
.jd-page .jf-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jd-page .jf-captcha img { display: block; height: 50px; width: auto; border-radius: 10px; border: 1px solid #dde5ef; }
.jd-page .jf-captcha .jf-input { flex: 1 1 120px; max-width: 200px; }
.jd-page .jf-captcha-refresh { width: 50px; height: 50px; border-radius: 12px; border: 1px solid #dde5ef; background: #fff; color: #475569; font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.jd-page .jf-captcha-refresh:hover:not(:disabled) { border-color: var(--brand-400); color: var(--brand-600); }
.jd-page .jf-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 22px; border: 0; border-radius: 999px; background: var(--orange-grad); color: #fff; font-weight: 600; font-size: 15.5px; cursor: pointer; box-shadow: 0 16px 32px -14px rgba(244,123,32,.6); transition: transform .2s, box-shadow .2s; }
.jd-page .jf-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(244,123,32,.7); }
.jd-page .jf-submit:disabled { background: #e2e8f0; color: #64748b; box-shadow: none; cursor: not-allowed; }
.jd-page .jf-note { font-weight: 300; font-size: 12px !important; color: #94a3b8; text-align: center; margin: 14px 0 0; }
@media (max-width: 575px) { .jd-page .jd-form, .jd-page .jd-card { padding: 22px; } }

/* ---- similar roles ---- */
.jd-page .jd-related-card { display: block; height: 100%; background: #fff; border: 1px solid rgba(226,232,240,.7); border-radius: 16px; padding: 22px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.jd-page .jd-related-card:hover { transform: translateY(-4px); border-color: rgba(255,184,119,.7); box-shadow: 0 22px 46px -28px rgba(244,123,32,.3); }
.jd-page .jd-related-tag { display: inline-flex; font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: #e7f0ff; color: #2a6fdb; }
.jd-page .jd-related-card h3 { font-weight: 600; font-size: 17px !important; line-height: 1.3; color: var(--navy-900); margin: 12px 0 8px; }
.jd-page .jd-related-card .rc-meta { font-weight: 300; font-size: 13px; color: #64748b; }

@media (prefers-reduced-motion: reduce) { .jd-page * { transition: none !important; } }
