/*
 * Arcfront theme for the Ashby-hosted job board, job postings and application form.
 * Upload in: Ashby Admin > Theme (Job Board) > Job Board Options > Custom CSS
 *
 * Colours are the Dark-mode tokens from the Arcfront Design System (Figma):
 * background void #070707, background-secondary #1A1A1A, text origin #F7F8F6,
 * text-secondary origin 60%, border origin 20%, primary hover #C1C2C0.
 * Fonts: Saans (heading/body), Construct Mono (tag), per the design system.
 * Fonts load from the website's own Webflow CDN files.
 */

@font-face {
	font-family: "Saans";
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	src: url("https://cdn.prod.website-files.com/6af321066827f0bff06ff477/6af32148949e12b59653af56_Saans-Medium.otf") format("opentype");
}

@font-face {
	font-family: "Construct Mono";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("https://cdn.prod.website-files.com/6af321066827f0bff06ff477/6af3215e637e7243f355d4c0_ConstructMono.otf") format("opentype");
}

:root {
	--fontFamily: "Saans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--arc-mono: "Construct Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--arc-bg: #070707;
	--arc-surface: #1a1a1a;
	--arc-text: #f7f8f6;
	--arc-text-2: rgba(247, 248, 246, 0.6);
	--arc-muted: rgba(247, 248, 246, 0.6);
	--arc-line: rgba(247, 248, 246, 0.2);
	--arc-line-strong: rgba(247, 248, 246, 0.2);
	--arc-primary-hover: #c1c2c0;

	--widthMaxContent: 1000px;
	--widthMaxJobBoard: 860px;

	--borderRadiusContainer: 0px;
	--borderRadiusControl: 0px;
	--borderRadiusButton: 0px;
	--borderWidthBold: 1px;

	--colorAppBackground: #070707;
	--colorPrimary200: #1a1a1a;
	--colorPrimary600: #f7f8f6;
	--colorPrimary800: #f7f8f6;
	--colorPrimary900: #f7f8f6;
	--colorSecondary900: #f7f8f6;

	--colorNeutral000: #070707;
	--colorNeutral100: #1a1a1a;
	--colorNeutral200: #1a1a1a;
	--colorNeutral300: #373737;
	--colorNeutral400: #373737;
	--colorNeutral500: #979896;
	--colorNeutral600: #979896;
	--colorNeutral700: #979896;
	--colorNeutral800: #c1c2c0;
	--colorNeutral900: #f7f8f6;

	color-scheme: dark;
}

html,
body {
	background: var(--arc-bg);
	color: var(--arc-text);
}

body {
	font-family: var(--fontFamily);
	font-weight: 400;
}

a {
	color: var(--arc-text);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--arc-muted);
}

::selection {
	background: var(--arc-text);
	color: var(--arc-bg);
}

/* Black wordmark -> white on the dark background */
.ashby-job-posting-header img,
header img,
nav img,
img[class*="_navLogo"],
a[class*="_navLogoLink"] img {
	filter: invert(0.996);
}

/* ---------- Job board (list of roles) ---------- */

.ashby-job-board-heading {
	color: var(--arc-text);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.ashby-job-board-heading-count,
.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
	color: var(--arc-muted);
	font-family: var(--arc-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-job-board-filter {
	background: var(--arc-surface);
	border-color: var(--arc-line-strong);
	color: var(--arc-text);
}

/* Selected filter: Ashby switches the text to dark (#141414) when a filter is active.
   Show it as a light box with dark text so it reads as "on" (QA S-09). */
.ashby-job-board-filter[class*="filterActive"] {
	background: var(--arc-text) !important;
	border-color: var(--arc-text) !important;
	color: var(--arc-bg) !important;
	-webkit-text-fill-color: var(--arc-bg) !important;
}

.ashby-department-heading {
	color: var(--arc-muted);
	font-family: var(--arc-mono);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--arc-line);
	padding-bottom: 12px;
}

.ashby-job-posting-brief-list {
	background: transparent;
}

.ashby-job-posting-brief {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--arc-line);
	border-radius: 0;
	box-shadow: none;
}

.ashby-job-posting-brief:hover {
	background: var(--arc-surface);
}

