/* Native blocks share these styles on the page and in the editor canvas. */
:is(.entry-content, :where(.editor-styles-wrapper)) :where(.wp-block-group, .wp-block-column) {
	min-width: 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) :where(.wp-block-paragraph, .wp-block-list, .wp-block-image) {
	margin-block: 0 1rem;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .wp-block-list {
	padding-inline-start: 20px;
}

:is(.entry-content, :where(.editor-styles-wrapper)) ul.wp-block-list { list-style-type: circle; }
:is(.entry-content, :where(.editor-styles-wrapper)) .wp-block-list li { margin-top: 10px; }
:is(.entry-content, :where(.editor-styles-wrapper)) .wp-block-list .wp-block-list { margin-bottom: 0; }

/* The existing full-width photograph, now an editable Cover and heading. */
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero.wp-block-cover {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	width: 100%;
	max-width: none;
	min-height: max(480px, calc(100svh - 145px));
	margin: 0;
	padding: 30px;
	color: #fff;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero .wp-block-cover__image-background {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 51% 19%;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero .pts-hero-copy {
	width: fit-content;
	max-width: 470px;
	margin: 0;
	padding: 25px;
	background: rgb(74 80 85 / 64%);
	color: #fff;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero .pts-hero-copy > * {
	margin: 0;
	color: inherit;
	font-family: "Baskervville", Georgia, serif;
	font-size: 50px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Keep the original staff arrangement while using editable Columns and Groups. */
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns.wp-block-columns {
	gap: 30px;
	align-items: flex-start;
	margin: 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns > .wp-block-column {
	flex-grow: 0;
	flex-shrink: 1;
	min-width: 0;
	margin: 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile.wp-block-group {
	position: relative;
	margin: 0 0 30px;
	padding: 0;
	border: 1px solid #d9d9d9;
	background: #fff;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile > .wp-block-image {
	margin: 0;
	overflow: hidden;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile > .wp-block-image img {
	width: 100%;
	transition: transform 300ms ease;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-copy {
	margin: 0;
	padding: 15px;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-large .pts-profile-copy {
	padding: 40px 20px;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-copy > .wp-block-heading {
	margin: 0;
	padding: 0;
	color: var(--pts-charcoal, #4a4f54);
	font-family: "Baskervville", Georgia, serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-large .pts-profile-copy > .wp-block-heading {
	font-size: 36px;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-role {
	position: relative;
	display: block;
	margin: 0 0 6px;
	color: var(--pts-pink, #e12893);
	font-family: "Baskervville", Georgia, serif;
	font-size: 18px;
	line-height: 1.5;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-large .pts-profile-role { font-size: 30px; }

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-role::after {
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 80px;
	height: 1px;
	background: #ced3d8;
	content: "";
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-large .pts-profile-role::after { width: 115px; }

@media (hover: hover) {
	.entry-content .pts-profile:hover > .wp-block-image img { transform: scale(1.2); }
}

/* Service categories retain the original simple text and list composition. */
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-service-section.wp-block-group {
	margin-block: 0 48px;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-service-section:last-child { margin-bottom: 0; }
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-service-section > :first-child { margin-top: 0; }
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-service-section > :last-child { margin-bottom: 0; }

/* Native Details provides the same expandable FAQ behavior without builder JS. */
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details {
	margin: 0 0 22px;
	padding: 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > summary {
	position: relative;
	display: block;
	margin: 0;
	padding: 0 0 0 33px;
	color: #212529;
	font-family: "Baskervville", Georgia, serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	list-style: none;
	cursor: pointer;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > summary::-webkit-details-marker { display: none; }
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > summary::marker { content: ""; }

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > summary::before {
	position: absolute;
	top: 5px;
	left: 0;
	width: 20px;
	height: 20px;
	border: 1px solid #dedede;
	background: linear-gradient(#7f7f7f, #7f7f7f) center / 10px 2px no-repeat,
		linear-gradient(#7f7f7f, #7f7f7f) center / 2px 10px no-repeat, #f4f4f4;
	content: "";
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details[open] > summary::before {
	background: linear-gradient(#7f7f7f, #7f7f7f) center / 10px 2px no-repeat, #f4f4f4;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > :not(summary) {
	margin-inline: 33px 0;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > summary + * { margin-top: 1em; }
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-faqs > .wp-block-details > :last-child { margin-bottom: 0; }

/* Dynamic integrations retain the original plugin's markup and behavior. */
:is(.entry-content, :where(.editor-styles-wrapper)) .pts-embedded-content {
	min-width: 0;
	max-width: 100%;
}

:is(.entry-content, :where(.editor-styles-wrapper)) .pts-embedded-content iframe { max-width: 100%; }

@media (min-width: 768px) {
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns.wp-block-columns { flex-wrap: nowrap; }
}

@media (min-width: 768px) and (max-width: 991px) {
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-copy > .wp-block-heading,
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-large .pts-profile-role { font-size: 20px; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile-small .pts-profile-role { font-size: 17px; }
}

@media (max-width: 767px) {
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero.wp-block-cover {
		min-height: max(420px, calc(100svh - 145px));
		padding: 20px;
	}
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero .pts-hero-copy { max-width: 100%; padding: 20px; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-home-hero .pts-hero-copy > * { font-size: clamp(24px, 6.5vw, 40px); }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns.wp-block-columns { flex-wrap: wrap; gap: 0; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns > .wp-block-column { flex-basis: 100% !important; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-people-columns > .wp-block-column:empty { display: none; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile.wp-block-group { border-width: 0; text-align: center; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile > .wp-block-image img { max-width: 350px; margin-inline: auto; }
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile .pts-profile-role::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	:is(.entry-content, :where(.editor-styles-wrapper)) .pts-profile > .wp-block-image img { transition: none; }
	.entry-content .pts-profile:hover > .wp-block-image img { transform: none; }
}
