/**
 * Arise Health Careers - public styles.
 *
 * Typography is never declared here. Font family, weight and colour are
 * inherited from the active theme so vacancies read as part of the site rather
 * than as an embedded widget. Only the scale, spacing and the token-driven
 * accents belong to the plugin.
 */

/* --- Shell ---------------------------------------------------------------- */

.ahc {
	color: inherit;
	font-family: inherit;
}

.ahc *,
.ahc *::before,
.ahc *::after {
	box-sizing: border-box;
}

.ahc p {
	max-width: 68ch;
}

/* --- Hero ----------------------------------------------------------------- */

.ahc-hero {
	margin-bottom: 2.5rem;
}

.ahc-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	line-height: 1.2;
}

.ahc-hero__lead {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.ahc-hero__count {
	margin: 0;
	color: var(--ahc-muted);
	font-size: 0.9375rem;
}

/* --- Filters -------------------------------------------------------------- */

.ahc-filters {
	margin-bottom: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--ahc-border);
	border-radius: var(--ahc-radius);
	background: var(--ahc-surface);
}

.ahc-filters__title {
	margin: 0 0 0.875rem;
	font-size: 1rem;
	line-height: 1.3;
}

.ahc-filters__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	align-items: end;
}

.ahc-field--actions {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.ahc-clear {
	color: var(--ahc-muted);
	font-size: 0.9375rem;
}

/* --- Job list ------------------------------------------------------------- */

.ahc-jobs {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.25rem;
}

.ahc-columns-2 .ahc-jobs {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ahc-columns-3 .ahc-jobs {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ahc-job {
	margin: 0;
	padding: 0;
}

/*
 * The left rule carries the information that this is a distinct, openable
 * position, and thickens on interaction. It replaces a drop shadow, which
 * would say nothing.
 */
.ahc-job__inner {
	padding: 1.5rem 1.5rem 1.5rem 1.75rem;
	border: 1px solid var(--ahc-border);
	border-left: 4px solid var(--ahc-primary);
	border-radius: var(--ahc-radius);
	background: var(--ahc-surface);
}

.ahc-job__inner:hover,
.ahc-job__inner:focus-within {
	border-left-width: 8px;
	padding-left: 1.5rem;
}

.ahc-job__title {
	margin: 0 0 0.5rem;
	font-size: 1.3125rem;
	line-height: 1.3;
}

.ahc-job__title a {
	color: inherit;
	text-decoration: none;
}

.ahc-job__title a:hover,
.ahc-job__title a:focus {
	text-decoration: underline;
}

.ahc-job__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.ahc-job__location {
	color: var(--ahc-muted);
}

.ahc-job__summary {
	margin: 0 0 0.75rem;
	line-height: 1.6;
}

.ahc-job__deadline {
	margin: 0 0 1.125rem;
	color: var(--ahc-accent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.ahc-job__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 0;
	max-width: none;
}

.ahc-tag {
	display: inline-block;
	padding: 0.125rem 0.625rem;
	border: 1px solid var(--ahc-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.6;
}

/* --- Empty state ---------------------------------------------------------- */

.ahc-empty {
	padding: 2.5rem 1.5rem;
	border: 1px dashed var(--ahc-border);
	border-radius: var(--ahc-radius);
	text-align: center;
}

.ahc-empty p {
	margin-left: auto;
	margin-right: auto;
}

.ahc-empty__title {
	margin: 0 0 0.5rem;
	font-size: 1.1875rem;
}

/* --- Pagination ----------------------------------------------------------- */

.ahc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 2rem;
}

.ahc-pagination__link,
.ahc-pagination__current {
	display: inline-block;
	min-width: 2.5rem;
	padding: 0.4375rem 0.625rem;
	border: 1px solid var(--ahc-border);
	border-radius: var(--ahc-radius);
	text-align: center;
	text-decoration: none;
}

.ahc-pagination__current {
	border-color: var(--ahc-primary);
	background: var(--ahc-primary);
	color: #fff;
	font-weight: 600;
}

/* --- Buttons -------------------------------------------------------------- */

.ahc-button {
	display: inline-block;
	padding: 0.6875rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--ahc-radius);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ahc-button--primary {
	background: var(--ahc-primary);
	border-color: var(--ahc-primary);
	color: #fff;
}

.ahc-button--primary:hover,
.ahc-button--primary:focus {
	background: var(--ahc-primary-hover);
	border-color: var(--ahc-primary-hover);
	color: #fff;
}

.ahc-button--secondary {
	background: transparent;
	border-color: var(--ahc-primary);
	color: var(--ahc-primary);
}

.ahc-button--secondary:hover,
.ahc-button--secondary:focus {
	background: var(--ahc-primary);
	color: #fff;
}

.ahc-button--quiet {
	padding-left: 0;
	padding-right: 0;
	background: none;
	color: var(--ahc-primary);
	font-weight: 600;
	text-decoration: underline;
}

.ahc-button[disabled],
.ahc-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* --- Single vacancy ------------------------------------------------------- */

.ahc-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--ahc-border);
	border-radius: var(--ahc-radius);
	background: var(--ahc-surface);
}

.ahc-details__item {
	margin: 0;
}

.ahc-details dt {
	margin: 0 0 0.1875rem;
	color: var(--ahc-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.ahc-details dd {
	margin: 0;
	font-size: 1.0625rem;
}

.ahc-job-single__cta {
	margin: 0 0 2rem;
}

.ahc-section {
	margin-bottom: 2rem;
}

.ahc-section__title {
	margin: 0 0 0.75rem;
	font-size: 1.375rem;
	line-height: 1.3;
}

.ahc-section__body > :first-child {
	margin-top: 0;
}

.ahc-section__body > :last-child {
	margin-bottom: 0;
}

.ahc-section__body ul,
.ahc-section__body ol {
	padding-left: 1.25rem;
	line-height: 1.65;
}

.ahc-section__body li {
	margin-bottom: 0.5rem;
	max-width: 68ch;
}

/* --- Notices -------------------------------------------------------------- */

.ahc-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--ahc-border);
	border-radius: var(--ahc-radius);
	background: var(--ahc-surface);
}

.ahc-notice p {
	margin: 0 0 0.5rem;
}

.ahc-notice p:last-child {
	margin-bottom: 0;
}

.ahc-notice--success {
	border-left-color: var(--ahc-primary);
	background: color-mix(in srgb, var(--ahc-primary) 8%, #fff);
}

.ahc-notice--error {
	border-left-color: #a4291f;
	background: #fdf4f3;
}

.ahc-notice--closed {
	border-left-color: var(--ahc-muted);
	color: var(--ahc-muted);
}

.ahc-notice__list {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.ahc-notice__list a {
	color: #a4291f;
}

/* --- Form ----------------------------------------------------------------- */

.ahc-apply {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ahc-border);
}

.ahc-apply__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.ahc-apply__intro {
	margin: 0 0 1.75rem;
}

.ahc-fieldset {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.ahc-fieldset legend {
	margin: 0 0 0.875rem;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 600;
}

.ahc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.125rem;
}

.ahc-field--wide {
	grid-column: 1 / -1;
}

.ahc-field label {
	display: block;
	margin-bottom: 0.3125rem;
	font-weight: 600;
}

.ahc-required {
	margin-left: 0.25rem;
	color: var(--ahc-muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

.ahc input[type="text"],
.ahc input[type="email"],
.ahc input[type="tel"],
.ahc input[type="file"],
.ahc select,
.ahc textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--ahc-border);
	border-radius: var(--ahc-radius);
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

.ahc textarea {
	min-height: 8rem;
	resize: vertical;
}

.ahc input:focus,
.ahc select:focus,
.ahc textarea:focus,
.ahc a:focus,
.ahc button:focus {
	outline: 3px solid var(--ahc-primary);
	outline-offset: 2px;
}

.ahc input[aria-invalid="true"],
.ahc select[aria-invalid="true"],
.ahc textarea[aria-invalid="true"] {
	border-color: #a4291f;
	border-width: 2px;
}

.ahc-hint {
	margin: 0.3125rem 0 0;
	color: var(--ahc-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

.ahc-error {
	margin: 0.3125rem 0 0;
	color: #a4291f;
	font-size: 0.875rem;
	font-weight: 600;
}

.ahc-field--consent {
	margin-bottom: 1.75rem;
}

.ahc-checkbox {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-weight: 400;
	line-height: 1.55;
	cursor: pointer;
}

.ahc-checkbox input {
	margin-top: 0.25rem;
	width: 1.125rem;
	height: 1.125rem;
	flex: 0 0 auto;
}

.ahc-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.ahc-form__status {
	margin: 0;
	color: var(--ahc-muted);
	font-size: 0.9375rem;
}

/* Honeypot: off-screen rather than display:none, which some screen readers
   and some bots treat differently. */
.ahc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* --- Utilities ------------------------------------------------------------ */

.ahc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	.ahc-job__inner {
		padding: 1.25rem 1.125rem 1.25rem 1.375rem;
	}

	.ahc-job__actions .ahc-button--primary {
		width: 100%;
	}

	.ahc-details {
		padding: 1rem 1.125rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ahc-job__inner,
	.ahc-button {
		transition: border-left-width 120ms ease, padding-left 120ms ease, background-color 120ms ease;
	}
}

@media (prefers-contrast: more) {
	.ahc-job__inner,
	.ahc-details,
	.ahc-filters {
		border-color: currentColor;
	}
}
