/* Before-and-after slider (from the reuse library: builders/before-after-slider-2), in this site's colours.
   A real range input sits over the picture, so a finger, a mouse, the arrow keys and screen readers all work. */
.ba { position: relative; overflow: hidden; border-radius: 20px; background: var(--paper-2, #ebeae2); aspect-ratio: 4 / 3; user-select: none; -webkit-user-select: none; touch-action: pan-y; --ba: 50%; box-shadow: var(--shadow-lg); }
.ba-layer { position: absolute; inset: 0; }
.ba-layer > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { clip-path: inset(0 0 0 var(--ba)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba); width: 0; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .14); }
.ba-knob { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pencil, #f28c3b); box-shadow: 0 0 0 4px #fff, 0 8px 20px rgb(21 35 42 / .35); display: grid; place-items: center; color: var(--ink, #15232a); transition: transform .2s; }
.ba-knob svg { width: 26px; height: 26px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-handle .ba-knob { outline: 3px solid var(--ink, #15232a); outline-offset: 5px; }
.ba:hover .ba-knob { transform: translate(-50%, -50%) scale(1.06); }
.ba-tag { position: absolute; top: 12px; padding: 7px 11px; border-radius: 999px; background: rgb(21 35 42 / .8); color: #fff; font: 700 .72rem/1 var(--head, system-ui); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; transition: opacity .2s; }
.ba-tag.before { left: 12px; }
.ba-tag.after { right: 12px; background: var(--gum, #2c5a4e); }
.ba-ill { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / .88); color: var(--ink-2, #3a4950); font: 700 .64rem/1.2 var(--head, system-ui); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.ba[data-side="after"] .ba-tag.before, .ba[data-side="before"] .ba-tag.after { opacity: 0; }
/* Without JavaScript, show the "after" picture whole. */
@media (scripting: none) { .ba-after { clip-path: none; } .ba-range, .ba-handle, .ba-tag.before { display: none; } }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) { .ba[data-ba-intro] { --ba: 97%; } }
@media (prefers-reduced-motion: no-preference) { .ba.swap .ba-layer > img { animation: ba-swap .45s ease both; } }
@keyframes ba-swap { from { opacity: .2; } to { opacity: 1; } }
.ba-hint { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; color: var(--ink-3, #56646a); }
.ba-hint svg { width: 18px; height: 18px; color: var(--pencil-d, #b3511b); }

/* A job: the slider with what changed beside it. */
.job { display: grid; gap: 20px; align-items: center; scroll-margin-top: calc(var(--head-h, 64px) + 20px); }
@media (min-width: 900px) { .job { grid-template-columns: 1.15fr .85fr; gap: 48px; } .job:nth-of-type(even) .job-art { order: 2; } }
.job + .job { margin-top: clamp(52px, 8vw, 96px); }
.job-art { margin: 0; }
.job-art figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-3, #56646a); }
.job h2, .job h3 { margin-bottom: .35em; }
.job .scope { display: inline-block; margin-bottom: .6em; font: 700 .74rem/1.2 var(--head, system-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--pencil-d, #b3511b); }
.changed { list-style: none; margin: 0 0 1.3em; padding: 0; display: grid; gap: 9px; }
.changed li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 12px; align-items: start; }
.changed b { justify-self: start; font: 700 .68rem/1.7 var(--head, system-ui); letter-spacing: .1em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--gum-l, #dce8e1); color: var(--gum-d, #1d4037); white-space: nowrap; }
.changed li.out b { background: var(--paper-2, #ebeae2); color: var(--ink-2, #3a4950); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2, #c7c8bd); background: var(--card, #fff); color: var(--ink, #15232a); font: 600 .94rem/1 var(--head, system-ui); text-decoration: none; }
.jump a:hover { border-color: var(--ink, #15232a); }
