/*
 * Careers job rows and job dialog (pixel-fix plan chunk 03; CAREERS-39, -41), as the v6.5 prototype
 * (markup.html, Careers "jobModalOpen"). Colours: cds-* variables (light.css re-points them); the
 * backdrop, the Apply button text and its hover are the prototype's literals in both themes.
 * Variable fallbacks: Divi prints only the colour variables a page uses.
 */
/* Pointer only once job-modal.js has made the row clickable (it adds cds-job-row--js). */
html body .cds-job-row.cds-job-row--js {
	cursor: pointer;
}

/* WCAG 2.4.7: the ring goes round the whole row while its link has keyboard focus. */
html body .cds-job-row:has(a[href]:focus-visible) {
	outline: 2px solid var(--gcid-cds-accent);
	outline-offset: 2px;
}

html body .cds-job-row a[href]:focus-visible {
	outline: none;
}

.cds-job-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 56px 24px;
	border: 0;
	box-sizing: border-box;
	overflow-y: auto;
	background: rgba(5, 5, 6, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	overscroll-behavior: contain;
	color: var(--gcid-cds-text, #F0F0F0);
}

/* Scroll lock: the page behind the open dialog doesn't scroll (the dialog scrolls itself). */
html:has(dialog.cds-job-modal[open]) {
	overflow: hidden;
}

.cds-job-modal::backdrop {
	background: transparent;
}

.cds-job-modal__panel {
	max-width: 860px;
	margin: 0 auto 56px;
	border: 1px solid var(--gcid-cds-border-2, #2A2B30);
	border-radius: 16px;
	background-color: var(--gcid-cds-card, #15161A);
	font-family: var(--gvid-cds-font-body, "IBM Plex Sans"), sans-serif;
	font-weight: 400;
}

.cds-job-modal__head {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 40px 44px 30px;
	border-bottom: 1px solid var(--gcid-cds-border-2, #2A2B30);
}

.cds-job-modal__headtext {
	flex: 1;
	min-width: 0;
}

/* Client logo on job postings (client corrections 16 Nov 2026, D7). */
.cds-job-modal__logo {
	display: block;
	width: auto;
	height: 28px;
	max-width: 100%;
	margin: 0 0 22px;
}

.cds-job-modal__dept,
.cds-job-modal__meta {
	margin: 0;
	padding: 0;
	font-family: var(--gvid-cds-font-mono, "IBM Plex Mono"), monospace;
	line-height: normal;
	text-transform: uppercase;
}

.cds-job-modal__dept {
	margin-bottom: 12px;
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--gcid-cds-accent, #7D8DEB);
}

.cds-job-modal__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--gvid-cds-font-heading, Orbitron), sans-serif;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gcid-cds-text, #F0F0F0);
}

.cds-job-modal__meta {
	display: flex;
	flex-wrap: wrap;
	column-gap: 22px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--gcid-cds-muted, #97979C);
}

.cds-job-modal__close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--gcid-cds-border-2, #2A2B30);
	border-radius: 50%;
	background: transparent;
	color: var(--gcid-cds-muted, #97979C);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: none;
}

.cds-job-modal__close:hover {
	border-color: var(--gcid-cds-accent, #7D8DEB);
	color: var(--gcid-cds-accent, #7D8DEB);
}

.cds-job-modal__body {
	padding: 36px 44px 44px;
}

.cds-job-modal__content p {
	margin: 0 0 16px;
	padding: 0;
	font-size: 16px;
	line-height: 1.85;
	color: var(--gcid-cds-body, #C6C6C9);
}

.cds-job-modal__content :is(h3, h4, h5) {
	margin: 36px 0 18px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--gcid-cds-border-2, #2A2B30);
	font-family: var(--gvid-cds-font-mono, "IBM Plex Mono"), monospace;
	font-size: 13px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gcid-cds-muted, #97979C);
}

.cds-job-modal__content > :first-child {
	margin-top: 0;
}

.cds-job-modal__content ul {
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.cds-job-modal__content li {
	position: relative;
	margin: 0 0 13px;
	padding: 0 0 0 19px;
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--gcid-cds-body, #C6C6C9);
}

.cds-job-modal__content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	box-sizing: border-box;
	border-radius: 50%;
	background-color: var(--gcid-cds-accent, #7D8DEB);
}

.cds-job-modal__content .cds-job-list--req li::before {
	border-radius: 0;
}

.cds-job-modal__content .cds-job-list--nice li::before {
	border: 1px solid rgba(91, 110, 214, 0.6);
	border-radius: 0;
	background: transparent;
}

.cds-job-modal__content strong {
	color: var(--gcid-cds-text, #F0F0F0);
	font-weight: 600;
}

.cds-job-modal__content a {
	color: var(--gcid-cds-accent, #7D8DEB);
}

.cds-job-modal__apply {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-top: 40px;
}

.cds-job-modal__button {
	margin: 0;
	padding: 14px 30px;
	border: 0;
	border-radius: 100px;
	background-color: var(--gcid-cds-accent-btn, #3F51C0);
	color: #FDFCF9;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: normal;
	cursor: pointer;
	transition: none;
}

.cds-job-modal__button:hover {
	background-color: #4A5CD0;
}

.cds-job-modal__email {
	font-size: 14px;
	color: var(--gcid-cds-muted, #97979C);
}

/* Phones (no prototype reference): tighter padding so the panel fits. */
@media (max-width: 767px) {
	.cds-job-modal {
		padding: 24px 12px;
	}

	.cds-job-modal__head {
		padding: 28px 24px 22px;
	}

	.cds-job-modal__body {
		padding: 28px 24px 32px;
	}
}

/* The module that holds the dialogs shows nothing itself; job-modal.js moves the dialogs to <body> on load. */
html body .cds-job-dialogs {
	display: none;
}
