/* SEO/informational text section — long-form editorial content */
.aijs-seo-section {
	max-width: 1200px;
	margin: 48px auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.aijs-seo-block {
	background: #ffffff;
	border: 1px solid #ece7fb;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04), 0 12px 32px -12px rgba(76, 29, 149, 0.12);
	padding: 36px 32px;
	margin-bottom: 24px;
}

.aijs-seo-block:last-child {
	margin-bottom: 0;
}

.aijs-seo-heading {
	font-size: 24px;
	font-weight: 800;
	color: #1e1332;
	margin: 0 0 18px;
	letter-spacing: -0.01em;
}

.aijs-seo-subheading {
	font-size: 17px;
	font-weight: 700;
	color: #4c1d95;
	margin: 22px 0 8px;
}

.aijs-seo-block a {
	color: #7c3aed;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(124, 58, 237, 0.35);
	text-underline-offset: 2px;
}

.aijs-seo-block a:hover {
	color: #5b21b6;
	text-decoration-color: #5b21b6;
}

.aijs-seo-block p {
	max-width: 760px;
	font-size: 15.5px;
	line-height: 1.75;
	color: #453d54;
	margin: 0 0 16px;
}

.aijs-seo-block p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.aijs-seo-block {
		padding: 26px 20px;
		border-radius: 16px;
	}

	.aijs-seo-heading {
		font-size: 20px;
	}

	.aijs-seo-subheading {
		font-size: 15.5px;
	}

	.aijs-seo-block p {
		font-size: 14.5px;
	}
}

/* FAQ accordion */
.aijs-faq-section {
	max-width: 1200px;
	margin: 48px auto;
	padding: 36px 28px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #ece7fb;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04), 0 12px 32px -12px rgba(76, 29, 149, 0.12);
}

