/* ===== Job Board Cards ===== */
.jbc-board, .jbc-single {
	--jbc-text: #2b2f38;
	--jbc-muted: #5b6270;
	--jbc-line: #d9dde3;
	--jbc-bg-soft: #f5f5f5;
	color: var(--jbc-text);
	font-family: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}
.jbc-board *, .jbc-single * { box-sizing: border-box; }
.jbc-board .screen-reader-text, .jbc-single .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Filters ---------- */
.jbc-filters {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 8px;
}
.jbc-field { position: relative; display: block; margin: 0; }
.jbc-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--jbc-muted); pointer-events: none; }
.jbc-board .jbc-search,
.jbc-board .jbc-select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: var(--jbc-text);
	background: #fff;
	border: 1px solid var(--jbc-line);
	border-radius: 6px;
	box-shadow: none;
	outline: none;
}
.jbc-board .jbc-search { padding-left: 42px; }
.jbc-board .jbc-select {
	appearance: none; -webkit-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6270' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.jbc-board .jbc-search:focus,
.jbc-board .jbc-select:focus { border-color: var(--jbc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jbc-primary) 22%, transparent); }
.jbc-count { margin: 4px 0 18px; font-size: 14px; color: var(--jbc-muted); min-height: 1em; }

/* ---------- Cards grid ---------- */
.jbc-grid {
	display: grid;
	grid-template-columns: repeat(var(--jbc-cols, 3), minmax(0, 1fr));
	gap: 20px;
}
.jbc-board .jbc-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	min-height: 112px;
	padding: 22px 22px 18px;
	background: #fff;
	border: 1.5px solid var(--jbc-card-border);
	border-radius: 8px;
	color: var(--jbc-text);
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.jbc-board .jbc-card:hover { background: #fffafa; border-color: var(--jbc-heading); }
.jbc-board .jbc-card:focus-visible { outline: 3px solid var(--jbc-primary); outline-offset: 2px; }
.jbc-board .jbc-card[hidden] { display: none; }
.jbc-board .jbc-card__title {
	margin: 0;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
	color: #1e2129;
}
.jbc-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: #3a3f4a; }
.jbc-card__type { font-style: italic; white-space: nowrap; }
.jbc-empty {
	margin: 12px 0 0;
	padding: 28px;
	text-align: center;
	color: var(--jbc-muted);
	background: var(--jbc-bg-soft);
	border-radius: 8px;
}
.jbc-empty[hidden] { display: none; }

@media (max-width: 960px) {
	.jbc-grid { grid-template-columns: repeat(min(2, var(--jbc-cols, 3)), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.jbc-filters { grid-template-columns: 1fr; }
	.jbc-grid { grid-template-columns: 1fr; }
}

/* ---------- Single job page ---------- */
.jbc-single { background: #fff; padding-bottom: 60px; }
.jbc-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.jbc-hero { background: var(--jbc-primary); color: #fff; padding: 0 0 30px; margin-bottom: 56px; }
.jbc-hero__company {
	display: block;
	margin-top: -38px;          /* tab rises above the banner like the reference */
	padding: 6px 12px;
	font-size: 20px;
	color: #1e2129;
	background: var(--jbc-primary);
}
.jbc-single .jbc-hero { margin-top: 38px; }
.jbc-hero__body { padding: 20px 0 0 12px; }
.jbc-single .jbc-hero__title { margin: 0 0 18px; color: #fff; font-size: clamp(22px, 3vw, 28px); font-weight: 400; line-height: 1.25; }
.jbc-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.jbc-hero__meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }

.jbc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
	align-items: start;
}
.jbc-content { max-width: 720px; font-size: 15px; line-height: 1.6; padding-left: 12px; }
.jbc-content h1, .jbc-content h2, .jbc-content h3 { color: var(--jbc-heading); font-weight: 700; line-height: 1.3; margin: 1.6em 0 .25em; }
.jbc-content h2 { font-size: 20px; }
.jbc-content h3 { font-size: 18px; }
.jbc-content h4 { color: #000; font-size: 15px; font-weight: 700; margin: .6em 0 .1em; }
.jbc-content > *:first-child { margin-top: 0; }
.jbc-content p { margin: 0 0 .35em; }
.jbc-content ul, .jbc-content ol { margin: .2em 0 .6em; padding-left: 34px; }
.jbc-content li { margin: 0 0 .15em; }
.jbc-content a { color: #1d6fe0; font-weight: 700; text-decoration: none; }
.jbc-content a:hover { text-decoration: underline; }

.jbc-sidebar__inner { position: sticky; top: 30px; }
.jbc-single .jbc-apply-btn,
.jbc-apply-btn {
	display: inline-block;
	min-width: 150px;
	padding: 11px 24px;
	font-size: 14px;
	letter-spacing: .02em;
	text-align: center;
	color: #fff !important;
	background: var(--jbc-primary);
	border-radius: 3px;
	text-decoration: none !important;
	transition: filter .15s ease;
}
.jbc-apply-btn:hover { filter: brightness(.92); }
.jbc-apply-btn:focus-visible { outline: 3px solid var(--jbc-heading); outline-offset: 2px; }
.jbc-share__label { margin: 32px 0 10px; font-size: 12px; color: #3a3f4a; }
.jbc-share { display: flex; gap: 14px; align-items: center; }
.jbc-share a { color: #c9ccd2; display: inline-flex; transition: color .15s ease; }
.jbc-share a:hover { color: var(--jbc-primary); }
.jbc-all-jobs { display: inline-block; margin-top: 44px; font-size: 12px; color: var(--jbc-primary); text-decoration: none; }
.jbc-all-jobs:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.jbc-layout { grid-template-columns: 1fr; gap: 0; }
	.jbc-sidebar { order: -1; margin-bottom: 32px; padding-left: 12px; }
	.jbc-sidebar__inner { position: static; }
	.jbc-share__label { margin-top: 20px; }
	.jbc-all-jobs { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.jbc-card, .jbc-apply-btn, .jbc-share a { transition: none; }
}
