/*
 * IHRS Careers — front-end styles.
 * Inherits fonts and text colour from the theme. To match your brand, override
 * the variables below in Appearance → Customize → Additional CSS, e.g.
 *   .ihrs-careers, .ihrs-job-single { --ihrs-accent: #0b5394; }
 */

.ihrs-careers,
.ihrs-job-single {
	--ihrs-accent: #1f4e8c;
	--ihrs-accent-text: #fff;
	--ihrs-border: rgba(0, 0, 0, 0.15);
	--ihrs-muted: rgba(0, 0, 0, 0.6);
	--ihrs-surface: rgba(0, 0, 0, 0.03);
	--ihrs-error: #b3261e;
	--ihrs-success: #1e6b3a;
	--ihrs-radius: 8px;
}

.ihrs-careers *,
.ihrs-job-single * {
	box-sizing: border-box;
}

/* Buttons & links */
.ihrs-btn {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: var(--ihrs-radius);
	background: var(--ihrs-accent);
	color: var(--ihrs-accent-text) !important;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}
.ihrs-btn:hover,
.ihrs-btn:focus-visible {
	filter: brightness(1.12);
}
.ihrs-btn:focus-visible,
.ihrs-careers input:focus-visible,
.ihrs-careers select:focus-visible,
.ihrs-careers textarea:focus-visible {
	outline: 2px solid var(--ihrs-accent);
	outline-offset: 2px;
}
.ihrs-link {
	margin-left: 1em;
	color: var(--ihrs-accent);
}
.ihrs-muted,
.ihrs-help {
	color: var(--ihrs-muted);
	font-size: 0.9em;
}

/* Job search + list */
.ihrs-job-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin-bottom: 1em;
}
.ihrs-job-filters input,
.ihrs-job-filters select {
	flex: 1 1 180px;
	min-width: 0;
}
.ihrs-job-filters input[type="search"] {
	flex-basis: 260px;
}
.ihrs-job-count {
	color: var(--ihrs-muted);
}
.ihrs-job-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1em;
}
.ihrs-job-card {
	margin: 0;
	padding: 1.25em 1.5em;
	border: 1px solid var(--ihrs-border);
	border-radius: var(--ihrs-radius);
}
.ihrs-job-title {
	margin: 0 0 0.5em;
}
.ihrs-job-title a {
	text-decoration: none;
}
.ihrs-job-excerpt {
	margin: 0.75em 0;
}
.ihrs-job-actions {
	margin: 1em 0 0;
}

/* Job details (card + single page) */
.ihrs-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.75em;
	margin: 0;
}
.ihrs-job-meta div {
	display: flex;
	flex-direction: column;
}
.ihrs-job-meta dt {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ihrs-muted);
	margin: 0;
}
.ihrs-job-meta dd {
	margin: 0;
	font-weight: 600;
}
.ihrs-job-single .ihrs-job-meta {
	padding: 1em 1.25em;
	margin-bottom: 1.5em;
	background: var(--ihrs-surface);
	border-radius: var(--ihrs-radius);
}

/* Forms */
.ihrs-form {
	margin: 0;
}
.ihrs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1em 1.5em;
}
.ihrs-full,
.ihrs-consent {
	grid-column: 1 / -1;
}
@media (max-width: 640px) {
	.ihrs-grid {
		grid-template-columns: 1fr;
	}
}
.ihrs-field label,
.ihrs-field legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}
.ihrs-field fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.ihrs-field input[type="text"],
.ihrs-field input[type="email"],
.ihrs-field input[type="tel"],
.ihrs-field input[type="url"],
.ihrs-field input[type="number"],
.ihrs-field select,
.ihrs-field textarea,
.ihrs-job-filters input,
.ihrs-job-filters select {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--ihrs-border);
	border-radius: calc(var(--ihrs-radius) - 2px);
	background: #fff;
	color: #1a1a1a;
	font: inherit;
	max-width: 100%;
}
.ihrs-field textarea {
	resize: vertical;
}
.ihrs-options,
.ihrs-job-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.4em 1.5em;
}
.ihrs-job-options {
	max-height: 18em;
	overflow-y: auto;
	padding: 0.75em 1em;
	border: 1px solid var(--ihrs-border);
	border-radius: var(--ihrs-radius);
}
.ihrs-options label,
.ihrs-job-options label,
.ihrs-consent label {
	display: flex;
	gap: 0.5em;
	align-items: flex-start;
	font-weight: normal;
	margin: 0;
}
.ihrs-options input,
.ihrs-job-options input,
.ihrs-consent input {
	margin-top: 0.3em;
	flex: none;
}
.ihrs-consent {
	margin: 1.5em 0 0.5em;
	font-size: 0.95em;
}
.ihrs-req {
	color: var(--ihrs-error);
}

