/*
 * Practice Roster — front-end styles.
 *
 * Neutral on purpose: fonts and colours come from the theme (inherit / currentColor / theme.json presets with
 * fallbacks). Selectors are a single class (or wrapped in :where() for zero specificity), so a theme can restyle
 * anything with one class of its own.
 *
 * CLASS CONTRACT (stable; themes may target these)
 * Wrappers (each block also gets wp-block-practice-roster-<name>):
 *   .proster-team  .proster-team--cards | --compact | --staff     team block; .proster-team__heading
 *   .proster-services  .proster-services--grid | --list | --accordion
 *   .proster-details  .proster-details--summary | --photo         therapist summary / portrait
 *   .proster-facts  .proster-facts__group  .proster-facts__heading  areas of focus, approaches, who, services
 *   .proster-fees  .proster-fees__heading  .proster-fees__list (dl)
 *   .proster-booking  .proster-booking__note  .proster-booking__action
 *   .proster-info  .proster-info--contact | --hours | --address | --booking | --team-link | --services-link
 *   .proster-finder  .proster-finder__form  __fields  __field  __field--check  __actions  __submit  __clear
 *                    __count  __none     (.proster-finder.is-enhanced once the script runs)
 *   .proster-guide  .proster-guide__step  --for | --need | --results  __form  __fieldset  __legend  __heading
 *                   __choices  __choice  __choice--unsure  __chosen  __note  __services  __team  __subheading
 *                   __service  __person  __book  __none  __talk  __talk-text  __talk-links  __nav  __back  __restart
 *                   (.proster-guide.is-enhanced once the script runs)
 *   .proster-field  .proster-field--tagline | --excerpt | --credentials | --title | --pronouns | --fee
 *   .proster-quote  .proster-quote__text                          excerpt band (absent when no excerpt)
 *   .proster-highlights  --1|--2|--3  __inner  __item  __title  __text   service highlights band (absent when empty)
 *   .proster-related  __media  __img  __body  __label  __title     related article card (absent when none chosen)
 *   .proster-contact | .proster-newsletter > .proster-form (--contact|--newsletter)  __row  __field  __note  __consent
 *     __submit  __button  __notice (--ok|--error)  __hp (honeypot, hidden)          contact form / newsletter sign-up
 *   .proster-byline  .proster-byline__line  --written | --reviewed  __name  __credentials  __sep   post byline
 *   .proster-intro  .proster-intro__text  .proster-classic--before | --after   classic-theme single pages
 *   .proster-template--therapist | --service | --team | --services    plugin block templates (<main>)
 * Lists and items:
 *   .proster-grid (ul, responsive grid)  .proster-list (ul)
 *   .proster-card (li)  .is-staff  __media  __body  __name  __credentials  __title  __pronouns  __locations
 *                 __focus  __bio (.is-clamped .is-expanded)  __bio-text  __bio-toggle  __more
 *   .proster-service (li)  .no-image  __media  __body  __title  __tagline  __text  __more
 *   .proster-service-item  __title  __tagline                     services "list" layout
 *   .proster-accordion (details)  __summary  __title  __icon  __body
 *   .proster-tags (ul)  .proster-tag (li)
 * Pieces:
 *   .proster-photo  .proster-photo--portrait  .has-initials  .proster-photo__img  .proster-initials
 *   .proster-status  .is-accepting | .is-waitlist  .proster-status__dot
 *   .proster-details__registration (.proster-registration)  __link  __number  __sep   "Registered with CRPO · #123"
 *   .proster-button (also .wp-element-button, so block-theme button styles apply)  .proster-link
 *   .proster-empty (editor-only placeholder)
 * Custom properties (set on any ancestor to tune): --proster-gap, --proster-card-min, --proster-radius,
 *   --proster-accent, --proster-open, --proster-subtle, --proster-border.
 */