.aijs-faq-eyebrow {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c3aed;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aijs-faq-eyebrow::before {
	content: '💬';
	font-size: 16px;
}

.aijs-faq-title {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 26px;
	font-weight: 800;
	color: #1e1332;
	margin-bottom: 24px;
	letter-spacing: -0.01em;
}

.aijs-faq-list {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aijs-faq-item {
	border: 1px solid #ece7fb;
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aijs-faq-item.is-open {
	border-color: #d6c9ff;
	box-shadow: 0 4px 16px -6px rgba(124, 58, 237, 0.2);
}

button.aijs-faq-question.aijs-faq-question {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	text-align: left;
	background: #faf9ff !important;
	border: none !important;
	padding: 16px 20px !important;
	font-size: 15.5px;
	font-weight: 700;
	color: #1e1332;
	cursor: pointer;
	gap: 12px;
}

.aijs-faq-item.is-open button.aijs-faq-question.aijs-faq-question {
	background: #f3edff !important;
	color: #4c1d95;
}

.aijs-faq-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ece4fd;
	color: #7c3aed;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.25s ease, background 0.2s ease;
}

.aijs-faq-item.is-open .aijs-faq-icon {
	transform: rotate(45deg);
	background: #7c3aed;
	color: #fff;
}

.aijs-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.aijs-faq-item.is-open .aijs-faq-answer {
	max-height: 400px;
}

.aijs-faq-answer p {
	margin: 0;
	padding: 4px 20px 18px;
	font-size: 14.5px;
	line-height: 1.65;
	color: #4a4358;
}

@media (max-width: 600px) {
	.aijs-faq-section {
		padding: 26px 18px;
		border-radius: 16px;
	}

	.aijs-faq-title {
		font-size: 21px;
	}

	button.aijs-faq-question.aijs-faq-question {
		font-size: 14.5px;
		padding: 14px 16px !important;
	}
}

/* Stats credibility bar — live counts, sits right under the hero. */
.aijs-stats-bar {
	max-width: 1000px;
	margin: -34px auto 40px;
	position: relative;
	z-index: 2;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 12px 32px -8px rgba(76, 29, 149, 0.25);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 22px 10px;
}

.aijs-stats-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 10px;
	border-right: 1px solid #ece7fb;
}

.aijs-stats-item:last-child {
	border-right: none;
}

.aijs-stats-icon {
	font-size: 22px;
	margin-bottom: 6px;
}

.aijs-stats-value {
	font-size: 26px;
	font-weight: 800;
	color: #4c1d95;
	line-height: 1.1;
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.aijs-stats-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #6b6178;
	margin-top: 4px;
	letter-spacing: 0.01em;
}

@media (max-width: 700px) {
	.aijs-stats-bar {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 0;
		margin: -24px 16px 32px;
		padding: 18px 8px;
	}

	.aijs-stats-item {
		border-right: none;
		border-bottom: 1px solid #ece7fb;
		padding-bottom: 14px;
	}

	.aijs-stats-item:nth-child(2n) {
		border-right: none;
	}

	.aijs-stats-item:nth-last-child(-n+2) {
		border-bottom: none;
		padding-bottom: 8px;
	}

	.aijs-stats-value {
		font-size: 22px;
	}
}

/* Hero tagline + search — full-bleed purple/violet gradient banner with a
   dark glass-morphism search bar. Self-contained CSS (not a compiled/cached
   theme stylesheet) so it always renders reliably regardless of
   block-editor cache state. */
.aijs-hero-section {
	width: 100%;
	position: relative;
	background: radial-gradient(circle at 20% 15%, #7c3aed 0%, transparent 55%),
		radial-gradient(circle at 85% 85%, #a855f7 0%, transparent 50%),
		linear-gradient(135deg, #2e1065 0%, #4c1d95 45%, #6d28d9 100%);
	padding: 68px 20px 76px;
	box-sizing: border-box;
	overflow: hidden;
}

.aijs-hero-inner {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.aijs-hero-headline {
	color: #ffffff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.aijs-hero-icon {
	margin-right: 6px;
}

.aijs-hero-subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	max-width: 620px;
	margin: 0 auto 34px;
}

.aijs-hero-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 999px;
	margin: -18px auto 18px;
}

/* Row holding the Notice Board + Calendar CTAs side by side, wrapping to
   stacked on narrow screens rather than shrinking either pill. */
.aijs-hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 auto 30px;
}

/* Animated call-out driving traffic to the Notice Board — a brighter,
   pulsing pill (gold, not violet) so it visually stands apart from the
   quieter "NEW" badge above it and actually catches the eye. */
a.aijs-hero-noticeboard-cta.aijs-hero-noticeboard-cta,
a.aijs-hero-noticeboard-cta.aijs-hero-noticeboard-cta:visited {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	margin: 0;
	padding: 11px 22px;
	background-color: #f59e0b !important;
	background-image: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
	color: #1e1332 !important;
	font-size: 14.5px;
	font-weight: 800;
	text-decoration: none !important;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45);
	animation: aijs-hero-noticeboard-pulse 2.2s ease-in-out infinite;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Same treatment as the Notice Board CTA but in the calendar's own
   purple/violet gradient, so the two pills read as a matched pair while
   still being visually distinguishable from each other. */
a.aijs-hero-calendar-cta.aijs-hero-calendar-cta,
a.aijs-hero-calendar-cta.aijs-hero-calendar-cta:visited {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	margin: 0;
	padding: 11px 22px;
	background-color: #7c3aed !important;
	background-image: linear-gradient(135deg, #a855f7, #7c3aed) !important;
	color: #ffffff !important;
	font-size: 14.5px;
	font-weight: 800;
	text-decoration: none !important;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
	animation: aijs-hero-calendar-pulse 2.2s ease-in-out infinite;
	animation-delay: 1.1s;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.aijs-hero-calendar-cta.aijs-hero-calendar-cta:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 8px 26px rgba(124, 58, 237, 0.6);
	color: #ffffff !important;
	text-decoration: none !important;
}

.aijs-hero-calendar-arrow {
	transition: transform 0.15s ease;
}

.aijs-hero-calendar-cta:hover .aijs-hero-calendar-arrow {
	transform: translateX(3px);
}

@keyframes aijs-hero-calendar-pulse {
	0%, 100% { box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45); }
	50% { box-shadow: 0 4px 26px rgba(124, 58, 237, 0.85); }
}

a.aijs-hero-noticeboard-cta.aijs-hero-noticeboard-cta:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 8px 26px rgba(251, 191, 36, 0.6);
	color: #1e1332 !important;
	text-decoration: none !important;
}

.aijs-hero-noticeboard-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dc2626;
	flex-shrink: 0;
	animation: aijs-hero-noticeboard-dot-blink 1.2s step-start infinite;
}

.aijs-hero-noticeboard-arrow {
	transition: transform 0.15s ease;
}

.aijs-hero-noticeboard-cta:hover .aijs-hero-noticeboard-arrow {
	transform: translateX(3px);
}

@keyframes aijs-hero-noticeboard-pulse {
	0%, 100% { box-shadow: 0 4px 18px rgba(251, 191, 36, 0.45); }
	50% { box-shadow: 0 4px 26px rgba(251, 191, 36, 0.85); }
}

