/* JNM Engine — functional styles (visual polish comes at the end). */
:root {
	--jnm-accent: #0b6e4f;
	--jnm-accent-ink: #ffffff;
	--jnm-text: #1a1d1b;
	--jnm-muted: #5b625e;
	--jnm-line: #e1e5e2;
	--jnm-bg: #ffffff;
	--jnm-soft: #f3f7f5;
	--jnm-feature: #fff9e8;
	--jnm-radius: 12px;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--jnm-text: #eef1ef;
		--jnm-muted: #a7b0ab;
		--jnm-line: #2e3431;
		--jnm-bg: #151917;
		--jnm-soft: #1c221f;
		--jnm-feature: #2a2617;
		--jnm-accent: #3fbf8f;
		--jnm-accent-ink: #0b1a14;
	}
}

.jnm-muted { color: var(--jnm-muted); }
.jnm-small { font-size: 0.875rem; }
.jnm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.jnm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--jnm-accent); background: var(--jnm-bg); color: var(--jnm-accent); font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.jnm-btn--primary { background: var(--jnm-accent); color: var(--jnm-accent-ink); }
.jnm-btn--block { display: flex; width: 100%; }
.jnm-btn:focus-visible, .jnm-chip:focus-visible, .jnm-card__title a:focus-visible { outline: 3px solid var(--jnm-accent); outline-offset: 2px; }

/* Search */
.jnm-search { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 14px; background: var(--jnm-soft); border: 1px solid var(--jnm-line); border-radius: var(--jnm-radius); margin: 0 0 16px; }
.jnm-search__field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.jnm-search label { font-size: 0.8125rem; font-weight: 600; color: var(--jnm-muted); }
.jnm-search input, .jnm-search select, .jnm-form input, .jnm-form select, .jnm-form textarea, .jnm-alert-box input, .jnm-filters select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--jnm-line); border-radius: 8px; background: var(--jnm-bg); color: var(--jnm-text); font-size: 16px; }
.jnm-locate { align-self: flex-start; margin-top: 4px; background: none; border: 0; padding: 4px 0; color: var(--jnm-accent); font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (min-width: 760px) {
	.jnm-search { grid-template-columns: 2fr 2fr 1fr auto; align-items: end; }
}

/* Hero */
.jnm-hero { padding: 8px 0 8px; }
.jnm-hero__title { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 6px; }
.jnm-hero__sub { color: var(--jnm-muted); margin: 0 0 14px; font-size: 1.0625rem; }
.jnm-hero__stats { color: var(--jnm-muted); font-size: 0.9375rem; }
.jnm-section { margin: 28px 0; }

/* Chips */
.jnm-chips { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jnm-chip { display: inline-block; padding: 8px 14px; min-height: 36px; border: 1px solid var(--jnm-line); border-radius: 999px; text-decoration: none; color: var(--jnm-text); background: var(--jnm-bg); font-size: 0.9375rem; }
.jnm-chip:hover { border-color: var(--jnm-accent); }

/* County grid */
.jnm-county-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.jnm-county-grid a { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--jnm-line); border-radius: 10px; text-decoration: none; color: var(--jnm-text); }

/* Results */
.jnm-filters { border: 1px solid var(--jnm-line); border-radius: var(--jnm-radius); padding: 10px 14px; margin-bottom: 12px; }
.jnm-filters summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.jnm-filters__form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin-top: 10px; }
.jnm-filters__form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; font-weight: 600; }
.jnm-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.jnm-check input { width: 20px; height: 20px; min-height: 0; }
.jnm-count { font-weight: 600; margin: 8px 0; }
.jnm-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.jnm-subhead { font-size: 1.25rem; margin: 24px 0 6px; }

