/* Gavel homepage "2a" — search-first layout.
 * Scoped to .gavel-home2a. Loads after assets/css/main.css.
 * Uses existing brand tokens: --gavel-navy, --gavel-blue, --gavel-gold, --gavel-border.
 */

.gavel-home2a {
	--h2a-ink: var(--gavel-navy, #17265c);
	--h2a-body: var(--gavel-text, #101827);
	--h2a-muted: var(--gavel-muted, #62708a);
	--h2a-line: var(--gavel-border, #d7e2f4);
	--h2a-blue: var(--gavel-blue, #1848e4);
	--h2a-blue-soft: var(--gavel-blue-soft, #edf4ff);
	--h2a-surface: #ffffff;
	--h2a-tint: #f6f9ff;
	--h2a-pay: #12704f;
	--h2a-heading-font: var(--gavel-wordmark-font, "Sora", "Inter", ui-sans-serif, system-ui, sans-serif);
	--h2a-pad: clamp(28px, 5vw, 72px);
	color: var(--h2a-body);
}

.gavel-home2a h1,
.gavel-home2a h2,
.gavel-home2a h3 {
	font-family: var(--h2a-heading-font);
	color: var(--h2a-ink);
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: pretty;
}

.gavel-home2a p {
	margin: 0;
}

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

.gavel-home2a__hero {
	background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--h2a-line);
	padding: clamp(44px, 6vw, 78px) 0 clamp(34px, 4vw, 54px);
}

.gavel-home2a__hero-copy {
	max-width: 940px;
}

.gavel-home2a__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--h2a-blue);
	margin-bottom: 16px;
}

.gavel-home2a__hero h1 {
	font-size: clamp(2.2rem, 4.4vw, 3.5rem);
	line-height: 1.06;
	max-width: 20ch;
	margin-bottom: 16px;
}

.gavel-home2a__lede {
	font-size: clamp(1rem, 1.2vw, 1.12rem);
	line-height: 1.55;
	color: var(--h2a-muted);
	max-width: 58ch;
}

.gavel-home2a__search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 18px;
	max-width: 940px;
}

.gavel-home2a__search-field {
	flex: 1 1 260px;
	display: block;
	min-width: 0;
}

.gavel-home2a__search-field--location {
	flex: 1 1 200px;
}

.gavel-home2a__search input[type="search"] {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	font-size: 1rem;
	color: var(--h2a-body);
	background: var(--h2a-surface);
	border: 1px solid #c9d6ee;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 38, 92, 0.05);
	-webkit-appearance: none;
	appearance: none;
}

.gavel-home2a__search input[type="search"]:focus-visible {
	outline: 2px solid var(--h2a-blue);
	outline-offset: 1px;
	border-color: var(--h2a-blue);
}

.gavel-home2a__search-submit {
	flex: 0 0 auto;
	min-width: 132px;
	height: 56px;
	padding: 0 26px;
	font-family: var(--h2a-heading-font);
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--h2a-blue);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.gavel-home2a__search-submit:hover,
.gavel-home2a__search-submit:focus-visible {
	background: var(--gavel-blue-dark, #183c90);
}

.gavel-home2a__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gavel-home2a__chips-label {
	font-size: 0.85rem;
	color: var(--h2a-muted);
	margin-right: 2px;
}

.gavel-home2a__chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	font-size: 0.85rem;
	line-height: 1.2;
	color: var(--h2a-ink);
	text-decoration: none;
	background: var(--h2a-surface);
	border: 1px solid #c9d6ee;
	border-radius: 999px;
}

.gavel-home2a__chip:hover,
.gavel-home2a__chip:focus-visible {
	border-color: var(--h2a-blue);
	color: var(--h2a-blue);
}

.gavel-home2a__chip--featured {
	background: var(--h2a-blue-soft);
	border-color: var(--h2a-blue);
	color: var(--h2a-blue);
	font-weight: 600;
}

/* ---------- Shared section furniture ---------- */

.gavel-home2a__jobs,
.gavel-home2a__browse,
.gavel-home2a__resources {
	padding: clamp(36px, 4.5vw, 60px) 0;
	border-bottom: 1px solid var(--h2a-line);
}

.gavel-home2a__browse {
	background: var(--h2a-tint);
}

.gavel-home2a__section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.gavel-home2a__section-head h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin-bottom: 6px;
}

.gavel-home2a__section-head p {
	font-size: 0.92rem;
	color: var(--h2a-muted);
}

.gavel-home2a__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--h2a-heading-font);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--h2a-blue);
	text-decoration: none;
}

.gavel-home2a__link:hover,
.gavel-home2a__link:focus-visible {
	text-decoration: underline;
}

