/* Aakash Jobs Listing: job cards for the [aakash_jobs] shortcode. */

:root .aj-jobs {
	--aj-accent: #305c99;
	--aj-accent-dark: #234676;
	--aj-accent-soft: #eaf1fa;
	--aj-ink: #1b2533;
	--aj-text: #3d4b5f;
	--aj-muted: #586579;
	--aj-line: #e1e7ef;
	--aj-field-line: #c3cedb;
	--aj-soft: #eef2f6;
	--aj-panel: #f6f8fb;
	--aj-featured-bg: #fbbf24;
	--aj-featured-ink: #3a2800;
	--aj-urgent-bg: #fdecee;
	--aj-urgent-ink: #b1222f;
	--aj-saved: #d92d4b;
	--aj-surface: #fff;
	--aj-logo-bg: #fff;
	--aj-input-bg: #fff;
	--aj-on-accent: #fff;
	--aj-placeholder: #7a8698;
	--aj-pill-ink: #2b3747;
	--aj-icon: #6b7789;
	--aj-hover-line: #b8c8dc;
	--aj-save-hover: #fdeef1;
	--aj-empty-bg: #fbfcfe;
	--aj-note-ink: #6b4e00;
	--aj-note-bg: #fff7e0;
	--aj-note-line: #f2d27a;
	--aj-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	--aj-shadow-hover: 0 8px 24px rgba(16, 24, 40, 0.08);
	--aj-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23586579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--aj-radius: 12px;
	--aj-heading-font: "Montserrat", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	container-type: inline-size;
	font-size: 15px;
	line-height: 1.5;
	color: var(--aj-text);
	text-align: left;
}

/* Dark mode follows the site's theme toggle (akTheme sets data-ak-theme on <html>). */
:root[data-ak-theme="dark"] .aj-jobs {
	--aj-accent: #79a4cf;
	--aj-accent-dark: #a9c6e4;
	--aj-accent-soft: rgba(121, 164, 207, 0.16);
	--aj-ink: #e8f0fa;
	--aj-text: #bcc8d6;
	--aj-muted: #93a6bb;
	--aj-line: rgba(121, 164, 207, 0.22);
	--aj-field-line: rgba(121, 164, 207, 0.4);
	--aj-soft: rgba(121, 164, 207, 0.14);
	--aj-panel: #0f2a47;
	--aj-surface: #10304f;
	--aj-input-bg: #0c2440;
	--aj-on-accent: #0c2440;
	--aj-placeholder: #7f93a9;
	--aj-pill-ink: #d5e1ee;
	--aj-icon: #a9b9cb;
	--aj-hover-line: rgba(121, 164, 207, 0.55);
	--aj-urgent-bg: rgba(255, 107, 129, 0.16);
	--aj-urgent-ink: #ffa3b1;
	--aj-saved: #ff7a90;
	--aj-save-hover: rgba(255, 122, 144, 0.14);
	--aj-empty-bg: #0f2a47;
	--aj-note-ink: #ffe2a3;
	--aj-note-bg: rgba(251, 191, 36, 0.12);
	--aj-note-line: rgba(251, 191, 36, 0.4);
	--aj-shadow: none;
	--aj-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.35);
	--aj-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2393a6bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root .aj-jobs *,
:root .aj-jobs *::before,
:root .aj-jobs *::after {
	box-sizing: border-box;
}

:root .aj-jobs [hidden] {
	display: none !important;
}

:root .aj-jobs .aj-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

:root .aj-jobs .aj-icon {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

:root .aj-jobs p {
	margin: 0;
}

/* ---------- Toolbar ---------- */

:root .aj-jobs .aj-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px;
	background: var(--aj-panel);
	border: 1px solid var(--aj-line);
	border-radius: var(--aj-radius);
}

:root .aj-jobs .aj-field {
	flex: 1 1 170px;
	min-width: 0;
	margin: 0;
}

:root .aj-jobs .aj-field--search {
	flex: 2 1 260px;
}

:root .aj-jobs .aj-field--actions {
	flex: 0 0 auto;
}

:root .aj-jobs .aj-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--aj-ink);
	text-transform: none;
	letter-spacing: 0;
}

:root .aj-jobs .aj-input-wrap {
	position: relative;
}

