/**
 * YA Course Search — styles.
 *
 * The teacher-search idiom carried to courses: deep plum search band, chip
 * topic buttons, cards in the house card language, three columns at desktop.
 * Scoped under .ya-cs so the plugin does not bleed into the host theme.
 *
 * Palette from YA-BRAND.md: Deep Plum #6C4B60, YA Plum #735766, Mist Lavender #E3DDE1,
 * Warm Black #1A1A1A. Larken serves display and titles, loaded by the child theme;
 * the stack falls back to Georgia where Larken is absent.
 */

.ya-cs {
	margin: 0 auto;
	font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1A1A1A;
}

/* ---- Search band ---- */
.ya-cs__hero {
	background: #6C4B60;
	border-radius: 12px;
	padding: 56px 48px 44px;
	margin-bottom: 8px;
}

.ya-cs__heading {
	font-family: "Larken", Georgia, serif;
	font-weight: 500;
	font-size: 56px;
	line-height: 1.05;
	color: #F4EFF2;
	margin: 0 0 28px;
}

.ya-cs__row {
	display: flex;
	gap: 14px;
	max-width: 880px;
}

.ya-cs__input {
	flex: 1 1 320px;
	font-family: inherit;
	font-size: 17px;
	padding: 16px 22px;
	border: none;
	border-radius: 10px;
	background: #F4EFF2;
	color: #3a2f36;
}

.ya-cs__input::placeholder {
	color: #8d7f88;
}

.ya-cs__button {
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #6C4B60;
	background: #E3DDE1;
	border: none;
	border-radius: 10px;
	padding: 16px 36px;
	cursor: pointer;
}

.ya-cs__button:hover {
	background: #F4EFF2;
}

/* ---- Topic chips ---- */
.ya-cs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.ya-cs__chip {
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	border-radius: 999px;
	padding: 9px 20px;
	background: transparent;
	border: 1px solid rgba(244, 239, 242, 0.45);
	color: #E9E1E6;
	text-decoration: none;
}

.ya-cs__chip:hover {
	border-color: rgba(244, 239, 242, 0.8);
	color: #E9E1E6;
}

.ya-cs__chip[aria-pressed="true"] {
	background: #F4EFF2;
	border-color: #F4EFF2;
	color: #6C4B60;
	font-weight: 600;
}

/* ---- Result header ---- */
.ya-cs__header {
	font-family: "Larken", Georgia, serif;
	font-style: italic;
	font-size: 20px;
	color: #6C4B60;
	margin: 30px 0 22px;
}

.ya-cs__empty {
	color: #6b6068;
	font-style: italic;
	padding-bottom: 40px;
}

/* ---- Grid and cards ---- */
.ya-cs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
	padding-bottom: 40px;
}

.ya-cs-card {
	background: #fff;
	border: 1px solid #E3DDE1;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(108, 75, 96, 0.08);
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

.ya-cs-card__thumblink {
	display: block;
}

.ya-cs-card__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ya-cs-card__thumb--empty {
	background: #E3DDE1;
}

.ya-cs-card__title {
	font-family: "Larken", Georgia, serif;
	font-weight: 500;
	font-size: 21px;
	line-height: 1.25;
	margin: 18px 22px 10px;
}

.ya-cs-card__title a {
	color: #3a2f36;
	text-decoration: none;
}

.ya-cs-card__title a:hover {
	text-decoration: underline;
}

.ya-cs-card__tags {
	margin: 0 22px 10px;
	line-height: 1.9;
}

.ya-cs-card__tag {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 3px 11px;
	border-radius: 999px;
	background: #F4EFF2;
	color: #6C4B60;
	text-decoration: none;
}

.ya-cs-card__tag:hover {
	background: #E3DDE1;
	color: #6C4B60;
}

.ya-cs-card__excerpt {
	font-size: 14.5px;
	line-height: 1.55;
	color: #453d42;
	margin: 0 22px 22px;
}

/* ---- Small screens ---- */
@media (max-width: 640px) {
	.ya-cs__hero {
		padding: 36px 24px 30px;
		border-radius: 0;
	}
	.ya-cs__heading {
		font-size: 38px;
	}
	.ya-cs__row {
		flex-direction: column;
	}
	/* flex-basis reads as height once the row stacks; same fault teacher search hit live. */
	.ya-cs__input {
		flex: 0 0 auto;
		width: 100%;
	}
	.ya-cs__button {
		width: 100%;
	}
}
