/* =====================================================================
   TeamKids single job listing (single-job.php, /jobs/<slug>/). Loaded
   only on single sbm_job pages, and every rule is scoped to .tk-jl
   (template-only DOM; no header/footer/global selectors). Tokens come
   from tk-careers.css. The description is JobAdder rich text cleaned by
   tk_careers_job_body_html(), so .tk-jl__desc styles plain h2/p/ul/ol.
   ===================================================================== */

.tk-jl *, .tk-jl *::before, .tk-jl *::after { box-sizing: border-box; }
.tk-jl { overflow-x: clip; color: var(--tk-ink); }
/* Impreza's .l-canvas is overflow:hidden, which makes it the sticky
   container and stops the sidebar sticking. clip still clips, but isn't
   a scroll container. Only applies when this template is on the page. */
.l-canvas:has(.tk-jl) { overflow: clip; }
/* Impreza's header is position:fixed; pad like the other careers templates. */
.l-header.pos_fixed ~ .l-main > .tk-jl { padding-top: var(--header-height, 150px); }
.tk-jl p, .tk-jl h1, .tk-jl h2, .tk-jl ul, .tk-jl ol, .tk-jl dl, .tk-jl dd { margin: 0; padding: 0; }
/* Site-wide CSS sets h1..h6 { margin-bottom: 10px !important }. */
.tk-jl h1, .tk-jl h2 { margin-bottom: 0 !important; }
.tk-jl a { text-decoration: none; transition: color var(--tk-dur), background var(--tk-dur), transform var(--tk-dur); }
.tk-jl .tk-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.tk-jl__hero { position: relative; overflow: hidden; background: var(--tk-orange); padding: 34px 0 56px; }
.tk-jl__hero-circle { position: absolute; top: -180px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,255,255,.09); }
.tk-jl a.tk-jl__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 14px; color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 500; }
.tk-jl a.tk-jl__back:hover { color: #fff; }
.tk-jl__back .bi { font-size: 14px; line-height: 1; }
.tk-jl__hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: end; }
.tk-jl__eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,.2); color: #fff; font-family: var(--tk-font-display); font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; }
.tk-jl .tk-jl__h1 { margin: 0 0 22px !important; padding: 0; font-family: var(--tk-font-display); font-weight: 800; font-size: clamp(42px, 5.4vw, 72px); line-height: .86; letter-spacing: .03em; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.tk-jl .tk-jl__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tk-jl .tk-jl__chip { margin: 0; padding: 9px 18px; border-radius: 100px; background: rgba(255,255,255,.92); color: var(--tk-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.tk-jl__photo-wrap { display: flex; justify-content: flex-end; }
.tk-jl__photo { width: min(280px, 46vw); height: min(230px, 38vw); -webkit-clip-path: url(#tk-blob-14); clip-path: url(#tk-blob-14); }
.tk-jl__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* ---------- Body: main + sticky sidebar ---------- */
.tk-jl .tk-jl__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px; align-items: start; padding-top: 60px; padding-bottom: 96px; }
@media (min-width: 901px) {
	.tk-jl .tk-jl__grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); }
	.tk-jl__side { position: sticky; top: 110px; }
	/* Keep the sticky sidebar clear of Impreza's sticky header. */
	.l-header.pos_fixed ~ .l-main .tk-jl__side { top: max(110px, calc(var(--header-sticky-height, 70px) + 26px)); }
}
.tk-jl__main { min-width: 0; }

.tk-jl .tk-jl__lead { margin: 0 0 30px; font-size: 20px; line-height: 1.55; font-weight: 400; color: var(--tk-ink); }
.tk-jl .tk-jl__bullets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; list-style: none; }
.tk-jl .tk-jl__bullets li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 100px; background: var(--tk-orange-tint); color: var(--tk-ink); font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.tk-jl__bullet-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--tk-orange); }

/* Description: whatever JobAdder emits, as h2 / p / ul / ol. */
.tk-jl .tk-jl__desc { font-size: 17px; line-height: 1.65; color: var(--tk-ink-2); overflow-wrap: break-word; }
.tk-jl .tk-jl__desc > * + * { margin-top: 14px; }
.tk-jl .tk-jl__desc h2 { margin: 26px 0 0; font-family: var(--tk-font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--tk-ink); }
.tk-jl .tk-jl__desc > h2:first-child { margin-top: 0; }
.tk-jl .tk-jl__desc h2 + * { margin-top: 14px; }
.tk-jl .tk-jl__desc strong { font-weight: 600; color: var(--tk-ink); }
.tk-jl .tk-jl__desc a { color: var(--tk-blue); }
.tk-jl .tk-jl__desc a:hover { color: var(--tk-orange); }
.tk-jl .tk-jl__desc ul, .tk-jl .tk-jl__desc ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; }
.tk-jl .tk-jl__desc ul { list-style: disc; }
.tk-jl .tk-jl__desc ol { list-style: decimal; }
.tk-jl .tk-jl__desc li { margin: 0; padding-left: 2px; }
.tk-jl .tk-jl__desc li::marker { color: var(--tk-orange); }
/* Emoji-led lines (✅ ✨ ✔️) grouped into a list: the emoji is the marker. */
.tk-jl .tk-jl__desc ul.tk-jl__marks { list-style: none; padding-left: 0; }
.tk-jl .tk-jl__desc ul.tk-jl__marks li { padding-left: 0; }