@keyframes aijs-hero-noticeboard-dot-blink {
	50% { opacity: 0; }
}

@media (max-width: 480px) {
	.aijs-hero-cta-row {
		flex-direction: column;
		align-items: stretch;
	}

	.aijs-hero-noticeboard-cta,
	.aijs-hero-calendar-cta {
		font-size: 13px;
		padding: 10px 16px;
		text-align: center;
	}
}

/* Dark glass-morphism search bar */
form.aijs-hero-search.aijs-hero-search {
	display: flex !important;
	align-items: center;
	max-width: 560px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.08) !important;
	background-image: none !important;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 999px !important;
	padding: 7px 7px 7px 24px !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.aijs-hero-search.aijs-hero-search:focus-within {
	border-color: rgba(216, 180, 254, 0.6) !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(168, 85, 247, 0.25) !important;
}

/* Gentle floating motion on the whole bar, and a blinking caret drawn
   after the (JS-driven, typewriter-animated) placeholder text. */
form.aijs-hero-search-float {
	animation: aijsHeroFloat 3.6s ease-in-out infinite;
}

form.aijs-hero-search-float:focus-within {
	animation: none;
}

@keyframes aijsHeroFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

.aijs-hero-search-field {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.aijs-hero-typing {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	pointer-events: none;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.55);
	white-space: nowrap;
	overflow: hidden;
	max-width: calc(100% - 16px);
}

.aijs-hero-typing-text {
	overflow: hidden;
	text-overflow: clip;
}

.aijs-hero-caret {
	width: 1px;
	height: 17px;
	background: rgba(255, 255, 255, 0.7);
	margin-left: 2px;
	flex-shrink: 0;
	animation: aijsHeroCaretBlink 0.9s steps(1) infinite;
}

@keyframes aijsHeroCaretBlink {
	0%, 49%  { opacity: 1; }
	50%, 100% { opacity: 0; }
}

input.aijs-hero-search-input[type="search"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative;
	z-index: 1;
	width: 100%;
	border: none !important;
	outline: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 15px;
	padding: 13px 8px !important;
	margin: 0;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #ffffff !important;
	line-height: normal;
}

input.aijs-hero-search-input[type="search"]::-webkit-search-decoration,
input.aijs-hero-search-input[type="search"]::-webkit-search-cancel-button,
input.aijs-hero-search-input[type="search"]::-webkit-search-results-button,
input.aijs-hero-search-input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.aijs-hero-search-input::placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}

button.aijs-hero-search-btn.aijs-hero-search-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	border: none !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, #c084fc, #7c3aed) !important;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0 !important;
	box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.6);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button.aijs-hero-search-btn.aijs-hero-search-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 0 20px 2px rgba(192, 132, 252, 0.55);
}

@media (max-width: 600px) {
	.aijs-hero-section {
		padding: 44px 16px 52px;
	}

	.aijs-hero-headline {
		font-size: 23px;
	}

	.aijs-hero-subtitle {
		font-size: 15px;
		margin-bottom: 26px;
	}

	.aijs-hero-badge {
		font-size: 12px;
		padding: 7px 14px;
		text-align: center;
		white-space: normal;
		margin-top: -12px;
		margin-bottom: 22px;
	}

	.aijs-hero-search {
		padding: 6px 6px 6px 18px;
	}

	.aijs-hero-search-input {
		font-size: 14px;
	}

	.aijs-hero-search-btn {
		width: 40px;
		height: 40px;
	}
}

/* Category browse grid — replaces the theme's default category quick-links
   section with the same premium container treatment as the district grid
   and job table, so all three read as one consistent design system. */
.aijs-catgrid-section {
	max-width: 1200px;
	margin: 48px auto;
	padding: 36px 28px;
	box-sizing: border-box;
	background: linear-gradient(160deg, #fff7ed 0%, #fef3e8 100%);
	border: 1px solid #fde3c7;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(154, 82, 6, 0.04), 0 12px 32px -12px rgba(154, 82, 6, 0.12);
}

.aijs-catgrid-eyebrow {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c2410c;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aijs-catgrid-eyebrow::before {
	content: '🧭';
	font-size: 16px;
}

.aijs-catgrid-title {
	font-size: 26px;
	font-weight: 800;
	color: #1e1332;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

.aijs-catgrid-group-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9a6b3a;
	margin: 28px 0 12px;
}

.aijs-catgrid-group-label:first-of-type {
	margin-top: 4px;
}

.aijs-catgrid-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}

.aijs-catgrid-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 20px 18px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #f7e2c8;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(154, 82, 6, 0.05);
	transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.aijs-catgrid-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(234, 88, 12, 0.05), rgba(234, 88, 12, 0));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.aijs-catgrid-card:hover {
	transform: translateY(-3px);
	border-color: #fbc98a;
	box-shadow: 0 10px 24px -8px rgba(234, 88, 12, 0.28), 0 2px 6px rgba(154, 82, 6, 0.08);
}

