/* =====================================================================
   TeamKids Jobs board (page-jobs-board.php, /jobs/). Loaded only on that
   template, and every rule is scoped to .tk-jb (template-only DOM; no
   header/footer/global selectors). Tokens come from tk-careers.css.
   Each job row and sidebar category sets --jb-c (role colour) inline.
   ===================================================================== */

.tk-jb *, .tk-jb *::before, .tk-jb *::after { box-sizing: border-box; }
.tk-jb { overflow-x: clip; color: var(--tk-ink); }
/* Impreza's header is position:fixed; pad like the careers home does. */
.l-header.pos_fixed ~ .l-main > .tk-jb { padding-top: var(--header-height, 150px); }
.tk-jb p, .tk-jb h1, .tk-jb h3, .tk-jb ul { margin: 0; padding: 0; }
.tk-jb h1, .tk-jb h3 { margin-bottom: 0 !important; }
.tk-jb ul { list-style: none; }
.tk-jb li { margin: 0; }
.tk-jb a { text-decoration: none; transition: color var(--tk-dur), background var(--tk-dur), transform var(--tk-dur); }
.tk-jb button { font-family: inherit; margin: 0; }
.tk-jb [hidden] { display: none !important; }
.tk-jb .tk-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero + filter bar ---------- */
.tk-jb__hero { position: relative; overflow: hidden; background: var(--tk-blue); padding: 72px 0 64px; }
.tk-jb__hero-circle { position: absolute; top: -160px; right: -140px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.07); }
.tk-jb .tk-jb__eyebrow { font-family: var(--tk-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 14px; line-height: 1.2; color: var(--tk-yellow); margin-bottom: 14px; }
.tk-jb .tk-jb__h1 { font-family: var(--tk-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(46px, 6.4vw, 84px); line-height: .86; color: #fff; margin: 0 0 18px !important; padding: 0; }
.tk-jb .tk-jb__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 34px; text-wrap: pretty; }

.tk-jb__filters { display: flex; flex-wrap: wrap; gap: 12px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.18); margin: 0; }
.tk-jb .tk-jb__filters .tk-jb__input,
.tk-jb .tk-jb__filters .tk-jb__select {
	min-width: 0; min-height: 52px; height: auto; margin: 0; border: 1.5px solid var(--tk-border); border-radius: 12px;
	font-family: var(--tk-font-body); line-height: 1.3; color: var(--tk-ink); background-color: #fff; outline: none; box-shadow: none;
	transition: border-color var(--tk-dur);
}
.tk-jb .tk-jb__filters .tk-jb__input { flex: 2 1 220px; padding: 15px 18px; }
.tk-jb .tk-jb__filters .tk-jb__select { flex: 1 1 150px; padding: 15px 16px; cursor: pointer; }
.tk-jb .tk-jb__filters .tk-jb__select--role { flex-basis: 170px; }
.tk-jb .tk-jb__filters .tk-jb__input:focus,
.tk-jb .tk-jb__filters .tk-jb__select:focus { border-color: var(--tk-orange); }
.tk-jb .tk-jb__filters .tk-jb__input::placeholder { color: var(--tk-muted-2); opacity: 1; }
/* Site-wide inline CSS forces `form input[type=text], form select { font-size:14px !important;
   padding-left:14px !important }`. Restore the design. */
.tk-jb .tk-jb__filters .tk-jb__input { font-size: 15.5px !important; padding-left: 18px !important; }
.tk-jb .tk-jb__filters .tk-jb__select { font-size: 15.5px !important; padding-left: 16px !important; }
.tk-jb .tk-jb__nojs { min-height: 52px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--tk-orange); color: #fff; font-weight: 600; }

/* ---------- Body grid ---------- */
.tk-jb__body { background: var(--tk-surface); padding: 56px 0 96px; }
.tk-jb__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 901px) {
	.tk-jb__grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.tk-jb__side { position: sticky; top: 96px; }
	/* Keep the sticky sidebar clear of Impreza's sticky header. */
	.l-header.pos_fixed ~ .l-main .tk-jb__side { top: calc(var(--header-sticky-height, 70px) + 26px); }
}

/* ---------- Meta row ---------- */
.tk-jb__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 18px; min-height: 44px; }
.tk-jb__count { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--tk-ink); }
.tk-jb__live { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-green); flex: 0 0 auto; }
.tk-jb__sync { font-size: 14px; color: var(--tk-muted-2); }
.tk-jb .tk-jb__clear {
	display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 4px;
	background: transparent; border: 0; box-shadow: none; color: var(--tk-blue); font-family: var(--tk-font-body);
	font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer;
}
.tk-jb .tk-jb__clear:hover { color: var(--tk-orange); background: transparent; }