:root {
	--proster-gap: var(--wp--preset--spacing--40, clamp(1.25rem, 3vw, 2rem));
	--proster-card-min: 240px;
	--proster-radius: 0.5rem;
	--proster-accent: var(--wp--preset--color--primary, var(--wp--preset--color--contrast, currentColor));
	--proster-open: #2e7d4f;
	--proster-subtle: color-mix(in srgb, currentColor 6%, transparent);
	--proster-border: color-mix(in srgb, currentColor 18%, transparent);
}

/* ---- Lists & grids ---------------------------------------------------- */

.proster-grid,
.proster-list,
.proster-tags {
	list-style: none;
	margin: 0;
	padding: 0;
}

.proster-grid {
	display: grid;
	gap: calc(var(--proster-gap) * 1.25) var(--proster-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--proster-card-min)), 1fr));
}

:where(.proster-grid > li, .proster-list > li, .proster-tags > li)::marker {
	content: none;
}

/* Cards and finder results honour the hidden attribute even though they set display. */
/* !important: themes often set display on cards, which would otherwise show cards a limit or filter hid. */
.proster-card[hidden],
.proster-finder__none[hidden] {
	display: none !important;
}

/* ---- Team cards ------------------------------------------------------- */

.proster-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
}

.proster-card__media {
	display: block;
	color: inherit;
	text-decoration: none;
}

.proster-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

:where(.proster-card__body) > * {
	margin: 0;
}

.proster-card__name {
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.25;
}

:where(.proster-card__name) a {
	color: inherit;
	text-decoration: none;
}

:where(.proster-card__name) a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.proster-card__credentials,
.proster-card__pronouns,
.proster-card__locations {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	opacity: 0.8;
}

.proster-card__title {
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

.proster-card__focus {
	margin-top: 0.35rem;
}

.proster-card__more {
	margin-top: auto;
	padding-top: 0.35rem;
}

/* Short bio: every card reserves the same number of lines (--proster-bio-lines) plus room for "Read more",
   so cards line up whether a bio is long, short or cut. card-bio.js adds .is-clamped / .is-expanded. */
.proster-card__bio {
	--proster-bio-lh: 1.55;
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

.proster-card__bio-text {
	margin: 0;
	line-height: var(--proster-bio-lh);
	min-height: calc(var(--proster-bio-lines, 3) * var(--proster-bio-lh) * 1em);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--proster-bio-lines, 3);
	line-clamp: var(--proster-bio-lines, 3);
	overflow: hidden;
}

.proster-card__bio.is-expanded .proster-card__bio-text {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: none;
	overflow: visible;
}

.proster-card__bio-toggle {
	visibility: hidden; /* keeps its line on short bios so all cards stay the same length */
	margin: 0.2rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
	opacity: 0.8;
}

.proster-card__bio-toggle:hover,
.proster-card__bio-toggle:focus-visible {
	opacity: 1;
}

.proster-card__bio.is-clamped .proster-card__bio-toggle,
.proster-card__bio.is-expanded .proster-card__bio-toggle {
	visibility: visible;
}

/* Compact: small portrait beside the text. */
.proster-team--compact .proster-grid {
	--proster-card-min: 280px;
}

.proster-team--compact .proster-card {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}

.proster-team--compact .proster-card__media {
	flex: 0 0 5.5rem;
}

.proster-team--compact .proster-photo {
	aspect-ratio: 1;
}

.proster-team--compact .proster-card__name {
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
}

/* Staff ("behind the scenes"): round portrait, name, title. */
.proster-team--staff .proster-grid {
	--proster-card-min: 160px;
	text-align: center;
}

.proster-team--staff .proster-card {
	align-items: center;
}

.proster-team--staff .proster-card__media {
	width: min(9rem, 70%);
}

/* Square frame, not a circle: a round mask would clip shoulders and hair. */
.proster-team--staff .proster-photo {
	aspect-ratio: 1;
}

.proster-team--staff .proster-card__name {
	font-size: var(--wp--preset--font-size--medium, 1.0625rem);
}

.proster-team__heading {
	margin: 0 0 var(--proster-gap);
	text-align: center;
}

/* ---- Headshot / initials ---------------------------------------------- */

.proster-photo {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--proster-radius);
	background: var(--proster-subtle);
}