.aijs-catgrid-card:hover::before {
	opacity: 1;
}

.aijs-catgrid-icon {
	position: relative;
	z-index: 1;
	font-size: 26px;
	line-height: 1;
}

.aijs-catgrid-label {
	position: relative;
	z-index: 1;
	font-size: 15.5px;
	font-weight: 700;
	color: #1e1332;
	line-height: 1.3;
}

.aijs-catgrid-count {
	position: relative;
	z-index: 1;
	font-size: 12px;
	font-weight: 700;
	color: #c2410c;
	background: #ffedd5;
	padding: 3px 10px;
	border-radius: 999px;
}

.aijs-catgrid-count-empty {
	color: #9a8c72;
	background: #f4f0e6;
}

@media (max-width: 600px) {
	.aijs-catgrid-section {
		padding: 26px 18px;
		border-radius: 16px;
	}

	.aijs-catgrid-title {
		font-size: 21px;
	}

	.aijs-catgrid-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
	}

	.aijs-catgrid-card {
		padding: 15px 14px;
	}
}

/* Job notifications table — freejobalert-style scannable listing.
   Same container treatment as the district grid so both sections read
   as one consistent design system on the homepage. */
.aijs-jobtable-section {
	max-width: 1200px;
	margin: 48px auto;
	padding: 36px 28px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #ece7fb;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04), 0 12px 32px -12px rgba(76, 29, 149, 0.12);
}

.aijs-jobtable-eyebrow {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c3aed;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aijs-jobtable-eyebrow::before {
	content: '📋';
	font-size: 16px;
}

.aijs-jobtable-title {
	font-size: 26px;
	font-weight: 800;
	color: #1e1332;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

.aijs-jobtable-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

select.aijs-jobtable-filter.aijs-jobtable-filter {
	appearance: none;
	-webkit-appearance: none;
	background: #faf9ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center / 16px;
	border: 1px solid #ece7fb;
	border-radius: 10px;
	padding: 10px 36px 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #3a2a5c;
	cursor: pointer;
	min-width: 180px;
}

select.aijs-jobtable-filter.aijs-jobtable-filter:focus {
	outline: none;
	border-color: #a855f7;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

button.aijs-jobtable-filter-reset.aijs-jobtable-filter-reset {
	background: transparent;
	border: 1px solid #ece7fb;
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: #7c3aed;
	cursor: pointer;
}

button.aijs-jobtable-filter-reset.aijs-jobtable-filter-reset:hover {
	background: #faf9ff;
	border-color: #d6c9ff;
}

/* District multi-select — button opens a checkbox panel, matches the
   look of the plain <select> filters beside it. */
.aijs-district-multiselect {
	position: relative;
}

button.aijs-district-multiselect-toggle.aijs-district-multiselect-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #faf9ff;
	border: 1px solid #ece7fb;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: #3a2a5c;
	cursor: pointer;
	min-width: 180px;
}

button.aijs-district-multiselect-toggle.aijs-district-multiselect-toggle:hover,
button.aijs-district-multiselect-toggle.aijs-district-multiselect-toggle[aria-expanded="true"] {
	border-color: #a855f7;
}

button.aijs-district-multiselect-toggle.aijs-district-multiselect-toggle svg {
	flex-shrink: 0;
	color: #7c3aed;
}

.aijs-district-multiselect-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid #ece7fb;
	border-radius: 12px;
	box-shadow: 0 10px 30px -8px rgba(76, 29, 149, 0.25);
	padding: 10px;
	min-width: 220px;
	max-height: 260px;
	overflow-y: auto;
}

.aijs-district-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: #3a2a5c;
	cursor: pointer;
}

.aijs-district-option:hover {
	background: #faf9ff;
}

.aijs-district-option input {
	accent-color: #7c3aed;
	cursor: pointer;
}

