/**
 * HTC Careers — front-end styles.
 * Scoped to .htc-careers so the theme is left alone.
 */

.htc-careers {
	/* Brand tokens from htcsteelbuildings.com: amber on near-black, square corners. */
	--htc-accent: #eeba2c;
	--htc-accent-dark: #e4ae1e;
	--htc-ink: #1f1f1f;
	--htc-line: #d8d8d8;
	--htc-soft: #f7f7f7;
	--htc-shell: #ededed;
	--htc-muted: #6e6e6e;
	--htc-radius: 0px;
	--htc-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--htc-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	color: var(--htc-ink);
	font-family: var(--htc-body);
	max-width: 1140px;
	margin-inline: auto;
}

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

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

/* The site introduces every section with a small amber, wide-tracked label
   above a large Poppins heading. The careers page follows the same pattern. */
.htc-eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--htc-head);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.7;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--htc-accent-dark);
}

.htc-hero {
	margin-bottom: 2.75rem;
}

.htc-hero-title,
.htc-hero-text {
	max-width: 42ch;
}

.htc-hero-title {
	margin: 0 0 1rem;
	font-family: var(--htc-head);
	font-weight: 700;
	font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.25rem);
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: var(--htc-ink);
}

.htc-hero-text {
	margin: 0;
	color: var(--htc-muted);
	font-size: 1rem;
	line-height: 1.7;
}

/* ------------------------------------------------------- Figures band */

.htc-band {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 0 0 3rem;
	background: var(--htc-accent);
}

.htc-band-item {
	padding: 1.75rem 1rem;
	text-align: center;
	border-right: 1px solid rgba(31, 31, 31, 0.15);
}

.htc-band-item:last-child {
	border-right: 0;
}

.htc-band-value {
	display: block;
	font-family: var(--htc-head);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--htc-ink);
}

.htc-band-label {
	display: block;
	margin-top: 0.45rem;
	font-family: var(--htc-head);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(31, 31, 31, 0.78);
}

/* ------------------------------------------------------ Section header */

.htc-section-head {
	margin-bottom: 1.5rem;
}

.htc-section-title {
	margin: 0;
	font-family: var(--htc-head);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--htc-ink);
}

/* --------------------------------------------------------- Account bar */

.htc-accountbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.75rem;
	padding: 0.7rem 1rem;
	background: var(--htc-soft);
	border: 0;
	border-radius: var(--htc-radius);
	font-size: 0.92rem;
}

.htc-accountbar-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.htc-inline-form {
	display: inline;
	margin: 0;
}

.htc-linkbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--htc-ink);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

.htc-notice {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	border-radius: var(--htc-radius);
	border-left: 4px solid currentColor;
	background: var(--htc-soft);
	font-size: 0.97rem;
}

.htc-notice ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.htc-notice li + li {
	margin-top: 0.35rem;
}

.htc-notice-error {
	color: #9b1c1c;
	background: #fdf2f2;
}

.htc-notice-success {
	color: #04603f;
	background: #effaf5;
}

.htc-notice-info {
	color: #1f4b78;
	background: #eff6fc;
}

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

.htc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: flex-end;
	padding: 1.1rem 1.25rem;
	margin-bottom: 2rem;
	background: var(--htc-soft);
	border: 0;
	border-left: 3px solid var(--htc-accent);
	border-radius: var(--htc-radius);
}

.htc-field {
	display: block;
	min-width: 170px;
}

.htc-field-grow {
	flex: 1 1 240px;
}

.htc-label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--htc-head);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--htc-muted);
}

.htc-careers input[type="text"],
.htc-careers input[type="email"],
.htc-careers input[type="tel"],
.htc-careers input[type="search"],
.htc-careers input[type="password"],
.htc-careers input[type="file"],
.htc-careers select,
.htc-careers textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #c8ccd4;
	border-radius: var(--htc-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
}

.htc-careers textarea {
	resize: vertical;
}

.htc-careers input:focus-visible,
.htc-careers select:focus-visible,
.htc-careers textarea:focus-visible,
.htc-careers .htc-button:focus-visible {
	outline: 3px solid var(--htc-ink);
	outline-offset: 1px;
}

.htc-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: var(--htc-muted);
}

.htc-small {
	font-size: 0.85rem;
	color: var(--htc-muted);
}

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

