/* Careers page — new design. Shared pieces (hm-blob, reveal) are in roinet.css; form look matches connect.css. */

.rn-careers { background: linear-gradient(180deg, #E8F4F6 0%, #EEF6FB 30%, #F5F7F4 65%, #FAF8F2 100%); color: #0F1C3F; overflow-x: clip; }

/* ---------- hero ---------- */
.cr-hero { position: relative; overflow: clip; padding: clamp(56px, 7vw, 110px) var(--pad-x, clamp(20px, 4vw, 40px)) clamp(32px, 4vw, 56px); }
.cr-blob-a { right: -10%; top: -20%; width: 46vw; max-width: 620px; background: radial-gradient(circle, rgba(26,163,224,.16) 0%, rgba(26,163,224,0) 68%); animation: crDrift 14s ease-in-out infinite; }
.cr-blob-b { left: -12%; bottom: -30%; width: 42vw; max-width: 560px; background: radial-gradient(circle, rgba(124,196,127,.15) 0%, rgba(124,196,127,0) 68%); animation: crDrift 18s ease-in-out -6s infinite; }
@keyframes crDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, -18px) scale(1.06); } }
@keyframes crPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.cr-hero-inner { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cr-title { margin: 0; font-family: Figtree, sans-serif; font-weight: 800; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em; color: #0B3A44; text-wrap: balance; }
.cr-title span { color: #1AA3E0; }
.cr-lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: #55606E; text-wrap: pretty; }
.cr-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: #1AA3E0; color: #FFFFFF; box-shadow: 0 10px 26px rgba(26,163,224,.32); padding: 15px 26px; border-radius: 16px; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.cr-btn:hover { background: #1590C8; color: #FFFFFF; transform: translateY(-2px); text-decoration: none; }

/* ---------- open roles ---------- */
.cr-openings { scroll-margin-top: 100px; padding: clamp(24px, 3vw, 40px) var(--pad-x, clamp(20px, 4vw, 40px)) clamp(56px, 6vw, 96px); }
.cr-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.cr-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0; }
.cr-h2 { margin: 0; font-family: Figtree, sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; color: #0B3A44; }
.cr-count { font-size: .6em; font-weight: 700; color: #1676B8; padding: 4px 10px; border-radius: 10px; background: #E4F2FC; vertical-align: middle; }
.cr-search { flex: 0 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; margin: 0; padding: 0 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(11,58,68,.08), 0 6px 16px rgba(15,28,63,.04); transition: box-shadow .2s; }
.cr-search:focus-within { box-shadow: inset 0 0 0 1.5px #1AA3E0, 0 6px 16px rgba(15,28,63,.04); }
.cr-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 15px; color: #0B3A44; }
.cr-search input::placeholder { color: #9AA5B1; }
.cr-go { height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: #1AA3E0; color: #FFFFFF; font-weight: 700; }

.cr-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-dept { padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 700; line-height: 1.3; background: rgba(255,255,255,.85); color: #3A4654; box-shadow: inset 0 0 0 1px rgba(11,58,68,.08); text-decoration: none; transition: background .25s, color .25s; }
.cr-dept:hover { color: #0B3A44; background: #FFFFFF; text-decoration: none; }
.cr-dept.is-active, .cr-dept.is-active:hover { background: #0B3A44; color: #FFFFFF; box-shadow: 0 8px 20px rgba(11,58,68,.2); }
.cr-dept:focus-visible, .cr-apply:focus-visible, .cr-chev:focus-visible, .cr-job-main:focus-visible { outline: 3px solid #1AA3E0; outline-offset: 2px; }

.cr-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FDECEE; color: #B42335; font-size: 14px; font-weight: 600; }

.cr-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cr-job { border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 8px 24px rgba(15,28,63,.05); overflow: hidden; scroll-margin-top: 110px; transition: opacity .6s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s), box-shadow .3s; }
.cr-job[hidden] { display: none; }
.cr-job.is-open { box-shadow: inset 0 0 0 1.5px rgba(26,163,224,.35), 0 18px 40px rgba(26,120,170,.12); }
.cr-job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 22px; }
.cr-job-main { flex: 1 1 320px; min-width: 0; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: inherit; padding: 0; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; }
.cr-job-title { font-size: 18px; font-weight: 800; color: #0B3A44; }
.cr-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: #55606E; }
.cr-tag { padding: 4px 10px; border-radius: 8px; background: #F2F6F9; }
.cr-job-actions { display: flex; align-items: center; gap: 8px; }
.cr-chev { border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 14px; background: #F2F6F9; color: #3A4654; display: grid; place-items: center; transition: transform .35s var(--ease), background .2s; }
.cr-chev:hover { background: #E7EEF3; }
.cr-job.is-open .cr-chev { transform: rotate(180deg); }
.cr-apply { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px; background: #1AA3E0; color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(26,163,224,.28); transition: background .2s, transform .2s; }
.cr-apply:hover { background: #1590C8; color: #FFFFFF; transform: translateY(-2px); text-decoration: none; }

.cr-job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.cr-job.is-open .cr-job-body { grid-template-rows: 1fr; }
.cr-job-clip { overflow: hidden; min-height: 0; }
/* closed details are hidden from keyboard and screen readers once the closing slide ends */
.cr-job-clip { visibility: hidden; transition: visibility 0s linear .45s; }
.cr-job.is-open .cr-job-clip { visibility: visible; transition-delay: 0s; }
.cr-job-text { padding: 0 22px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.65; color: #2E3A48; }
.cr-job-text p { margin: 0; text-wrap: pretty; white-space: pre-line; }
.cr-job-text ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cr-job-text li { position: relative; padding-left: 16px; }
.cr-job-text li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #5DB35F; }
.cr-openings-no { font-size: 13px; font-weight: 700; color: #1676B8; }

.cr-none { padding: 36px; border-radius: 22px; background: rgba(255,255,255,.8); text-align: center; font-size: 16px; color: #55606E; }
.cr-none[hidden] { display: none; }

.cr-general { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(120deg, #FFFFFF 0%, #E6F5FE 55%, #E9F7EE 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95); }
.cr-general > span { font-size: 17px; font-weight: 700; color: #0B3A44; }
.cr-ghost { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px; background: #FFFFFF; color: #0B3A44; font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1px #D3DCE6; text-decoration: none; }
.cr-ghost:hover { background: #F3F6FA; color: #0B3A44; text-decoration: none; }

/* ---------- apply side panel (native <dialog>) ---------- */
.cr-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; padding: 0; border: 0; background: #FFFFFF; color: #0F1C3F; box-shadow: -30px 0 80px rgba(11,30,40,.2); overflow-y: auto; overscroll-behavior: contain; }
.cr-drawer[open] { display: flex; flex-direction: column; animation: crIn .5s var(--ease) both; }
.cr-drawer::backdrop { background: rgba(11,30,40,.38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: crFade .35s ease both; }
.cr-drawer.is-closing { animation: crOut .35s var(--ease) both; }
.cr-drawer.is-closing::backdrop { animation: crFade .35s ease reverse both; }
@keyframes crIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes crOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes crFade { from { opacity: 0; } to { opacity: 1; } }
body.cr-noscroll { overflow: hidden; }

.cr-drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 18px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(11,58,68,.06); }
.cr-drawer-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #1676B8; }
.cr-drawer-title { font-family: Figtree, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.2; color: #0B3A44; }
.cr-close { flex: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 12px; background: #F2F6F9; color: #3A4654; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.cr-close:hover { background: #E7EEF3; }

.cr-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 26px 28px; }
@media (min-width: 480px) { .cr-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cr-wide, .cr-alert, .cr-submit, .cr-hint { grid-column: 1 / -1; }
.cr-field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.cr-label { font-size: 13px; font-weight: 700; color: #3A4654; }
.cr-opt { font-weight: 500; color: #8A96A3; }
.cr-input { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: #F3F7FA; box-shadow: inset 0 0 0 1.5px rgba(11,58,68,.06); font-family: Figtree, sans-serif; font-size: 16px; font-weight: 500; color: #0B3A44; outline: none; transition: box-shadow .2s, background .2s; }
.cr-input::placeholder { color: #9AA5B1; }
.cr-input:focus { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #1AA3E0; }
.cr-textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.cr-field.has-error .cr-input { box-shadow: inset 0 0 0 1.5px #E5484D; }
.cr-err { font-size: 12px; font-weight: 600; color: #D93A4A; }
.cr-err:empty { display: none; }

.cr-drop { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; margin: 0; padding: 20px; border-radius: 18px; border: 2px dashed rgba(11,58,68,.15); background: #F8FAFC; text-align: center; transition: border-color .2s, background .2s; }
.cr-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cr-drop:focus-within { border-color: #1AA3E0; }
.cr-drop.is-drag { border-color: #1AA3E0; background: #EAF6FD; }
.cr-drop.has-file { border-color: #5DB35F; background: #F0F9F3; }
.has-error .cr-drop { border-color: #E5484D; }
.cr-drop-icon { width: 48px; height: 48px; border-radius: 14px; background: #1AA3E0; display: grid; place-items: center; transition: background .2s; }
.cr-drop.has-file .cr-drop-icon { background: #1F9D5C; }
.cr-drop-title { font-size: 15px; font-weight: 700; color: #0B3A44; word-break: break-word; }
.cr-drop-sub { font-size: 13px; color: #8A96A3; }

.cr-alert { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FDECEE; color: #B42335; font-size: 13px; font-weight: 600; }
.cr-alert[hidden] { display: none; }
.cr-submit { margin-top: 4px; border: 0; cursor: pointer; height: 54px; border-radius: 16px; background: #1AA3E0; color: #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 700; box-shadow: 0 10px 26px rgba(26,163,224,.3); transition: background .2s, opacity .2s; }
.cr-submit:hover { background: #1590C8; }
.cr-submit:focus-visible, .cr-close:focus-visible, .cr-btn:focus-visible { outline: 3px solid #0B3A44; outline-offset: 3px; }
.cr-submit[disabled] { opacity: .6; cursor: progress; }
.cr-hint { font-size: 12px; line-height: 1.5; color: #8A96A3; text-align: center; }

.cr-sent { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 28px; }
.cr-tick { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, #4CC77A, #1F9D5C); box-shadow: 0 16px 34px rgba(31,157,92,.3); display: grid; place-items: center; animation: crPop .7s cubic-bezier(.34, 1.5, .64, 1) both; }
.cr-sent-title { font-family: Figtree, sans-serif; font-size: 24px; font-weight: 800; color: #0B3A44; }
.cr-sent-text { max-width: 340px; font-size: 15px; line-height: 1.6; color: #55606E; }

@media (prefers-reduced-motion: reduce) {
    .cr-blob-a, .cr-blob-b, .cr-tick, .cr-drawer[open], .cr-drawer::backdrop, .cr-drawer.is-closing { animation: none; }
    .cr-job, .cr-job-body, .cr-chev { transition: none; }
}
/* rich job descriptions written in the admin */
.cr-job-text h2, .cr-job-text h3, .cr-job-text h4 { margin: 6px 0 0; font-size: 16px; font-weight: 800; color: #0B3A44; }
.cr-job-text ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.cr-job-text ol li { padding-left: 0; }
.cr-job-text ol li::before { content: none; }
.cr-job-text blockquote { margin: 0; padding-left: 12px; border-left: 3px solid #5DB35F; }
.cr-job-text a { color: #1676B8; text-decoration: underline; }
.cr-job-text .callout { padding: 12px 14px; border-radius: 12px; background: #F3F8FD; }

/* search by location + job type (the original Career search), and page links */
.cr-filters { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 520px; justify-content: flex-end; }
.cr-select { flex: 1 1 200px; max-width: 280px; padding-right: 8px; }
.cr-select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 15px; color: #0B3A44; cursor: pointer; }
.cr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-go { cursor: pointer; transition: background .2s; }
.cr-go:hover { background: #1590C8; }
.cr-go:focus-visible { outline: 3px solid #1AA3E0; outline-offset: 2px; }
button.cr-apply { border: 0; font-family: inherit; cursor: pointer; }
.cr-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.cr-pages a { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: #FFFFFF; color: #0B3A44; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(11,58,68,.1); }
.cr-pages a:hover { background: #E4F2FC; text-decoration: none; }
.cr-pages a.is-active { background: #0B3A44; color: #FFFFFF; box-shadow: none; }
.cr-pages a:focus-visible { outline: 3px solid #1AA3E0; outline-offset: 2px; }
@media (max-width: 560px) { .cr-select { max-width: none; flex-basis: 100%; } .cr-filters .cr-go { flex: 1 1 100%; } }