.aijs-jobtable-empty {
	text-align: center;
	padding: 32px 16px;
	color: #6b6178;
	font-size: 14.5px;
	background: #faf9ff;
	border-radius: 14px;
	border: 1px dashed #d6c9ff;
}

.aijs-jobtable-scroll {
	overflow-x: auto;
	border-radius: 14px;
	border: 1px solid #ece7fb;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.05);
}

.aijs-jobtable {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 720px;
}

.aijs-jobtable thead th {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #fff;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	padding: 14px 16px;
	white-space: nowrap;
}

.aijs-jobtable thead th:first-child {
	border-top-left-radius: 14px;
}

.aijs-jobtable thead th:last-child {
	border-top-right-radius: 14px;
}

.aijs-jobtable tbody tr {
	border-bottom: 1px solid #f1eefc;
	transition: background 0.15s ease;
}

.aijs-jobtable tbody tr:last-child {
	border-bottom: none;
}

.aijs-jobtable tbody tr:hover {
	background: #faf9ff;
}

.aijs-jobtable tbody tr:nth-child(even) {
	background: #fdfcff;
}

.aijs-jobtable tbody tr:nth-child(even):hover {
	background: #faf9ff;
}

.aijs-jobtable td {
	padding: 14px 16px;
	color: #3a2a5c;
	vertical-align: middle;
}

.aijs-jobtable-title-link {
	color: #1e1332;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.aijs-jobtable-title-link:hover {
	color: #7c3aed;
	text-decoration: underline;
}

.aijs-jobtable-lastdate {
	color: #b3261e;
	font-weight: 700;
}

.aijs-jobtable-dash {
	color: #b8aed8;
}

.aijs-jobtable-notif-btn {
	display: inline-block;
	background: linear-gradient(135deg, #a855f7, #6d28d9);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none !important;
	padding: 7px 16px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(109, 40, 217, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aijs-jobtable-notif-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
}

@media (max-width: 600px) {
	.aijs-jobtable-section {
		padding: 26px 18px;
		border-radius: 16px;
	}

	.aijs-jobtable-title {
		font-size: 21px;
	}

	.aijs-jobtable-filters {
		flex-direction: column;
		align-items: stretch;
	}

	select.aijs-jobtable-filter.aijs-jobtable-filter,
	button.aijs-jobtable-filter-reset.aijs-jobtable-filter-reset,
	.aijs-district-multiselect,
	button.aijs-district-multiselect-toggle.aijs-district-multiselect-toggle {
		width: 100%;
		min-width: 0;
	}

	.aijs-district-multiselect-panel {
		left: 0;
		right: 0;
		min-width: 0;
	}

	.aijs-jobtable {
		font-size: 13px;
	}

	.aijs-jobtable td,
	.aijs-jobtable thead th {
		padding: 11px 12px;
	}
}

/* Eligibility checker — one-time profile capture + per-row inline result */
.aijs-eligibility-profile {
	background: #faf9ff;
	border: 1px solid #d6c9ff;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 20px;
}

.aijs-eligibility-profile-title {
	margin: 0 0 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #4c1d95;
}

.aijs-eligibility-profile-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
}

.aijs-eligibility-profile-fields label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #3a2a5c;
}

.aijs-eligibility-profile-fields input,
.aijs-eligibility-profile-fields select {
	border: 1px solid #ece7fb;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 13.5px;
	min-width: 160px;
}