.gavel-home2a__link--light {
	color: #cfdcff;
}

.gavel-home2a__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	font-family: var(--h2a-heading-font);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
}

.gavel-home2a__btn--light {
	background: #fff;
	color: var(--h2a-ink);
}

.gavel-home2a__btn--light:hover,
.gavel-home2a__btn--light:focus-visible {
	background: var(--h2a-blue-soft);
	color: var(--h2a-ink);
}

/* ---------- Job grid (reuses template-parts/job-card.php) ---------- */

.gavel-home2a__job-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 14px;
}

.gavel-home2a__job-grid .job-card {
	margin: 0;
	padding: 18px;
	background: var(--h2a-surface);
	border: 1px solid var(--h2a-line);
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gavel-home2a__job-grid .job-card:hover {
	border-color: #b9cdf2;
	box-shadow: 0 6px 18px rgba(23, 38, 92, 0.07);
}

.gavel-home2a__job-grid .job-card__title {
	font-size: 1.04rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.gavel-home2a__job-grid .job-card__title a {
	color: var(--h2a-ink);
	text-decoration: none;
}

.gavel-home2a__job-grid .job-card__company {
	font-size: 0.86rem;
	color: var(--h2a-muted);
}

.gavel-home2a__job-grid .job-card__meta {
	font-size: 0.84rem;
	color: var(--h2a-muted);
}

.gavel-home2a__job-grid .job-card__summary {
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--h2a-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gavel-home2a__job-grid .job-card__badge--salary {
	color: var(--h2a-pay);
	background: #e8f4ee;
	font-weight: 600;
}

.gavel-home2a__job-grid .empty-state {
	grid-column: 1 / -1;
}

/* ---------- Browse the board ---------- */

.gavel-home2a__browse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.gavel-home2a__browse-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--h2a-surface);
	border: 1px solid var(--h2a-line);
	border-radius: 10px;
}

.gavel-home2a__browse-card h3 {
	font-size: 1rem;
}

.gavel-home2a__browse-card ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	flex: 1;
}

.gavel-home2a__browse-card li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.92rem;
}

.gavel-home2a__browse-card li a {
	color: var(--h2a-body);
	text-decoration: none;
}

.gavel-home2a__browse-card li a:hover,
.gavel-home2a__browse-card li a:focus-visible {
	color: var(--h2a-blue);
	text-decoration: underline;
}

.gavel-home2a__browse-card li span {
	font-size: 0.82rem;
	color: var(--h2a-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Seeker / employer split ---------- */

.gavel-home2a__split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
	border-bottom: 1px solid var(--h2a-line);
}

.gavel-home2a__split-half {
	padding: clamp(30px, 4vw, 52px) var(--h2a-pad);
}

.gavel-home2a__split-half--seeker {
	background: var(--h2a-surface);
	border-right: 1px solid var(--h2a-line);
}

.gavel-home2a__split-half--employer {
	background: var(--h2a-ink);
	color: #dce5f7;
}

.gavel-home2a__split-half--employer h2 {
	color: #fff;
}

.gavel-home2a__split-inner {
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gavel-home2a__kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--h2a-muted);
}

.gavel-home2a__split-half--employer .gavel-home2a__kicker {
	color: #8fa6e0;
}

.gavel-home2a__split-inner h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.gavel-home2a__split-inner > p {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--h2a-muted);
}

.gavel-home2a__split-half--employer .gavel-home2a__split-inner > p {
	color: #b9c2d6;
}

.gavel-home2a__split-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

/* Saved-search CTA sits inside the seeker half; strip its own card chrome. */
.gavel-home2a__split-actions .saved-search-cta,
.gavel-home2a__split-actions .gavel-saved-search {
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

/* ---------- Resources ---------- */

.gavel-home2a__resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.gavel-home2a__resource-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	background: var(--h2a-surface);
	border: 1px solid var(--h2a-line);
	border-radius: 10px;
	text-decoration: none;
}

.gavel-home2a__resource-card span {
	font-family: var(--h2a-heading-font);
	font-size: 1rem;
	font-weight: 600;
	color: var(--h2a-ink);
}

.gavel-home2a__resource-card small {
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--h2a-muted);
}

.gavel-home2a__resource-card:hover,
.gavel-home2a__resource-card:focus-visible {
	border-color: var(--h2a-blue);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 782px) {
	.gavel-home2a__search-submit {
		flex: 1 1 100%;
	}

	.gavel-home2a__job-grid {
		grid-template-columns: 1fr;
	}

	.gavel-home2a__split-half--seeker {
		border-right: 0;
		border-bottom: 1px solid var(--h2a-line);
	}
}
