/* SJP jobs.css v1.4 - 3rd Oct 2026 (role cards and journey steps sit level - no list-item gap; the plain page header).
   v1.3 - 2nd Oct 2026 (three-photo collage, as the signed-off review page). v1.2 - 2nd Oct 2026 (as /sjpv2: the one-role note, the footer's Cookie settings button, and the privacy
   notice page - a text block with no heading runs full width, with bullet points and a highlighted quote).
   v1.1 - 2nd Oct 2026 (client amends, as the review page /sjpv2: no round badge, no rolling "Now open" card,
   photos no longer move on hover; the role page, Blocks/_roledetail.cshtml).
   v1.0 - 2nd Oct 2026. The single jobs page design (approved static review page): the feature hero as a
   photo collage, the live roles board under it (Blocks/_jobsboard.cshtml), and the numbered
   journey (Blocks/_steps.cshtml). Loaded after concept.css; uses its colours, fonts and buttons. */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Header with no menu (a one-page site): the accessibility and roles buttons sit on the right at every width. */
.bar-single .header-inner .a11y{margin-left:auto}
@media(max-width:800px){.bar-single .header-cta{display:inline-flex;min-height:40px;padding:8px 30px 8px 10px}}

/* ---------- Hero ---------- */
.cx-hero{position:relative;overflow:hidden;background:var(--navy);color:#fff;padding-block:clamp(56px,7vw,104px) clamp(64px,8vw,120px)}
.cx-hero-glow{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(60% 70% at 88% 18%,#3fdcc82e 0,#3fdcc800 62%),
  radial-gradient(50% 60% at 8% 100%,#1f6fb02e 0,#1f6fb000 70%)}
.cx-hero-glow:after{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff14 1px,transparent 1.2px);background-size:26px 26px;mask-image:linear-gradient(110deg,#000 0,#0000 55%)}
.cx-hero-grid{position:relative;display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(36px,6vw,96px);align-items:center}
.cx-hero .eyebrow{color:#cad6e7}
.cx-hero .eyebrow:before{background:var(--accent)}
.cx-hero h1{font-size:clamp(3rem,5.2vw,5.6rem);line-height:1.02}
.cx-hero h1 span{display:block;color:var(--accent);position:relative;width:fit-content}
.cx-hero h1 span:after{content:'';position:absolute;left:0;right:0;bottom:-.06em;height:.07em;background:currentColor;transform-origin:left;transform:scaleX(0);animation:cx-sweep 1s .55s cubic-bezier(.2,.7,.2,1) forwards}
.cx-hero .lead{color:#cdd7e6;margin-top:28px;max-width:520px}
.cx-hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:38px}
.cx-hero .btn-secondary{color:#fff;border-color:#ffffff66}
.cx-hero .btn-secondary:hover{background:#ffffff14;color:#fff;border-color:#fff}
.cx-hero .btn-secondary>span:after{filter:brightness(0) invert(1)}
.cx-facts{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;justify-content:start;gap:clamp(26px,4vw,56px);margin:52px 0 0;padding-top:28px;border-top:1px solid #ffffff26}
.cx-facts dt{font:700 clamp(2.4rem,3.6vw,3.4rem)/1 var(--head);letter-spacing:-.03em;color:#fff}
.cx-facts dd{margin:10px 0 0;color:#b9c6d9;font-size:.72rem;letter-spacing:.02em}

.cx-collage{position:relative;justify-self:end;width:min(100%,640px);display:grid;grid-template-columns:1.35fr 1fr;gap:14px;height:clamp(420px,40vw,560px)}
.cx-collage-one{grid-template-columns:1fr}
.cx-collage:before{content:'';position:absolute;right:-26px;top:-26px;width:46%;height:58%;background-image:radial-gradient(#3fdcc866 1.6px,transparent 1.8px);background-size:16px 16px;z-index:0}
.cx-tile{position:relative;margin:0;overflow:hidden;border-radius:22px;z-index:1;box-shadow:0 24px 60px #00000040}
.cx-tile img{width:100%;height:100%;object-fit:cover}
.cx-tile-main{border-radius:22px 22px 22px 110px}
.cx-tile-main:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0a142800 50%,#0a14288c 100%)}
.cx-tile-side{border-radius:22px 90px 22px 22px;outline:2px solid #3fdcc8;outline-offset:6px;margin-block:38px}
html.js .cx-tile{animation:cx-reveal .9s cubic-bezier(.2,.7,.2,1) both}
html.js .cx-tile-side{animation-delay:.15s}
/* v1.3: three photos - main left over two rows, framed image top right, third photo bottom right */
.cx-collage-three{grid-template-rows:1fr 1fr}
.cx-collage-three .cx-tile-main{grid-row:1 / span 2}
.cx-tile-top{border-radius:22px 90px 22px 22px}
.cx-tile-bottom{outline:2px solid #3fdcc8;outline-offset:6px}
html.js .cx-tile-top{animation-delay:.12s}
html.js .cx-tile-bottom{animation-delay:.24s}

/* ---------- Roles board ---------- */
.cx-roles{background:var(--panel);padding-block:clamp(70px,8vw,124px);scroll-margin-top:110px}
.cx-roles-head{display:grid;grid-template-columns:1fr auto;gap:36px;align-items:end;margin-bottom:26px}
.cx-roles .section-head{margin-bottom:0}
.cx-filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.cx-filters button{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:8px 10px 8px 18px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font:500 .78rem/1 var(--body);cursor:pointer;transition:background .2s,border-color .2s,color .2s,transform .2s}
.cx-filters button:hover{border-color:var(--green);transform:translateY(-1px)}
.cx-filters button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.cx-n{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border-radius:999px;background:var(--panel);color:var(--ink);font-size:.7rem;font-weight:600}
.cx-filters button[aria-pressed=true] .cx-n{background:var(--accent);color:var(--navy)}
html:not(.js) .cx-filters{display:none}
.cx-count{margin:0 0 22px;color:var(--muted);font-size:.78rem}
.cx-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cx-card[hidden]{display:none}
.cx-grid>li+li,.cx-steps>li+li{margin-top:0}
.cx-card article{position:relative;height:100%;display:flex;flex-direction:column;padding:26px 26px 22px;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:transform .28s cubic-bezier(.2,.7,.2,1),box-shadow .28s,border-color .28s}
.cx-card article:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--cx-c,var(--accent));transform:scaleY(.25);transform-origin:top;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.cx-card article:hover,.cx-card article:focus-within{transform:translateY(-5px);box-shadow:0 22px 48px #0a14281f;border-color:transparent}
.cx-card article:hover:before,.cx-card article:focus-within:before{transform:scaleY(1)}
.cx-card[data-programme=graduate]{--cx-c:#3fdcc8;--cx-t:#07685e}
.cx-card[data-programme=apprenticeship]{--cx-c:#07685e;--cx-t:#07685e}
.cx-card[data-programme=placement]{--cx-c:#0a1428;--cx-t:#0a1428}
.cx-tag{align-self:flex-start;margin:0 0 18px;padding:6px 12px;border-radius:999px;background:color-mix(in srgb,var(--cx-c,#3fdcc8) 16%,transparent);color:var(--cx-t,#07685e);font-size:.66rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.cx-card h3{font-size:clamp(1.45rem,1.7vw,1.75rem);line-height:1.12;margin-bottom:20px}
.cx-meta{display:grid;gap:10px;margin:0 0 26px;font-size:.8rem}
.cx-meta div{display:grid;grid-template-columns:76px 1fr;gap:10px}
.cx-meta dt{color:var(--muted)}
.cx-meta dd{margin:0;color:var(--ink);font-weight:500}
.cx-go{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:50px;padding:12px 18px;border-radius:12px;background:var(--navy);color:#fff;text-decoration:none;font-size:.8rem;font-weight:600;transition:background .2s}
.cx-go .ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.cx-go:hover{background:var(--accent);color:var(--navy)}
.cx-go:hover .ic{transform:translateX(5px)}
.cx-go:after{content:'';position:absolute;inset:0;border-radius:inherit}
.cx-empty{padding:48px 32px;border:1px dashed var(--line);border-radius:18px;background:var(--card);text-align:center}
.cx-empty h3{margin-bottom:10px}
.cx-empty p{color:var(--muted);font-size:.9rem}
html.js .cx-card.cx-enter article{animation:cx-rise .55s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 55ms)}

/* ---------- Journey (Steps) ---------- */
.cx-journey{padding-block:clamp(72px,8vw,124px);background:var(--bg)}
.cx-journey .section-head{max-width:720px}
.cx-steps{--cx-gap:clamp(22px,3vw,48px);--cx-cols:3;list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(var(--cx-cols),minmax(0,1fr));gap:var(--cx-gap);position:relative}
.cx-steps:before,.cx-steps:after{content:'';position:absolute;left:32px;right:calc(100% / var(--cx-cols) - var(--cx-gap) * (var(--cx-cols) - 1) / var(--cx-cols) - 32px);top:31px;height:2px}
.cx-steps:before{background:var(--line)}
.cx-steps:after{background:var(--accent);transform-origin:left;transform:scaleX(var(--cx-draw,1));transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
html.js .cx-steps:not(.cx-drawn){--cx-draw:0}
.cx-step{position:relative;z-index:1}
.cx-step-num{display:grid;place-items:center;width:64px;height:64px;margin-bottom:26px;border-radius:50%;background:var(--bg);border:2px solid var(--accent);font:700 1.35rem/1 var(--head);color:var(--ink);transition:background .3s,color .3s}
.cx-step:hover .cx-step-num{background:var(--accent);color:var(--navy)}
.cx-step h3{font-size:clamp(1.4rem,1.8vw,1.8rem);margin-bottom:12px}
.cx-step p{color:var(--muted);font-size:.86rem;line-height:1.85;max-width:34ch}

/* ---------- Scroll entrances (as on the Oaklin site; jobs.js adds .rv-on only while motion is allowed) ---------- */
main{overflow-x:clip}
html.rv-on [data-rv]{opacity:0}
html.rv-on [data-rv].rv-in{animation:rv-fade 1s ease both;animation-delay:var(--rv-delay,0s)}
html.rv-on [data-rv=left].rv-in{animation-name:rv-left}
html.rv-on [data-rv=right].rv-in{animation-name:rv-right}
html.rv-on [data-rv=up].rv-in{animation-name:rv-up}
@keyframes rv-fade{from{opacity:0}to{opacity:1}}
@keyframes rv-left{from{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:none}}
@keyframes rv-right{from{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:none}}
@keyframes rv-up{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:none}}

/* ---------- Motion ---------- */
@keyframes cx-sweep{to{transform:scaleX(1)}}
@keyframes cx-reveal{from{clip-path:inset(0 0 100% 0 round 22px);transform:translateY(16px)}to{clip-path:inset(0 0 0 0 round 0);transform:none}}
@keyframes cx-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  html.js .cx-tile,html.js .cx-card.cx-enter article{animation:none}
  .cx-hero h1 span:after{animation:none;transform:scaleX(1)}
  .cx-steps:after{transition:none}
  html.js .cx-steps:not(.cx-drawn){--cx-draw:1}
}

/* ---------- Dark mode and high contrast ---------- */
html[data-theme=dark] .cx-card[data-programme=placement]{--cx-c:#9fb2cc;--cx-t:#d7e1ee}
html[data-theme=dark] .cx-card[data-programme=apprenticeship],html[data-theme=dark] .cx-card[data-programme=graduate]{--cx-t:#76e5d8}
html[data-theme=dark] .cx-go{background:#3fdcc8;color:#0a1428}
html[data-theme=dark] .cx-go:hover{background:#8aeadd}
html[data-theme=dark] .cx-filters button[aria-pressed=true]{background:#3fdcc8;border-color:#3fdcc8;color:#0a1428}
html[data-theme=dark] .cx-filters button[aria-pressed=true] .cx-n{background:#0a1428;color:#fff}
html[data-contrast='1'] .cx-hero .lead,html[data-contrast='1'] .cx-facts dd{color:#fff}
html[data-contrast='1'] .cx-card article,html[data-contrast='1'] .cx-filters button{border-color:var(--ink)}
html[data-contrast='1'] .cx-meta dt,html[data-contrast='1'] .cx-step p{color:var(--ink)}

/* ---------- Layout breakpoints ---------- */
@media(max-width:1100px){
  .cx-hero-grid{grid-template-columns:1fr}
  .cx-collage{justify-self:stretch;width:100%;max-width:640px;margin:22px auto 0;height:clamp(360px,62vw,520px)}
  .cx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cx-roles-head{grid-template-columns:1fr}
  .cx-filters{justify-content:flex-start}
}
@media(max-width:800px){
  .cx-hero h1 span:after{display:none}
  .cx-collage{grid-template-columns:1.5fr 1fr;grid-template-rows:clamp(260px,80vw,380px) auto;gap:10px;height:auto}
  .cx-collage-one{grid-template-columns:1fr}
  .cx-collage:before{right:-10px;top:-14px}
  .cx-tile-main{border-radius:18px 18px 18px 70px}
  .cx-tile-side{border-radius:18px 56px 18px 18px;outline-offset:4px;margin-block:22px}
  .cx-collage-three{grid-template-rows:clamp(130px,40vw,190px) clamp(130px,40vw,190px)}
  .cx-tile-top{border-radius:18px 56px 18px 18px}
  .cx-tile-bottom{outline-offset:4px}
  .cx-steps{grid-template-columns:1fr;gap:34px}
  .cx-steps:before,.cx-steps:after{left:31px;right:auto;top:32px;bottom:32px;width:2px;height:auto;transform-origin:top;transform:scaleY(var(--cx-draw,1))}
  .cx-steps:before{transform:none}
  .cx-step{display:grid;grid-template-columns:64px 1fr;column-gap:22px}
  .cx-step-num{grid-row:span 2;margin:0}
}
@media(max-width:680px){
  .cx-grid{grid-template-columns:1fr}
  .cx-facts{grid-auto-flow:row;grid-template-columns:repeat(2,1fr);gap:18px}
  .cx-facts dd{font-size:.66rem}
  .cx-filters button{min-height:42px;padding-left:14px;font-size:.74rem}
}
@media(forced-colors:active){.cx-card article,.cx-filters button,.cx-go{border:1px solid ButtonText}}

.cx-steps-wrap:before,.cx-steps-wrap:after{display:none}

/* ---------- Role page (Blocks/_roledetail.cshtml) ---------- */
.jd-head{background:var(--panel);padding-block:clamp(36px,5vw,64px) clamp(44px,6vw,80px)}
.jd-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-bottom:22px;color:var(--ink);font-size:.8rem;font-weight:500;text-decoration:none}
.jd-back .ic{width:20px;height:20px;transition:transform .2s}
.jd-back:hover span{text-decoration:underline}
.jd-back:hover .ic{transform:translateX(-4px)}
.jd-head h1{font-size:clamp(2.4rem,4.6vw,4.2rem);line-height:1.05;max-width:900px;margin:0}
.jd-facts{display:flex;flex-wrap:wrap;gap:14px 44px;margin:28px 0 0}
.jd-facts dt{color:var(--muted);font-size:.72rem}
.jd-facts dd{margin:4px 0 0;font-weight:500;font-size:.9rem}
.jd-head .actions{margin-top:32px}
.jd-hint{margin:16px 0 0;color:var(--muted);font-size:.8rem}
.jd-body{padding-block:clamp(48px,6vw,88px)}
.jd-text{max-width:780px;font-size:.92rem;line-height:1.85}
.jd-text h2,.jd-text h3{font-size:clamp(1.6rem,2.4vw,2.1rem);line-height:1.15;margin:44px 0 14px}
.jd-text>:first-child{margin-top:0}
.jd-text p{margin:0 0 16px;color:var(--ink)}
.jd-text ul{margin:0 0 18px;padding-left:1.3em;list-style:disc}
.jd-text ol{margin:0 0 18px;padding-left:1.5em;list-style:decimal}
.jd-text li{margin:0 0 8px;padding-left:.3em;list-style:inherit}
.jd-text li::marker{color:var(--green)}
html[data-contrast='1'] .jd-hint,html[data-contrast='1'] .jd-facts dt{color:var(--ink)}
.jd-head .jd-hint+.jd-facts{margin-top:22px}
@media(max-width:560px){.jd-facts{gap:12px 28px}.jd-head .actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.jd-back .ic{transition:none}}

/* ---------- v1.2: one-role note, footer cookie button, privacy notice text ---------- */
.cx-note{display:flex;align-items:flex-start;gap:12px;margin:34px 0 0;color:var(--muted);font-size:.8rem;max-width:760px}
.cx-note .ic{width:20px;height:20px;flex:none;margin-top:3px;color:var(--green)}
.footer nav .footer-cookie{display:inline-flex;align-items:center;min-height:44px;width:fit-content;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}
.footer nav .footer-cookie>span{position:relative;background-image:linear-gradient(180deg,transparent 2%,#3fdcc8 0);transition:.5s;background-repeat:no-repeat;background-size:0% 100%;border-bottom:1px solid #3fdcc8;line-height:1.6}
.footer nav .footer-cookie:is(:hover,:focus-visible)>span{background-size:100% 100%;color:#0a1428}
.footer nav .footer-cookie:focus-visible{outline:3px solid #3fdcc8;outline-offset:3px}
.richtext-grid:has(>.section-head:empty){grid-template-columns:1fr}
.richtext-grid:has(>.section-head:empty)>.section-head{display:none}
.richtext-grid:has(>.section-head:empty) .richtext-body{max-width:780px;font-size:.92rem;line-height:1.85;color:var(--ink)}
.richtext-body h2{font-size:clamp(1.6rem,2.4vw,2.1rem);line-height:1.15;margin:44px 0 14px}
.richtext-body>h2:first-child{margin-top:0}
.richtext-body ul{margin:0 0 18px;padding-left:1.3em;list-style:disc}
.richtext-body ol{margin:0 0 18px;padding-left:1.5em;list-style:decimal}
.richtext-body li{margin:0 0 8px;padding-left:.3em;list-style:inherit}
.richtext-body li::marker{color:var(--green)}
.richtext-body blockquote{margin:4px 0 22px;padding:18px 20px;border-left:4px solid var(--accent);background:var(--panel)}
.richtext-body blockquote p{margin:0}
html[data-contrast='1'] .cx-note{color:var(--ink)}
@media(prefers-reduced-motion:reduce){.footer nav .footer-cookie>span{transition:none}}