/*
 * Never crop people: the whole photo always shows (faces, hands, shoulders), centred in the frame on the soft
 * background. Frames keep the grid even; photos of another shape are letterboxed rather than cut.
 */
.proster-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.proster-initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1.25rem, 4vw, 2.75rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	opacity: 0.55;
	background: color-mix(in srgb, currentColor 10%, transparent);
}

.proster-team--compact .proster-initials,
.proster-team--staff .proster-initials {
	font-size: 1.35rem;
}

.proster-photo--portrait {
	max-width: 28rem;
}

/* ---- Status badge, tags, links, buttons ------------------------------- */

.proster-status {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

.proster-status__dot {
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
	flex: none;
}

.is-accepting > .proster-status__dot {
	background: var(--proster-open);
	opacity: 1;
}

.proster-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.proster-tag {
	display: inline-block;
	padding: 0.2em 0.7em;
	border: 1px solid var(--proster-border);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small, 0.8125rem);
	line-height: 1.5;
}

:where(.proster-tag) a {
	color: inherit;
	text-decoration: none;
}

:where(.proster-tag) a:hover {
	text-decoration: underline;
}

.proster-link {
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* Fallback button look; theme button styles (.wp-element-button) win because this has zero specificity. */
:where(.proster-button) {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: var(--proster-radius);
	background-color: var(--wp--preset--color--contrast, #1e1e1e);
	color: var(--wp--preset--color--base, #fff);
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

:where(.proster-button):hover {
	opacity: 0.88;
}

/* ---- Services ---------------------------------------------------------- */

.proster-service {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.proster-service__media {
	display: block;
	overflow: hidden;
	border-radius: var(--proster-radius);
	background: var(--proster-subtle);
}

/* Even 4:3 frames, whole image shown (service photos often include people). */
:where(.proster-service__media) img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

.proster-service__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4rem;
}

:where(.proster-service__body) > * {
	margin: 0;
}

.proster-service.no-image .proster-service__body {
	padding: 1.25rem;
	border: 1px solid var(--proster-border);
	border-radius: var(--proster-radius);
}

.proster-service__title {
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.25;
}

:where(.proster-service__title) a {
	color: inherit;
	text-decoration: none;
}

:where(.proster-service__title) a:hover {
	text-decoration: underline;
}

.proster-service__tagline,
.proster-service-item__tagline {
	font-style: italic;
	opacity: 0.85;
}

.proster-service__more {
	margin-top: auto;
	padding-top: 0.25rem;
}

.proster-list {
	columns: 2 16rem;
	column-gap: var(--proster-gap);
}

.proster-service-item {
	break-inside: avoid;
	padding: 0.5rem 0;
}

.proster-service-item__title {
	font-weight: 600;
}

.proster-service-item__tagline {
	display: block;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

/* Accordion */
.proster-accordion {
	border-bottom: 1px solid var(--proster-border);
}

.proster-accordion:first-child {
	border-top: 1px solid var(--proster-border);
}

.proster-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	cursor: pointer;
	list-style: none;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	font-weight: 600;
}

.proster-accordion__summary::-webkit-details-marker {
	display: none;
}

.proster-accordion__icon {
	position: relative;
	flex: none;
	width: 0.8rem;
	height: 0.8rem;
}

.proster-accordion__icon::before,
.proster-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	background: currentColor;
	transition: transform 0.25s ease;
}

.proster-accordion__icon::after {
	transform: rotate(90deg);
}

.proster-accordion[open] .proster-accordion__icon::after {
	transform: rotate(0deg);
}

.proster-accordion__body {
	padding: 0 0 1.25rem;
}

/* ---- Therapist details ------------------------------------------------ */

.proster-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

:where(.proster-details) > p {
	margin: 0;
}

.proster-details__credentials {
	font-weight: 600;
	letter-spacing: 0.02em;
}

.proster-details__locations {
	opacity: 0.85;
}

.proster-registration {
	font-size: 0.9em;
	opacity: 0.85;
}

.proster-registration a {
	color: inherit;
}

/* ---- Post byline ------------------------------------------------------ */

.proster-byline {
	font-size: 0.9em;
}

:where(.proster-byline) > p {
	margin: 0 0 0.25em;
}

.proster-byline__name {
	font-weight: 600;
}

.proster-details .proster-booking__action {
	margin-top: 0.75rem;
}

.proster-facts {
	display: grid;
	gap: var(--proster-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.proster-facts__heading,
.proster-fees__heading {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
}

.proster-fees {
	padding: var(--proster-gap);
	border: 1px solid var(--proster-border);
	border-radius: var(--proster-radius);
}

.proster-fees__list {
	display: grid;
	grid-template-columns: minmax(8rem, max-content) 1fr;
	gap: 0.5rem 1.5rem;
	margin: 0;
}

:where(.proster-fees__list) dt {
	font-weight: 600;
}

:where(.proster-fees__list) dd {
	margin: 0;
}

.proster-booking {
	text-align: center;
}

:where(.proster-booking) > p {
	margin: 0 0 0.75rem;
}

.proster-booking__note {
	opacity: 0.85;
}

/* ---- Practice info, field, quote -------------------------------------- */

:where(.proster-info) > * {
	margin-top: 0;
	margin-bottom: 0.35rem;
}

.proster-info__label {
	font-weight: 600;
}

:where(.proster-info) address {
	font-style: normal;
}

.proster-field--tagline {
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	font-style: italic;
}

.proster-quote {
	margin-block: var(--wp--preset--spacing--50, 2.5rem) 0;
	padding: var(--wp--preset--spacing--50, 2.5rem) var(--wp--style--root--padding-right, 1.25rem);
	background: var(--proster-subtle);
}

.proster-quote__text {
	max-width: 44rem;
	margin: 0 auto;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--x-large, 1.5rem);
	font-style: italic;
	line-height: 1.45;
}

:where(.proster-quote__text) p {
	margin: 0;
}

/* ---- Service highlights band + related article card -------------------- */

.proster-highlights {
	padding: var(--wp--preset--spacing--50, 2.5rem) var(--wp--style--root--padding-right, 1.25rem);
}

.proster-highlights__inner {
	display: grid;
	grid-template-columns: repeat(var(--proster-highlights-cols, 3), minmax(0, 1fr));
	gap: var(--proster-gap);
	max-width: var(--wp--style--global--wide-size, 1080px);
	margin: 0 auto;
	text-align: center;
}

.proster-highlights--2 { --proster-highlights-cols: 2; }
.proster-highlights--1 { --proster-highlights-cols: 1; }

.proster-highlights__title {
	margin: 0 0 0.5rem;
}

.proster-highlights__text {
	margin: 0;
}

@media (max-width: 781px) {
	.proster-highlights__inner {
		grid-template-columns: 1fr;
	}
}

.proster-related {
	display: block;
}

.proster-related__media {
	display: block;
}

.proster-related__img {
	display: block;
	width: 100%;
	height: auto; /* keep the width/height attribute ratio, so lazy images don't fall back to the 1500px placeholder */
}

.proster-related__body {
	padding-top: 0.9rem;
}

.proster-related__label {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}

.proster-related__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium, 1.125rem);
	line-height: 1.4;
}

/* ---- Contact form + newsletter sign-up ---------------------------------- */

.proster-form {
	display: grid;
	gap: 1rem;
}

.proster-form p {
	margin: 0;
}

.proster-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 1rem;
	align-items: end;
}

.proster-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.proster-form__optional {
	font-weight: 400;
	opacity: 0.7;
}

.proster-form input[type="text"],
.proster-form input[type="email"],
.proster-form input[type="tel"],
.proster-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--proster-border);
	border-radius: 0;
	background: #fff;
	color: inherit;
	font: inherit;
}

