/**
 * Job board layout (WCAG-oriented: visible labels, focus, target size).
 * Typography/colors largely inherit from theme; buttons use .button.
 */

.ghjb-jobs [x-cloak] {
	display: none !important;
}

/* Visually hidden but available to AT (WCAG-compliant clipping). */
.ghjb-visually-hidden,
.ghjb-jobs .ghjb-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.ghjb-jobs {
	max-width: 100%;
	box-sizing: border-box;
}

.ghjb-jobs *,
.ghjb-jobs *::before,
.ghjb-jobs *::after {
	box-sizing: inherit;
}



/* Header */
.ghjb-jobs__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	/* Double theme spacing; if --container-spacing is unset, uses 1.5rem × 2 */
	margin-bottom: calc(var(--container-spacing, 1.5rem) * 2);
}

.ghjb-jobs__title {
	margin: 0 0 0.35rem;
	font-weight: 700;
}

.ghjb-jobs__count {
	margin: 0;
	font-size: 0.95em;
	color: inherit;
}

/* 3.3.2 — visible label + instructions (placeholder is supplementary). */
.ghjb-jobs__label {
	display: block;
	margin: 0 0 0.35rem;
	font-weight: 600;
}

.ghjb-jobs__search {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: min(100%, 22rem);
}

.ghjb-jobs__search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}


.ghjb-jobs__search-input {
	flex: 1 1 12rem;
	min-width: 0;
	
}

.ghjb-jobs__search-btn {
	flex: 0 0 auto;
	/* 2.5.8 Target Size (minimum) — comfortable tap/click area */
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Filters — 1.3.1 programmatic grouping */
.ghjb-jobs__filter-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.ghjb-jobs__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: var(--component-spacing, 1.5rem);
}

.ghjb-jobs__filters-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 0.75rem;
	flex: 1 1 auto;
}

/* Wrapper for Alpine x-for + x-if; children participate in flex layout */
.ghjb-jobs__filter-wrap {
	display: contents;
}

.ghjb-jobs__filter {
	flex: 1 1 10rem;
	min-width: 0;
	max-width: 16rem;
}

/* .ghjb-jobs__filter-select,
.ghjb-jobs__sort-select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 1.75rem 0.5rem 0.65rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	font: inherit;
	background-color: #fff;
	color: inherit;
	appearance: none;
	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 fill='%23333' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.55rem center;
} */

.ghjb-jobs__reset {
	flex: 0 0 auto;
	align-self: flex-end;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Always-visible job alert prompt (settings URL only): sentence + text link */
.ghjb-jobs__alert-promo {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	line-height: 1.5;
	color: inherit;
}

.ghjb-jobs__alert-promo-link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	color: inherit;
}

.ghjb-jobs__alert-promo-link:hover,
.ghjb-jobs__alert-promo-link:focus {
	text-decoration-thickness: 2px;
}

.ghjb-jobs__divider {
	margin: 1.25rem 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Summary */
.ghjb-jobs__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	/* If --container-spacing is unset, 1rem × 2 = 2rem */
	margin-top: calc(var(--container-spacing, 1rem) * 2);
}

.ghjb-jobs__showing {
	margin: 0;
}

.ghjb-jobs__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.ghjb-jobs__sort .ghjb-jobs__label {
	margin: 0 0.25rem 0 0;
	display: inline-block;
}

.ghjb-jobs__sort-select {
	min-width: 11rem;
	max-width: 100%;
}

/* Loading — decorative for SR when polite status region announces state */
.ghjb-jobs__loading {
	padding: 0.75rem 0;
	margin-bottom: 0.5rem;
	font-size: 0.95em;
}

/* List */
.ghjb-jobs__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ghjb-jobs__item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	/* Use theme flow spacing if available; fallback preserves existing layout */
	padding: var(--flow-space, 1.1rem) 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ghjb-jobs__item:first-child {
	padding-top: 0;
}

.ghjb-jobs__item-body {
	flex: 1 1 12rem;
	min-width: 0;
}

.ghjb-jobs__item-title {
	display: inline-block;
	margin: 0 0 0.35rem;
	font-weight: 700;
	font-size: 1.05em;
	text-decoration: none;
	color: inherit;
}

.ghjb-jobs__item-title:hover,
.ghjb-jobs__item-title:focus {
	text-decoration: underline;
}

.ghjb-jobs__item-meta {
	margin: 0;
	font-size: 0.92em;
	line-height: 1.4;
	color: inherit;
}

.ghjb-jobs__item-location {
	flex: 0 0 auto;
	align-self: center;
	text-align: right;
	font-size: 0.95em;
	white-space: nowrap;
}

/* Empty list */
.ghjb-jobs__empty {
	margin: 0;
	padding: 1rem 0 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ghjb-jobs__empty-message {
	margin: 0;
}

.ghjb-jobs__empty-alert {
	margin: 0.5rem 0 0;
}

.ghjb-jobs__empty-alert-btn {
	display: inline-block;
}

.ghjb-jobs__empty-noscript {
	margin: 0.75rem 0 0;
	padding: 0 0 1rem;
}

/* Pagination */
.ghjb-jobs__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 0.5rem;
}

.ghjb-jobs__page-status {
	font-size: 0.95em;
}

.ghjb-jobs__page-btn {
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.ghjb-jobs__page-btn:disabled {
	cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
	.ghjb-jobs * {
		transition-duration: 0.01ms !important;
	}
}
