/* ============================================================
   Job detail page — Gestion Zagora (loaded after app.css + site.css)
   A dark photo band with the title (the site's hero style), then two tabs, Overview
   (/jobs/<slug>) and Application (/jobs/<slug>/apply).
   · Laptop: the page uses the site's full width; the tabs take the main column and a sticky
     column on the right holds the role's details (Overview) or the application checklist
     (Application). The content starts below the photo band.
   · Phone: everything stacks and an Apply bar stays at the bottom of the Overview tab.
   Rules for the photo band start with .job-top so the black & white theme keeps it dark.
   ============================================================ */

.jp { max-width: var(--site-w); margin: 0 auto; padding: 0 var(--site-pad) 24px; }
.jp .btn, .job-top .btn { border-radius: 999px; letter-spacing: .02em; text-transform: none; font-size: .95rem; padding: 12px 24px; }
.jp .btn .icon, .job-top .btn .icon { width: 16px; height: 16px; }
.jp .btn.outline { background: transparent; color: var(--gold-3); border: 1.5px solid #c9a84c; }
.jp .btn.outline:hover { background: var(--gold-soft); color: var(--black); }

/* ---------- Title band ---------- */
.job-top { position: relative; isolation: isolate; overflow: hidden; background: #0d0c0a; color: #fff; }
.job-top::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, #c9a84c70, #c9a84c10); }
/* The same towers photo as the careers hero. */
.job-top-bg { position: absolute; z-index: -1; inset: 0; background: url('/brand/hero-towers.webp') 70% 45% / cover no-repeat; }
.job-top-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0c0af7, #0d0c0ad9 60%, #0d0c0ab3); }
.job-top-in { max-width: var(--site-w); margin: 0 auto; padding: 22px var(--site-pad) 26px; display: grid; gap: 14px; }
.job-top .jp-back { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: .84rem; font-weight: 500; color: #d9b967; }
.job-top .jp-back .icon { width: 16px; height: 16px; }
.job-top .jp-back:hover { color: #fff; }
.job-top .jp-title { display: grid; gap: 10px; min-width: 0; }
.job-top .jp-title .eyebrow { color: var(--gold); }
.job-top h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.14; max-width: 30ch; margin: 0; color: #fff; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.job-top h1::after { display: none; }
.job-top .jp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #c9c6bd; font-size: .9rem; }
.job-top .jp-meta span { display: inline-flex; align-items: center; gap: 7px; }
.job-top .jp-meta .icon { width: 15px; height: 15px; color: var(--gold); }
.job-top-cta { display: none; }
.job-top .job-top-share { background: #ffffff0f; color: #fff; border: 1px solid #ffffff3d; }
.job-top .job-top-share:hover { background: #ffffff1f; border-color: #ffffff80; color: #fff; }
.job-top :focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) {
  /* Extend the architecture toward the title, retaining a soft dark fade for readability. */
  .job-top-bg { left: auto; width: 78%; background: url('/brand/hero-towers.webp') right 45% / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%); }
  .job-top-bg::after { background: linear-gradient(90deg, #0d0c0a80, #0d0c0a1a 60%), linear-gradient(0deg, #0d0c0a66, transparent 55%); }
  /* Big screens: the photo stays inside the content width (ending where the content ends), centred
     on the main tower, and fades to black on both sides, so the window edges stay dark. */
  @media (min-width: 1500px) {
    /* Eased fades (several stops, not one straight ramp), so neither edge reads as a line. */
    .job-top-bg { right: calc((100% - var(--site-w)) / 2 - 120px); width: calc(var(--site-w) * .8); background-position: center 45%;
      --fade: linear-gradient(90deg, transparent 0%, #0000001f 8%, #00000066 17%, #000000b8 26%, #000 36%,
        #000 50%, #000000d9 58%, #000000a6 66%, #0000006b 75%, #00000038 84%, #00000014 92%, transparent 100%);
      -webkit-mask-image: var(--fade); mask-image: var(--fade); }
  }
  .job-top-in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; row-gap: 18px; padding-top: 34px; padding-bottom: 40px; }
  .job-top .jp-back { grid-column: 1 / -1; }
  .job-top .jp-title { gap: 14px; }
  .job-top-cta { display: flex; gap: 10px; }
  .job-top-cta .btn { min-height: 48px; }
}

/* ---------- Layout ---------- */
/* Phone: details, then the tabs. Laptop: tabs on the left, a sticky column on the right. */
.jp-layout { display: grid; gap: 20px; padding-top: 20px; grid-template-areas: "side" "main"; }
.jp-side { grid-area: side; min-width: 0; }
.jp-main { grid-area: main; }
.jp-progress { display: none; }
@media (min-width: 900px) {
  .jp-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side"; gap: 32px; align-items: start; padding-top: 32px; }
  .jp-side { position: sticky; top: calc(var(--site-top-h, 0px) + 20px); display: grid; gap: 14px; }
  .jp-side .card { box-shadow: 0 12px 32px #2620130f; }
  .jp-sheet { box-shadow: 0 12px 32px #2620130f; }
  /* On the application, the checklist replaces the details (the role is already in the title). */
  .jp-progress { display: block; }
  .is-apply .jp-details { display: none; }
}
@media (min-width: 1200px) { .jp-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }

/* Application checklist */
.jp-progress.card { margin: 0; padding: 22px 22px 18px; border-radius: 12px; border-top: 2px solid #c9a84c; }
.jp-progress .eyebrow { color: var(--gold-2); }
.jp-pg-role { margin-top: 6px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--black); }
.jp-pg-top { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.jp-pg-top b { color: var(--gold-3); }
.jp-pg-bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.jp-pg-bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--gold-grad); transition: width .45s cubic-bezier(.22, .8, .24, 1); }
.jp-pg-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.jp-pg-steps a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; transition: background .15s; }
.jp-pg-steps a:hover { background: var(--bg); color: var(--black); }
.jp-pg-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-size: .72rem; font-weight: 700; transition: all .2s; }
.jp-pg-state { font-size: .72rem; color: var(--muted); }
.jp-pg-steps li.current a { background: var(--bg); color: var(--black); font-weight: 600; }
.jp-pg-steps li.current .jp-pg-dot { border-color: var(--black); color: var(--black); }
.jp-pg-steps li.done .jp-pg-dot { background: var(--black); border-color: var(--black); color: var(--gold); font-size: 0; }
.jp-pg-steps li.done .jp-pg-dot::before { content: '✓'; font-size: .78rem; }
.jp-pg-steps li.done .jp-pg-state { color: var(--ok); font-weight: 600; }
.jp-pg-help { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.jp-pg-help a { color: var(--gold-3); text-decoration: underline; overflow-wrap: anywhere; }

/* Details card */
.jp-details.card { margin: 0; padding: 4px 22px; border-radius: 12px; }
.jp-details > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.jp-details > div:last-child { border-bottom: 0; }
.jp-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-3); }
.jp-ic .icon { width: 16px; height: 16px; }
.jp-details dt { margin: 0; font-size: .78rem; font-weight: 500; color: var(--muted); }
.jp-details dd { margin: 1px 0 0; font-size: 1rem; font-weight: 500; color: var(--black); overflow-wrap: break-word; }
@media (max-width: 899px) {
  /* Phone and tablet: two compact columns so the role is close to the top. */
  .jp-details.card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; padding: 4px 16px; }
  .jp-details > div { grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; padding: 13px 0; }
  .jp-details > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .jp-ic { width: 28px; height: 28px; }
  .jp-ic .icon { width: 14px; height: 14px; }
  .jp-details dd { font-size: .93rem; }
}
@media (max-width: 359px) {
  /* Very narrow phones: one column, so values like "Property Management" are not split mid-word. */
  .jp-details.card { grid-template-columns: minmax(0, 1fr); }
  .jp-details > div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}
.jp .jp-side-apply, .jp-side-note { display: none; }
@media (min-width: 900px) {
  .jp .jp-side-apply { display: flex; width: 100%; padding-block: 14px; }
  .jp-side-note { display: flex; gap: 10px; margin: 0; padding: 0 4px; font-size: .8rem; line-height: 1.55; color: var(--muted); }
  .jp-side-note .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold-2); }
}

/* ---------- Tabs ---------- */
.jp-main { min-width: 0; }
.jp :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--gold-3); outline-offset: 4px; }
.jp :is(.fsec, .jp-prose section) { scroll-margin-top: calc(var(--site-top-h, 0px) + 76px); }
.jp .btn { min-height: 44px; }
@media (max-width: 599px) {
  .jp-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
  .job-top-in { gap: 18px; padding-block: 24px 28px; }
  .job-top .jp-meta { font-size: .8rem; gap: 8px 14px; }
  .jp-prose { padding: 24px 20px 28px; gap: 24px; }
}
.jp-tabs { display: flex; position: sticky; top: var(--site-top-h, 0px); z-index: 20; padding: 0 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.jp-tabs { transition: border-radius .15s; }
.jp-tabs.is-stuck { border-radius: 0; border-top-color: transparent; box-shadow: 0 8px 18px -10px #0d0c0a40; }
.jp-tabs a { flex: 1; text-align: center; padding: 16px 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 1rem; font-weight: 500; }
.jp-tabs a:hover { color: var(--black); }
.jp-tabs a[aria-current="page"] { color: var(--gold-3); border-bottom-color: #c9a84c; font-weight: 600; }
@media (min-width: 900px) { .jp-tabs a { flex: 0 0 auto; padding-inline: 22px; } }
/* "Why Gestion Zagora" is too long for three tabs on a phone: it reads "Why us" there.
   The full name stays for screen readers. */
.jp-tab-short { display: none; }
@media (max-width: 699px) {
  .jp-tab-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .jp-tab-short { display: inline; }
  .jp-tabs a { white-space: nowrap; padding-inline: 6px; font-size: .95rem; }
}
.jp-sheet { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
/* Phones: no card around the role and the form, so the text gets the whole width. The tabs run
   edge to edge; the content keeps only the page's own side margin. */
@media (max-width: 599px) {
  .jp .jp-tabs { margin-inline: calc(-1 * var(--site-pad)); padding-inline: 0; border-inline: 0; border-radius: 0; }
  .jp .jp-sheet { background: none; border: 0; border-radius: 0; box-shadow: none; }
  .jp .jp-prose, .jp .jp-form { padding-inline: 0; }
  .jp .jp-details.card { padding-inline: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
}

/* ---------- Overview ---------- */
.jp-prose { display: grid; gap: 30px; padding: 28px 22px 32px; }
@media (min-width: 600px) { .jp-prose { padding: 36px 40px 40px; } }
.jp-prose section { display: grid; gap: 16px; }
.jp-prose section + section { padding-top: 26px; border-top: 1px solid var(--line); }
.jp-prose h2 { font-size: 1.65rem; line-height: 1.15; margin: 0; }
.jp-prose h2::after { display: none; }
.jp-prose p { margin: 0; max-width: 68ch; color: var(--ink-2); line-height: 1.7; }
.role-lead { font-size: 1.04rem; color: var(--ink) !important; text-wrap: pretty; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; max-width: 68ch; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.75; font-size: .95rem; text-wrap: pretty; }
.check-list .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-3); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-list .ck .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.jp-pay { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 10px; background: var(--gold-soft); }
.jp-pay > .icon { width: 22px; height: 22px; flex: none; color: var(--gold-3); }
.jp-pay b { display: block; font-size: 1.05rem; color: var(--black); }
.jp-pay span { font-size: .88rem; color: var(--ink-2); }
.jp-about { padding-top: 30px; border-top: 1px solid var(--line); }
.jp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 4px 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 640px) { .jp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jp-stats div { padding: 14px 16px; background: var(--card); }
.jp-stats dt { margin: 0; font-size: .74rem; color: var(--muted); }
.jp-stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--black); font-variant-numeric: lining-nums tabular-nums; }
.jp-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.jp-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.jp-steps li:last-child { padding-bottom: 0; }
.jp-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line-2); }
.jp-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #c9a84c; background: var(--card); color: var(--gold-3); font-size: .86rem; font-weight: 600; }
.jp-steps b { display: block; color: var(--black); font-weight: 600; }
.jp-steps span { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.jp-next li.done .n { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.jp-next li.done .n .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.jp-next li.done::after { background: var(--ok); opacity: .45; }

/* ---------- Application ---------- */
.jp-form { display: grid; gap: 30px; padding: 24px 20px 30px; scroll-margin-top: 16px; }
@media (min-width: 600px) { .jp-form { padding: 32px 40px 40px; } }
.jp-form-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.jp-form-head h2 { margin: 0; font-size: 1.8rem; }
.jp-form-head h2::after { display: none; }
.time-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.time-chip .icon { width: 14px; height: 14px; color: var(--gold-2); }
#err { scroll-margin-top: 16px; }
#err:empty { display: none; }
#err .alert { margin: 0; }
.jp .field-err { display: flex; align-items: center; gap: 7px; margin: 7px 0 0; color: var(--danger); font-size: .84rem; font-weight: 500; line-height: 1.4; animation: jp-err-in .18s ease-out; }
.jp .field-err::before { content: "!"; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.consent:has([aria-invalid="true"]) { border-color: var(--danger); }
.jp-file:has([aria-invalid="true"]) { border-color: var(--danger); background: var(--danger-soft); }
.toggle-group:has([aria-invalid="true"]) { border-color: var(--danger); }
@keyframes jp-err-in { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .field-err { animation: none; } }

/* "Autofill from resume": the first thing on the form */
.jp-autofill { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px 16px; align-items: center; padding: 20px; border-radius: 12px; border: 1.5px solid #c9a84c; background: var(--bg); transition: box-shadow .15s, background .15s; }
.jp-autofill.over { background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(201,168,76,.18); }
.jp-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-3); }
.jp-badge .icon { width: 22px; height: 22px; }
.jp-af-text { min-width: 0; }
.jp-af-text h3 { margin: 0 0 2px; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--black); }
.jp-af-text p { margin: 0; font-size: .93rem; color: var(--muted); }
.jp .jp-upload { margin: 0; cursor: pointer; }
.jp-autofill .pf-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) {
  .jp-autofill { grid-template-columns: 44px minmax(0, 1fr); }
  .jp .jp-upload { grid-column: 1 / -1; width: 100%; }
}