.ashby-job-posting-brief-title {
	color: var(--arc-text);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.ashby-job-posting-brief-details {
	color: var(--arc-muted);
	font-family: var(--arc-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- Job posting ---------- */

.ashby-job-posting-header {
	background: var(--arc-bg);
	border-bottom: 1px solid var(--arc-line);
}

.ashby-job-posting-heading {
	color: var(--arc-text);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.ashby-job-board-back-to-all-jobs-button {
	color: var(--arc-text);
}

.ashby-job-posting-left-pane {
	color: var(--arc-text-2);
}

.ashby-job-posting-left-pane h2 {
	color: var(--arc-muted);
	font-family: var(--arc-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-job-posting-right-pane,
.ashby-job-posting-description-container {
	background: transparent;
	box-shadow: none;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
	color: var(--arc-muted);
	font-family: var(--arc-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-job-posting-right-pane-tab-slider {
	background: var(--arc-text);
}

.ashby-job-posting-description {
	color: var(--arc-text-2);
	font-size: 18px;
	line-height: 1.6;
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3,
.ashby-job-posting-description strong {
	color: var(--arc-text);
	font-weight: 500;
}

.ashby-job-posting-description h2 {
	font-size: 26px;
	letter-spacing: -0.01em;
	margin-top: 40px;
}

.ashby-job-posting-description p:empty {
	display: none;
}

.ashby-job-posting-description li::marker {
	color: var(--arc-muted);
}

/* ---------- Application form ---------- */

.ashby-application-form-container,
.ashby-application-form-autofill-pane {
	background: transparent;
	border-color: var(--arc-line);
	box-shadow: none;
}

.ashby-application-form-section-container {
	border-color: var(--arc-line);
}

.ashby-application-form-question-title {
	color: var(--arc-text-2);
	font-family: var(--arc-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-application-form-autofill-input-title {
	color: var(--arc-text);
}

.ashby-application-form-autofill-input-description,
.ashby-application-form-input-file-dropzone-instructions {
	color: var(--arc-muted);
}

.ashby-application-form-input-text {
	background: var(--arc-surface);
	border: 1px solid var(--arc-line-strong);
	border-radius: 0;
	box-shadow: none;
	color: var(--arc-text);
}

.ashby-application-form-input-text:hover {
	border-color: var(--arc-muted);
}

/* Resume autofill strip: one box (outer root), no inner box */
.ashby-application-form-autofill-input-root {
	background: var(--arc-surface);
	border: 1px solid var(--arc-line);
	border-radius: 0;
	box-shadow: none;
}

.ashby-application-form-autofill-input-base-layer {
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Resume upload: one dashed box (outer container), no inner bar */
.ashby-application-form-input-file {
	background: transparent;
	border: 1px dashed var(--arc-line);
	border-radius: 0;
}

.ashby-application-form-input-file:hover {
	border-color: var(--arc-muted);
}

.ashby-application-form-input-file-dropzone {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.ashby-application-form-input-text:focus {
	border-color: var(--arc-text);
	outline: 1px solid var(--arc-text);
	outline-offset: 2px;
}

.ashby-application-form-input-text::placeholder {
	color: var(--arc-muted);
}

.ashby-application-form-input-yesno-option,
.ashby-application-form-input-radio-group-option-label {
	color: var(--arc-text);
}

.ashby-application-form-input-yesno-option {
	background: var(--arc-surface);
	border-color: var(--arc-line-strong);
	border-radius: 0;
}

/* Primary buttons: light on dark, like the website */
.ashby-application-form-submit-button,
.ashby-application-form-input-file-dropzone-upload {
	background: var(--arc-text);
	border: 1px solid var(--arc-text);
	border-radius: 0;
	box-shadow: none;
	color: var(--arc-bg);
	font-family: var(--arc-mono);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-application-form-submit-button:hover,
.ashby-application-form-input-file-dropzone-upload:hover {
	background: var(--arc-primary-hover);
	border-color: var(--arc-primary-hover);
	color: var(--arc-bg);
}

/* Icons inside buttons follow the button text colour */
.ashby-application-form-input-file-dropzone-upload svg,
.ashby-application-form-input-file-dropzone-upload svg path,
button[class*="_secondary"] svg,
button[class*="_secondary"] svg path {
	color: currentColor;
	fill: currentColor;
}

/* ---------- Fixes for controls that use the Ashby brand colour ---------- */

/* Back arrow (its path is filled with the brand colour) */
.ashby-job-board-back-to-all-jobs-button svg path {
	fill: currentColor;
}

/* Selected Yes/No */
.ashby-application-form-input-yesno-option[class*="_active"] {
	background: var(--arc-text) !important;
	border-color: var(--arc-text) !important;
	color: var(--arc-bg) !important;
}

/* Selected radio */
.ashby-application-form-input-radio-group-option [class*="_checked"] {
	border-color: var(--arc-text) !important;
}

.ashby-application-form-input-radio-group-option [class*="_checked"] [class*="_circle"] {
	background: var(--arc-text) !important;
}

/* Focused text fields */
.ashby-application-form-input-text:focus,
.ashby-application-form-input-text:focus-visible {
	border-color: var(--arc-text) !important;
	outline: 1px solid var(--arc-text) !important;
	outline-offset: 2px !important;
}

/* "Apply for this Job" and other primary buttons */
.ashby-job-posting-description-container a[href$="/application"] button,
button[class*="_primary"] {
	background: var(--arc-text) !important;
	border: 1px solid var(--arc-text) !important;
	border-radius: 0 !important;
	color: var(--arc-bg) !important;
	font-family: var(--arc-mono);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ashby-job-posting-description-container a[href$="/application"] button:hover,
button[class*="_primary"]:hover {
	background: var(--arc-primary-hover) !important;
	border-color: var(--arc-primary-hover) !important;
}

/* Secondary buttons (e.g. "Upload file" in the resume autofill box) */
button[class*="_secondary"] {
	background: transparent !important;
	border: 1px solid var(--arc-text) !important;
	border-radius: 0 !important;
	color: var(--arc-text) !important;
	font-family: var(--arc-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

button[class*="_secondary"]:hover {
	background: var(--arc-text) !important;
	border-color: var(--arc-text) !important;
	color: var(--arc-bg) !important;
}

.ashby-application-form-autofill-input-icon,
.ashby-application-form-autofill-input-icon path {
	color: var(--arc-text);
	fill: var(--arc-text);
}