/* ---------- Sidebar ---------- */
.tk-jl__card { padding: 28px; border: 1.5px solid var(--tk-border); border-radius: 24px; background: #fff; box-shadow: 0 16px 44px rgba(29,29,29,.08); }
.tk-jl .tk-jl__card-title { margin-bottom: 6px; font-family: var(--tk-font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--tk-ink); }
.tk-jl .tk-jl__card-text { margin-bottom: 22px; font-size: 15.5px; line-height: 1.5; color: var(--tk-grey-text-2); }
.tk-jl a.tk-jl__pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 100px; font-family: var(--tk-font-body); font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.tk-jl a.tk-jl__pill--orange { display: flex; width: 100%; padding: 16px; background: var(--tk-orange); color: #fff; font-size: 16.5px; }
.tk-jl a.tk-jl__pill--orange:hover, .tk-jl a.tk-jl__pill--orange:focus-visible { background: var(--tk-orange-hover); color: #fff; }
.tk-jl a.tk-jl__pill--ink { padding: 18px 42px; background: var(--tk-ink); color: #fff; font-size: 17px; }
.tk-jl a.tk-jl__pill--ink:hover, .tk-jl a.tk-jl__pill--ink:focus-visible { transform: translateY(-2px); color: #fff; }

.tk-jl .tk-jl__meta { display: flex; flex-direction: column; gap: 13px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--tk-border); font-size: 15px; line-height: 1.45; }
.tk-jl__meta-row { display: flex; justify-content: space-between; gap: 12px; }
.tk-jl .tk-jl__meta dt { flex: 0 0 auto; color: var(--tk-muted-2); font-weight: 400; }
.tk-jl .tk-jl__meta dd { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; color: var(--tk-ink); }

.tk-jl__more { margin-top: 20px; padding: 24px 26px; border-radius: 24px; background: var(--tk-surface); }
.tk-jl .tk-jl__more-eyebrow { margin-bottom: 14px; font-family: var(--tk-font-display); font-weight: 700; font-size: 13.5px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--tk-muted-2); }
.tk-jl a.tk-jl__more-job { display: block; padding: 12px 0; border-bottom: 1px solid var(--tk-border-3); }
.tk-jl a.tk-jl__more-job:last-child { border-bottom: 0; padding-bottom: 0; }
.tk-jl__more-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--tk-ink); transition: color var(--tk-dur); }
.tk-jl__more-meta { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--tk-muted-2); }
.tk-jl a.tk-jl__more-job:hover .tk-jl__more-title { color: var(--tk-orange); }

/* ---------- CTA band ---------- */
.tk-jl__cta { padding: 72px 0; background: var(--tk-orange); }
.tk-jl__cta-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; }
.tk-jl .tk-jl__cta-h2 { margin: 0 0 14px !important; font-family: var(--tk-font-display); font-weight: 800; font-size: clamp(38px, 4.6vw, 56px); line-height: .9; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.tk-jl .tk-jl__cta-text { max-width: 480px; margin: 0 auto 30px; font-size: 18.5px; line-height: 1.5; font-weight: 300; color: rgba(255,255,255,.9); }

/* ---------- Inline apply (dialog + JobAdder form iframe) ---------- */
.tk-jl__apply { width: min(860px, calc(100vw - 32px)); max-width: none; height: min(920px, calc(100dvh - 32px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--tk-shadow-float); overflow: hidden; color: var(--tk-ink); font-family: var(--tk-font-body); }
.tk-jl__apply[open] { display: flex; flex-direction: column; }
.tk-jl__apply::backdrop { background: rgba(29,29,29,.6); }
.tk-jl__apply-bar { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 26px; border-bottom: 1px solid var(--tk-border); }
.tk-jl__apply-head { flex: 1 1 auto; min-width: 0; }
.tk-jl__apply-eyebrow { display: block; font-family: var(--tk-font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tk-orange); }
.tk-jl__apply-title { display: block; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.tk-jl .tk-jl__apply-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--tk-surface); color: var(--tk-ink); font-size: 18px; line-height: 1; box-shadow: none; cursor: pointer; transition: background var(--tk-dur); }
.tk-jl .tk-jl__apply-close:hover, .tk-jl .tk-jl__apply-close:focus-visible { background: var(--tk-orange-tint); color: var(--tk-ink); }
.tk-jl__apply-body { position: relative; flex: 1 1 auto; min-height: 0; }
.tk-jl__apply-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--tk-muted-2); }
.tk-jl__apply-loading[hidden] { display: none; }
.tk-jl__apply-frame { position: relative; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
@media (max-width: 600px) {
	.tk-jl__apply { width: 100vw; height: 100dvh; border-radius: 0; }
	.tk-jl__apply-bar { padding-left: 18px; }
}
html.tk-jl-locked { overflow: hidden; }

@media (max-width: 600px) {
	.tk-jl .tk-wrap { padding: 0 20px; }
	.tk-jl__cta-inner { padding: 0 20px; }
	.tk-jl .tk-jl__grid { padding-top: 44px; padding-bottom: 72px; gap: 44px; }
	.tk-jl__photo-wrap { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.tk-jl a, .tk-jl__more-title { transition: none; }
	.tk-jl a.tk-jl__pill--ink:hover { transform: none; }
}