button.aijs-eligibility-profile-save.aijs-eligibility-profile-save {
	background: linear-gradient(135deg, #a855f7, #6d28d9);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}

button.aijs-eligibility-check-btn.aijs-eligibility-check-btn {
	background: transparent;
	border: 1px solid #a855f7;
	color: #7c3aed;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

button.aijs-eligibility-check-btn.aijs-eligibility-check-btn:hover {
	background: #f3edff;
}

button.aijs-eligibility-reset.aijs-eligibility-reset {
	background: transparent;
	border: none;
	color: #9a6b3a;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 16px;
	margin-top: -8px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

button.aijs-eligibility-reset.aijs-eligibility-reset:hover {
	color: #7c3aed;
}

.aijs-eligibility-result {
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	max-width: 220px;
}

.aijs-eligibility-result.aijs-eligibility-eligible {
	color: #15803d;
}

.aijs-eligibility-result.aijs-eligibility-not-eligible {
	color: #b3261e;
}

.aijs-eligibility-result.aijs-eligibility-unknown {
	color: #9a6b3a;
}

@media (max-width: 600px) {
	.aijs-eligibility-profile-fields {
		flex-direction: column;
		align-items: stretch;
	}

	.aijs-eligibility-profile-fields input,
	.aijs-eligibility-profile-fields select {
		min-width: 0;
	}
}

/* District browse grid — homepage shortcode.
   max-width + auto margins + its own side padding are set explicitly so
   this looks consistent even when a theme/plugin drops it inside an
   unstyled full-bleed wrapper with no container class of its own. */
.aijs-district-section {
	max-width: 1200px;
	margin: 48px auto;
	padding: 36px 28px;
	box-sizing: border-box;
	background: linear-gradient(160deg, #faf9ff 0%, #f3f0ff 100%);
	border: 1px solid #e9e4ff;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04), 0 12px 32px -12px rgba(76, 29, 149, 0.12);
}

.aijs-district-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c3aed;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.aijs-district-title::before {
	content: '📍';
	font-size: 16px;
}

.aijs-district-subtitle {
	font-size: 26px;
	font-weight: 800;
	color: #1e1332;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

.aijs-district-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.aijs-district-chip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #ece7fb;
	color: #2e1a52;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.05), 0 1px 1px rgba(76, 29, 149, 0.03);
	transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
	overflow: hidden;
}

.aijs-district-chip::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(168, 85, 247, 0));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.aijs-district-chip:hover {
	color: #2e1a52;
	transform: translateY(-3px);
	border-color: #d6c9ff;
	box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.3), 0 2px 6px rgba(76, 29, 149, 0.08);
}

.aijs-district-chip:hover::before {
	opacity: 1;
}

.aijs-district-name {
	position: relative;
	z-index: 1;
}

.aijs-district-count {
	position: relative;
	z-index: 1;
	background: linear-gradient(135deg, #a855f7, #6d28d9);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	min-width: 24px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(109, 40, 217, 0.35);
}

@media (max-width: 600px) {
	.aijs-district-section {
		padding: 26px 18px;
		border-radius: 16px;
	}

	.aijs-district-subtitle {
		font-size: 21px;
	}

	.aijs-district-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
	}

	.aijs-district-chip {
		padding: 13px 14px;
		font-size: 14px;
	}
}

/* AI Summary — circular emoji button with a separate text label beside it, floating bottom-left */
div.aijs-fab-wrap.aijs-fab-wrap {
	position: fixed !important;
	left: 20px !important;
	bottom: 20px !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	gap: 10px;
}

button.aijs-fab.aijs-fab {
	position: static !important;
	width: 56px !important;
	height: 56px !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	border: none !important;
	outline: none !important;
	background: #7c3aed linear-gradient(135deg, #a855f7, #6d28d9) !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6), 0 4px 14px rgba(124, 58, 237, 0.4) !important;
	animation: aijsFabPulse 1.8s ease-out infinite;
	transition: background 0.15s ease, transform 0.15s ease;
	padding: 0 !important;
	margin: 0 !important;
	line-height: normal !important;
}

button.aijs-fab.aijs-fab:hover {
	background: #6b21e8 linear-gradient(135deg, #9333ea, #5b21b6) !important;
	transform: translateY(-2px);
}

.aijs-fab .aijs-fab-icon {
	flex-shrink: 0 !important;
	display: block !important;
	font-size: 24px !important;
	line-height: 1 !important;
	pointer-events: none;
	font-style: normal !important;
}

span.aijs-fab-label.aijs-fab-label {
	display: inline-flex !important;
	align-items: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: #1e1332 !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	padding: 6px 14px !important;
	border-radius: 999px !important;
	box-shadow: 0 4px 14px rgba(30, 19, 50, 0.3);
	pointer-events: none;
}

@keyframes aijsFabPulse {
	0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6), 0 4px 14px rgba(124, 58, 237, 0.4); }
	70%  { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0), 0 4px 14px rgba(124, 58, 237, 0.4); }
	100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0), 0 4px 14px rgba(124, 58, 237, 0.4); }
}

@media (max-width: 600px) {
	div.aijs-fab-wrap.aijs-fab-wrap {
		left: 50% !important;
		bottom: 100px !important;
		transform: translateX(-50%) !important;
		gap: 8px;
	}

	button.aijs-fab.aijs-fab {
		width: 50px !important;
		height: 50px !important;
	}

	.aijs-fab .aijs-fab-icon {
		font-size: 21px !important;
	}

	.aijs-fab-label {
		font-size: 12px;
		padding: 5px 12px !important;
	}
}

/* Modal overlay */
.aijs-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.aijs-modal {
	background: #fff;
	width: 100%;
	max-width: 480px;
	max-height: 85vh;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.aijs-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #e5e9f0;
}

