/* Jobs list (/poea-jobs/) - BPOAI clone. Agent J.
   Spec: vault 12 BPOAI Clone Spec/jobs-layout.md (layout) + jobs-motion.md (motion). Tokens from base.css. */

/* ---------- Hero (JL §1) ---------- */
.jl-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.jl-hero__orb { top: -192px; right: 0; width: 300px; height: 300px; opacity: .5; }
@media (min-width: 768px) { .jl-hero__orb { width: 460px; height: 460px; } }
.jl-hero__in { position: relative; padding-top: 112px; padding-bottom: 32px; }
@media (min-width: 640px) { .jl-hero__in { padding-top: 128px; } }

.jl-crumbs { margin-bottom: 20px; }
.jl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.jl-crumbs a { border-radius: var(--radius-sm); transition: color .15s var(--ease); }
.jl-crumbs__sep { opacity: .5; }
.jl-crumbs [aria-current] { color: var(--text-secondary); }
@media (hover: hover) { .jl-crumbs a:hover { color: var(--primary-light); } }

.jl-h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.025em; color: var(--text-primary); text-wrap: balance; }
@media (min-width: 768px) { .jl-h1 { font-size: 36px; line-height: 40px; } }
.jl-lead { margin-top: 12px; max-width: 672px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
@media (min-width: 640px) { .jl-lead { font-size: 16px; line-height: 24px; } }
/* In-text link (owner SEO rule: keep the live page's internal link). Article-link style, GL §6.2. */
.jl-lead a { color: var(--primary-light); text-decoration: underline; text-decoration-color: rgba(0, 176, 255, .4); text-underline-offset: 2px; border-radius: 4px; transition: color .15s var(--ease); }
@media (hover: hover) { .jl-lead a:hover { color: var(--text-primary); } }

/* ---------- Filter panel (JL §2) ---------- */
.jl-filters { position: relative; z-index: 30; padding-top: 24px; scroll-margin-top: 96px; }
.jl-panel {
	border-radius: 16px;
	padding: 16px;
	background: var(--primary-50);
	border: 1px solid var(--primary-glow);
	box-shadow: var(--card-shadow);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}
@media (min-width: 640px) { .jl-panel { padding: 20px; } }
.jl-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1280px) { .jl-row { flex-direction: row; align-items: center; } }

.jl-search { position: relative; display: block; min-width: 0; }
@media (min-width: 1280px) { .jl-search { flex: 1; min-width: 256px; } }
.jl-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; }
.jl-search__input {
	display: block; width: 100%; height: 48px; padding: 0 16px 0 44px;
	border-radius: 24px; font-size: 14px; line-height: 20px; font-weight: 400;
	background: var(--input-bg); border: 1px solid var(--input-border); color: var(--input-text);
	outline: none; box-shadow: none; transition: all .2s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.jl-search__input::placeholder { color: var(--input-placeholder); opacity: 1; }
.jl-search__input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.jl-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none; width: 12px; height: 12px; cursor: pointer;
	background: currentColor; color: var(--primary-light);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dropdown group (JL §2.3) */
.jl-dds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .jl-dds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .jl-dds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
	.jl-dds { display: flex; flex-shrink: 0; gap: 10px; }
	.jl-dd { width: 168px; }
}