/* Messages */
.ihrs-error {
	display: block;
	margin-top: 0.3em;
	color: var(--ihrs-error);
	font-size: 0.9em;
}
.has-error input,
.has-error select,
.has-error textarea {
	border-color: var(--ihrs-error) !important;
}
.ihrs-error-summary,
.ihrs-success,
.ihrs-notice {
	padding: 1em 1.25em;
	border-radius: var(--ihrs-radius);
	margin-bottom: 1.25em;
}
.ihrs-error-summary {
	border-left: 4px solid var(--ihrs-error);
	background: rgba(179, 38, 30, 0.07);
}
.ihrs-success {
	border-left: 4px solid var(--ihrs-success);
	background: rgba(30, 107, 58, 0.08);
}
.ihrs-success h3 {
	margin-top: 0;
}
.ihrs-notice {
	background: var(--ihrs-surface);
}

/* Honeypot: hidden from people, visible to naive bots. */
.ihrs-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------ *
 * New site design (.ihrs-page wrapper from the redesign template).
 * Uses the redesign's own tokens: --ink, --line, --brand-blue-deep …
 * ------------------------------------------------------------------ */

.ihrs-page .ihrs-careers,
.ihrs-page .ihrs-job-single {
	--ihrs-accent: var(--brand-blue-deep, #1D3F66);
	--ihrs-border: var(--line, #DCE6EE);
	--ihrs-muted: var(--ink-soft, #56677A);
	--ihrs-surface: var(--paper-raised, #EEF3F8);
	--ihrs-radius: 14px;
	font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
	color: var(--ink, #182430);
}

/* Page heading */
.ihrs-page .ihrs-intro {
	padding-block: 56px 36px;
	max-width: 760px;
}
.ihrs-page .ihrs-intro h1 {
	font-size: clamp(2.1rem, 4vw, 3.2rem);
	line-height: 1.08;
	margin-block: 14px 18px;
	color: var(--ink);
}
.ihrs-page .ihrs-intro .lede {
	font-size: 1.06rem;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 58ch;
	margin: 0;
}
.ihrs-page .ihrs-back {
	margin: 0 0 18px;
	font-size: .88rem;
}
.ihrs-page .ihrs-back a {
	text-decoration: none;
	color: var(--brand-blue);
	font-weight: 600;
}
.ihrs-page .ihrs-body {
	padding-bottom: 80px;
}
@media (max-width: 640px) {
	.ihrs-page .ihrs-intro { padding-block: 36px 24px; }
}

/* Buttons: redesign pill style */
.ihrs-page .ihrs-btn {
	border-radius: 999px;
	padding: .9em 1.7em;
	font-size: .95rem;
	background: var(--brand-blue-deep);
}
.ihrs-page .ihrs-link {
	color: var(--brand-blue);
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
}

/* Job search bar */
.ihrs-page .ihrs-job-filters {
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 14px;
	gap: 10px;
	margin-bottom: 18px;
}
.ihrs-page .ihrs-job-filters input,
.ihrs-page .ihrs-job-filters select {
	border-radius: 999px;
	padding: .8em 1.1em;
	border-color: var(--line);
	height: auto;
}
.ihrs-page .ihrs-job-count {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 0 0 18px;
}
.ihrs-page .ihrs-job-count a {
	color: var(--brand-blue);
}

/* Job cards: match .service-card */
.ihrs-page .ihrs-job-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 860px) {
	.ihrs-page .ihrs-job-list { grid-template-columns: 1fr; }
}
.ihrs-page .ihrs-job-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.ihrs-page .ihrs-job-card:hover {
	border-color: var(--brand-sky);
	box-shadow: var(--shadow);
}
.ihrs-page .ihrs-job-title {
	font-size: 1.25rem;
	margin: 0;
}
.ihrs-page .ihrs-job-title a {
	color: var(--ink);
}
.ihrs-page .ihrs-job-excerpt {
	color: var(--ink-soft);
	font-size: .93rem;
	line-height: 1.6;
	margin: 0;
}
.ihrs-page .ihrs-job-actions {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.ihrs-page .ihrs-job-actions .ihrs-link { margin-left: 0; }

/* Job facts */
.ihrs-page .ihrs-job-meta {
	gap: 12px 26px;
}
.ihrs-page .ihrs-job-meta dt {
	font-size: .7rem;
	letter-spacing: .1em;
	color: var(--ink-soft);
}
.ihrs-page .ihrs-job-meta dd {
	font-size: .93rem;
	color: var(--ink);
}
.ihrs-page .ihrs-job-single .ihrs-job-meta {
	background: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px 26px;
	margin-bottom: 32px;
}
.ihrs-page .ihrs-job-description {
	max-width: 760px;
	color: var(--ink-soft);
	line-height: 1.7;
	margin-bottom: 28px;
}
.ihrs-page .ihrs-job-description h2,
.ihrs-page .ihrs-job-description h3 {
	color: var(--ink);
	margin: 1.4em 0 .5em;
}

/* Forms: card like the redesign's panels */
.ihrs-page .ihrs-body-apply .ihrs-careers,
.ihrs-page .ihrs-body-employers .ihrs-careers {
	max-width: 900px;
}
.ihrs-page .ihrs-form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 36px;
	box-shadow: var(--shadow);
}
@media (max-width: 640px) {
	.ihrs-page .ihrs-form { padding: 22px 18px; border-radius: 18px; }
}
.ihrs-page .ihrs-field label,
.ihrs-page .ihrs-field legend {
	font-size: .86rem;
	font-weight: 600;
	color: var(--ink);
}
.ihrs-page .ihrs-field input[type="text"],
.ihrs-page .ihrs-field input[type="email"],
.ihrs-page .ihrs-field input[type="tel"],
.ihrs-page .ihrs-field input[type="url"],
.ihrs-page .ihrs-field input[type="number"],
.ihrs-page .ihrs-field select,
.ihrs-page .ihrs-field textarea {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: .8em 1em;
	height: auto;
	font-family: inherit;
	font-size: .95rem;
	color: var(--ink);
	background: var(--white);
	box-shadow: none;
}
.ihrs-page .ihrs-field input:focus,
.ihrs-page .ihrs-field select:focus,
.ihrs-page .ihrs-field textarea:focus {
	border-color: var(--brand-blue);
	outline: 2px solid var(--sky-soft);
	outline-offset: 0;
}
.ihrs-page .ihrs-options label,
.ihrs-page .ihrs-job-options label,
.ihrs-page .ihrs-consent label {
	font-weight: 400;
	font-size: .93rem;
	color: var(--ink-soft);
}
.ihrs-page .ihrs-job-options {
	background: var(--paper-raised);
	border-color: var(--line);
	border-radius: 14px;
}
.ihrs-page .ihrs-form .ihrs-btn {
	margin-top: 6px;
}
.ihrs-page .ihrs-success,
.ihrs-page .ihrs-error-summary,
.ihrs-page .ihrs-notice {
	border-radius: 16px;
}
.ihrs-page .ihrs-success h3 {
	font-size: 1.4rem;
	margin-bottom: .4em;
}

/* The Consultio theme wraps <select> in a <div> via script; size the wrapper like the field. */
.ihrs-job-filters > div {
	flex: 1 1 180px;
	min-width: 0;
}
.ihrs-job-filters > div select {
	width: 100%;
}
.ihrs-job-filters .ihrs-btn {
	flex: none;
}
