/* ==========================================================================
   HireZoot (Job Listings/Job Openings plugin) reskin — makes the plugin's
   own stable class hooks (awsm-job-listings, awsm-job-item, awsm-job-form,
   etc.) render with this theme's design tokens instead of the plugin's
   default flat/blue look, matching the .card / .intellinez-form-card /
   WPForms conventions already used everywhere else on the site.
   ========================================================================== */

/* ---------- Job listing archive/grid (real markup uses the "-b-" block
   prefix: .awsm-b-job-listing-item > .awsm-b-job-item, h2.awsm-b-job-post-title,
   .awsm-b-job-more-container > a.awsm-b-job-more — the spec pills inside are
   NOT block-prefixed: .awsm-job-specification-wrapper/-item/-term). --------- */

/* In list layout .awsm-b-job-item is a <div> with the title itself linked;
   in grid layout the whole card is an <a class="awsm-b-job-item"> instead —
   these rules cover both. */
.awsm-b-job-listing-item .awsm-b-job-item {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border) / 0.6) !important;
	border-radius: var(--radius-2xl) !important;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	color: inherit;
	text-decoration: none;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.awsm-b-job-listing-item:hover .awsm-b-job-item {
	border-color: hsl(var(--primary) / 0.4) !important;
	box-shadow: 0 10px 30px -12px hsl(var(--foreground) / 0.12) !important;
}
.awsm-b-job-listing-item:last-child .awsm-b-job-item { margin-bottom: 0; }

.awsm-b-job-post-title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin: 0 0 0.5rem !important;
}
.awsm-b-job-post-title a { color: inherit; text-decoration: none; }
.awsm-b-job-post-title a:hover,
a.awsm-b-job-item:hover .awsm-b-job-post-title { color: hsl(var(--primary)); }

.awsm-job-specification-wrapper {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.5rem 1.25rem;
	margin-top: 0.5rem;
}
.awsm-job-specification-wrapper .awsm-job-specification-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin: 0 !important;
}
.awsm-job-specification-wrapper .awsm-job-specification-item [class^="awsm-job-icon-"] {
	color: hsl(var(--primary));
}
.awsm-job-specification-term { color: hsl(var(--muted-foreground)); }

/* The free plugin doesn't render a per-spec icon element, so these are
   added purely via CSS ::before — one small inline SVG per spec type
   (briefcase/clock/map-pin), matching the icon set used elsewhere on site. */
.awsm-job-specification-item::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.awsm-job-specification-job-category::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3Crect width='20' height='14' x='2' y='6' rx='2'/%3E%3C/svg%3E");
}
.awsm-job-specification-job-type::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.awsm-job-specification-job-location::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.awsm-b-job-more-container .awsm-b-job-more {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--primary));
}

/* ---------- Search + filter controls above the listing ------------------ */

/* The three spec dropdowns (Job Category / Job Type / Job Location) in one
   row on desktop, matching the search bar above them; wraps to a stacked
   column below tablet width instead of squeezing three selects too narrow. */
.awsm-b-filter-items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: 100% !important;
}
.awsm-b-filter-item {
	flex: 1 1 0;
	min-width: 200px;
}
.awsm-b-filter-item .awsm-selectric-wrapper { width: 100%; }

.awsm-b-job-search,
.awsm-selectric-wrapper .awsm-selectric {
	border-radius: var(--radius-md) !important;
	border: 1px solid hsl(var(--input)) !important;
	background: hsl(var(--background)) !important;
	height: 2.75rem !important;
	font-family: var(--font-sans);
	color: hsl(var(--foreground));
}
.awsm-b-job-search:focus,
.awsm-b-job-search:hover {
	border-color: hsl(var(--ring)) !important;
}
.awsm-selectric-wrapper .awsm-selectric .label { font-size: 0.875rem; color: hsl(var(--foreground)); }

/* ---------- Single job page: content card wrapping the description +
   specifications strip (HireZoot's own wrapper div around both). --------- */

.awsm-job-content {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border) / 0.5);
	border-radius: var(--radius-2xl);
	padding: 2rem;
}
.awsm-job-content .article-body {
	padding: 0;
	max-width: initial;
	margin-inline: 0;
}

/* ---------- Single job page: specifications strip below the content ----- */

