/**
 * LT Divi Jobs frontend styles.
 *
 * -----------------------------------------------------------------------------
 * File responsibility
 * -----------------------------------------------------------------------------
 * Public-facing styles for the fallback jobs list and single-job fallback template.
 * Form visual styles are intentionally externalized so a child theme can provide
 * the shared LT Form design system.
 *
 * Sections:
 * 1. Base layout, filters and fallback job cards.
 * 2. Single-job fallback template.
 * 3. Responsive corrections for fallback job cards.
 *
 * @package LTDiviJobs
 */

/* -------------------------------------------------------------------------
 * Section 1: Base layout, filters and fallback job cards.
 * ---------------------------------------------------------------------- */
.ltdj-jobs,
.ltdj-single-job {
	box-sizing: border-box;
	width: 100%;
}

.ltdj-jobs *,
.ltdj-single-job * {
	box-sizing: border-box;
}

.ltdj-jobs-filter {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: end;
	margin: 0 0 28px;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
}

.ltdj-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
}

.ltdj-filter-field span {
	font-size: 0.9rem;
}

.ltdj-filter-field input,
.ltdj-filter-field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background: #fff;
	font: inherit;
}

.ltdj-filter-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.ltdj-read-more,
.ltdj-filter-reset {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.ltdj-jobs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ltdj-job-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.ltdj-job-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.ltdj-job-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ltdj-job-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
}

.ltdj-job-card__title,
.ltdj-single-job__title {
	margin: 0;
}

.ltdj-job-card__title a {
	color: inherit;
	text-decoration: none;
}

.ltdj-job-card__categories,
.ltdj-single-job__categories {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ltdj-job-category {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	color: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.ltdj-job-card__meta,
.ltdj-single-job__meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	color: rgba(0, 0, 0, 0.66);
	font-size: 0.94rem;
}

.ltdj-job-card__meta span:not(:last-child)::after,
.ltdj-single-job__meta span:not(:last-child)::after {
	content: "•";
	margin-left: 10px;
}

.ltdj-job-card__excerpt {
	margin: 0;
	color: rgba(0, 0, 0, 0.72);
}

.ltdj-job-card__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: auto;
}

.ltdj-no-results,
.ltdj-application-success {
	padding: 18px 20px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.05);
}


.ltdj-single-job {
	display: grid;
	gap: 34px;
}

.ltdj-single-job__header {
	display: grid;
	gap: 18px;
}

.ltdj-single-job__image {
	overflow: hidden;
	border-radius: 18px;
}

.ltdj-single-job__image img {
	display: block;
	width: 100%;
	height: auto;
}

.ltdj-single-job__content {
	display: grid;
	gap: 26px;
}

.ltdj-job-section h2,
.ltdj-single-job__form h2 {
	margin-top: 0;
}

.ltdj-job-section--facts dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 18px;
	margin: 0;
}

.ltdj-job-section--facts dt {
	font-weight: 700;
}

.ltdj-job-section--facts dd {
	margin: 0;
}


@media (max-width: 980px) {
	.ltdj-jobs-filter,
	.ltdj-jobs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.ltdj-jobs-filter,
	.ltdj-jobs-grid {
		grid-template-columns: 1fr;
	}

	.ltdj-job-section--facts dl {
		grid-template-columns: 1fr;
	}

	.ltdj-job-section--facts dt {
		margin-top: 8px;
	}
}


/* -------------------------------------------------------------------------
 * Section 3: External form style handoff.
 * -------------------------------------------------------------------------
 * The shared LT Form CSS was moved out of the plugin in version 1.5.15. Load
 * the extracted lt-form-child-theme.css file from the active child theme so the
 * same form design can be shared by multiple LT plugins without duplicating CSS
 * in every plugin package.
 * ---------------------------------------------------------------------- */