.htc-careers .htc-button {
	display: inline-block;
	padding: 1rem 2.1rem;
	border: 2px solid var(--htc-accent);
	border-radius: var(--htc-radius);
	background: var(--htc-accent);
	color: var(--htc-ink);
	font-family: var(--htc-head);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.htc-careers .htc-button:hover,
.htc-careers .htc-button:focus {
	background: var(--htc-accent-dark);
	border-color: var(--htc-accent-dark);
	color: var(--htc-ink);
}

/* Amber fails contrast as text on white, so the ghost button is dark-on-white
   and fills with amber on hover rather than using amber type. */
.htc-careers .htc-button-ghost {
	background: transparent;
	border-color: var(--htc-ink);
	color: var(--htc-ink);
}

.htc-careers .htc-button-ghost:hover,
.htc-careers .htc-button-ghost:focus {
	background: var(--htc-ink);
	border-color: var(--htc-ink);
	color: #fff;
}

.htc-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-top: 1.25rem;
}

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

.htc-joblist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.htc-joblist {
	border-top: 1px solid var(--htc-shell);
}

.htc-jobcard {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: center;
	justify-content: space-between;
	padding: 1.75rem 0.25rem;
	border-bottom: 1px solid var(--htc-shell);
	background: #fff;
	transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.htc-jobcard:hover {
	background: #fcfcfc;
	padding-left: 1rem;
}

.htc-jobcard-main {
	flex: 1 1 320px;
	min-width: 0;
}

.htc-jobcard-title {
	margin: 0 0 0.6rem;
	font-family: var(--htc-head);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
}

.htc-jobcard-title a {
	color: inherit;
	text-decoration: none;
}

.htc-jobcard-title a:hover {
	color: var(--htc-ink);
	text-decoration: underline;
	text-decoration-color: var(--htc-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
}

.htc-jobcard-excerpt {
	margin: 0.6rem 0 0;
	color: var(--htc-muted);
	font-size: 0.94rem;
	line-height: 1.55;
}

.htc-jobcard-action {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	align-items: flex-start;
}

.htc-deadline {
	font-size: 0.8rem;
	color: var(--htc-muted);
}

/* --------------------------------------------------------------- Chips */

.htc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.htc-chip {
	padding: 0.3rem 0.75rem;
	font-family: var(--htc-head);
	border: 0;
	border-radius: 0;
	background: var(--htc-shell);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #4a4a4a;
}

/* ------------------------------------------------------ Single position */

.htc-back {
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.htc-back a {
	color: var(--htc-muted);
	text-decoration: none;
}

.htc-back a:hover {
	color: var(--htc-ink);
}

.htc-position-head {
	padding-bottom: 1.75rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--htc-shell);
}

.htc-position-title {
	margin: 0 0 0.9rem;
	font-family: var(--htc-head);
	font-weight: 700;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	line-height: 1.25;
}

.htc-position-body {
	font-size: 1rem;
	line-height: 1.7;
	max-width: 70ch;
}

.htc-position-body h2,
.htc-position-body h3,
.htc-position-body h4 {
	margin-top: 1.8rem;
	margin-bottom: 0.6rem;
	line-height: 1.25;
}

.htc-position-body ul,
.htc-position-body ol {
	padding-left: 1.3rem;
}

.htc-position-body li + li {
	margin-top: 0.35rem;
}

/* --------------------------------------------------------------- Panels */

.htc-panel {
	margin-top: 3rem;
	padding: 2rem;
	border: 1px solid var(--htc-shell);
	border-radius: var(--htc-radius);
	background: #fff;
}

.htc-panel-title {
	margin: 0 0 0.5rem;
	font-family: var(--htc-head);
	font-size: 1.25rem;
	font-weight: 700;
}

.htc-panel-intro {
	margin: 0 0 1.25rem;
	color: var(--htc-muted);
	font-size: 0.95rem;
	max-width: 60ch;
}

.htc-panel-done {
	border-top-color: #0f9d58;
	background: #f7fdfa;
}

/* ----------------------------------------------------------------- Tabs */

.htc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--htc-line);
}

.htc-tab {
	padding: 0.6rem 1rem;
	font-family: var(--htc-head);
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: var(--htc-radius) var(--htc-radius) 0 0;
	color: var(--htc-muted);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: -1px;
}

.htc-tab:hover {
	color: var(--htc-ink);
}

.htc-tab.is-active {
	background: #fff;
	border-color: var(--htc-line);
	color: var(--htc-ink);
}

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

.htc-form {
	margin: 0;
}

.htc-form .htc-field + .htc-field,
.htc-form .htc-row + .htc-field,
.htc-form .htc-field + .htc-row,
.htc-form .htc-row + .htc-row {
	margin-top: 1rem;
}

.htc-row {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.htc-row {
		grid-template-columns: 1fr 1fr;
	}
}

.htc-field-file input[type="file"] {
	padding: 0.5rem;
	background: var(--htc-soft);
	cursor: pointer;
}

.htc-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin-top: 1.1rem;
	font-size: 0.93rem;
	line-height: 1.5;
}

