/* UPO Job Board — styled to match Kadence/UPO palette
   Palette: #ff9800 orange, #1d1d1d text, #f1e7dd / #faefe5 creams, #4b443c brown */

.upo-jb-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: #4b443c;
	background: #faefe5;
	border: 1px solid #f1e7dd;
	border-radius: 4px;
	font-family: 'Open Sans', sans-serif;
}

/* ---------- Filter bar ---------- */
.upo-jb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
	background: #faefe5;
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin: 0 0 2rem;
	font-family: 'Open Sans', sans-serif;
}
.upo-jb-filters label {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #1d1d1d;
	margin-right: .25rem;
}
.upo-jb-filters select,
.upo-jb-filters input[type="search"] {
	font-family: 'Open Sans', sans-serif;
	font-size: .92rem;
	padding: .55rem .75rem;
	border: 1px solid #d8cfc4;
	border-radius: 4px;
	background: #fff;
	color: #1d1d1d;
	min-width: 160px;
}
.upo-jb-filters input[type="search"] { flex: 1; min-width: 200px; }
.upo-jb-filters .upo-jb-filter-reset {
	color: #645e59;
	font-size: .85rem;
	text-decoration: underline;
}

/* ---------- Grid ---------- */
.upo-jb-cards {
	display: grid;
	grid-template-columns: repeat(var(--upo-jb-cols, 3), minmax(0, 1fr));
	gap: 1.75rem;
	margin: 2rem 0;
	font-family: 'Open Sans', sans-serif;
}
@media (max-width: 900px) { .upo-jb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .upo-jb-cards { grid-template-columns: 1fr; } }

.upo-jb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #f1e7dd;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.upo-jb-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 25px -7px rgba(0, 0, 0, .12);
	border-color: #ff9800;
}

.upo-jb-card-img img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.upo-jb-card-img-fallback {
	height: 8px;
	background: #ff9800;
}

.upo-jb-card-body {
	padding: 1.25rem 1.35rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: .55rem;
	flex: 1;
}

.upo-jb-card-union {
	font-family: 'Oswald', sans-serif;
	font-size: .8rem;
	font-weight: 600;
	color: #ff9800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.upo-jb-card-title {
	font-family: 'Oswald', sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
	color: #1d1d1d;
	text-transform: none;
}

.upo-jb-card-meta {
	list-style: none;
	padding: 0;
	margin: .25rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1rem;
	font-size: .88rem;
	color: #4b443c;
}
.upo-jb-card-meta li { display: inline-flex; align-items: center; gap: .3rem; }
.upo-jb-icon { flex: none; width: 1em; height: 1em; opacity: .7; }

.upo-jb-card-excerpt {
	font-size: .92rem;
	color: #4b443c;
	margin: .4rem 0 0;
	line-height: 1.55;
}

.upo-jb-card-cta {
	margin-top: auto;
	padding-top: .85rem;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #ff9800;
}

/* ---------- Single ---------- */
.upo-jb-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	margin: 1.5rem 0;
	font-family: 'Open Sans', sans-serif;
}
@media (max-width: 800px) {
	.upo-jb-single { grid-template-columns: 1fr; }
	.upo-jb-sidebar { order: -1; position: static !important; }
}

.upo-jb-sidebar {
	order: 2;
	background: #faefe5;
	border: 1px solid #f1e7dd;
	border-radius: 4px;
	padding: 1.5rem;
	height: fit-content;
	position: sticky;
	top: 1.5rem;
}

.upo-jb-facts {
	margin: 0 0 1.25rem;
	padding: 0;
}
.upo-jb-fact {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem 0;
	border-bottom: 1px solid #f1e7dd;
	font-size: .92rem;
}
.upo-jb-fact:last-child { border-bottom: none; }
.upo-jb-fact dt {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #645e59;
	margin: 0;
}
.upo-jb-fact dd { margin: 0; color: #1d1d1d; text-align: right; font-weight: 600; }

.upo-jb-apply-btn {
	display: block;
	text-align: center;
	background: #ff9800;
	color: #000000 !important;
	text-decoration: none !important;
	padding: 12px 24px;
	border-radius: 4px;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: .75rem;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.upo-jb-apply-btn:hover {
	background: #ffad33;
	color: #ffffff !important;
	box-shadow: 0 15px 25px -7px rgba(0,0,0,0.1);
}

.upo-jb-email {
	display: block;
	text-align: center;
	font-size: .88rem;
	color: #4b443c;
	margin-bottom: .75rem;
	word-break: break-all;
}

.upo-jb-back {
	display: block;
	text-align: center;
	font-size: .85rem;
	color: #645e59;
	text-decoration: none;
	border-top: 1px solid #f1e7dd;
	padding-top: .85rem;
	margin-top: .25rem;
}
.upo-jb-back:hover { color: #ff9800; }

.upo-jb-body { order: 1; min-width: 0; }
.upo-jb-apply-footer { margin-top: 2.5rem; text-align: left; }
.upo-jb-apply-footer .upo-jb-apply-btn { display: inline-block; padding: 14px 36px; font-size: 15px; }

/* Archive header */
.upo-jb-archive-header h1 {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	color: #1d1d1d;
}
.upo-jb-archive-header p {
	font-family: 'Open Sans', sans-serif;
	color: #4b443c;
}