.awsm-job-specifications-container {
	border-top: 1px solid hsl(var(--border) / 0.6);
	padding-top: 1.5rem;
	margin-top: 1.5rem;
}
.awsm-job-specifications-container .awsm-job-specification-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	margin: 0 1.5rem 0.75rem 0;
}
.awsm-job-specifications-container .awsm-job-specification-label strong {
	color: hsl(var(--foreground));
	font-weight: 600;
}
.awsm-job-specifications-container .awsm-job-specification-term {
	color: hsl(var(--primary));
	font-weight: 500;
}

/* ---------- Single job page: "Apply for this position" form card -------- */

.awsm-job-form {
	margin-top: 2.5rem;
}
.awsm-job-form::before { content: none; }
.awsm-job-form .awsm-job-form-inner {
	max-width: 100%;
	width: 100%;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border) / 0.5);
	border-radius: var(--radius-2xl);
	padding: 2rem;
	box-shadow: none;
	text-align: left;
}
.awsm-job-form .awsm-job-form-inner h2 {
	float: none;
	text-align: left;
	text-transform: none;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin: 0 0 1.5rem;
}

.awsm-application-form .awsm-job-form-group { margin-bottom: 1.25rem; }
.awsm-application-form .awsm-job-form-group label {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	margin-bottom: 0.375rem;
}
.awsm-application-form .awsm-job-form-field {
	border-radius: var(--radius-md);
	border: 1px solid hsl(var(--input));
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	height: 2.75rem;
	padding: 0 0.875rem;
	font-size: 0.875rem;
	font-family: var(--font-sans);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.awsm-application-form textarea.awsm-job-form-field {
	min-height: 120px;
	padding: 0.625rem 0.875rem;
}
.awsm-application-form .awsm-job-form-field:focus {
	outline: none;
	border-color: hsl(var(--ring));
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.awsm-application-form input[type="file"].awsm-job-form-field {
	height: auto;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	color: hsl(var(--muted-foreground));
	font-size: 0.8125rem;
}
.awsm-application-form input[type="file"].awsm-job-form-field::file-selector-button {
	border: 1px solid hsl(var(--input));
	border-radius: var(--radius-sm);
	background: hsl(var(--muted));
	color: hsl(var(--foreground));
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	margin-right: 0.75rem;
	cursor: pointer;
	transition: background 0.2s ease;
}
.awsm-application-form input[type="file"].awsm-job-form-field:hover::file-selector-button {
	background: hsl(var(--accent) / 0.1);
}
.awsm-application-form .awsm-job-form-group small {
	display: block;
	margin-top: 0.375rem;
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
}

.awsm-application-form .awsm-job-inline-group {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.awsm-application-form .awsm-job-inline-group input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
	margin-top: 0.15rem;
	accent-color: hsl(var(--primary));
	cursor: pointer;
}
.awsm-application-form .awsm-job-inline-group label {
	width: auto;
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
	font-weight: 400;
	cursor: pointer;
}
.awsm-application-form .awsm-job-inline-group label a {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.awsm-application-form .awsm-job-inline-group label a:hover { opacity: 0.85; }
.awsm-application-form .awsm-application-submit-btn {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	padding: 0 2rem;
	border-radius: var(--radius-md);
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--font-sans);
	color: hsl(var(--primary-foreground));
	background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
	box-shadow: 0 0 20px hsl(174 72% 46% / 0.15);
	transition: opacity 0.2s ease;
	border: none;
}
.awsm-application-submit-btn:hover { opacity: 0.9; }

.awsm-success-message {
	border: 1px solid hsl(var(--primary) / 0.4);
	background: hsl(var(--primary) / 0.06);
	color: hsl(var(--foreground));
	border-radius: var(--radius-lg);
	padding: 1rem 1.25rem;
}
.awsm-success-message p { color: hsl(var(--foreground)); margin: 0; }

/* ---------- Quick-facts grid at the top of a job description ------------ */

.job-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0 0 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid hsl(var(--border) / 0.6);
}
.job-fact {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 200px;
}
.job-fact .icon-badge { flex-shrink: 0; }
.job-fact > div { display: flex; flex-direction: column; }
.job-fact-label {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.job-fact-value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

/* ---------- Job title header: title + View All Jobs / Apply Now buttons - */

.article-header .article-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.article-header .article-title-row .article-title { margin: 0; }
.article-header .job-header-ctas {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.article-header .job-header-ctas { width: 100%; }
	.article-header .job-header-ctas .btn { flex: 1 1 auto; }
}