.aijs-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.aijs-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #667;
	padding: 0 4px;
}

.aijs-modal-close:hover {
	color: #111;
}

.aijs-modal-body {
	padding: 18px;
	overflow-y: auto;
}

.aijs-modal-body ul {
	margin: 0;
	padding-left: 20px;
}

.aijs-modal-body li {
	margin-bottom: 8px;
	line-height: 1.55;
}

.aijs-loading {
	margin: 0;
	color: #555;
}

.aijs-error {
	color: #b32d2e;
	font-weight: 600;
	margin: 0;
}

.aijs-modal-footer {
	display: flex;
	gap: 10px;
	padding: 14px 18px;
	border-top: 1px solid #e5e9f0;
	background: #f7faff;
}

.aijs-action-btn {
	flex: 1;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid #c3cdd8;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.aijs-action-btn:hover {
	background: #eef3fa;
	border-color: #2271b1;
}

.aijs-share-btn {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

.aijs-share-btn:hover {
	background: #1ebc59;
	border-color: #1ebc59;
}

@media (max-width: 480px) {
	.aijs-modal {
		max-width: 100%;
	}
}

.active-jobs-wrapper {
	border: 1px solid #e5e9f0;
	border-radius: 10px;
	background: #fff;
	margin: 24px 0;
	overflow: hidden;
}

.active-jobs-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: #f7faff;
	border-bottom: 1px solid #e5e9f0;
}

.aj-pulse-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e53935;
	animation: aj-pulse 1.6s infinite;
	flex-shrink: 0;
}

@keyframes aj-pulse {
	0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.active-jobs-header h3 {
	margin: 0;
	font-size: 16px;
	flex: 1;
}

.aj-total {
	font-size: 13px;
	font-weight: 600;
	color: #e53935;
	background: #fdecea;
	padding: 4px 10px;
	border-radius: 999px;
}

.active-jobs-list {
	display: flex;
	flex-direction: column;
}

.aj-item {
	display: block;
	padding: 12px 18px;
	border-bottom: 1px solid #eef2f7;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.aj-item:last-child {
	border-bottom: none;
}

.aj-item:hover {
	background: #f7faff;
}

.aj-title {
	font-weight: 600;
	margin-bottom: 6px;
}

.aj-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.aj-badge {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.aj-badge.last-day {
	background: #fdecea;
	color: #e53935;
}

.aj-badge.urgent {
	background: #fff4e5;
	color: #e6820e;
}

.aj-badge.soon {
	background: #fff9e0;
	color: #b8960c;
}

.aj-badge.open {
	background: #e8f7ee;
	color: #1ebc59;
}

.aj-empty {
	padding: 16px 18px;
	border: 1px solid #e5e9f0;
	border-radius: 10px;
	background: #f7faff;
	font-size: 14px;
	margin: 24px 0;
}

@keyframes blink {
	50% { opacity: 0; }
}

/* Deadline calendar — month grid, one shortcode: [aijs_deadline_calendar] */
.aijs-dlcal-section {
	max-width: 1200px;
	width: 100%;
	margin: 48px auto;
	padding: 0 0 28px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #ece7fb;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(76, 29, 149, 0.04), 0 20px 44px -16px rgba(124, 58, 237, 0.25);
	/* Lets the @container rules below react to the space this section
	   actually has (e.g. a narrow sidebar widget), not the viewport width —
	   a plain media query can't tell a wide-screen sidebar from a wide-open
	   main column, but this can. */
	container-type: inline-size;
	container-name: aijs-dlcal;
}

.aijs-dlcal-header {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
	padding: 30px 28px 26px;
	position: relative;
	overflow: hidden;
}

.aijs-dlcal-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16) 0, transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0, transparent 45%);
	pointer-events: none;
}

.aijs-dlcal-eyebrow {
	position: relative;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #f3e8ff;
	margin: 0 0 10px;
	text-align: center;
}

.aijs-dlcal-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 0 0 6px;
}

.aijs-dlcal-title {
	font-size: 28px;
	font-weight: 800;
	color: #ffffff;
	margin: 0;
	letter-spacing: -0.01em;
	text-align: center;
	text-shadow: 0 2px 10px rgba(76, 29, 149, 0.35);
	min-width: 180px;
}

.aijs-dlcal-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	backdrop-filter: blur(2px);
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.aijs-dlcal-nav-btn:hover {
	border-color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
}