/* Sections */
.jp-group { display: grid; gap: 16px; min-width: 0; container-type: inline-size; scroll-margin-top: calc(var(--site-top-h, 0px) + 72px); }
.jp-group > h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.jp-group > h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.jp-group .field { margin: 0; }
.jp-form label:not(.consent):not(.toggle):not(.btn):not(.xf) { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.jp-form .req::after, .req-h::after { content: ' *'; color: var(--gold-2); }
.jp-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .jp-form select, .jp-form textarea { border-radius: 8px; padding: 12px 14px; font-size: 1rem; }
.opt { font-size: .62rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-left: 6px; background: var(--bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; text-transform: uppercase; vertical-align: 1px; }
.q-field label:first-child { margin-bottom: 10px; }
.fg { display: grid; gap: 16px; }
.fg.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fg.c-years { grid-template-columns: minmax(0, 340px); }
@container (max-width: 460px) { .fg.c2, .fg.c-years { grid-template-columns: minmax(0, 1fr); } }

/* Resume file row */
.jp-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: .93rem; min-width: 0; transition: border-color .15s, background .15s; }
.jp-file.over { border-color: #c9a84c; background: var(--gold-soft); }
.jp-file.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.jp-file-ic { width: 38px; height: 38px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--gold-3); }
.jp-file-ic .icon { width: 18px; height: 18px; }
.jp-file.has-file .jp-file-ic { color: var(--ok); }
.jp-file-name { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.jp-file-name b, .jp-file-name > span { color: var(--black); font-weight: 600; }
.jp-file-name small { font-size: .8rem; color: var(--muted); }
.jp-form .jp-file-pick { margin: 0 !important; color: var(--gold-3) !important; cursor: pointer; white-space: nowrap; }
.jp-file:has(#resume:focus-visible) { outline: 2px solid #c9a84c; outline-offset: 2px; }

/* Law 25 notes */
.auto-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.auto-notice .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold-2); }
.auto-notice b { color: var(--ink-2); font-weight: 600; }
.auto-notice a { color: var(--gold-3); text-decoration: underline; overflow-wrap: anywhere; }
.jp-terms { margin: 12px 0 0; text-align: center; font-size: .78rem; line-height: 1.55; color: var(--muted); }
.jp-terms a { color: var(--gold-3); text-decoration: underline; }

/* Resume autofill status and tags */
.pf-status { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.pf-status.ok { color: var(--ok); }
.pf-status.warn { color: var(--gold-2); flex-wrap: wrap; }
.pf-retry { padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 600 .78rem var(--sans); cursor: pointer; }
.pf-retry:hover { background: var(--gold-soft); }
.pf-status.busy::before { content: ''; width: 14px; height: 14px; flex: none; border: 2px solid var(--line-2); border-top-color: #c9a84c; border-radius: 50%; animation: pf-spin .8s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-status .icon { width: 15px; height: 15px; flex: none; }
.pf-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-2); font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: none; vertical-align: 1px; }
input.prefilled, select.prefilled { border-color: #c9a84c; background-color: #fffcf3; }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .86rem; color: var(--ink-2); line-height: 1.6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #c9a84c; }
.consent + .consent { margin-top: -6px; }
.consent-opt { background: transparent; border-style: dashed; }
.consent-opt b { color: var(--black); font-weight: 600; }
.jp .submit-btn { width: 100%; padding: 16px; font-size: 1.02rem; gap: 10px; }

/* Thank-you */
.jp .success-panel { padding: 44px 22px; }
.jp .success-panel .eyebrow { color: var(--gold-2); }
.jp .success-panel .check { width: 72px; height: 72px; border: 0; background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-soft) 45%, transparent); margin-bottom: 22px; }
.jp .success-panel .check .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.jp-next { max-width: 420px; margin: 8px auto 26px; text-align: left; }

