/*
Theme Name:   SYNthesize Labs (Child)
Theme URI:    https://synthesizelabs.com.sg/
Description:  Child theme of Engitech for synthesizelabs.com.sg. Put every site customisation here (CSS below, PHP in functions.php, template overrides in this folder) so the Engitech parent theme can be updated safely.
Author:       Synthesize Labs
Template:     engitech
Version:      1.5.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  engitech-child
*/

/* =Site customisations start here
------------------------------------------------------- */

/* ---------------------------------------------------------------
   Plain WordPress pages (Privacy Policy, Terms of Use, etc.)
   Match the Elementor pages on the dark background.
------------------------------------------------------------------ */
body.page:not(.elementor-page) .entry-content {
	padding-top: 60px;
	padding-bottom: 80px;
}
body.page:not(.elementor-page) .entry-content .inner-post,
body.page:not(.elementor-page) .entry-content .inner-post p,
body.page:not(.elementor-page) .entry-content .inner-post li,
body.page:not(.elementor-page) .entry-content .inner-post td {
	color: #ffffff;
	font-family: "Nunito Sans", sans-serif;
	font-size: 16px;
	line-height: 30px;
}
body.page:not(.elementor-page) .entry-content .inner-post h2,
body.page:not(.elementor-page) .entry-content .inner-post h3 {
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	margin: 45px 0 15px;
}
body.page:not(.elementor-page) .entry-content .inner-post h2 { font-size: 26px; line-height: 1.3; }
body.page:not(.elementor-page) .entry-content .inner-post h3 { font-size: 20px; line-height: 1.3; }
body.page:not(.elementor-page) .entry-content .inner-post a {
	color: #43baff;
	text-decoration: underline;
}
body.page:not(.elementor-page) .entry-content .inner-post ul {
	padding-left: 20px;
	margin-bottom: 20px;
}
body.page:not(.elementor-page) .entry-content .inner-post table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 25px;
}
body.page:not(.elementor-page) .entry-content .inner-post th,
body.page:not(.elementor-page) .entry-content .inner-post td {
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
body.page:not(.elementor-page) .entry-content .inner-post th {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
	font-weight: 700;
}
body.page:not(.elementor-page) .entry-content .inner-post code {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	padding: 1px 5px;
	border-radius: 3px;
}
/* Wide tables scroll inside their box on phones instead of the whole page */
body.page:not(.elementor-page) .wp-block-table { overflow-x: auto; }

/* Footer: Privacy Policy / Terms of Use links */
.site-footer .elementor-widget-text-editor a {
	background: transparent;
	color: inherit;
	text-decoration: underline;
}
.site-footer .elementor-widget-text-editor a:hover { color: #43baff; }

/* Tables in plain pages fit small screens */
@media (max-width: 767px) {
	body.page:not(.elementor-page) .entry-content .inner-post th,
	body.page:not(.elementor-page) .entry-content .inner-post td {
		padding: 8px;
		font-size: 14px;
		line-height: 22px;
		word-break: break-word;
	}
	body.page:not(.elementor-page) .entry-content .inner-post code { word-break: break-all; }
}

/* 404 page: readable heading on the dark background */
.error-404 h1 { color: #ffffff; }
.error-404 .content-404 p { color: rgba(255, 255, 255, 0.8); }

/* Footer: email link inside the footer headings, no box */
.site-footer .elementor-widget-heading a {
	background: transparent;
	color: inherit;
}
.site-footer .elementor-widget-heading a:hover { color: #43baff; }

/* Home page, phones and tablets:
   - the hero photo (SG-MarinaBay-2080-Wide.jpg) has white strips top and bottom;
     zoom it so they are cropped off on narrow screens
   - give the intro text a side gutter */
@media (max-width: 880px) {
	.elementor-5058 .elementor-element-54f41d38 {
		background-size: auto 160% !important;
		background-position: center center !important;
	}
	.elementor-5058 .elementor-element-3ee9fad6 > .elementor-widget-wrap {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}
}

/* ===============================================================
   Typography: one crisp typeface (Inter), no bold, modern and neat.
   Overrides the mix of Montserrat / Moulpali / Archivo / Nunito Sans.
   Icon fonts (i, .fa, .flaticon, eicons) are deliberately not targeted.
================================================================== */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01";
}
body, p, li, td, th, a, em, strong, b, label, input, textarea, select, button, blockquote,
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-text-editor,
.elementor-icon-box-title, .elementor-icon-box-description,
.page-header .page-title, .octf-btn,
.site-footer, .site-footer p {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
/* No bold anywhere: headings medium, emphasis medium, text regular */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.page-header .page-title,
.elementor-icon-box-title,
th, strong, b, .octf-btn {
	font-weight: 500 !important;
}
h1, h2, h3, .elementor-heading-title, .page-header .page-title {
	letter-spacing: -0.015em;
}
p, li, td, .elementor-widget-text-editor {
	font-weight: 400 !important;
	letter-spacing: 0;
}
/* Even, left-aligned paragraphs instead of justified text */
.elementor-5058 .elementor-element-d314c70,
.elementor-5058 .elementor-element-d314c70 p {
	text-align: left !important;
}
/* Footer: quieter, lighter, regular weight */
.site-footer .elementor-heading-title {
	font-weight: 400 !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	letter-spacing: 0;
}
.site-footer .elementor-widget-text-editor,
.site-footer .elementor-widget-text-editor p,
.site-footer .elementor-widget-text-editor strong {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, 0.55) !important;
	letter-spacing: 0.02em;
}
/* Theme "OT Heading" widget eyebrow text (e.g. "Come Join Us", "Get in touch") */
.ot-heading, .ot-heading > span, .ot-heading .main-heading {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
}
.ot-heading > span { letter-spacing: 0.1em !important; font-size: 12px; }
.ot-heading h2.main-heading { letter-spacing: -0.015em !important; }
.ot-heading p.main-heading { font-weight: 400 !important; line-height: 1.7; }

/* Code snippets (cookie names) in a crisp monospace */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important; }

/* ===============================================================
   Hiring: numbered list of open positions (index on /hiring/)
================================================================== */
.synlabs-jobs {
	list-style: none;
	counter-reset: job;
	margin: 30px 0 10px !important;
	padding: 0 !important;
	display: grid;
	gap: 14px;
}
.synlabs-jobs li {
	counter-increment: job;
	margin: 0 !important;
	padding: 0 !important;
}
.synlabs-jobs li::marker { content: ""; }
.synlabs-jobs a {
	position: relative;
	display: block;
	padding: 22px 24px 22px 76px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.02);
	text-decoration: none !important;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.synlabs-jobs a::before {
	content: counter(job, decimal-leading-zero);
	position: absolute;
	left: 24px;
	top: 22px;
	font-family: "Inter", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	color: #43baff;
	font-variant-numeric: tabular-nums;
}
.synlabs-jobs a:hover, .synlabs-jobs a:focus-visible {
	border-color: rgba(67, 186, 255, 0.6);
	background: rgba(67, 186, 255, 0.05);
	transform: translateY(-1px);
}
.synlabs-jobs__title {
	display: block;
	color: #ffffff;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
}
.synlabs-jobs__desc {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
	line-height: 24px;
}
.synlabs-jobs__more {
	display: inline-block;
	margin-top: 10px;
	color: #43baff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
@media (max-width: 767px) {
	.synlabs-jobs a { padding: 18px 18px 18px 58px; }
	.synlabs-jobs a::before { left: 18px; top: 18px; font-size: 17px; }
}

/* ===============================================================
   PGP key card: [synlabs_pgp_key]
================================================================== */
.synlabs-pgp {
	margin: 20px 0 10px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: #ffffff;
	text-align: left;
}
.synlabs-pgp__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.synlabs-pgp__label { font-size: 17px; font-weight: 500; line-height: 1.4; color: #ffffff; }
.synlabs-pgp__meta { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.synlabs-pgp__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.synlabs-pgp__fpr-label {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 6px;
}
.synlabs-pgp code.synlabs-pgp__fpr {
	display: block;
	padding: 12px 14px !important;
	border-radius: 6px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #ffffff !important;
	font-size: 14px !important;
	line-height: 1.5;
	letter-spacing: 0.04em;
	word-break: break-word;
}
.synlabs-pgp__details { margin-top: 16px; }
.synlabs-pgp__details summary {
	cursor: pointer;
	color: #43baff;
	font-size: 14px;
	font-weight: 500;
	list-style-position: inside;
}
.synlabs-pgp__details summary:hover { text-decoration: underline; }
.synlabs-pgp pre.synlabs-pgp__key {
	margin: 12px 0 0;
	padding: 16px;
	max-height: 320px;
	overflow: auto;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important;
	font-size: 12px;
	line-height: 1.6;
	white-space: pre;
}

/* Buttons */
.synlabs-btn,
.synlabs-pgp a.synlabs-btn,
body.page .entry-content .inner-post a.synlabs-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid #43baff;
	background: #43baff;
	color: #050314 !important;
	font-family: "Inter", sans-serif !important;
	font-size: 14px;
	font-weight: 500 !important;
	line-height: 20px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.synlabs-btn:hover { background: #6fcbff; border-color: #6fcbff; }
.synlabs-btn--ghost {
	background: transparent;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.35);
}
.synlabs-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #ffffff; }
@media (max-width: 480px) {
	.synlabs-pgp { padding: 18px; }
	.synlabs-pgp__actions, .synlabs-pgp__actions .synlabs-btn { width: 100%; text-align: center; }
}

/* Hiring index: "How to apply" block left-aligned under the list */
.elementor-1370 .elementor-element-61bb923 .ot-heading { text-align: left; }

/* ===============================================================
   Colour scheme: links, visited links, labels, muted text.
   Dark background, so: bright link, distinct-but-harmonious visited,
   white on hover/focus. No background boxes behind links.
================================================================== */
:root {
	--sl-link: #5ccbff;
	--sl-link-visited: #5ccbff; /* same as unvisited, by request */
	--sl-link-hover: #ffffff;
	--sl-text: #ffffff;
	--sl-muted: rgba(255, 255, 255, 0.78);
}
a:not(.synlabs-btn):not(.octf-btn) { background-color: transparent !important; }

#content a:not(.synlabs-btn):not(.octf-btn),
#content .elementor-widget-text-editor a,
#content .elementor-heading-title a,
#content .ot-heading a,
body.page:not(.elementor-page) .entry-content .inner-post a:not(.synlabs-btn) {
	color: var(--sl-link) !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#content a:not(.synlabs-btn):not(.octf-btn):visited,
#content .elementor-widget-text-editor a:visited,
#content .elementor-heading-title a:visited,
#content .ot-heading a:visited,
body.page:not(.elementor-page) .entry-content .inner-post a:not(.synlabs-btn):visited {
	color: var(--sl-link-visited) !important;
}
#content a:not(.synlabs-btn):not(.octf-btn):hover,
#content a:not(.synlabs-btn):not(.octf-btn):focus-visible,
body.page:not(.elementor-page) .entry-content .inner-post a:not(.synlabs-btn):hover {
	color: var(--sl-link-hover) !important;
	text-decoration-thickness: 2px;
}
a:focus-visible { outline: 2px solid var(--sl-link); outline-offset: 3px; border-radius: 2px; }

/* Job cards: whole card is the link - titles stay white, the "View role" cue carries link colour */
#content .synlabs-jobs a,
#content .synlabs-jobs a:visited,
#content .synlabs-jobs a:hover { color: var(--sl-text) !important; text-decoration: none !important; }
#content .synlabs-jobs a .synlabs-jobs__title { color: var(--sl-text); }
#content .synlabs-jobs a .synlabs-jobs__desc { color: var(--sl-muted); }
#content .synlabs-jobs a .synlabs-jobs__more { color: var(--sl-link); }
#content .synlabs-jobs a:visited .synlabs-jobs__more { color: var(--sl-link-visited); }
#content .synlabs-jobs a:hover .synlabs-jobs__more { color: var(--sl-link-hover); text-decoration: underline; }

/* Small uppercase labels ("Come Join Us", "How to apply") */
.ot-heading > span { color: var(--sl-link) !important; }

/* Body copy: brighter than the theme grey */
#content .elementor-widget-text-editor,
#content .elementor-widget-text-editor p,
#content .ot-heading p.main-heading { color: var(--sl-muted) !important; }

/* PGP card "Show full key" toggle follows the link colours */
.synlabs-pgp__details summary { color: var(--sl-link); }
.synlabs-pgp__details summary:hover { color: var(--sl-link-hover); }

/* Footer links: quiet, but clearly links */
.site-footer a,
.site-footer a:visited { color: rgba(255, 255, 255, 0.7) !important; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #ffffff !important; }

/* PGP card + job list: Inter everywhere except the monospace key/fingerprint */
.synlabs-pgp, .synlabs-pgp div, .synlabs-pgp summary, .synlabs-jobs, .synlabs-jobs span {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Footer copyright line + legal links: smaller (v1.5.3) */
.site-footer .elementor-element-8f52cc7,
.site-footer .elementor-element-8f52cc7 p,
.site-footer .elementor-element-8f52cc7 strong,
.site-footer .elementor-element-8f52cc7 a {
	font-size: 11px !important;
	line-height: 1.6 !important;
}

/* Home: collapse stacked spacing between services and "We are hiring!" on phone/tablet (v1.5.4) */
@media (max-width: 1024px) {
	.elementor-5058 .elementor-element-7ff93a9a { padding-bottom: 40px !important; }
	.elementor-5058 .elementor-element-183a520b > .elementor-widget-wrap { margin-bottom: 0 !important; }
	.elementor-5058 .elementor-element-f814e76 p:last-child { margin-bottom: 0 !important; }
}