.aijs-dlcal-subtitle {
	position: relative;
	font-size: 13.5px;
	color: #f3e8ff;
	margin: 0;
	text-align: center;
	opacity: 0.9;
}

.aijs-dlcal-body {
	padding: 24px 24px 0;
}

.aijs-dlcal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.aijs-dlcal-weekday {
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #a855f7;
	text-align: center;
	padding: 4px 0 12px;
}

.aijs-dlcal-cell {
	/* Fixed height (not just min-height) so a day with several jobs can't
	   grow the whole grid row taller and push/overlap page content next to
	   it (e.g. a sidebar) — overflow scrolls inside the cell instead. */
	height: 92px;
	overflow-y: auto;
	position: relative;
	border: 1px solid #ece7fb;
	border-radius: 12px;
	padding: 6px 6px 8px;
	background: #faf9ff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aijs-dlcal-cell-empty {
	background: transparent;
	border-color: transparent;
}

.aijs-dlcal-cell-today {
	border-color: #a855f7;
	box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25), 0 4px 14px -4px rgba(124, 58, 237, 0.4);
}

.aijs-dlcal-cell-today .aijs-dlcal-daynum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: linear-gradient(135deg, #7c3aed, #d946ef);
	color: #ffffff !important;
	box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.6);
}

.aijs-dlcal-cell-has-jobs {
	background: #f3edff;
	border-color: #d6c9ff;
}

.aijs-dlcal-cell-has-jobs:hover {
	border-color: #a855f7;
	box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.35);
	transform: translateY(-1px);
}

.aijs-dlcal-daynum {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #1e1332;
	margin-bottom: 4px;
	line-height: 1.4;
}

.aijs-dlcal-joblist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.aijs-dlcal-joblist li a {
	display: block;
	font-size: 10.5px;
	line-height: 1.3;
	font-weight: 600;
	color: #6d28d9;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 1px 4px;
	border-radius: 4px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.aijs-dlcal-joblist li a:hover {
	background: #ffffff;
	color: #4c1d95;
}

.aijs-dlcal-more {
	font-size: 10px;
	color: #9a95a6;
}

@media (max-width: 640px) {
	.aijs-dlcal-header {
		padding: 22px 16px 20px;
	}

	.aijs-dlcal-title {
		font-size: 22px;
		min-width: 140px;
	}

	.aijs-dlcal-body {
		padding: 18px 14px 0;
	}

	.aijs-dlcal-grid {
		gap: 3px;
	}

	.aijs-dlcal-cell {
		height: 64px;
		padding: 4px 3px 6px;
	}

	.aijs-dlcal-weekday {
		font-size: 10px;
		padding: 4px 0 8px;
	}

	.aijs-dlcal-daynum {
		font-size: 10px;
	}

	.aijs-dlcal-joblist li a {
		font-size: 9px;
	}
}

/*
 * Narrow container (e.g. a sidebar widget) — a 7-column grid can't stay
 * readable at typical sidebar widths, so it switches to a simple vertical
 * list: one row per date, job titles beside it. Reuses the exact same
 * markup (.aijs-dlcal-grid / .aijs-dlcal-cell / .aijs-dlcal-joblist) the
 * PHP already outputs, so this is layout-only — no template branching
 * needed for the sidebar case.
 */
@container aijs-dlcal (max-width: 420px) {
	.aijs-dlcal-header {
		padding: 20px 16px 18px;
	}

	.aijs-dlcal-title {
		font-size: 19px;
		min-width: 0;
	}

	.aijs-dlcal-nav {
		gap: 12px;
	}

	.aijs-dlcal-nav-btn {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}

	.aijs-dlcal-body {
		padding: 16px 14px 4px;
	}

	.aijs-dlcal-grid {
		display: block;
	}

	.aijs-dlcal-weekday {
		display: none;
	}

	.aijs-dlcal-cell-empty {
		display: none;
	}

	.aijs-dlcal-cell {
		height: auto;
		max-height: none;
		overflow: visible;
		display: flex;
		align-items: flex-start;
		gap: 10px;
		padding: 8px 10px;
		border-radius: 8px;
		margin-bottom: 4px;
	}

	.aijs-dlcal-cell:not(.aijs-dlcal-cell-has-jobs) {
		display: none;
	}

	.aijs-dlcal-daynum {
		flex-shrink: 0;
		width: 30px;
		margin-bottom: 0;
		padding-top: 1px;
	}

	.aijs-dlcal-joblist li a {
		white-space: normal;
		font-size: 12px;
	}
}
