/* WordPress-specific adjustments for the Dersaf theme */

/* Fixed header + WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

/* Neutralise WP's injected width/height attributes on logos WITHOUT
   overriding the design's own max-width/max-height constraints. */
.company-mark img,
.cg-logo img,
.sector-companies-list .logo img {
	width: auto;
	height: auto;
}

/* Content images added from the WP editor inside articles */
.article-content img { max-width: 100%; height: auto; }
.article-content .wp-block-image,
.article-content figure { margin: 36px 0; }
.article-content .wp-block-image figcaption,
.article-content figcaption {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.04em;
	margin-top: 12px;
	font-style: italic;
	text-align: start;
}

/* WP alignment helpers */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Keep the fake-submit forms visually identical */
.form-grid input[type="file"] { padding: 12px 0; }

/* ============ Contact link inside the mobile menu (plain, like the other items) ============ */
.nav-mobile-contact-li { display: none; }
.nav.open .nav-mobile-contact-li { display: block; }

/* ============ Professional job description in the apply modal ============ */
#modalDesc {
	white-space: normal;
	border-top: 1px solid var(--line);
	padding-top: 22px;
}
#modalDesc p {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.9;
}
#modalDesc > p:first-child {
	font-size: 16px;
	color: var(--navy);
}
#modalDesc p:last-child { margin-bottom: 0; }

/* Section headings (a line ending with ":") — eyebrow style like the design */
.modal-desc-head {
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--copper);
	margin: 22px 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.modal-desc-head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* Bullet + numbered lists */
.modal-desc-list {
	list-style: none;
	margin: 4px 0 18px;
	padding: 0;
	counter-reset: mdl;
}
.modal-desc-list li {
	position: relative;
	padding-inline-start: 26px;
	margin-bottom: 9px;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.8;
}
ul.modal-desc-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 3px;
	top: 0.75em;
	width: 8px;
	height: 2px;
	background: var(--copper);
}
ol.modal-desc-list li {
	counter-increment: mdl;
}
ol.modal-desc-list li::before {
	content: counter(mdl) ".";
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: 15px;
	color: var(--copper);
}

/* Divider between the description and the application form */
.apply-modal-inner form {
	border-top: 1px solid var(--line);
	padding-top: 26px;
}