.proster-form textarea {
	resize: vertical;
	min-height: 8rem;
}

.proster-form input:focus-visible,
.proster-form textarea:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.proster-form__note,
.proster-form__consent {
	font-size: 0.875rem;
	opacity: 0.85;
}

.proster-form__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.proster-form__consent input {
	margin-top: 0.25rem;
	flex: none;
}

.proster-form__button {
	cursor: pointer;
	font: inherit;
}

.proster-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.proster-form__notice {
	padding: 0.9rem 1.1rem;
	border-left: 3px solid currentColor;
	background: var(--proster-subtle);
}

.proster-form__notice--error {
	color: #9b2c2c;
}

/* ---- Finder ------------------------------------------------------------ */

.proster-finder__form {
	margin-bottom: var(--proster-gap);
	padding: var(--proster-gap);
	border: 1px solid var(--proster-border);
	border-radius: var(--proster-radius);
	background: var(--proster-subtle);
}

.proster-finder__fields {
	display: grid;
	gap: 1rem var(--proster-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	align-items: end;
}

.proster-finder__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

:where(.proster-finder__field) label {
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
}

:where(.proster-finder__field) select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: calc(var(--proster-radius) * 0.6);
	background-color: var(--wp--preset--color--base, #fff);
	color: inherit;
	font: inherit;
}

.proster-finder__field--check {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
}

:where(.proster-finder__field--check) input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--proster-accent);
}

