/* ===== Jobs page — Aurora redesign 2026 (scoped: jb-) ===== */
.jb-page {
	--jb-ink: #0f172a;
	--jb-muted: #64748b;
	--jb-faint: #94a3b8;
	--jb-line: #e2e8f0;
	--jb-soft: #f8fafc;
	background: var(--bg-body);
}

/* ---------- Hero ---------- */
.jb-hero {
	position: relative;
	overflow: hidden;
	padding: 76px 0 104px;
	text-align: center;
	background:
		radial-gradient(54rem 26rem at 10% -12%, rgba(99, 102, 241, .16), transparent 60%),
		radial-gradient(42rem 22rem at 88% -16%, rgba(6, 182, 212, .13), transparent 60%),
		radial-gradient(40rem 22rem at 50% 130%, rgba(167, 139, 250, .14), transparent 62%),
		var(--bg-section);
	border-bottom: 1px solid var(--jb-line);
}

.jb-hero::before,
.jb-hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.jb-hero::before {
	width: 240px;
	height: 240px;
	top: 54px;
	left: 7%;
	background: radial-gradient(circle at 32% 30%, rgba(99, 102, 241, .28), rgba(99, 102, 241, 0) 70%);
	animation: jbFloat 9s ease-in-out infinite;
}

.jb-hero::after {
	width: 190px;
	height: 190px;
	bottom: 24px;
	right: 9%;
	background: radial-gradient(circle at 32% 30%, rgba(6, 182, 212, .26), rgba(6, 182, 212, 0) 70%);
	animation: jbFloat 11s ease-in-out 1.4s infinite;
}

@keyframes jbFloat {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-18px) scale(1.06); }
}

.jb-hero-inner { position: relative; z-index: 1; }

.jb-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--primary);
	background: rgba(99, 102, 241, .08);
	border: 1px solid rgba(99, 102, 241, .24);
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 22px;
}

.jb-badge .material-icons-outlined { font-size: 16px; }

.jb-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.08;
	color: var(--jb-ink);
}

.jb-hero h1 .jb-grad {
	background: linear-gradient(100deg, #6366f1 5%, #8b5cf6 55%, #06b6d4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.jb-sub {
	max-width: 560px;
	margin: 0 auto 34px;
	color: var(--jb-muted);
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* ---------- Frosted glass search ---------- */
.jb-search {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 720px;
	margin: 0 auto;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(99, 102, 241, .28);
	border-radius: 999px;
	padding: 7px 7px 7px 20px;
	box-shadow: 0 18px 40px -18px rgba(30, 41, 59, .18);
	transition: border-color .2s, box-shadow .2s;
}

.jb-search:hover {
	border-color: rgba(99, 102, 241, .45);
	box-shadow: 0 22px 40px -18px rgba(30, 41, 59, .22);
}

.jb-search-field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	padding: 6px 12px;
	min-width: 0;
}

.jb-search-field .material-icons-outlined { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }
.jb-search-field input {
	width: 100%;
	border: 0;
	outline: none;
	font-size: .9375rem;
	font-family: inherit;
	color: var(--text-primary);
	background: transparent;
}
.jb-search-field input::placeholder { color: var(--text-muted); }
.jb-search-divider { width: 1px; height: 28px; background: var(--jb-line); flex-shrink: 0; }
.jb-search button {
	border: 0;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
	background: var(--primary);
	color: #fff;
	font-size: .9375rem;
	font-weight: 600;
	padding: 12px 26px;
	border-radius: var(--radius-full);
	transition: background .2s, transform .2s;
}
.jb-search button:hover { background: var(--primary-hover); transform: translateY(-1px); }

@media (max-width: 640px) {
	.jb-search { flex-direction: column; border-radius: var(--radius-xl); padding: 10px; }
	.jb-search-divider { width: 100%; height: 1px; }
	.jb-search button { width: 100%; }
}

/* ---------- Type chips ---------- */
.jb-body { position: relative; }

.jb-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 24px;
}

.jb-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--jb-muted);
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(99, 102, 241, .28);
	padding: 7px 16px;
	border-radius: 999px;
}

.jb-count .material-icons-outlined { color: var(--primary); font-size: 18px; }
.jb-count strong { color: var(--jb-ink); }