:root .aj-jobs .aj-input-wrap .aj-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	color: var(--aj-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

:root .aj-jobs .aj-toolbar .aj-input,
:root .aj-jobs .aj-toolbar .aj-select {
	display: block;
	width: 100%;
	max-width: none;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	color: var(--aj-ink);
	background-color: var(--aj-input-bg);
	border: 1px solid var(--aj-field-line);
	border-radius: 8px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

:root .aj-jobs .aj-toolbar .aj-input {
	padding-left: 42px;
}

:root .aj-jobs .aj-toolbar .aj-input::placeholder {
	color: var(--aj-placeholder);
	opacity: 1;
}

:root .aj-jobs .aj-toolbar .aj-select {
	padding-right: 40px;
	-webkit-appearance: none;
	appearance: none;
	background-image: var(--aj-chevron);
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px 18px;
	cursor: pointer;
	text-overflow: ellipsis;
}

:root .aj-jobs .aj-toolbar .aj-input:focus,
:root .aj-jobs .aj-toolbar .aj-select:focus {
	border-color: var(--aj-accent);
	outline: 2px solid var(--aj-accent);
	outline-offset: 1px;
	box-shadow: none;
}

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

:root .aj-jobs .aj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border: 1px solid var(--aj-accent);
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

:root .aj-jobs .aj-btn--primary {
	color: var(--aj-on-accent);
	background-color: var(--aj-accent);
}

:root .aj-jobs .aj-btn--primary:hover,
:root .aj-jobs .aj-btn--primary:focus {
	color: var(--aj-on-accent);
	background-color: var(--aj-accent-dark);
	border-color: var(--aj-accent-dark);
}

:root .aj-jobs .aj-btn--outline {
	min-width: 260px;
	color: var(--aj-accent);
	background-color: var(--aj-surface);
}

:root .aj-jobs .aj-btn--outline:hover,
:root .aj-jobs .aj-btn--outline:focus {
	color: var(--aj-on-accent);
	background-color: var(--aj-accent);
}

:root .aj-jobs .aj-btn:focus-visible {
	outline: 3px solid var(--aj-accent);
	outline-offset: 2px;
}

/* ---------- Summary row ---------- */

:root .aj-jobs .aj-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 14px;
}

:root .aj-jobs .aj-count {
	font-size: 14px;
	color: var(--aj-muted);
}

:root .aj-jobs .aj-count strong {
	color: var(--aj-ink);
	font-weight: 700;
}

:root .aj-jobs .aj-summary-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

:root .aj-jobs .aj-clear {
	font-size: 14px;
	font-weight: 600;
	color: var(--aj-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

:root .aj-jobs .aj-saved-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--aj-ink);
	background: var(--aj-surface);
	border: 1px solid var(--aj-line);
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
}

:root .aj-jobs .aj-saved-toggle:hover {
	color: var(--aj-ink);
	background: var(--aj-panel);
	border-color: var(--aj-field-line);
}

:root .aj-jobs .aj-saved-toggle .aj-icon {
	width: 18px;
	height: 18px;
	color: var(--aj-saved);
}

:root .aj-jobs .aj-saved-toggle[aria-pressed="true"] {
	color: var(--aj-accent-dark);
	background: var(--aj-accent-soft);
	border-color: var(--aj-accent);
}

:root .aj-jobs .aj-saved-toggle[aria-pressed="true"] .aj-heart-path {
	fill: currentColor;
}

:root .aj-jobs .aj-saved-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 12px;
	border-radius: 999px;
	background: var(--aj-soft);
}

:root .aj-jobs .aj-saved-toggle:focus-visible,
:root .aj-jobs .aj-clear:focus-visible {
	outline: 3px solid var(--aj-accent);
	outline-offset: 2px;
}

/* ---------- Cards ---------- */

:root .aj-jobs .aj-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .aj-jobs .aj-card {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 44px;
	grid-template-areas:
		"logo main save"
		"tags tags tags"
		"dates dates dates";
	column-gap: 14px;
	row-gap: 12px;
	margin: 0 0 14px;
	padding: 16px;
	list-style: none;
	background: var(--aj-surface);
	border: 1px solid var(--aj-line);
	border-radius: var(--aj-radius);
	box-shadow: var(--aj-shadow);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:root .aj-jobs .aj-card:hover {
	border-color: var(--aj-hover-line);
	box-shadow: var(--aj-shadow-hover);
}

:root .aj-jobs .aj-logo {
	grid-area: logo;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	background: var(--aj-logo-bg);
	border: 1px solid var(--aj-line);
	border-radius: 10px;
}

:root .aj-jobs .aj-logo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 6px;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

:root .aj-jobs .aj-logo-initial {
	font-family: var(--aj-heading-font);
	font-size: 22px;
	font-weight: 700;
	color: var(--aj-accent);
}

:root .aj-jobs .aj-main {
	grid-area: main;
	min-width: 0;
	align-self: center;
}

:root .aj-jobs .aj-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

:root .aj-jobs .aj-title {
	margin: 0;
	padding: 0;
	font-family: var(--aj-heading-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--aj-ink);
	overflow-wrap: anywhere;
}

:root .aj-jobs .aj-link,
:root .aj-jobs .aj-link:visited {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

:root .aj-jobs .aj-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--aj-radius);
}

:root .aj-jobs .aj-card:hover .aj-link {
	color: var(--aj-accent);
}

:root .aj-jobs .aj-link:focus {
	outline: none;
}

:root .aj-jobs .aj-link:focus-visible::after {
	outline: 3px solid var(--aj-accent);
	outline-offset: 2px;
}

:root .aj-jobs .aj-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	border-radius: 6px;
}

:root .aj-jobs .aj-badge .aj-icon {
	width: 12px;
	height: 12px;
}