/* Dropdown trigger (JL §2.5) */
.jl-dd { position: relative; min-width: 0; }
.jl-dd__box {
	display: flex; align-items: center; width: 100%; height: 44px;
	border-radius: 24px; background: var(--background-secondary);
	border: 1px solid var(--input-border); box-shadow: none;
	transition: all .2s var(--ease);
}
.jl-dd__btn {
	display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 42px;
	padding: 0 8px 0 12px; border-radius: 24px;
	font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; color: var(--input-text);
	outline: none;
}
.jl-dd__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-secondary); }
.jl-dd__chev { color: var(--text-faint); transition: transform .2s var(--ease); }
/* POEA fix (JM §13): bpoai shows no ring on Tab focus. */
.jl-dd__btn:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.jl-dd__d[open] .jl-dd__box { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.jl-dd__d[open] .jl-dd__chev { transform: rotate(180deg); }
.jl-dd.is-active .jl-dd__box { background: var(--primary-100); border-color: var(--primary); }
.jl-dd.is-active .jl-dd__d[open] .jl-dd__box { box-shadow: 0 0 0 3px var(--primary-100); }
.jl-dd.is-active .jl-dd__chev { color: var(--primary); }
/* AA: bpoai uses --text-faint here; 70% ink measured 4.41:1 on the active tint, so use --text-secondary (QA R4-3). */
.jl-dd__prefix { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.jl-dd__value { color: var(--primary-light); }
/* 24x24 target box (WCAG 2.5.8, QA R4-4); the visible 20px circle is the ::before, so the look is unchanged. */
.jl-dd__clear {
	position: relative;
	display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; margin-right: 6px;
	border-radius: 9999px; color: var(--primary-light);
	transition: color .15s var(--ease);
}
.jl-dd__clear::before { content: ""; position: absolute; inset: 2px; border-radius: 9999px; background: var(--primary-100); transition: background-color .15s var(--ease); }
.jl-dd__clear .icon { position: relative; }
.jl-dd__clear .icon { width: 12px; height: 12px; }

/* Popover (JL §2.6) - mounts instantly, no animation (JM §13 "copy") */
.jl-pop {
	position: absolute; left: 0; right: 0; top: 44px; margin-top: 8px; z-index: 50;
	overflow: hidden; border-radius: 24px;
	background: var(--popover-bg); border: 1px solid var(--border-medium);
	box-shadow: 0 20px 50px -12px rgba(2, 6, 23, .28), 0 4px 12px rgba(2, 6, 23, .10);
}
.jl-pop__search { position: relative; padding: 8px; border-bottom: 1px solid var(--border-subtle); }
.jl-pop__search .icon { position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.jl-pop__search input {
	display: block; width: 100%; height: 32px; padding: 0 8px 0 32px; border-radius: 16px;
	font-size: 12px; line-height: 16px; outline: none;
	background: var(--input-bg); border: 1px solid var(--input-border); color: var(--input-text);
}
.jl-pop__search input::placeholder { color: var(--input-placeholder); opacity: 1; }
.jl-pop__search input:focus-visible { border-color: var(--primary); }
.jl-pop__list { max-height: 256px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; outline: none; }
.jl-pop__list a {
	display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 8px 10px;
	border-radius: 16px; font-size: 14px; line-height: 20px; cursor: pointer;
	color: var(--text-secondary); font-weight: 400;
	transition: color .15s var(--ease), background-color .15s var(--ease);
}
.jl-opt__label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jl-opt__check { width: 14px; height: 14px; visibility: hidden; }
.jl-pop__list a[aria-current="true"] { background: var(--primary-50); color: var(--primary-light); font-weight: 600; }
.jl-pop__list a[aria-current="true"] .jl-opt__check { visibility: visible; }
/* Cursor (keyboard / pointer) is distinct from selected: stronger tint plus a 2px ring (QA R4-8). */
.jl-pop__list a:focus-visible { background: var(--primary-100); box-shadow: inset 0 0 0 2px var(--primary); }
.jl-pop__none { padding: 0 14px; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.jl-pop__none:not(:empty) { padding-bottom: 10px; }

.jl-clear { margin-top: 12px; }
.jl-clear__btn {
	display: inline-flex; align-items: center;
	height: 36px; padding: 0 16px; border-radius: 16px;
	font-size: 12px; line-height: 16px; font-weight: 600;
	background: var(--background-secondary); border: 1px solid var(--border-medium); color: var(--text-secondary);
	transition: all .2s var(--ease);
}

/* ---------- Results bar (JL §3) ---------- */
.jl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 16px 0; }
.jl-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.jl-count strong { font-weight: 700; color: var(--text-primary); }
.jl-count:empty { display: none; }
.jl-bar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1; margin-left: auto; } /* POEA fix JL §3.4 */
.jl-sort {
	display: inline-flex; align-items: center; padding: 2px; border-radius: 16px;
	background: var(--card-bg); border: 1px solid var(--border-medium);
}
.jl-sort__icon { display: inline-flex; margin: 0 4px 0 8px; color: var(--text-faint); }
.jl-sort__icon .icon { width: 14px; height: 14px; }
.jl-sort a {
	display: inline-flex; align-items: center;
	height: 32px; padding: 0 10px; border-radius: 12px;
	font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
	background: transparent; color: var(--text-secondary); transition: all .2s var(--ease);
}
.jl-sort a[aria-current="true"] { background: var(--primary-50); color: var(--primary-light); }
/* 375: sort + toggle must share row 2 (QA R3-2; bpoai overflows here instead). */
@media (max-width: 399.98px) {
	.jl-bar__r { gap: 6px; }
	.jl-sort a { padding: 0 8px; }
	.jl-sort__icon { margin: 0 2px 0 6px; }
	.jl-toggle { padding: 0 10px; }
}
.jl-toggle {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 16px;
	font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
	background: var(--card-bg); border: 1px solid var(--border-medium); color: var(--text-secondary);
	transition: all .2s var(--ease);
}
.jl-toggle .icon { width: 14px; height: 14px; }
.jl-toggle[aria-pressed="true"], .jl-toggle[aria-current="true"] { background: var(--primary-50); border-color: var(--primary); color: var(--primary-light); }

/* ---------- Grid (JL §4) ---------- */
.jl-results { padding-bottom: 96px; }
.jl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .jl-grid { gap: 24px; } }
@media (min-width: 768px) { .jl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .jl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Card (JL §5, JM §5-6) ---------- */
.jl-card {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border-radius: 16px; background: var(--card-bg); border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: all .3s var(--ease);
	animation: fadeInUp .6s ease-out backwards;
	animation-delay: calc(min(var(--i, 0), 8) * 40ms);
}
.jl-card__bar { position: absolute; inset: 0 0 auto; height: 3px; opacity: .4; transition: opacity .3s var(--ease); }
.jl-bar--cyan { background: var(--stat-cyan); }
.jl-bar--emerald { background: var(--stat-emerald); }
.jl-bar--violet { background: var(--stat-violet); }
.jl-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 24px; min-width: 0; }
.jl-card__head { display: flex; flex-direction: column; gap: 4px; }
.jl-card__row { display: flex; align-items: flex-start; gap: 12px; }
.jl-logo-wrap { flex-shrink: 0; transition: transform .3s var(--ease); }
.jl-logo {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(to bottom right, #fff, var(--gray-100));
	border: 1px solid var(--border-subtle);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03), 0 0 12px rgba(0, 176, 255, .18);
}
.jl-logo img { width: 100%; height: 100%; object-fit: contain; }
.jl-logo--initials { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--primary-light); }
/* Dark: the light tile goes grey under the initials, so initials use the dark tile (POEA addition, no bpoai source). */
[data-theme="dark"] .jl-logo--initials { background: linear-gradient(to bottom right, #1b1a2e, #100f1a); border-color: #ffffff1a; }
.jl-card__titles { flex: 1; min-width: 0; }
.jl-card__title { font-size: 15px; line-height: 1.375; font-weight: 700; letter-spacing: -.025em; color: var(--text-primary); }
.jl-card__title a {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
	border-radius: 8px; transition: color .15s var(--ease);
}
.jl-card__company { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 4px; height: 20px; }
.jl-card__agency {
	min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left;
	font-size: 14px; line-height: 20px; color: var(--text-secondary); border-radius: 8px;
	padding: 2px 0; margin: -2px 0; /* 24px tall target, same visual (QA R3-6) */
	text-underline-offset: 2px; transition: color .15s var(--ease);
}
/* 24x24 target; negative margins keep bpoai's 16px footprint and the 6px gap (QA R3-6). */
.jl-card__profile { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; margin: -2px -4px; border-radius: 8px; color: var(--text-faint); transition: color .15s var(--ease); }
.jl-card__profile .icon { width: 14px; height: 14px; }
.jl-card__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 56px; }
.jl-card__excerpt {
	margin-top: 16px; font-size: 13px; line-height: 1.625; color: var(--text-muted);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.jl-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; min-width: 0; }
.jl-plain { display: inline-flex; align-items: center; padding: 0 2px; font-size: 11px; line-height: 16.5px; font-weight: 500; color: var(--text-faint); }
.jl-chip-link { transition: opacity .15s var(--ease); }
.jl-chip-loc { max-width: 100%; min-width: 0; }
.jl-chip-loc span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.jl-card__actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.jl-apply.btn-primary { flex: 1; height: 40px; padding: 0 12px; font-size: 14px; line-height: 20px; min-width: 0; }
.jl-save {
	display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 16px;
	background: var(--card-bg); border: 1px solid var(--border-medium); color: var(--text-faint);
	transition: all .2s var(--ease);
}
.jl-save .icon { transition: transform .2s; }
.jl-save.is-saved { background: var(--primary-50); border-color: var(--primary); color: var(--primary-light); }
.jl-save.is-saved .icon { fill: currentColor; }
.jl-details {
	display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 40px; padding: 0 12px; border-radius: 16px;
	font-size: 12px; line-height: 16px; font-weight: 600;
	background: var(--card-bg); border: 1px solid var(--border-medium); color: var(--text-secondary);
	transition: all .2s var(--ease);
}
.jl-details .icon { width: 14px; height: 14px; }

@media (hover: hover) {
	.jl-card:hover { translate: 0 -4px; background: var(--card-bg-hover); border-color: var(--card-border-hover); box-shadow: var(--card-shadow-hover); }
	.jl-card:hover .jl-card__bar { opacity: 1; }
	.jl-card:hover .jl-logo-wrap { transform: scale(1.05); }
	.jl-card__title a:hover { color: var(--primary-light); } /* JM §13: apply the intended hover */
	.jl-card__agency:hover { text-decoration: underline; }
	.jl-card__profile:hover { color: var(--primary-light); }
	.jl-chip-link:hover { opacity: .8; }
	.jl-details:hover { gap: 6px; }
	.jl-pop__list a:hover { background: var(--primary-50); }
}

/* ---------- Skeleton (JM §7) ---------- */
.jl-skel {
	position: relative; overflow: hidden; border-radius: 16px; padding: 22px 20px 20px;
	background: var(--card-bg); border: 1px solid var(--card-border);
}
.jl-skel__bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--gray-300); opacity: .3; }
.jl-skel__row { display: flex; align-items: flex-start; gap: 12px; }
.jl-skel__lines { flex: 1; display: grid; gap: 8px; }
.jl-skel i { display: block; border-radius: 4px; background: var(--gray-50); }
.jl-skel .s-logo { width: 44px; height: 44px; border-radius: 24px; background: var(--gray-100); flex-shrink: 0; }
.jl-skel .s-t { height: 14px; width: 80%; background: var(--gray-100); }
.jl-skel .s-c { height: 12px; width: 50%; }
.jl-skel .s-pill { height: 20px; width: 48px; border-radius: 9999px; flex-shrink: 0; }
.jl-skel__text { margin-top: 16px; display: grid; gap: 8px; }
.jl-skel__text i { height: 10px; }
.jl-skel__text i + i { width: 75%; }
.jl-skel__chips { margin-top: 16px; display: flex; gap: 6px; }
.jl-skel__chips i { height: 20px; border-radius: 9999px; }
.jl-skel__act { margin-top: 20px; padding-top: 16px; display: flex; gap: 8px; border-top: 1px solid var(--border-subtle); }
.jl-skel__act i { height: 40px; border-radius: 16px; }
.jl-skel__act i:first-child { flex: 1; background: var(--gray-100); }