.jb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: -32px auto 28px;
	justify-content: center;
}

.jb-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: var(--radius-full);
	background: #fff;
	border: 1px solid var(--jb-line);
	color: var(--jb-muted);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px -6px rgba(30, 41, 59, .15);
	transition: all .2s;
}

.jb-chip:hover {
	border-color: var(--primary);
	color: var(--primary);
	transform: translateY(-2px);
}

.jb-chip.active {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .5);
}

.jb-chip .material-icons-outlined { font-size: 16px; }

.jb-filters-active { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jb-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8125rem;
	font-weight: 600;
	background: #f1f5f9;
	color: var(--jb-muted);
	padding: 6px 12px;
	border-radius: var(--radius-full);
	text-decoration: none;
	transition: all .2s;
}
.jb-active-chip:hover {
	background: var(--primary-light);
	color: var(--primary);
}
.jb-active-chip .material-icons-outlined { font-size: 15px; }

/* ---------- Job cards ---------- */
.jb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.jb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--jb-line);
	border-radius: 20px;
	padding: 24px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(30, 41, 59, .16);
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, border-color .3s ease;
	opacity: 0;
	animation: jbRise .55s cubic-bezier(.16, 1, .3, 1) forwards;
	animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes jbRise {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: none; }
}

.jb-card::before {
	content: '';
	position: absolute;
	inset: -2px;
	z-index: -1;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(99, 102, 241, .55), rgba(139, 92, 246, .4) 55%, rgba(6, 182, 212, .45));
	opacity: 0;
	transition: opacity .3s ease;
}

.jb-card:hover {
	transform: translateY(-5px);
	border-color: transparent;
	box-shadow: 0 26px 50px -22px rgba(30, 41, 59, .3);
}

.jb-card:hover::before { opacity: 1; }

/* Card header */
.jb-card-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.jb-logo-wrap {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	padding: 2px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
	box-shadow: 0 10px 20px -8px rgba(99, 102, 241, .55);
	flex-shrink: 0;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.jb-card:hover .jb-logo-wrap { transform: rotate(-4deg) scale(1.05); }

.jb-logo {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	border: 2px solid #fff;
	background: #f8fafc;
	object-fit: contain;
	padding: 4px;
	display: block;
}

.jb-logo-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: .02em;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
	padding: 0;
	text-transform: uppercase;
}

.jb-card-body { flex: 1; min-width: 0; }

.jb-title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--jb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}

.jb-card:hover .jb-title { color: var(--primary); }

.jb-company {
	font-size: .875rem;
	color: var(--jb-muted);
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jb-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .8125rem;
	margin-bottom: 14px;
}

.jb-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .75rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
}

.jb-tag .material-icons-outlined { font-size: 14px; }
.jb-tag-type { background: rgba(99, 102, 241, .1); color: var(--primary); }
.jb-tag-loc { background: #f1f5f9; color: var(--jb-muted); }
.jb-tag-salary { background: rgba(16, 185, 129, .1); color: #059669; }

.jb-featured-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	font-weight: 700;
	color: var(--primary);
	background: var(--primary-light);
	padding: 2px 8px;
	border-radius: var(--radius-full);
}

.jb-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px dashed var(--jb-line);
}

.jb-view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .875rem;
	font-weight: 700;
	color: var(--primary);
}

.jb-view .material-icons-outlined { font-size: 18px; transition: transform .25s; }
.jb-card:hover .jb-view .material-icons-outlined { transform: translateX(4px); }

/* ---------- Empty state ---------- */
.jb-empty {
	grid-column: 1 / -1;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--jb-line);
	border-radius: 24px;
	padding: 64px 24px;
}

.jb-empty-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 16px;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(6, 182, 212, .12));
	color: var(--primary);
}

.jb-empty-icon .material-icons-outlined { font-size: 36px; }
.jb-empty h3 { margin: 0 0 6px; font-size: 1.125rem; color: var(--jb-ink); }
.jb-empty p { margin: 0 0 20px; color: var(--jb-faint); }

.jb-empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	color: #fff;
	font-size: .875rem;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 10px 22px -10px rgba(99, 102, 241, .65);
	transition: transform .2s, box-shadow .2s;
}

.jb-empty-btn:hover {
	transform: translateY(-2px);
	color: #fff;
	box-shadow: 0 14px 26px -10px rgba(99, 102, 241, .7);
}