.proster-finder__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.proster-finder.is-enhanced .proster-finder__submit {
	display: none;
}

.proster-finder__count {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	opacity: 0.85;
}

.proster-finder__none {
	padding: 1.5rem;
	border: 1px dashed var(--proster-border);
	border-radius: var(--proster-radius);
	text-align: center;
}

/* ---- Help me choose guide ---------------------------------------------- */

.proster-guide [hidden] {
	display: none !important;
}

.proster-guide__step > * + * {
	margin-top: var(--proster-gap);
}

.proster-guide__fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.proster-guide__legend {
	float: left; /* lets the legend wrap and sit in the flow like a heading */
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
}

.proster-guide__legend + * {
	clear: both;
}

.proster-guide__heading {
	margin: 0;
}

.proster-guide__heading:focus {
	outline: none;
}

.proster-guide__heading:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.proster-guide__chosen {
	margin: 0.5rem 0 1rem;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	opacity: 0.85;
}

.proster-guide__chosen:empty {
	display: none;
}

.proster-guide__choices {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

/* Large, plain choice buttons: theme font and colour, a soft border, no fixed palette. */
:where(.proster-guide__choice) {
	display: flex;
	align-items: center;
	min-height: 3.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--proster-border);
	border-radius: var(--proster-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium, 1.0625rem);
	line-height: 1.3;
	text-align: start;
	cursor: pointer;
}

:where(.proster-guide__choice):hover {
	border-color: currentColor;
	background: var(--proster-subtle);
}

:where(.proster-guide__choice--unsure) {
	border-style: dashed;
}

.proster-guide__note {
	padding: 1rem 1.25rem;
	border-inline-start: 3px solid var(--proster-accent);
	background: var(--proster-subtle);
}

.proster-guide__subheading {
	margin: 0 0 1rem;
}

.proster-guide__book {
	margin-top: 0.35rem;
}

.proster-guide__none {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--proster-border);
	border-radius: var(--proster-radius);
}

.proster-guide__talk {
	padding: var(--proster-gap);
	border: 1px solid var(--proster-border);
	border-radius: var(--proster-radius);
}

.proster-guide__talk-text {
	margin: 0 0 0.75rem;
}

.proster-guide__talk-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.proster-guide__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

/* ---- Classic themes --------------------------------------------------- */

.proster-intro {
	display: grid;
	gap: var(--proster-gap);
	align-items: center;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	margin-bottom: var(--proster-gap);
}

.proster-classic--after > * + * {
	margin-top: var(--proster-gap);
}

.proster-classic--after {
	margin-top: var(--proster-gap);
}