/* Card (stretched link pattern) */
.jnm-card { position: relative; display: flex; gap: 12px; padding: 14px; border: 1px solid var(--jnm-line); border-radius: var(--jnm-radius); background: var(--jnm-bg); }
.jnm-card:hover { border-color: var(--jnm-accent); }
.jnm-card--featured { background: var(--jnm-feature); }
.jnm-card__logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--jnm-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--jnm-muted); }
.jnm-card__logo img { width: 48px; height: 48px; object-fit: contain; }
.jnm-card__body { min-width: 0; flex: 1; }
.jnm-card__title { font-size: 1.0625rem; margin: 0 0 2px; line-height: 1.3; }
.jnm-card__title a { color: var(--jnm-text); text-decoration: none; }
.jnm-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--jnm-radius); }
.jnm-card__company, .jnm-card__meta, .jnm-card__salary, .jnm-card__chips { margin: 2px 0; font-size: 0.9375rem; }
.jnm-card__meta { color: var(--jnm-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jnm-card__salary { font-weight: 600; }
.jnm-card__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jnm-tag { font-size: 0.8125rem; padding: 2px 8px; border-radius: 6px; background: var(--jnm-soft); border: 1px solid var(--jnm-line); }
.jnm-tag--muted { color: var(--jnm-muted); }
.jnm-age { font-size: 0.8125rem; color: var(--jnm-muted); margin-left: auto; }
.jnm-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 6px; background: var(--jnm-soft); color: var(--jnm-muted); margin-bottom: 4px; }
.jnm-badge--featured { background: #f5c542; color: #3a2a00; }
.jnm-inline-alert { list-style: none; }

.jnm-pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; }
.jnm-pager a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
.jnm-empty { padding: 16px; border: 1px dashed var(--jnm-line); border-radius: var(--jnm-radius); }

/* Alert box */
.jnm-alert-box { padding: 14px; border-radius: var(--jnm-radius); background: var(--jnm-soft); border: 1px solid var(--jnm-line); }
.jnm-alert-box__title { font-weight: 700; margin: 0 0 8px; }
.jnm-alert-box__row { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jnm-alert-box__row { grid-template-columns: 2fr 1.5fr auto; } }

/* Notices & forms */
.jnm-notice { padding: 12px 14px; border-radius: 10px; margin: 10px 0; border: 1px solid var(--jnm-line); }
.jnm-notice--ok { background: #e8f6ef; border-color: #b7e2cc; color: #0b3d2b; }
.jnm-notice--error { background: #fdecec; border-color: #f3b9b9; color: #6b1111; }
.jnm-form p { margin: 0 0 12px; }
.jnm-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.jnm-form .jnm-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.jnm-note { color: var(--jnm-muted); font-size: 0.9375rem; padding: 10px 12px; background: var(--jnm-soft); border-radius: 10px; }

/* Single job */
.jnm-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 14px; padding: 12px; border: 1px solid var(--jnm-line); border-radius: var(--jnm-radius); }
.jnm-keyfacts dt { font-size: 0.8125rem; color: var(--jnm-muted); margin: 0; }
.jnm-keyfacts dd { margin: 0; font-weight: 600; }
.jnm-apply { margin: 20px 0; }
.jnm-sticky-apply { display: none; }
@media (max-width: 767px) {
	.jnm-sticky-apply { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--jnm-bg); border-top: 1px solid var(--jnm-line); z-index: 50; }
	.single-job_listing .site-footer { padding-bottom: 72px; }
}
.jnm-report { margin: 18px 0; }
.jnm-report summary { cursor: pointer; color: var(--jnm-muted); min-height: 32px; }

/* County page */
.jnm-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.jnm-crumbs { font-size: 0.875rem; color: var(--jnm-muted); margin-bottom: 8px; }
.jnm-facts { padding: 14px; border: 1px solid var(--jnm-line); border-radius: var(--jnm-radius); margin: 10px 0 16px; background: var(--jnm-soft); }
.jnm-facts__grid { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.jnm-facts__grid strong { display: block; font-size: 1.375rem; }

/* WP Job Manager's own list styles are not used on our pages. */
.single-job_listing .job-manager-info, .single-job_listing .job_listing-company { margin-top: 10px; }