/* ---------- Job rows ---------- */
.tk-jb__list { display: flex; flex-direction: column; gap: 12px; }
.tk-jb__job { background: #fff; border-radius: 20px; box-shadow: 0 8px 24px rgba(29,29,29,.05); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tk-jb__job:hover { box-shadow: 0 18px 44px rgba(29,29,29,.12); transform: translateY(-2px); }
.tk-jb a.tk-jb__job-link, .tk-jb a.tk-jb__job-link:hover { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 22px 26px; color: inherit; }
.tk-jb__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--jb-c); flex: 0 0 auto; }
.tk-jb__job-main { flex: 1 1 240px; min-width: 0; }
.tk-jb__title { display: block; font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--tk-ink); margin-bottom: 8px; }
.tk-jb__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tk-jb__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--tk-grey-text-2); background: var(--tk-surface); border-radius: 100px; padding: 5px 12px; }
.tk-jb__chip .bi { font-size: 12px; line-height: 1; }
.tk-jb__chip--cat { font-weight: 600; background: var(--jb-c); color: #fff; }
.tk-jb__chip--cat.is-dark { color: var(--tk-ink); }
.tk-jb__job-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tk-jb__date { font-size: 13px; color: var(--tk-muted-2); }
.tk-jb__apply { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: var(--tk-orange); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 100px; transition: background var(--tk-dur); }
.tk-jb__apply .bi { font-size: 13px; line-height: 1; }
.tk-jb__job:hover .tk-jb__apply { background: var(--tk-orange-hover); }

/* ---------- Empty state ---------- */
.tk-jb__empty { background: #fff; border-radius: 22px; padding: 56px 32px; text-align: center; box-shadow: 0 10px 30px rgba(29,29,29,.06); }
.tk-jb__empty > .bi { display: block; font-size: 34px; line-height: 1; color: #CFCFCF; margin-bottom: 16px; }
.tk-jb .tk-jb__h3 { font-family: var(--tk-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 26px; line-height: 1; color: var(--tk-ink); margin-bottom: 10px !important; padding: 0; }
.tk-jb__empty p { font-size: 16px; line-height: 1.55; color: var(--tk-grey-text-2); margin-bottom: 22px; }

/* ---------- Pills ---------- */
.tk-jb a.tk-jb__pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 600; border-radius: 100px; color: #fff; }
.tk-jb a.tk-jb__pill--ink { background: var(--tk-ink); font-size: 15.5px; padding: 14px 30px; }
.tk-jb a.tk-jb__pill--ink:hover { background: var(--tk-orange); color: #fff; }
.tk-jb a.tk-jb__pill--orange { background: var(--tk-orange); font-size: 14.5px; padding: 12px 22px; }
.tk-jb a.tk-jb__pill--orange:hover { background: var(--tk-orange-hover); color: #fff; }

/* ---------- Sidebar ---------- */
.tk-jb__side { display: flex; flex-direction: column; gap: 14px; }
.tk-jb__card { background: #fff; border-radius: 20px; padding: 24px 24px 26px; box-shadow: 0 8px 24px rgba(29,29,29,.05); }
.tk-jb .tk-jb__h3--sm { font-size: 21px; margin-bottom: 16px !important; }
.tk-jb__cats { display: flex; flex-direction: column; gap: 4px; }
.tk-jb .tk-jb__cat {
	width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 0;
	background: transparent; box-shadow: none; cursor: pointer; font-family: var(--tk-font-body); font-size: 15px; font-weight: 500;
	line-height: 1.3; text-transform: none; letter-spacing: normal; color: var(--tk-ink); transition: background .15s;
}
.tk-jb .tk-jb__cat:hover { background: var(--tk-surface); color: var(--tk-ink); }
.tk-jb .tk-jb__cat[aria-pressed="true"] { background: var(--tk-orange-tint); font-weight: 600; }
.tk-jb__cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jb-c); flex: 0 0 auto; }
.tk-jb__cat-label { flex: 1; text-align: left; }
.tk-jb__cat-n { font-size: 13px; font-weight: 500; color: var(--tk-muted-2); }
.tk-jb__card--ink { background: var(--tk-ink); color: #fff; box-shadow: none; padding: 24px; }
.tk-jb__card--ink .tk-jb__h3 { color: #fff; margin-bottom: 8px !important; }
.tk-jb__bell { display: block; font-size: 22px; line-height: 1; color: var(--tk-yellow); margin-bottom: 12px; }
.tk-jb__card--ink p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.tk-jb .tk-jb__caption { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-size: 13px; line-height: 1.4; color: var(--tk-muted-2); }
.tk-jb__caption .bi { font-size: 15px; line-height: 1; }

@media (max-width: 600px) {
	.tk-jb .tk-wrap { padding: 0 20px; }
	.tk-jb__hero { padding: 48px 0 44px; }
	.tk-jb__body { padding: 36px 0 64px; }
	.tk-jb a.tk-jb__job-link, .tk-jb a.tk-jb__job-link:hover { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.tk-jb *, .tk-jb *::before, .tk-jb *::after { transition: none !important; }
	.tk-jb__job:hover { transform: none; }
}