@media (max-width: 600px) {
	.proster-intro {
		grid-template-columns: 1fr;
	}

	.proster-fees__list {
		grid-template-columns: 1fr;
	}

	:where(.proster-fees__list) dd {
		margin-bottom: 0.5rem;
	}
}

/* ---- Accessibility ----------------------------------------------------- */

:where(.proster-team, .proster-services, .proster-details, .proster-facts, .proster-finder, .proster-guide, .proster-info, .proster-booking) :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.proster-empty {
	padding: 1rem 1.25rem;
	border: 1px dashed color-mix(in srgb, currentColor 40%, transparent);
	border-radius: var(--proster-radius);
	font-size: 0.9rem;
}

.proster-empty p {
	margin: 0;
}

/* Many themes ship this; repeated here so the plugin works in any theme. */
.screen-reader-text:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal;
}

@media (prefers-reduced-motion: reduce) {
	.proster-accordion__icon::before,
	.proster-accordion__icon::after {
		transition: none;
	}
}

/* ---- Booking: in-person / online pair (Practice info "Booking") ---------------------------------------- */
.proster-booking__action--pair { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.proster-booking__action--pair .proster-button { margin: 0; }
.proster-booking__intro { margin: 0 0 0.6rem; font-size: 0.85rem; opacity: 0.8; }
.proster-booking__intro--after { margin: 0.6rem 0 0; }

/* ---- "Help me find a service" filter (Services block) -------------------------------------------------- */
.proster-filter { margin: 0 auto 3rem; max-width: 980px; text-align: center; }
.proster-filter--fixed { margin-bottom: 2rem; }
.proster-filter__title { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1rem; }
.proster-filter__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin: 0 0 1.25rem; }
.proster-filter--fixed .proster-filter__row { margin-bottom: 1rem; }
.proster-filter__chip { font: inherit; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.7rem 1.1rem; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; border-radius: 0; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.proster-filter__chip[aria-pressed="true"] { background: #222; border-color: #222; color: #fff; }
.proster-filter__chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.proster-filter__status { font-size: 0.9rem; opacity: 0.8; margin: 0.25rem 0 0; }
.proster-filter__none { margin: 2rem auto; max-width: 560px; text-align: center; }
.proster-filter__none a { font-weight: 600; }
/* Filtered-out items and the hidden parts of the filter (themes often give list items a display value). */
.proster-filter [hidden], .proster-filter__none[hidden], .proster-services li[hidden] { display: none !important; }

/* ---- Team carousel (Team members block → Carousel); a normal grid until carousel.js runs ---------------- */
.proster-team.is-carousel { --proster-carousel-gap: 2.75rem; }
.proster-team.is-carousel .proster-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--proster-carousel-gap)) / 3); column-gap: var(--proster-carousel-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 0.25rem; }
.proster-team.is-carousel .proster-grid::-webkit-scrollbar { display: none; }
.proster-team.is-carousel .proster-grid:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.proster-team.is-carousel .proster-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.proster-team.is-carousel .proster-card__body { flex: 1 1 auto; }
.proster-team.is-carousel .proster-card__title { min-height: 3em; min-height: 2lh; }
.proster-team.is-carousel .proster-card__locations { margin-top: auto; }
.proster-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.proster-carousel__btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.proster-carousel__btn:hover:not(:disabled), .proster-carousel__btn:focus-visible { background: currentColor; }
.proster-carousel__btn:hover:not(:disabled) span, .proster-carousel__btn:focus-visible span { color: #fff; }
.proster-carousel__btn:disabled { opacity: 0.3; cursor: default; }
.proster-carousel__count { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; min-width: 7.5em; text-align: center; }
@media (max-width: 1100px) { .proster-team.is-carousel .proster-grid { grid-auto-columns: calc((100% - var(--proster-carousel-gap)) / 2); } }
@media (max-width: 700px) { .proster-team.is-carousel { --proster-carousel-gap: 1.25rem; } .proster-team.is-carousel .proster-grid { grid-auto-columns: 100%; } }