/* ---------- Empty state (JL §7) ---------- */
.jl-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; text-align: center; }
.jl-empty__icon {
	display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px;
	border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border-subtle); color: var(--text-faint);
}
.jl-empty__icon .icon { width: 24px; height: 24px; }
.jl-empty__title { margin-bottom: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); }
.jl-empty__body { max-width: 448px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.jl-empty__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.jl-remove {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 16px; max-width: 100%;
	font-size: 14px; line-height: 20px; font-weight: 600;
	background: var(--card-bg); border: 1px solid var(--border-medium); color: var(--text-secondary);
	transition: all .2s var(--ease);
}
.jl-remove span { max-width: 14rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jl-remove .icon { width: 14px; height: 14px; }
.jl-empty .btn-primary { padding: 8px 16px; font-size: 14px; line-height: 20px; }

/* ---------- Pagination (JL §6) ---------- */
.jl-pag { margin-top: 40px; }
.jl-pag__line { margin-bottom: 12px; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.jl-pag__line strong { font-weight: 700; color: var(--text-primary); }
.jl-pag__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.jl-pg {
	display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 12px;
	border-radius: 16px; font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
	background: var(--card-bg); border: 1px solid var(--border-medium); color: var(--text-secondary);
	transition: all .2s var(--ease);
}
.jl-pg.is-current { background: var(--primary); border-color: var(--primary); color: var(--background); }
.jl-pg.is-disabled { opacity: .4; }
.jl-pg-gap { padding: 0 4px; font-size: 14px; line-height: 20px; color: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
	.jl-card { animation: none !important; opacity: 1 !important; transform: none !important; }
	.jl-card, .jl-logo-wrap, .jl-card__bar, .jl-dd__chev { transition: none; }
}

/* ---------- WordPress port: real links / details instead of JS widgets ---------- */
[hidden] { display: none !important; }
.jl-note { margin-top: 8px; max-width: 672px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.jl-note a { text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
.jl-crumbs .c-breadcrumbs { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.jl-crumbs .c-breadcrumbs p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; }
.jl-crumbs .c-breadcrumbs a { color: inherit; border-radius: var(--radius-sm); transition: color .15s var(--ease); }
.jl-crumbs .c-breadcrumbs .separator { opacity: .5; }
.jl-crumbs .c-breadcrumbs .last { color: var(--text-secondary); font-weight: 400; }
@media (hover: hover) { .jl-crumbs .c-breadcrumbs a:hover { color: var(--primary-light); text-decoration: none; } }
.jl-dd__d { display: block; }
.jl-dd__btn { list-style: none; cursor: pointer; }
.jl-dd__btn::-webkit-details-marker { display: none; }
.jl-dd__box.jl-dd__btn { height: 44px; }
.jl-dd.is-active .jl-dd__btn { padding-right: 36px; }
.jl-dd__btn > .icon { flex-shrink: 0; color: var(--text-faint); transition: transform .2s var(--ease); }
.jl-dd__d[open] .jl-dd__btn > .icon { transform: rotate(180deg); }
.jl-dd.is-active .jl-dd__btn > .icon { color: var(--primary); }
.jl-dd__clear { position: absolute; right: 6px; top: 10px; margin: 0; }
.jl-pop__list a .jl-opt__check { visibility: hidden; }
.jl-pop__list a[aria-current="true"] .jl-opt__check { visibility: visible; }
.jl-card__agency { display: block; }
.jl-card__company { height: auto; min-height: 20px; }

.jl-kicker { margin-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-light); }
.jl-note strong { font-weight: 600; color: var(--text-secondary); }

.jl-card__meta a.badge, .jl-card__meta .badge { min-height: 24px; }

.jl-more { margin-top: 12px; }
.jl-more summary { display: inline-flex; align-items: center; min-height: 24px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-secondary); border-radius: 8px; }
.jl-more__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.jl-more__f { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.jl-more__chk { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.jl-more input[type="number"] { height: 36px; width: 160px; padding: 0 12px; border-radius: 16px; font-size: 14px; background: var(--input-bg); border: 1px solid var(--input-border); color: var(--input-text); }

/* 24px tap targets (WCAG 2.5.8) */
.jl-card__title a, .jl-card__agency { min-height: 24px; }
.jl-card__title a { display: -webkit-box; line-height: 24px; }
.jl-crumbs .c-breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.jl-more input[type="checkbox"] { width: 24px; height: 24px; margin: 0; }

/* WP port: tighter hero (SEO notes stay) and the extra filters as the fifth dropdown */
.jl-pop--more { display: grid; gap: 8px; padding: 14px; min-width: 240px; left: auto; right: 0; }
.jl-pop--more input[type="number"] { width: 100%; }
.jl-pop--more .jl-clear__btn { justify-self: start; }
.jl-kicker { margin: 0 0 4px; }
.jl-crumbs { margin-bottom: 12px; }
.jl-note { max-width: 960px; margin-top: 4px; }
.jl-card .jl-apply.btn-primary { height: 42px; font-size: 14px; line-height: 20px; padding: 0 12px; }

.jl-hero__in { padding-bottom: 24px; }
.jl-lead { margin-top: 8px; }
.jl-crumbs { margin: -4px 0 8px; }
.jl-notes > summary { display: inline-flex; align-items: center; min-height: 24px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
@media (min-width: 640px) {
	.jl-notes > summary { display: none; }
	.jl-kicker { position: absolute; top: 108px; right: 24px; margin: 0; text-align: right; }
}
@media (min-width: 1024px) { .jl-kicker { right: 32px; } }
@media (max-width: 639.98px) { .jl-note { font-size: 11px; line-height: 14px; } }

.jl-note, .jl-notes > summary { color: var(--text-secondary); }


/* QA r8: 24px target for the lead-in agency link, layout unchanged. */
.jl-lead a { display: inline-block; padding-block: 4px; margin-block: -4px; }

/* ===== Compact results (UX pass): slim hero, one search row, 4 chips + More filters, one-line cards ===== */
.jl-hero { border-bottom: 0; overflow: visible; }
.jl-hero__in { padding-top: 84px; padding-bottom: 4px; }
@media (min-width: 640px) { .jl-hero__in { padding-top: 112px; } }
.jl-crumbs { margin: 0 0 4px; }
.jl-h1 { font-size: 24px; line-height: 30px; }
@media (min-width: 768px) { .jl-h1 { font-size: 32px; line-height: 38px; } }
.jl-count { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.jl-count strong { font-size: 16px; color: var(--text-primary); }
.jl-showing { margin-top: 16px; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.jl-showing strong { color: var(--text-primary); }

/* filter area: no card, so the cards start sooner */
.jl-filters { padding-top: 8px; }
.jl-panel { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.jl-row { flex-direction: row; align-items: center; gap: 8px; }
.jl-search { flex: 1; min-width: 0; }
.jl-submit.btn-primary { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 24px; }
.jl-chips { margin-top: 8px; padding: 2px; gap: 8px; }
.jl-chips .jl-dd { flex: none; width: auto; position: relative; }
.jl-chips .jl-dd__btn.c-chip { width: auto; height: 44px; min-height: 44px; padding: 0 12px; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); background: var(--background-secondary); border: 1px solid var(--input-border); }
.jl-chips .jl-dd__btn.c-chip.is-active { color: var(--primary-light); background: var(--primary-100); border-color: var(--primary); }
.jl-chips .jl-dd.is-active .jl-dd__btn { padding-right: 36px; }
.jl-chips .jl-dd__text { flex: none; overflow: visible; color: inherit; }
.jl-chips .jl-dd__clear { top: 10px; }
.jl-dd__d[open] > .jl-dd__btn { border-color: var(--primary); }

/* popovers: bottom sheet on phones (fixed escapes the scrolling chip row), popover from 768px */
.jl-pop--more { grid-template-columns: minmax(0, 1fr); left: auto; right: auto; }
@media (max-width: 767.98px) {
	.jl-chips .jl-pop { position: fixed; inset: auto 0 0 0; top: auto; margin: 0; z-index: 90; max-height: 72vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
	.jl-chips .jl-pop__list { max-height: 56vh; }
}
@media (min-width: 768px) {
	.jl-chips .jl-pop { right: auto; width: max(100%, 220px); top: 100%; margin-top: 6px; z-index: 60; }
	.jl-chips .jl-pop--more { width: 300px; }
}
.jl-more__posted { display: flex; flex-wrap: wrap; gap: 6px; }
.jl-more__posted .c-chip { min-height: 36px; padding: 0 12px; font-size: 13px; }
.jl-more__links { display: flex; flex-wrap: wrap; gap: 8px; }
.jl-pop--more > .jl-more__f { margin: 0; }

/* one-line cards */
.jl-grid { gap: 8px; }
@media (min-width: 768px) { .jl-grid { gap: 10px; } }
@media (min-width: 1280px) { .jl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jl-card { height: auto; overflow: visible; border-radius: 14px; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.jl-card:has(.jl-card__more[open]) { z-index: 6; }
.jl-card__bar { inset: 8px auto 8px 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; opacity: .7; }
.jl-card__body { display: block; padding: 10px 10px 10px 14px; position: relative; }
.jl-card__row { position: static; align-items: center; gap: 10px; }
.jl-logo { width: 40px; height: 40px; border-radius: 20px; }
.jl-card__title { font-size: 15px; line-height: 1.3; }
.jl-card__title a { -webkit-line-clamp: 2; line-height: 1.3; min-height: 24px; }
.jl-card__line { display: flex; align-items: flex-start; gap: 10px; min-width: 0; margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.jl-card__co { flex: 0 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.jl-card__place { flex: 0 1 auto; display: inline-flex; align-items: flex-start; gap: 3px; min-width: 0; max-width: 50%; white-space: normal; overflow-wrap: anywhere; }
.jl-card__place .icon { flex: none; }
.jl-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; color: var(--primary-light); background: var(--primary-50); border: 1px solid var(--primary-glow); }
.jl-card__more { flex: none; }
.jl-card__more > summary { list-style: none; display: grid; place-items: center; width: 28px; height: 40px; cursor: pointer; border-radius: 8px; color: var(--text-faint); }
.jl-card__more > summary::-webkit-details-marker { display: none; }
.jl-card__more > summary:focus-visible { outline: 2px solid var(--primary); }
.jl-card__panel { position: absolute; left: 8px; right: 8px; top: calc(100% - 4px); z-index: 7; padding: 12px; border-radius: 14px; background: var(--popover-bg); border: 1px solid var(--border-medium); box-shadow: 0 16px 40px -12px rgba(2, 6, 23, .3); }
.jl-card__meta { margin-top: 0; }
.jl-card__actions { margin-top: 10px; padding-top: 10px; flex-wrap: wrap; }
.jl-card__agency { display: inline-flex; align-items: center; margin-right: auto; font-size: 14px; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.jl-card .jl-apply.btn-primary { flex: none; height: 40px; }
.jl-results { padding-bottom: 48px; }

/* intro and notes: collapsed under the list */
.jl-notes { margin-top: 32px; }
.jl-notes > summary { display: inline-flex; align-items: center; min-height: 24px; margin: 0; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.jl-notes .jl-lead { margin-top: 12px; font-size: 14px; line-height: 20px; }
.jl-notes .jl-note { font-size: 13px; line-height: 18px; margin-top: 8px; }
@media (min-width: 640px) { .jl-notes > summary { display: inline-flex; } }
@media (max-width: 479.98px) {
	.jl-chips .jl-dd__btn.c-chip { padding: 0 12px; }
	.jl-chips .jl-dd__btn > .icon { display: none; }
	.jl-chips .jl-dd.is-active .jl-dd__btn { padding-right: 34px; }
}
.jl-card__co { flex: 1 1 0; }
.jl-card__place { max-width: 55%; }
.jl-logo--initials::before { content: attr(data-ini); }
.jl-card__body { padding: 16px 10px 16px 14px; }
@media (min-width: 768px) { .jl-card__body { padding-block: 12px; } }

/* Country sheet: Popular chips + long list; 44px rows and tap targets */
.jl-pop__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px 6px; }
.jl-pop__popular .c-chip { min-height: 44px; padding: 0 12px; font-size: 13px; }
.jl-pop__list a { min-height: 44px; }
.jl-pop__list { max-height: 320px; }
.jl-more__posted .c-chip { min-height: 44px; }
.jl-more__chk { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.jl-more__chk input[type="checkbox"] { width: 24px; height: 24px; flex: none; }
.jl-toggle, .jl-clear__btn { min-height: 44px; }
/* The chip is the single tap target; its inner text span is not a separate 20px target. */
.jl-dd__btn .jl-dd__text { display: flex; align-items: center; min-height: 44px; }

/* Job alert prompt after the 5th card (template-parts/jobs/alert.php; input/button reuse the footer alert classes) */
.c-alert-box { display: flex; flex-direction: column; justify-content: center; padding: 16px; border-radius: 16px; background: var(--primary-50); border: 1px dashed var(--card-border-hover, var(--card-border)); }
.c-alert-box__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.c-alert-box__line { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.c-alert-box .c-footer__btn { height: 44px; }
.c-alert-box__btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; height: auto; padding: 10px 20px; text-decoration: none; }
.jl-grid > .c-alert-box { grid-column: 1 / -1; }
@media (min-width: 768px) { .jl-grid > .c-alert-box { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; } .jl-grid > .c-alert-box .c-alert-box__line { flex: 1 1 260px; margin: 0; } .jl-grid > .c-alert-box .c-alert-box__title { flex: 0 1 auto; } .jl-grid > .c-alert-box .c-alert-box__btn { align-self: center; } }
