/* Careers page. Builds on theme.css: white sections, soft cards with 20px corners,
   the gradient kept for the accent words and the value numbers.
   Spacing follows the 8px step. */

/* The theme gradient with a deeper green end, so gradient text keeps 3:1 on white at large sizes. */
.cr-head, .cr-values { --cr-grad-text: linear-gradient(95deg, var(--blue-600), var(--green-600)); }

/* ---------- Page head ---------- */
.cr-head h1 { max-width: 16ch; }
.cr-accent { background: var(--cr-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cr-head-actions { margin-top: 32px; }
@media (min-width: 480px) { .cr-accent { white-space: nowrap; } }
/* The head is light now, so the focus ring has to be dark enough to see. */
.cr-head :focus-visible { outline-color: var(--blue-500); }

/* ---------- Values: numbered cards ---------- */
.cr-values { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cr-value { grid-column: span 2; padding: clamp(24px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
/* Exactly five values: three on the first row, two wider ones on the second. */
.cr-value:nth-child(4):nth-last-child(2), .cr-value:nth-child(5):last-child { grid-column: span 3; }
.cr-value-num { display: inline-block; margin-bottom: 16px; font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--cr-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cr-value h3 { margin-bottom: 8px; font-size: 1.15rem; }
.cr-value p { margin: 0; color: var(--muted); }

/* ---------- What working here involves ---------- */
.cr-work { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cr-work-head h2 { margin-bottom: 16px; letter-spacing: -.025em; }
.cr-work-head .lead { margin: 0; }
.cr-kicker { margin: 32px 0 16px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cr-more { margin: 24px 0 0; }
.cr-work-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cr-work-list .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px; }
.cr-work-list .card-icon { width: 48px; height: 48px; margin: 0; }
.cr-work-list h3 { margin-bottom: 4px; font-size: 1.12rem; }
.cr-work-list p { margin: 0; font-size: .98rem; }
@media (min-width: 961px) { .cr-work-head { position: sticky; top: 104px; } }

/* ---------- Open roles: the honest empty state, and how to reach us ---------- */
.cr-roles-section { scroll-margin-top: 88px; }
.cr-roles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 5vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: var(--grad-soft); }
.cr-roles h2 { margin-bottom: 16px; letter-spacing: -.025em; }
.cr-roles .lead { margin: 0; }
.cr-roles-actions { margin-top: 32px; }
.cr-roles-side { padding: 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.cr-roles-side h3 { margin-bottom: 16px; font-size: 1.08rem; }
.cr-roles-side .tick-list { gap: 12px; font-size: .96rem; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .cr-work, .cr-roles { grid-template-columns: 1fr; }
  .cr-value, .cr-value:nth-child(4):nth-last-child(2), .cr-value:nth-child(5):last-child { grid-column: span 3; }
  .cr-value:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cr-values { grid-template-columns: 1fr; gap: 16px; }
  .cr-value, .cr-value:nth-child(4):nth-last-child(2), .cr-value:nth-child(5):last-child, .cr-value:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 420px) {
  .cr-work-list .card { grid-template-columns: 1fr; }
  .cr-head-actions .btn, .cr-roles-actions .btn { flex: 1 1 100%; }
}

/* Windows high-contrast mode drops background-clip text; give the words a real colour. */
@media (forced-colors: active) {
  .cr-accent, .cr-value-num { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}


/* One image fills the whole page: fixed behind everything, under a navy veil.
   The header text sits straight on it; every later section is a frosted panel
   so its dark text stays readable. Same pattern as the Technology page. */
.cr-bg { position: fixed; inset: 0; z-index: -1; background: #071d38; }
.cr-bg picture, .cr-bg img { display: block; width: 100%; height: 100%; }
.cr-bg img { object-fit: cover; object-position: 72% 40%; }
.cr-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 29, 56, .93) 0%, rgba(7, 29, 56, .82) 36%, rgba(7, 29, 56, .44) 64%, rgba(7, 29, 56, .24) 100%), linear-gradient(180deg, rgba(7, 29, 56, .5) 0%, transparent 26%); }
body.careers-page { background: #071d38; }
body.careers-page #main > section { background: transparent; border: 0; }
.page-head.page-head-dark.cr-head { position: relative; display: grid; align-items: center; min-height: min(84vh, 780px); padding-bottom: clamp(56px, 7vw, 96px); color: #dbe9fb; }
.page-head.page-head-dark.cr-head h1 { color: #fff; max-width: 15ch; }
.page-head.page-head-dark.cr-head h1 .cr-accent { background: none; color: #a9d4ff; -webkit-text-fill-color: #a9d4ff; }
.page-head.page-head-dark.cr-head .lead { color: #d3e3f8; max-width: 34rem; }
.page-head.page-head-dark.cr-head .eyebrow { color: #7fe0ae; }
.page-head.page-head-dark.cr-head .breadcrumbs, .page-head.page-head-dark.cr-head .breadcrumbs a { color: #c4d8f3; }
.page-head.page-head-dark.cr-head .breadcrumbs a:hover { color: #fff; }
.page-head.page-head-dark.cr-head :focus-visible { outline-color: #fff; }
.page-head.page-head-dark.cr-head .btn:not(.btn-secondary) { background: #fff; color: #0a2f5e; }
.page-head.page-head-dark.cr-head .btn:not(.btn-secondary):hover { background: #eef5fe; }
.page-head.page-head-dark.cr-head .btn.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); box-shadow: none; }
.page-head.page-head-dark.cr-head .btn.btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cr-bg-note { position: absolute; right: 16px; bottom: 10px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(7, 29, 56, .62); color: #d3e3f8; font-size: .72rem; }

body.careers-page #main > section:not(.page-head) { padding-block: clamp(16px, 2.4vw, 32px); }
body.careers-page #main > section.section:not(.page-head) > .container { padding-block: clamp(32px, 5vw, 64px); border: 1px solid rgba(255, 255, 255, .6); border-radius: 28px; background: rgba(255, 255, 255, .9); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
body.careers-page #main > section:last-of-type { padding-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 761px) { body.careers-page #main > section.section:not(.page-head) > .container { width: calc(100% - 48px); padding-inline: clamp(24px, 4vw, 56px); } }
@media (max-width: 760px) {
  .page-head.page-head-dark.cr-head { min-height: 0; }
  .cr-bg img { object-position: 78% 30%; }
  .cr-bg::after { background: linear-gradient(180deg, rgba(7, 29, 56, .9) 0%, rgba(7, 29, 56, .78) 60%, rgba(7, 29, 56, .7) 100%); }
  body.careers-page #main > section.section:not(.page-head) > .container { width: calc(100% - 24px); border-radius: 20px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { body.careers-page #main > section.section:not(.page-head) > .container { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Open roles: one card for each opening (company app) ---------- */
.cr-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.cr-job { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.cr-job h3 { margin: 0; font-size: 1.2rem; }
.cr-job h3 a { color: inherit; text-decoration: none; }
.cr-job h3 a:hover { text-decoration: underline; }
.cr-job p { margin: 0; }
.cr-job .chips { margin: 0; }
.cr-job-dept { color: var(--blue-700); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cr-job-closing { color: var(--muted); font-size: .92rem; }
.cr-job .link-arrow { margin-top: auto; }
.cr-jobs-note { margin: 32px 0 0; color: var(--muted); }

/* ---------- One opening: /careers/<address>/ ---------- */
.jb-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.jb-facts li { display: inline-flex; align-items: center; gap: 8px; }
.jb-facts .icon { width: 18px; height: 18px; flex: none; }
.jb-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.jb-body h2 { margin: 40px 0 16px; font-size: 1.4rem; }
.jb-body h2:first-child { margin-top: 0; }
.jb-body p { max-width: 68ch; }
.jb-body .tick-list { gap: 12px; }
.jb-apply { padding: 24px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--card-shadow); }
.jb-apply h2 { margin-bottom: 12px; font-size: 1.2rem; }
.jb-apply .btn { margin-top: 8px; }
.jb-closing { color: var(--muted); font-size: .94rem; }
.jb-back { margin: 24px 0 0; }
@media (min-width: 961px) { .jb-apply { position: sticky; top: 104px; } }
@media (max-width: 960px) { .jb-layout { grid-template-columns: 1fr; } }