:root .aj-jobs .aj-badge--featured {
	color: var(--aj-featured-ink);
	background: var(--aj-featured-bg);
}

:root .aj-jobs .aj-badge--urgent {
	color: var(--aj-urgent-ink);
	background: var(--aj-urgent-bg);
}

:root .aj-jobs .aj-badge--closed {
	color: var(--aj-muted);
	background: var(--aj-soft);
}

:root .aj-jobs .aj-badge--draft {
	color: var(--aj-accent-dark);
	background: var(--aj-accent-soft);
	border: 1px dashed var(--aj-accent);
}

:root .aj-jobs .aj-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin-top: 4px;
	font-size: 14px;
}

:root .aj-jobs .aj-company {
	display: block;
	font-weight: 500;
	color: var(--aj-text);
}

:root .aj-jobs .aj-verified {
	display: inline-flex;
	margin-left: 5px;
	vertical-align: -3px;
	color: var(--aj-accent);
}

:root .aj-jobs .aj-location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--aj-muted);
}

:root .aj-jobs .aj-location .aj-icon {
	width: 15px;
	height: 15px;
}

:root .aj-jobs .aj-salary {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--aj-ink);
}

:root .aj-jobs .aj-tags {
	grid-area: tags;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .aj-jobs .aj-pill {
	margin: 0;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--aj-pill-ink);
	list-style: none;
	background: var(--aj-soft);
	border-radius: 999px;
}

:root .aj-jobs .aj-dates {
	grid-area: dates;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	font-size: 13px;
	color: var(--aj-muted);
}

:root .aj-jobs .aj-posted {
	font-weight: 600;
}

:root .aj-jobs .aj-save {
	grid-area: save;
	position: relative;
	z-index: 2;
	display: inline-grid;
	place-items: center;
	align-self: start;
	justify-self: end;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	line-height: 1;
	color: var(--aj-icon);
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

:root .aj-jobs .aj-save .aj-icon {
	width: 22px;
	height: 22px;
}

:root .aj-jobs .aj-save:hover,
:root .aj-jobs .aj-save:focus {
	color: var(--aj-saved);
	background: var(--aj-save-hover);
}

:root .aj-jobs .aj-save:focus-visible {
	outline: 3px solid var(--aj-accent);
	outline-offset: 1px;
}

:root .aj-jobs .aj-save[aria-pressed="true"] {
	color: var(--aj-saved);
}

:root .aj-jobs .aj-save[aria-pressed="true"] .aj-heart-path {
	fill: currentColor;
}

:root .aj-jobs .aj-card--closed .aj-logo img {
	filter: grayscale(1);
	opacity: 0.7;
}

:root .aj-jobs .aj-card--closed .aj-title {
	color: var(--aj-muted);
}

/* Wide layout: one row like a job board. */
@container (min-width: 760px) {
	:root .aj-jobs .aj-card {
		grid-template-columns: 64px minmax(0, 1fr) minmax(150px, 220px) 132px 44px;
		grid-template-areas: "logo main tags dates save";
		align-items: center;
		column-gap: 24px;
		padding: 20px 24px;
	}

	:root .aj-jobs .aj-logo {
		width: 64px;
		height: 64px;
	}

	:root .aj-jobs .aj-title {
		font-size: 18px;
	}

	:root .aj-jobs .aj-dates {
		flex-direction: column;
	}

	:root .aj-jobs .aj-save {
		align-self: center;
	}
}

/* ---------- View all, no results, empty state ---------- */

:root .aj-jobs .aj-more {
	display: flex;
	justify-content: center;
	margin: 26px 0 0;
}

:root .aj-jobs .aj-noresults {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 16px;
	font-size: 15px;
	color: var(--aj-muted);
	text-align: center;
	border: 1px dashed var(--aj-field-line);
	border-radius: var(--aj-radius);
}

:root .aj-jobs .aj-noresults .aj-icon {
	width: 20px;
	height: 20px;
}

:root .aj-jobs .aj-empty {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 24px;
	text-align: center;
	background: var(--aj-empty-bg);
	border: 1px solid var(--aj-line);
	border-radius: 16px;
}

:root .aj-jobs .aj-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	color: var(--aj-accent);
	background: var(--aj-accent-soft);
	border-radius: 50%;
}

:root .aj-jobs .aj-empty-icon .aj-icon {
	width: 30px;
	height: 30px;
}

:root .aj-jobs .aj-empty-title {
	margin: 16px 0 8px;
	padding: 0;
	font-family: var(--aj-heading-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--aj-ink);
}

:root .aj-jobs .aj-empty-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--aj-muted);
}

:root .aj-jobs .aj-empty-text a {
	font-weight: 600;
	color: var(--aj-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

:root .aj-jobs .aj-preview-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--aj-note-ink);
	background: var(--aj-note-bg);
	border: 1px solid var(--aj-note-line);
	border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
	:root .aj-jobs * {
		transition: none !important;
	}
}
