/* WG Job Openings – front end (WorkGenix teal theme) */
.wgjo {
	--wgjo-primary: #003333;           /* overridden by Settings → Appearance → Primary colour */
	--wgjo-text: #1f3d3d;
	--wgjo-muted: #4d7a77;
	--wgjo-accent: #9fd8c8;            /* mint eyebrow */
	--wgjo-tile: #eef6f4;              /* detail tiles */
	--wgjo-input: #f7fbfa;
	--wgjo-border: #dcebe8;
	--wgjo-input-border: #d3e5e3;
	--wgjo-radius: 16px;
	--wgjo-shadow: 0 10px 30px rgba(0, 51, 51, .07);
	color: var(--wgjo-text);
	font-size: 15px;
	line-height: 1.65;
	box-sizing: border-box;
}
.wgjo *, .wgjo *::before, .wgjo *::after { box-sizing: border-box; }
.wgjo-icon { flex: 0 0 auto; vertical-align: middle; color: var(--wgjo-primary); }

/* ---------- Page wrapper (own template) ---------- */
.wgjo-page { padding: 40px 20px 64px; }
.wgjo-page-inner { max-width: 1140px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.wgjo .wgjo-btn, .wgjo button.wgjo-btn, .wgjo a.wgjo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--wgjo-primary) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
	padding: 11px 22px; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
	transition: filter .15s, transform .15s, box-shadow .15s;
}
.wgjo .wgjo-btn:hover, .wgjo .wgjo-btn:focus { background: var(--wgjo-primary) !important; color: #fff !important; filter: brightness(1.25); box-shadow: 0 6px 16px rgba(0, 51, 51, .18); }
.wgjo .wgjo-btn:active { transform: translateY(1px); }
.wgjo .wgjo-btn-lg { padding: 14px 28px; font-size: 15px; }
.wgjo .wgjo-btn[disabled] { opacity: .65; cursor: wait; }

/* ---------- Single job: banner ---------- */
.wgjo-hero {
	background: var(--wgjo-primary); color: #fff; border-radius: var(--wgjo-radius);
	padding: 36px 36px 38px; margin-bottom: 30px;
}
.wgjo .wgjo-eyebrow {
	display: block; color: var(--wgjo-accent); font-size: 12px; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px;
}
.wgjo .wgjo-hero-title { color: #fff; margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 800; }
.wgjo-hero-tag {
	display: inline-block; margin-top: 14px; background: rgba(255, 255, 255, .14); color: #fff;
	border-radius: 20px; padding: 3px 12px; font-size: 12px; font-weight: 600;
}

/* ---------- Single job: two columns ---------- */
.wgjo-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.wgjo-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.wgjo-panel { background: #fff; border: 1px solid var(--wgjo-border); border-radius: var(--wgjo-radius); padding: 24px; }

.wgjo-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wgjo-spec { background: var(--wgjo-tile); border-left: 3px solid var(--wgjo-primary); border-radius: 8px; padding: 18px 16px; min-width: 0; }
.wgjo-spec-label { display: block; color: var(--wgjo-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.wgjo-spec-value { display: block; color: var(--wgjo-primary); font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

.wgjo-description { color: var(--wgjo-text); }
.wgjo-description > *:first-child { margin-top: 0; }
.wgjo-description > *:last-child { margin-bottom: 0; }
.wgjo-description h1, .wgjo-description h2, .wgjo-description h3, .wgjo-description h4,
.wgjo-description summary { color: var(--wgjo-primary); font-weight: 700; }
.wgjo-description h2, .wgjo-description h3, .wgjo-description h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px; }
.wgjo-description ul, .wgjo-description ol { padding-left: 20px; margin: 0 0 16px; }
.wgjo-description li { margin-bottom: 6px; }
.wgjo-description li::marker { color: var(--wgjo-primary); }
.wgjo-description details { margin-bottom: 14px; }
.wgjo-description summary { cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.wgjo-contact { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--wgjo-border); font-weight: 600; }
.wgjo-contact a { margin-left: 4px; color: var(--wgjo-primary); }

/* ---------- Apply card ---------- */
.wgjo-side { position: sticky; top: 100px; min-width: 0; }
.admin-bar .wgjo-side { top: 132px; }
.wgjo-apply-box {
	background: #fff; border: 1px solid var(--wgjo-border); border-top: 6px solid var(--wgjo-primary);
	border-radius: var(--wgjo-radius); padding: 28px 26px; box-shadow: var(--wgjo-shadow); scroll-margin-top: 110px;
}
.wgjo .wgjo-form-title { color: var(--wgjo-primary); font-size: 24px; line-height: 1.25; font-weight: 800; margin: 0 0 18px; }
.wgjo-apply-box h3 { color: var(--wgjo-primary); }
.wgjo-closed { background: #fdf2f2; color: #9b1c1c; border-radius: 10px; padding: 14px 16px; font-weight: 600; }

/* Form */
.wgjo-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.wgjo-side .wgjo-grid-form { grid-template-columns: 1fr; }
.wgjo-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wgjo-wide { grid-column: 1 / -1; }
.wgjo .wgjo-field > label { color: var(--wgjo-primary); font-size: 14px; font-weight: 700; margin: 0; }
.wgjo-req { color: inherit; }
.wgjo .wgjo-field input[type=text], .wgjo .wgjo-field input[type=email], .wgjo .wgjo-field input[type=tel],
.wgjo .wgjo-field input[type=url], .wgjo .wgjo-field input[type=date], .wgjo .wgjo-field select, .wgjo .wgjo-field textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 11px 14px;
	background: var(--wgjo-input); border: 1px solid var(--wgjo-input-border); border-radius: 10px;
	color: var(--wgjo-text); font-size: 15px; font-family: inherit; box-shadow: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.wgjo .wgjo-field textarea { min-height: 120px; resize: vertical; }
.wgjo .wgjo-field input:focus, .wgjo .wgjo-field select:focus, .wgjo .wgjo-field textarea:focus {
	outline: none; background: #fff; border-color: var(--wgjo-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wgjo-primary) 14%, transparent);
}
.wgjo-field.has-error input, .wgjo-field.has-error select, .wgjo-field.has-error textarea, .wgjo-field.has-error .wgjo-file { border-color: #c81e1e; }
.wgjo-field small { color: var(--wgjo-muted); font-size: 12px; }
.wgjo .wgjo-file {
	position: relative; display: flex; align-items: center; gap: 10px; padding: 16px;
	background: var(--wgjo-input); border: 2px dashed var(--wgjo-input-border); border-radius: 12px;
	cursor: pointer; font-weight: 500 !important; color: var(--wgjo-text);
}
.wgjo-file:hover { border-color: var(--wgjo-primary); }
.wgjo-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.wgjo-file-name { font-size: 14px; color: var(--wgjo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgjo-consent { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: 13px; color: var(--wgjo-muted); }
.wgjo-consent input { margin-top: 4px; accent-color: var(--wgjo-primary); }
.wgjo .wgjo-submit { margin-top: 20px; width: 100%; }
.wgjo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wgjo-msg { border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.wgjo-msg-success { background: var(--wgjo-tile); color: var(--wgjo-primary); border: 1px solid var(--wgjo-border); font-weight: 600; }
.wgjo-msg-error { background: #fdf2f2; color: #9b1c1c; border: 1px solid #f8d4d4; }

/* ---------- Listing ---------- */
.wgjo-filters {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: center;
	background: var(--wgjo-tile); border: 1px solid var(--wgjo-border); border-radius: var(--wgjo-radius);
	padding: 14px; margin: 0 0 20px;
}
.wgjo-filter { position: relative; min-width: 0; }
.wgjo-filter-search { grid-column: 1 / -1; }
.wgjo-filter-search .wgjo-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--wgjo-muted); }
.wgjo .wgjo-filter-search input { padding-left: 38px !important; }
.wgjo .wgjo-filters input, .wgjo .wgjo-filters select {
	width: 100%; height: 46px; margin: 0; padding: 0 12px; background: #fff;
	border: 1px solid var(--wgjo-input-border); border-radius: 10px; color: var(--wgjo-text); font-size: 14px;
}
.wgjo .wgjo-filters .wgjo-btn { height: 46px; }
.wgjo-reset { font-size: 14px; color: var(--wgjo-muted) !important; text-align: center; }

.wgjo-jobs { display: grid; gap: 16px; }
.wgjo-jobs.wgjo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wgjo-card {
	position: relative; display: flex; gap: 20px; justify-content: space-between; align-items: center;
	background: #fff; border: 1px solid var(--wgjo-border); border-left: 4px solid var(--wgjo-primary);
	border-radius: var(--wgjo-radius); padding: 22px 24px; transition: box-shadow .2s, transform .2s;
}
.wgjo-card:hover { box-shadow: var(--wgjo-shadow); transform: translateY(-2px); }
.wgjo-grid .wgjo-card { flex-direction: column; align-items: stretch; }
.wgjo-grid .wgjo-card-side { flex-direction: row; justify-content: space-between; align-items: center; }
.wgjo-card-main { min-width: 0; flex: 1; }
.wgjo-badge { display: inline-block; background: var(--wgjo-accent); color: var(--wgjo-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 20px; padding: 2px 10px; margin-bottom: 8px; }
.wgjo .wgjo-card-title { margin: 3px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 800; }
.wgjo .wgjo-card-title a { color: var(--wgjo-primary); text-decoration: none; }
.wgjo .wgjo-card-title a:hover { text-decoration: underline; }
.wgjo .wgjo-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.wgjo .wgjo-meta li { display: flex; align-items: center; gap: 7px; margin: 0; background: var(--wgjo-tile); color: var(--wgjo-text); border-radius: 8px; padding: 7px 13px; font-weight: 600; line-height: 1.3; }
.wgjo .wgjo-meta .wgjo-icon { width: 20px; height: 20px; stroke-width: 2.2; }
.wgjo-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wgjo-posted { font-size: 12px; color: var(--wgjo-muted); white-space: nowrap; }
.wgjo-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--wgjo-input-border); border-radius: var(--wgjo-radius); color: var(--wgjo-muted); background: var(--wgjo-tile); }

.wgjo-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.wgjo-pagination a, .wgjo-pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wgjo-border); border-radius: 10px; text-decoration: none; color: var(--wgjo-primary); font-size: 14px; font-weight: 600; }
.wgjo-pagination .current { background: var(--wgjo-primary); border-color: var(--wgjo-primary); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.wgjo-layout { grid-template-columns: 1fr; }
	.wgjo-side { position: static; }
}
@media (max-width: 600px) {
	.wgjo-page { padding: 20px 16px 40px; }
	.wgjo-hero { padding: 26px 22px; margin-bottom: 20px; }
	.wgjo-panel { padding: 18px; }
	.wgjo-specs { grid-template-columns: 1fr; }
	.wgjo-apply-box { padding: 22px 18px; }
	.wgjo-jobs.wgjo-grid, .wgjo-grid-form { grid-template-columns: 1fr; }
	.wgjo-card { flex-direction: column; align-items: stretch; padding: 18px; }
	.wgjo-card-side { flex-direction: row; justify-content: space-between; align-items: center; }
	.wgjo-filters { grid-template-columns: 1fr; }
}

/* ---------- Job description sections ---------- */
.wgjo-jd-qual {
	background: var(--wgjo-tile); border-left: 3px solid var(--wgjo-primary); border-radius: 8px;
	padding: 14px 16px; margin-bottom: 22px; color: var(--wgjo-primary); line-height: 1.5;
}
.wgjo-jd-qual-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.wgjo-jd-qual strong { font-weight: 700; }
.wgjo-jd-section + .wgjo-jd-section, .wgjo-jd-extra { margin-top: 24px; }
.wgjo .wgjo-jd-section h3 {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
	color: var(--wgjo-primary); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.wgjo .wgjo-jd-section h3::after { content: ""; flex: 1; height: 1px; background: var(--wgjo-border); }
.wgjo .wgjo-jd-list { list-style: none; margin: 0; padding: 0; }
.wgjo .wgjo-jd-list > li { position: relative; padding-left: 20px; margin: 0 0 9px; line-height: 1.55; }
.wgjo .wgjo-jd-list > li::before {
	content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px;
	background: var(--wgjo-primary); transform: rotate(45deg);
}
.wgjo .wgjo-jd-list ul { list-style: none; margin: 8px 0 4px; padding: 10px 14px; background: var(--wgjo-tile); border-radius: 8px; }
.wgjo .wgjo-jd-list ul li { position: relative; padding-left: 16px; margin: 0 0 6px; font-size: 14px; }
.wgjo .wgjo-jd-list ul li:last-child { margin-bottom: 0; }
.wgjo .wgjo-jd-list ul li::before {
	content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%;
	border: 1.5px solid var(--wgjo-primary);
}

/* ---------- Share popup ---------- */
.wgjo-card-actions { display: flex; align-items: center; gap: 8px; }
.wgjo-card.wgjo-share-open { z-index: 30; }
.wgjo-share { position: relative; display: inline-block; }
.wgjo .wgjo-share-toggle {
	display: inline-flex; align-items: center; gap: 7px; margin: 0;
	padding: 10px 16px; border-radius: 10px !important; font-size: 14px; font-weight: 700; line-height: 1.2;
	background: #fff !important; color: var(--wgjo-primary) !important;
	border: 1.5px solid var(--wgjo-input-border) !important; box-shadow: none; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.wgjo .wgjo-share-toggle:hover, .wgjo .wgjo-share.is-open .wgjo-share-toggle { border-color: var(--wgjo-primary) !important; background: var(--wgjo-tile) !important; }
.wgjo .wgjo-share-toggle:focus-visible { outline: 2px solid var(--wgjo-primary); outline-offset: 2px; }
.wgjo .wgjo-share-hero .wgjo-share-toggle { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-color: rgba(255, 255, 255, .45) !important; }
.wgjo .wgjo-share-hero .wgjo-share-toggle:hover, .wgjo .wgjo-share-hero.is-open .wgjo-share-toggle { background: rgba(255, 255, 255, .2) !important; border-color: #fff !important; }

.wgjo-share-menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 210px;
	background: #fff; border: 1px solid var(--wgjo-border); border-radius: 12px; padding: 8px;
	box-shadow: 0 14px 34px rgba(0, 40, 40, .18); animation: wgjoShareIn .14s ease-out;
}
.wgjo-share-menu[hidden] { display: none; }
.wgjo-share-hero .wgjo-share-menu { left: 0; right: auto; }
@keyframes wgjoShareIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wgjo-share-title { display: block; padding: 4px 10px 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wgjo-muted); }
.wgjo .wgjo-share-item {
	display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 9px 10px;
	background: none !important; border: 0 !important; border-radius: 8px !important; box-shadow: none;
	color: var(--wgjo-text) !important; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none !important; cursor: pointer;
}
.wgjo .wgjo-share-item:hover, .wgjo .wgjo-share-item:focus-visible { background: var(--wgjo-tile) !important; outline: none; }
.wgjo-share-ico { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px; }
.wgjo-share-item.is-linkedin .wgjo-share-ico { background: #0a66c2; color: #fff; }
.wgjo-share-item.is-copy .wgjo-share-ico { background: var(--wgjo-tile); color: var(--wgjo-primary); border: 1px solid var(--wgjo-border); }
.wgjo .wgjo-share-item.is-done { color: #0f7a3d !important; }
.wgjo-share-item.is-done .wgjo-share-ico { background: #e3f6ea; color: #0f7a3d; border-color: #bfe6cd; }
.wgjo-hero-share { margin-top: 20px; }
.wgjo-share-row { margin: 0 0 18px; }
@media (max-width: 600px) {
	.wgjo-card-side .wgjo-share-menu { right: auto; left: 0; }
}