/* ---------- Phone: Apply bar ---------- */
.jp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 12px var(--site-pad) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.jp-bar .btn { border-radius: 999px; text-transform: none; letter-spacing: .02em; font-size: .95rem; }
.jp-bar .btn.gold { flex: 1; }
.jp-bar .jp-bar-share { padding-inline: 14px; }
.jp-bar .icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .jp-bar { display: none; } }
@media (max-width: 899px) { .job-page:has(.jp-bar) .site-footer { padding-bottom: 84px; } }

/* ---------- Overview ↔ Application (View Transitions API) ----------
   The title and details card exist in both views and stay put; the tab body slides. */
.jp-sheet { view-transition-name: job-body; }
.site-top { view-transition-name: site-top; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(job-body) { animation: vt-out .22s ease-in both; }
::view-transition-new(job-body) { animation: vt-in .45s cubic-bezier(.22, .8, .24, 1) .06s both; }
[data-vt-dir=back]::view-transition-old(job-body) { animation-name: vt-out-back; }
[data-vt-dir=back]::view-transition-new(job-body) { animation-name: vt-in-back; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes vt-out-back { to { opacity: 0; transform: translateY(12px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateY(-16px); } }
.fade-in .jp-sheet { animation: vt-in .45s cubic-bezier(.22, .8, .24, 1) both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .fade-in .jp-sheet { animation: none; }
  .pf-status.busy::before { animation: none; }
}

/* Keep the shared footer at the viewport edge on short role and error pages. */
.job-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.job-page > main { flex: 1 0 auto; }

/* Yes / No toggles */
.toggle-group { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.toggle-group input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group .toggle { margin: 0; padding: 11px 30px; font-size: .88rem; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--ink-2); background: #fff; cursor: pointer; transition: all .15s; }
.toggle-group .toggle + input + .toggle { border-left: 1px solid var(--line-2); }
.toggle-group .toggle:hover { background: var(--bg); }
.toggle-group input:checked + .toggle { background: var(--black); color: var(--gold); }
.toggle-group input:focus-visible + .toggle { outline: 2px solid var(--gold); outline-offset: -2px; }


.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* Work history: compact summary rows (LinkedIn / Workday style), edited in place.
   Everything lines up with the other fields: no indent column, no boxes inside boxes. */
.exp-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; }
.exp-title-label { font-size: .67rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.exp-list:empty { border-top: 0; }
.exp-row { border-bottom: 1px solid var(--line); }
.exp-row[data-mode=view] .exp-edit, .exp-row[data-mode=edit] .exp-view { display: none; }

/* Summary row */
.exp-view { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; }
.exp-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.exp-ico svg { width: 18px; height: 18px; }
.exp-row[data-prefilled] .exp-ico { background: var(--gold-soft); border-color: #ead9a6; color: var(--gold-3); }
.exp-sum { min-width: 0; }
.sum-title { display: block; color: var(--black); font-weight: 600; font-size: .98rem; line-height: 1.35; }
.sum-meta { display: block; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.sum-desc { margin: 8px 0 0; padding-left: 0; list-style-position: inside; color: var(--ink-2); font-size: .84rem; line-height: 1.5; }
.sum-desc:empty { display: none; }
.sum-desc li::marker { color: var(--gold); }
.sum-desc li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-desc li.more { list-style: none; margin-left: 0; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.exp-actions { display: flex; gap: 4px; }
.exp-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2);
  font: 600 .8rem var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.exp-btn svg { width: 14px; height: 14px; }
.exp-btn:hover, .exp-btn:focus-visible { background: var(--bg); color: var(--black); }
.exp-btn.icon { width: 32px; padding: 0; justify-content: center; color: #a19d93; }
.exp-btn.icon:hover, .exp-btn.danger:hover, .exp-btn.icon:focus-visible, .exp-btn.danger:focus-visible { color: var(--danger); background: var(--danger-soft); }
.exp-btn.danger { color: var(--muted); }

/* Editing in place */
.exp-edit { padding: 16px 0 18px; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .5fr) minmax(0, .5fr); gap: 12px; }
.xf { display: grid; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.xf > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.xf > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.xf input, .xf textarea { margin: 0; }
.xf-desc { grid-column: 1 / -1; }
.xf-desc textarea { min-height: 84px; resize: vertical; line-height: 1.55; font-size: .9rem; }
.exp-edit-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.exp-done { gap: 6px; }
.exp-done svg { width: 14px; height: 14px; }

/* Add a position: a dashed tile while the list is empty, a quiet link afterwards */
.exp-add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 2px; border: 0; background: none; color: var(--gold-3);
  font: 600 .88rem var(--sans); cursor: pointer; }
.exp-add svg { width: 15px; height: 15px; }
.exp-add:hover { color: var(--black); }
.exp-add.is-empty { display: flex; width: 100%; justify-content: center; margin-top: 0; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: 8px; background: #fcfbf8; color: var(--ink-2); }
.exp-add.is-empty:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--black); }
.exp-add:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.cover-field { margin-top: 26px; }
.cover-field textarea { min-height: 96px; }
@container (max-width: 640px) { .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) {
  .exp-view { grid-template-columns: 34px minmax(0, 1fr); }
  .exp-ico { width: 34px; height: 34px; }
  .exp-actions { grid-column: 2; margin-left: -10px; }
  .exp-grid { grid-template-columns: minmax(0, 1fr); }
}

/* City suggestions (combobox) */
.cb { position: relative; }
.cb-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 300px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 12px 32px rgba(13,12,10,.12); }
.cb-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.cb-list li[aria-selected=true] { background: var(--gold-soft); }
.cb-city { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-city b { color: var(--black); font-weight: 700; }
.cb-code { color: var(--muted); }
.cb-detail { flex: none; font-size: .76rem; color: var(--muted); }
@media (max-width: 420px) { .cb-detail { display: none; } }

/* ---------- Similar roles ---------- */
.job-similar { padding: 56px 0 80px; }
.job-similar .similar a h3 { font-size: 1.45rem; }
.job-similar .jc-tags { margin-top: 4px; }

/* Portal preview of an unsaved job (/admin/preview/job): a reminder pinned to the bottom. */
.preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: var(--black); color: #e9e4d8;
  border: 1px solid rgba(201,168,76,.45); box-shadow: 0 10px 30px rgba(13,12,10,.25); font-size: .82rem; line-height: 1.35; }
.preview-bar .icon { width: 16px; height: 16px; color: var(--gold); flex: none; }
.preview-bar b { color: var(--gold); }
@media (max-width: 640px) { .preview-bar { border-radius: 14px; bottom: 10px; } }
@media (max-width: 899px) { .job-page:has(.jp-bar) .preview-bar { bottom: 88px; } }
/* Accommodation notice: under "How we hire" on the role, and at the top of the application form. */
.jp-prose .acc-notice { margin-top: 18px; }
/* Notices are boxes, not reading text: they span the column instead of the 68ch prose measure. */
.jp-prose .auto-notice { max-width: none; }
.jp-form .acc-notice { margin: 0 0 18px; }

/* Bot protection: the honeypot field is off-screen and out of the tab order (people never see it). */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile, when switched on: usually invisible; shows a check box only if it must. */
.ts-box { margin: 0 0 12px; display: flex; justify-content: center; }
.ts-box:empty { display: none; }