.htc-check input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.htc-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.htc-file-error {
	display: block;
	margin-top: 0.4rem;
	color: #9b1c1c;
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Table */

.htc-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.25rem;
	font-size: 0.94rem;
}

.htc-table th,
.htc-table td {
	padding: 0.7rem 0.6rem;
	text-align: left;
	border-bottom: 1px solid var(--htc-line);
	vertical-align: top;
}

.htc-table th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--htc-muted);
}

.htc-status {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 0;
	background: var(--htc-soft);
	border: 1px solid var(--htc-line);
	font-size: 0.8rem;
	font-weight: 600;
}

.htc-status-shortlisted,
.htc-status-interview {
	background: #fff6e5;
	border-color: #f0d9a8;
	color: #8a5b00;
}

.htc-status-hired {
	background: #effaf5;
	border-color: #a8dcc4;
	color: #04603f;
}

.htc-status-rejected {
	background: #fdf2f2;
	border-color: #f0c0c0;
	color: #9b1c1c;
}

/* ----------------------------------------------------------- Prose links
   Scoped to the places that would otherwise fall back to browser-blue.
   Card titles and buttons keep their own treatment. */

.htc-accountbar a,
.htc-position-body a,
.htc-empty a:not(.htc-button),
.htc-panel a:not(.htc-button):not(.htc-tab) {
	color: var(--htc-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--htc-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.htc-accountbar a:hover,
.htc-position-body a:hover,
.htc-empty a:not(.htc-button):hover,
.htc-panel a:not(.htc-button):not(.htc-tab):hover {
	color: var(--htc-ink);
	text-decoration-thickness: 3px;
}

/* ------------------------------------------------------ Dark apply card
   Mirrors the "Have a project?" contact card on the rest of the site:
   charcoal block, underlined fields, amber action. */

.htc-panel-dark {
	background: #2b2b2b;
	border: 0;
	color: #fff;
	padding: 2.25rem 2.25rem 2.5rem;
}

.htc-panel-dark .htc-panel-title {
	color: #fff;
	font-size: 1.5rem;
}

.htc-panel-dark .htc-panel-intro {
	color: rgba(255, 255, 255, 0.62);
}

.htc-panel-dark .htc-label {
	color: rgba(255, 255, 255, 0.5);
}

.htc-panel-dark input[type="text"],
.htc-panel-dark input[type="email"],
.htc-panel-dark input[type="tel"],
.htc-panel-dark input[type="password"],
.htc-panel-dark select {
	padding: 0.55rem 0 0.6rem;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	color: #fff;
}

.htc-panel-dark select option {
	background: #2b2b2b;
	color: #fff;
}

.htc-panel-dark textarea {
	padding: 0.75rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.htc-panel-dark input[type="file"] {
	padding: 0.85rem;
	border: 1px dashed rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.htc-panel-dark input::placeholder,
.htc-panel-dark textarea::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.htc-panel-dark input:focus-visible,
.htc-panel-dark select:focus-visible,
.htc-panel-dark textarea:focus-visible {
	outline: 2px solid var(--htc-accent);
	outline-offset: 2px;
	border-bottom-color: var(--htc-accent);
}

.htc-panel-dark .htc-hint,
.htc-panel-dark .htc-small {
	color: rgba(255, 255, 255, 0.55);
}

.htc-panel-dark .htc-check {
	color: rgba(255, 255, 255, 0.85);
}

.htc-panel-dark .htc-tabs {
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

.htc-panel-dark .htc-tab {
	color: rgba(255, 255, 255, 0.55);
}

.htc-panel-dark .htc-tab:hover {
	color: #fff;
}

.htc-panel-dark .htc-tab.is-active {
	background: transparent;
	border-color: transparent;
	border-bottom: 2px solid var(--htc-accent);
	color: #fff;
}

.htc-panel-dark .htc-button-ghost {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.htc-panel-dark .htc-button-ghost:hover,
.htc-panel-dark .htc-button-ghost:focus {
	background: #fff;
	border-color: #fff;
	color: var(--htc-ink);
}

.htc-panel-dark a:not(.htc-button):not(.htc-tab) {
	color: #fff;
	text-decoration-color: var(--htc-accent);
}

.htc-panel-dark a:not(.htc-button):not(.htc-tab):hover {
	color: #fff;
}

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

.htc-empty {
	padding: 2rem 1.5rem;
	border: 1px dashed var(--htc-line);
	border-radius: var(--htc-radius);
	background: var(--htc-soft);
	text-align: center;
	color: var(--htc-muted);
}

.htc-empty p:last-child {
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.htc-panel {
		padding: 1.25rem;
	}

	.htc-jobcard {
		padding: 1rem;
	}

	.htc-jobcard-action {
		width: 100%;
	}

	.htc-careers .htc-button {
		width: 100%;
		text-align: center;
	}
}
