/* ===== 9Senses Jobs — carousel (projects-carousel structure) + fog application dialog ===== */
/* Track is flush with the content column: zero left/right margin AND zero
   left/right padding, so the first card's text edge lines up with the body text
   above it. The chevrons live OUTSIDE that window (negative offsets), never
   inside it. */
.nsj-carousel-wrap { position: relative; margin: 1.5rem 0; padding: 0; visibility: hidden; }
.nsj-carousel {
	display: flex; gap: 20px; padding: 8px 0 10px;
	overflow-x: auto; overflow-y: hidden; overflow-anchor: none;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: auto;
}
.nsj-carousel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.nsj-nav {
	position: absolute; top: calc(50% + 10px); transform: translateY(-50%); z-index: 3;
	width: 36px; height: 36px; cursor: pointer; padding: 0; border: 0; background: transparent;
	color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center;
}
.nsj-nav:hover { color: #fff; }
.nsj-nav[disabled] { opacity: .25; cursor: default; }
.nsj-prev { left: -42px; }
.nsj-next { right: -42px; }
.nsj-card {
	flex: 0 0 270px; box-sizing: border-box;
	background: transparent; border: 0; box-shadow: none;
	display: flex; flex-direction: column; align-items: flex-start; text-align: start;
	padding: 0 0 5px; max-width: 550px; min-width: 0;   /* no inner side padding: flush left */
}
/* Title block copied 1:1 from .nsp-card .nsp-card-title (weight 500, lh 1.1em,
   rgba(255,255,255,.8), stretch for hyphenation) — see 9senses-team nsp-front.css. */
.nsj-card .nsj-card-title {
	font-family: 'Special Elite', 'Courier New', Courier, monospace !important;
	font-weight: 500 !important; font-size: 26px !important; line-height: 1.1em !important;
	color: rgba(255,255,255,.8) !important; margin: 0 0 14px; padding: 0;
	align-self: stretch !important;
	hyphens: auto !important; -webkit-hyphens: auto !important; -moz-hyphens: auto !important; -ms-hyphens: auto !important;
	hyphenate-limit-chars: 6 3 3;
	overflow-wrap: break-word !important; word-wrap: break-word !important;
}
/* The whole title is a real anchor (like person cards): inherit the h3 styling
   so the theme's link rules can't shrink or recolor it. */
.nsj-card-titlelink, .nsj-card-titlelink:visited { color: inherit !important; text-decoration: none !important; font: inherit !important; letter-spacing: inherit !important; }
.nsj-card-titlelink:hover { color: #fff !important; text-decoration: none !important; }
a.nsj-card-more { text-decoration: none !important; }
/* Hard resets with !important, exactly like nsp-card-caps: Divi styles
   .entry-content ul/li with left padding + markers, which is what pushed the
   chip rows off the card's left edge. */
.nsj-card-meta {
	display: flex !important; flex-wrap: wrap !important; gap: 6px 6px !important;
	list-style: none !important; margin: 2px 0 12px !important; padding: 0 !important;
	align-self: stretch !important; width: 100% !important; min-width: 0 !important;
	text-align: left !important; line-height: 1.2 !important;
	justify-content: flex-start !important; align-content: flex-start !important;
}
.nsj-card-meta li {
	margin: 0 !important; padding: 0 !important; list-style: none !important;
	text-indent: 0 !important; display: inline-flex !important;
}
.nsj-card-meta li::before, .nsj-card-meta li::after { content: none !important; display: none !important; }
/* Location badges = the profile-card fog chips (nsp-card-caps): ink on a solid
   fog band with a blurred halo behind it. Same tokens, nsj namespace. */
.nsj-loc {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative; isolation: isolate; box-sizing: border-box;
	margin: 0; padding: 3px 5px; min-height: 20px; border: 0; background: transparent;
	color: #222b3f; border-radius: 2px;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif !important;
	font-size: 11.5px !important; line-height: 1.12 !important; font-weight: 600 !important;
	letter-spacing: 0 !important; white-space: nowrap;
}
.nsj-loc::before {
	content: ""; position: absolute; inset: -2px; z-index: -2; pointer-events: none;
	border-radius: 3px; background: rgba(207,207,207,.88); filter: blur(2.2px);
}
.nsj-loc::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	border-radius: 2px; background: rgba(207,207,207,.88);
	box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 1px 2px rgba(0,0,0,.13);
}
.nsj-card-excerpt {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 16px !important; line-height: 1.8em !important; color: #d3d3d3 !important;
	margin: 0 0 2px; padding: 0; display: block !important; text-align: justify !important;
	hyphens: auto; overflow-wrap: break-word;
}
.nsj-card-more {
	margin-top: 2px; align-self: flex-end; text-align: right; text-decoration: none;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif !important;
	font-size: 16px !important; font-weight: 600 !important; color: #0c71c3 !important; letter-spacing: .01em;
}
.nsj-empty { text-align: center; color: #d3d3d3; font-size: 16px; margin: 1.5rem 0; }

/* ===== Single job post — a FAITHFUL port of the news layout =====
   Ported 1:1 from ninesenses-landing's ns-pd-* rules (the working model), with
   ns- renamed to nsj-. Do not "improve" these values: the news page proves them.

   Two things the news system does that a job ad needs identically:
   1. hide the theme's own title/category meta (we render our own headline),
   2. render full-bleed inside the post column, since the 3-row grid needs the
      whole content width — Divi's default single-post column is too narrow and
      squeezes column 1 to nothing. */
.nsj-single-job .entry-title { display: none !important; }
.nsj-single-job .post-meta,
.nsj-single-job .et_pb_post_meta,
.nsj-single-job .et_pb_title_meta_container { display: none !important; }

/* No sidebar overriding here: a job ad is SAVED with Divi's no-sidebar layout
   (_et_pb_page_layout = et_no_sidebar, written on save, exactly as the
   9senses-team plugin does for profile posts), so the template renders full
   width by itself. */
.nsj-pd { padding-top: 2.5rem; margin-top: 20px; }
.nsj-pd-eyebrow {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-weight: 700;
	color: inherit; font-size: 16px; line-height: 1.4em; text-transform: uppercase;
	letter-spacing: normal; margin: 0 0 .5rem;
}

/* Three-row grid, exactly as news: col 1 = title / excerpt / body,
   col 2 (280px) = the aside. Source order is the mobile stack order. */
.nsj-pd-gridded { display: grid; grid-template-columns: minmax(0,1fr) 280px; column-gap: 0; position: relative; }
.nsj-pd-titlewrap { grid-column: 1; grid-row: 1; padding-right: 2.5rem; }
.nsj-pd-titlewrap .nsj-pd-date { float: right; margin: 8px calc(-2rem + 5px) 0 1.5rem; line-height: 1.1; text-align: right; white-space: nowrap; }
.nsj-pd-date { opacity: .7; font-size: calc(.9rem + 1px); margin: 0; }
.nsj-pd-title {
	font-family: 'Special Elite', 'Courier New', Courier, monospace !important;
	font-weight: 400; color: #d6d6d6 !important; font-size: clamp(30px,4.4vw,56px);
	line-height: 1.18; letter-spacing: .04em; margin: 0 0 calc(.17em - 15px) !important;
}
.nsj-pd-gridded > .nsj-pd-excerpt { grid-column: 1; grid-row: 2; }
.nsj-pd-gridded > .nsj-pd-body { grid-column: 1; grid-row: 3; min-width: 0; padding-right: 2.5rem; }
/* Exactly as news: the aside occupies column 2 / row 3, top-aligned. The top of
   column 2 is filled by the "logo" slot — for a job ad that slot carries the
   Apply block (see render_job), which is the news logo's structural role. */
.nsj-pd-gridded > .nsj-pd-arest { grid-column: 2; grid-row: 3; padding-top: 0; padding-left: 2.5rem; position: relative; align-self: start; }
/* The news logo slot: absolutely positioned at the top of column 2. */
.nsj-pd-gridded > .nsj-pd-top { position: absolute; top: 0; right: 0; width: 280px; padding-left: 2.5rem; box-sizing: border-box; }
.nsj-pd-chead { margin-top: 0 !important; }
/* Single glowing separator down the col-1/col-2 boundary, full grid height. */
.nsj-pd-gridded::before {
	content: ""; position: absolute; right: 280px; top: 0; bottom: 0; width: 1px;
	background: rgba(200,206,218,.32);
	box-shadow: 0 0 8px rgba(175,200,255,.55), 0 0 16px rgba(160,190,255,.28);
}
.nsj-pd-excerpt { font-style: italic; font-size: 16px; line-height: 1.8; color: #2ea3f2; padding-right: 20%; margin: 0; }
.nsj-pd-excerpt, .nsj-pd-excerpt p { color: #2ea3f2; font-family: inherit; font-style: italic; }
.nsj-pd-excerpt p { font-size: 16px; line-height: 1.8; margin: 0 !important; padding: 0 !important; }
.nsj-pd-excerpt > *:first-child { margin-top: 0 !important; }

/* Body typography — the news body rules verbatim. */
/* Breathing room between the excerpt and the first body block (news: 44px). */
.nsj-pd-body > *:first-child { margin-top: 44px !important; }
.nsj-pd-body h2 { margin: 35px 0 5px !important; }
.nsj-pd-body h3 { font-size: 18px; margin: 25px 0 5px !important; }
.nsj-pd-body p { margin: 0 0 .9em !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.nsj-pd-body img { max-width: 100%; height: auto; }
.nsj-pd-gridded > .nsj-pd-body ul, .nsj-pd-gridded > .nsj-pd-body ol { margin: 0 0 .5em 1.4em !important; padding: 0; }
.nsj-pd-gridded > .nsj-pd-body li:last-child { margin-bottom: 0 !important; }
.nsj-pd-gridded > .nsj-pd-body ul + *, .nsj-pd-gridded > .nsj-pd-body ol + * { margin-top: 0 !important; }
.nsj-pd-body li { margin: .3em 0; }
.nsj-pd-body a { color: #2ea3f2; }
/* Quote block — the news rules verbatim: Special Elite 22 / blue /
   right-aligned, attribution Open Sans 12; a last paragraph typed inside the
   quote is treated as the attribution. */
.nsj-pd-body blockquote { border: 0 !important; margin: 1.8em 0 !important; padding: 0 0 0 50px !important; background: transparent !important; quotes: none; }
.nsj-pd-body blockquote p { font-family: 'Special Elite', 'Courier New', monospace !important; font-size: 22px !important; line-height: 1.4 !important; color: #2ea3f2 !important; text-align: right !important; font-style: normal !important; margin: 0 0 .5em !important; }
.nsj-pd-body blockquote cite { display: block !important; font-family: 'Open Sans', sans-serif !important; font-size: 12px !important; font-style: normal !important; color: inherit !important; text-align: right !important; margin: -5px 0 0 !important; }
.nsj-pd-body blockquote p:last-child:not(:first-child) { font-family: 'Open Sans', sans-serif !important; font-size: 12px !important; font-style: normal !important; color: inherit !important; text-align: right !important; line-height: 1.5 !important; margin: -5px 0 0 !important; }
.nsj-pd-body blockquote p:last-child:not(:first-child) em, .nsj-pd-body blockquote p:last-child:not(:first-child) i, .nsj-pd-body blockquote p:last-child:not(:first-child) cite, .nsj-pd-body blockquote p:last-child:not(:first-child) strong { font-family: inherit !important; font-size: inherit !important; font-style: normal !important; font-weight: inherit !important; color: inherit !important; }
.nsj-pd-arest a { color: #2ea3f2 !important; }
/* Neutralize backgrounds coming from the post's own content. */
.nsj-pd-body .et_pb_section, .nsj-pd-body .et_pb_row, .nsj-pd-body .et_pb_column,
.nsj-pd-body .et_pb_with_background, .nsj-pd-body .wp-block-group.has-background,
.nsj-pd-body .wp-block-cover { background: transparent !important; }
/* Preserved image alignment: float so body text wraps around it (news verbatim). */
.nsj-pd-body .alignleft { float: left; margin: .2em 1.4em .8em 0; max-width: 48%; }
.nsj-pd-body .alignright { float: right; margin: .2em 0 .8em 1.4em; max-width: 48%; }
.nsj-pd-body .aligncenter { display: block; margin: 1em auto; }
.nsj-pd-body figure { margin: 0 0 1em; }
.nsj-pd-body figure.alignleft, .nsj-pd-body figure.alignright { max-width: 48%; }
.nsj-pd-body::after { content: ""; display: block; clear: both; }

/* Aside content (Apply + key facts), in the news aside's idiom.
   nsj-pd-chead marks the aside's first heading ("Key facts" — the news
   Contact). Its vertical position is set at runtime by the ported news
   positioner (margin-top on .nsj-pd-arest): cap-aligned with the first body
   paragraph, or 30px below the Apply slot when that reaches further down —
   exactly how ns-postdisplay.js places the news Contact block. The glow
   separator spans the full grid height regardless. */
.nsj-pd-heading { font-size: 18pt; margin: 15px 0 5px; }
.nsj-pd-top > .nsj-pd-heading:first-child { margin-top: 0 !important; }
.nsj-pd-applywrap { margin: 10px 0 calc(2rem + 20px); }   /* news: .ns-pd-contact */
.nsj-pd-facts { list-style: none !important; margin: 0 0 1.4rem !important; padding: 0 !important; }
.nsj-pd-facts li { list-style: none !important; margin: 0 0 10px !important; padding: 0 !important; text-indent: 0 !important; }
.nsj-pd-facts li::marker { content: ""; }
.nsj-pd-facts li::before, .nsj-pd-facts li::after { content: none !important; display: none !important; }
.nsj-pd-factlabel { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .55; }
.nsj-pd-chips { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 5px; }
.nsj-pd-actions { margin-top: 0; }
.nsj-pd-action { display: block; margin: 0; }
.nsj-pd-others { margin-top: 4.5rem; }
.nsj-pd-others .nsj-pd-heading { margin-bottom: 14px; }

/* Mobile stack — the news breakpoints. */
@media (max-width: 1024px) {
	.nsj-pd-titlewrap .nsj-pd-date { float: none; display: block; text-align: left; margin: 0 0 .5rem; }
}
@media (max-width: 782px) {
	.nsj-pd-gridded { grid-template-columns: 1fr; }
	.nsj-pd-titlewrap, .nsj-pd-gridded > .nsj-pd-top, .nsj-pd-gridded > .nsj-pd-excerpt,
	.nsj-pd-gridded > .nsj-pd-body, .nsj-pd-gridded > .nsj-pd-arest {
		grid-column: 1; grid-row: auto; align-self: auto; padding-right: 0; padding-left: 0;
	}
	.nsj-pd-gridded > .nsj-pd-top { position: static; width: auto; }
	.nsj-pd-excerpt { padding-right: 0; }
	.nsj-pd-gridded > .nsj-pd-arest { padding-top: 1.5rem; margin-top: .5rem; border-top: 1px solid rgba(220,224,232,.5); }
	.nsj-pd-gridded::before { display: none; }
	.nsj-pd-chead { margin-top: 0 !important; }
}
.nsj-apply-btn {
	background: #333333; color: #dcdcdc; border: 0; padding: 12px 34px; border-radius: 8px;
	cursor: pointer; font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: 17px; letter-spacing: .03em;
	transition: filter .2s, box-shadow .2s;
}
.nsj-apply-btn:hover { filter: brightness(1.3); box-shadow: 0 0 18px 3px rgba(207,207,207,.6); }
.nsj-gone { margin: 1rem 0 2rem; font-size: 17px; }

/* ===== Overlay + fog dialog (mirrors 9Senses Sidebar) ===== */
.nsj-overlay {
	display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
	z-index: 2147483600; align-items: flex-start; justify-content: center;
	padding: 5vh 3vw; box-sizing: border-box; overflow-y: auto;
}
.nsj-overlay.open { display: flex !important; }
.nsj-dialog {
	position: relative; background: transparent; color: #222b3f; border-radius: 14px;
	width: min(94vw, 860px); max-width: 860px; padding: 24px 30px 26px; box-sizing: border-box;
	font-size: 14px; line-height: 1.6; margin: auto 0;
}
.nsj-dialog::before {
	content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 14px;
	background: rgba(207,207,207,.88); filter: blur(5px);
}
.nsj-dlg-h {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 0 0 4px;
	font-family: 'Special Elite', 'Courier New', Courier, monospace; font-weight: 400; font-size: 25px; line-height: 1.2;
	letter-spacing: .01em; color: #0d1530;
}
.nsj-dlg-sub { font-size: 12.5px; opacity: .6; color: #222b3f; margin: 0 0 16px; }
.nsj-close {
	position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; font-size: 24px;
	line-height: 1; color: #555; cursor: pointer; background: transparent; border: 0;
	border-radius: 50%; transition: background .2s, color .2s;
}
.nsj-close:hover { color: #0d1530; background: rgba(255,255,255,.25); }

/* ---- application form (sidebar form language) ---- */
.nsj-form label { display: block; margin-bottom: 7px; font-size: 12.5px; color: #0d1530; font-weight: 600; }
.nsj-req { color: #c00; }
.nsj-form input[type=text], .nsj-form input[type=email], .nsj-form input[type=tel],
.nsj-form textarea, .nsj-form select {
	width: 100%; padding: 7px 10px; margin-top: 4px;
	border: 1px solid rgba(255,255,255,.5); border-radius: 8px; box-sizing: border-box;
	font-size: 14px; font-weight: 400; background: rgba(255,255,255,.42); color: #222b3f;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.nsj-form input:focus, .nsj-form textarea:focus, .nsj-form select:focus {
	outline: none; border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.68);
	box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
.nsj-form textarea { resize: vertical; min-height: 74px; }
.nsj-counter { font-size: 11px; color: #566; text-align: right; margin: -3px 0 9px; }
.nsj-file { margin: 4px 0 12px; font-size: 12.5px; }

/* ---- application wizard: one step at a time, two-column field grid ---- */
.nsj-step { display: none; }
.nsj-step.active { display: block; }
.nsj-step-title { font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: 19px; color: #0d1530; margin: 2px 0 14px; }
.nsj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; align-items: start; }
/* Long answers span the full dialog width; everything else shares a row. */
.nsj-grid .nsj-full, .nsj-grid .nsj-q-long_text, .nsj-grid .nsj-q-free_text { grid-column: 1 / -1; }
.nsj-q { min-width: 0; }
.nsj-wiznav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.nsj-back {
	background: transparent; color: #0d1530; border: 1px solid rgba(13,21,48,.35);
	padding: 9px 24px; border-radius: 8px; cursor: pointer;
	font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: 15px; letter-spacing: .03em; transition: background .2s;
}
.nsj-back:hover { background: rgba(255,255,255,.4); }
.nsj-back[disabled] { opacity: 0; pointer-events: none; }
.nsj-progress { font-size: 12px; color: #222b3f; opacity: .55; }

.nsj-quiz-intro { font-size: 13px; margin: 0 0 14px; }
.nsj-opt { display: block; font-weight: 400 !important; font-size: 13px !important; margin: 0 0 5px !important; padding-left: 24px; position: relative; cursor: pointer; }
.nsj-opt input { position: absolute; left: 0; top: 2px; }
.nsj-scale { display: flex; gap: 12px; margin: 4px 0 10px; }
.nsj-scale label { font-weight: 400 !important; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; margin: 0 !important; }
.nsj-consent {
	position: relative; font-size: 11px; color: #222b3f; line-height: 1.4;
	margin: 14px 0 10px; font-weight: 400; padding-left: 30px;
}
.nsj-consent input {
	position: absolute; left: 2px; top: 0; width: 17px; height: 17px; margin: 0; cursor: pointer;
	-webkit-appearance: none; appearance: none; border: 1px solid rgba(255,255,255,.6);
	border-radius: 5px; background: rgba(255,255,255,.42);
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.nsj-consent input:hover { border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.6); }
.nsj-consent input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.nsj-consent input:checked { background: #0d1530; border-color: #0d1530; }
.nsj-consent input:checked::after {
	content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
	border: solid #dcdcdc; border-width: 0 2px 2px 0; transform: rotate(43deg);
}
.nsj-consent a { color: #0d1530; text-decoration: underline; }
.nsj-hp { position: absolute; left: -9999px; }
.nsj-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.nsj-submit {
	background: #333333; color: #dcdcdc; border: 0; padding: 10px 28px; border-radius: 8px;
	cursor: pointer; font-family: 'Special Elite', 'Courier New', Courier, monospace; font-size: 15px; letter-spacing: .03em;
	transition: filter .2s, box-shadow .2s;
}
.nsj-submit:hover { filter: brightness(1.3); box-shadow: 0 0 18px 3px rgba(207,207,207,.6); }
.nsj-submit:disabled { opacity: .6; cursor: default; }
.nsj-msg { margin: 10px 0 0; font-size: 13px; }
.nsj-msg.err { color: #a00; }
.nsj-msg.ok { color: #0d1530; font-weight: 600; }
@media (max-width: 640px) {
	/* Mobile: pad the WRAP so the arrows still sit outside the card window
	   (the sample does the same), rather than overlapping the cards. */
	.nsj-carousel-wrap { padding: 0 28px; }
	.nsj-card { flex: 0 0 78vw; }
	.nsj-prev { left: 0; } .nsj-next { right: 0; }
	.nsj-dialog { padding: 20px 18px 22px; }
	.nsj-grid { grid-template-columns: 1fr; }
}