/**
 * YA Teacher Search — styles.
 *
 * The approved 9 July mockup (option B revised): deep plum search band, chip
 * multi-select, photo-led cards in the house card idiom, four columns at desktop.
 * Scoped under .ya-ts 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 names, the site loads it from the
 * child theme; the stack falls back to Georgia where Larken is absent.
 */

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

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

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

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

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

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

.ya-ts__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-ts__button:hover {
	background: #F4EFF2;
}

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

.ya-ts__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;
	cursor: pointer;
}

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

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

/* The specialty row sits under the credential row and reads as a second, quieter question.
   Chips within a row union, the two rows intersect, so Level 3 plus Children's Yoga narrows
   to senior teachers who teach children. */
.ya-ts__chips--spec {
	margin-top: 12px;
}

.ya-ts__chip--spec {
	font-size: 14px;
	padding: 7px 17px;
	border-style: dashed;
}

.ya-ts__chip--spec[aria-pressed="true"] {
	border-style: solid;
}

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

.ya-ts__header:empty {
	display: none;
}

/* ---- Order note ---- */
/* One sentence saying why the nearest teacher is not always at the top. Josh watched a
   teacher 0km from the searched town rank last on 19 August 2026 and asked for the
   explanation; the ranking rule itself stands. */
.ya-ts__note {
	color: #6b6068;
	font-size: 15px;
	margin: -12px 0 26px;
}

.ya-ts__note:empty {
	display: none;
}

/* ---- Level groups ---- */
/* Results stack as one block per teaching level, each under a heading naming the level and
   the place (Josh, 19 August 2026). The grid moved off .ya-ts__results and onto the group
   when this landed, so the container is now a plain column of sections. */
.ya-ts__results {
	padding-bottom: 40px;
}

.ya-ts-group + .ya-ts-group {
	margin-top: 42px;
}

.ya-ts-group__heading {
	font-family: Larken, Georgia, serif;
	font-size: 22px;
	color: #6C4B60;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #E3DDE1;
}

.ya-ts-group__count {
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	/* Measured on the live page 20 August 2026. This read #8b7f86, a mid-tone grey scoring
	   3.83 against white at 15px, which is under AA and under the house rule against
	   mid-tone inks at text scale. #6b6068 is the same grey the note already uses and
	   scores 6.00. */
	color: #6b6068;
	margin-left: 6px;
}

.ya-ts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 26px;
}

.ya-ts-card--folded {
	display: none;
}

.ya-ts-group__more {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	margin-top: 22px;
	padding: 11px 26px;
	border-radius: 999px;
	background: transparent;
	border: 1px solid #6C4B60;
	color: #6C4B60;
	cursor: pointer;
}

.ya-ts-group__more:hover {
	background: #6C4B60;
	color: #F4EFF2;
}

.ya-ts-group__capped {
	color: #6b6068;
	font-size: 14px;
	margin: 14px 0 0;
}

.ya-ts__empty {
	color: #6b6068;
	font-style: italic;
}

/* ---- Card ---- */
.ya-ts-card {
	background: #fff;
	border: 1px solid #E3DDE1;
	border-radius: 10px;
	padding: 28px 24px 26px;
	box-shadow: 0 6px 18px rgba(108, 75, 96, 0.08);
	text-align: center;
	/* Cards fill their grid row so the bottoms line up. This read "align-self: start" until
	   18 August 2026, which let every card stop at its own content and left a row of ragged
	   bottoms wherever one teacher held a second credential and their neighbour held one. */
	align-self: stretch;
}

.ya-ts-card__photowrap {
	position: relative;
	width: 150px;
	margin: 0 auto 18px;
}

/* The portrait is a link to the teacher's profile. The anchor wraps the image tightly so
   the badges and the distance pill, which sit outside it, stay unclickable. */
.ya-ts-card__photolink {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 50%;
}

.ya-ts-card__photolink:focus-visible {
	outline: 3px solid #6C4B60;
	outline-offset: 3px;
}

.ya-ts-card__photo {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	display: block;
	object-fit: cover;
}

/* Badges, one per credential held, seated along the photo's lower right. A pair
   overlaps slightly so the two read as one cluster rather than two loose stickers. */
.ya-ts-card__badges {
	position: absolute;
	right: -8px;
	bottom: -4px;
	display: flex;
	align-items: flex-end;
}

.ya-ts-card__badge {
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

/* A pair sits smaller and hangs further off the photo's edge, so the portrait keeps
   its face and the two badges still read as one cluster. */
.ya-ts-card__badges:has(.ya-ts-card__badge + .ya-ts-card__badge) {
	right: -22px;
	bottom: -2px;
}

.ya-ts-card__badges:has(.ya-ts-card__badge + .ya-ts-card__badge) .ya-ts-card__badge {
	width: 46px;
	height: 46px;
}

.ya-ts-card__badge + .ya-ts-card__badge {
	margin-left: -10px;
}

.ya-ts-card__dist {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -14px;
	font-size: 13px;
	font-weight: 600;
	color: #6C4B60;
	background: #E3DDE1;
	border-radius: 999px;
	padding: 4px 12px;
	white-space: nowrap;
}

.ya-ts-card__name {
	font-family: "Larken", Georgia, serif;
	font-weight: 500;
	font-size: 22px;
	color: #3a2f36;
	margin: 0 0 6px;
	line-height: 1.2;
}

.ya-ts-card__name a {
	color: #3a2f36;
	text-decoration: none;
}

.ya-ts-card__name a:hover {
	text-decoration: underline;
}

/* Credential lines. A teacher holding several stacks them, highest first, the leading
   one in full plum and the rest a shade back so the card reads down rather than shouting
   twice at the same weight. */
.ya-ts-card__cred {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #735766;
	margin: 0 0 4px;
	line-height: 1.35;
}

.ya-ts-card__cred + .ya-ts-card__cred {
	font-weight: 500;
	color: #8d7f88;
	margin-top: -1px;
}

.ya-ts-card__loc {
	font-size: 14px;
	color: #6b6068;
	margin: 0 0 10px;
}

/* Specialty tags. A BuddyBoss group rather than an earned level, so they read as tags
   under the location and never as another credential line. */
.ya-ts-card__specs {
	margin: 0 0 12px;
	line-height: 1.9;
}

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

.ya-ts-card__bio {
	font-size: 14.5px;
	line-height: 1.55;
	color: #453d42;
	margin: 0;
	text-align: left;
}

/* ---- Small screens ---- */
@media (max-width: 640px) {
	.ya-ts__hero {
		padding: 36px 24px 30px;
		border-radius: 0;
	}
	.ya-ts__heading {
		font-size: 38px;
	}
	.ya-ts__row {
		flex-direction: column;
	}
	/* The row's flex-basis of 320px reads as a height once the row stacks, so the search
	   box rendered a third of a phone screen tall. Seen live on 18 August 2026. */
	.ya-ts__input {
		flex: 0 0 auto;
		width: 100%;
	}
	.ya-ts__button {
		width: 100%;
	}
}