/* ---------- Pagination ---------- */
.jb-page nav[role="navigation"] {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
}

.jb-page nav[role="navigation"] a,
.jb-page nav[role="navigation"] span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--jb-line);
	background: #fff;
	color: var(--jb-muted);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s;
}

.jb-page nav[role="navigation"] a:hover {
	border-color: var(--primary);
	color: var(--primary);
	transform: translateY(-1px);
}

.jb-page nav[role="navigation"] span[aria-current="page"] {
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .6);
}

.jb-page nav[role="navigation"] svg { width: 18px; height: 18px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.jb-hero::before, .jb-hero::after { animation: none; }
	.jb-card { animation: none; opacity: 1; }
	.jb-card { transition: none; }
}

/* Keep Frappe's default body margins out of the standalone portal */
html[data-theme="dark"] .jb-card,
html[data-theme="dark"] .jb-chip,
html[data-theme="dark"] .jb-empty { background: var(--bg-card); }

/* ===== Gold theme — replicates the PPG Wiki palette (Jobs page only) ===== */
:root {
	--primary: #c9a227;
	--primary-hover: #a8801a;
	--primary-light: rgba(201, 162, 39, .13);
	--primary-gradient: linear-gradient(135deg, #f2d464 0%, #d4af37 55%, #a8801a 100%);
	--bg-body: #fffdf4;
	--bg-section: #faf4e3;
	--bg-card: #ffffff;
	--border: #ece3c8;
	--text-primary: #1d2746;
	--text-secondary: #6b707f;
	--text-muted: #8a8578;
}

body.front-body { background: #fffdf4; }

/* Dark text on gold surfaces so they stay readable */
.btn-primary,
.jb-search button,
.jb-empty-btn,
.jb-chip.active,
.jb-page nav[role="navigation"] span[aria-current="page"] { color: #2b2205; }
.btn-primary { box-shadow: 0 4px 15px rgba(184, 144, 31, .35); }
.btn-primary:hover { color: #2b2205; box-shadow: 0 6px 20px rgba(184, 144, 31, .5); }

/* Gold hero banner */
.jb-hero {
	background:
		radial-gradient(54rem 26rem at 10% -12%, rgba(212, 175, 55, .30), transparent 60%),
		radial-gradient(42rem 22rem at 88% -16%, rgba(242, 212, 100, .28), transparent 60%),
		radial-gradient(40rem 22rem at 50% 130%, rgba(168, 128, 26, .20), transparent 62%),
		var(--bg-section);
	border-bottom-color: var(--border);
}
.jb-hero::before { background: radial-gradient(circle at 32% 30%, rgba(212, 175, 55, .45), rgba(212, 175, 55, 0) 70%); }
.jb-hero::after { background: radial-gradient(circle at 32% 30%, rgba(242, 212, 100, .4), rgba(242, 212, 100, 0) 70%); }
.jb-hero h1 { color: #1d2746; }
.jb-hero h1 .jb-grad {
	background: linear-gradient(100deg, #d4af37 5%, #b8901f 55%, #f2d464 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

.jb-badge { color: var(--primary); background: rgba(201, 162, 39, .1); border-color: rgba(201, 162, 39, .3); }
.jb-search, .jb-count { border-color: rgba(201, 162, 39, .3); }
.jb-search:hover { border-color: rgba(201, 162, 39, .55); }
.jb-search { box-shadow: 0 18px 40px -18px rgba(184, 144, 31, .28); }

/* Gold card accents + logo */
.jb-card::before { background: linear-gradient(135deg, rgba(212, 175, 55, .6), rgba(184, 144, 31, .45) 55%, rgba(242, 212, 100, .5)); }
.jb-logo-wrap, .jb-logo-initials { background: linear-gradient(135deg, #e6c757, #d4af37 55%, #a8801a); box-shadow: 0 10px 20px -8px rgba(184, 144, 31, .6); }
.jb-tag-type { background: rgba(201, 162, 39, .12); color: var(--primary-hover); }
.jb-chip.active { box-shadow: 0 8px 20px -6px rgba(201, 162, 39, .55); }
.jb-active-chip:hover { background: var(--primary-light); color: var(--primary-hover); }
