/**
 * Layout only. Every colour, radius and typography value is an Elementor
 * control on the widget, so Karen can restyle these from the panel.
 */

/* ---------- Newsletter ---------- */

.pcs-newsletter__eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.7px;
	text-transform: uppercase;
}

.pcs-newsletter__heading {
	margin: 0 0 14px;
}

.pcs-newsletter__description {
	margin: 0 auto 24px;
	max-width: 520px;
	line-height: 1.75;
}

.pcs-newsletter[style*="text-align: left"] .pcs-newsletter__description,
.pcs-newsletter[style*="text-align:left"] .pcs-newsletter__description {
	margin-inline: 0;
}

.pcs-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: inherit;
	max-width: 520px;
	margin: 0 auto;
}

/* Themes style bare input/button selectors, so match on the form too. */
.pcs-newsletter .pcs-newsletter__input {
	flex: 1 1 240px;
	min-width: 0;
	height: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid;
	background: #fff;
	font: inherit;
	line-height: normal;
}

/* With a name field the row becomes name + email on one line, button below. */
.pcs-newsletter__input--name {
	flex: 1 1 160px;
}

.pcs-newsletter__form:has( .pcs-newsletter__input--name ) .pcs-newsletter__submit {
	flex: 1 1 100%;
}

.pcs-newsletter .pcs-newsletter__submit {
	flex: 0 0 auto;
	height: 48px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.6px;
}

.pcs-newsletter .pcs-newsletter__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.pcs-newsletter__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pcs-newsletter__status {
	margin: 14px 0 0;
	min-height: 1em;
	font-size: 15px;
}

.pcs-newsletter__status.is-success {
	color: #3E302C;
	font-weight: 500;
}

.pcs-newsletter__status.is-error {
	color: #9B3A2F;
}

.pcs-newsletter__note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 480px) {
	.pcs-newsletter__form {
		flex-direction: column;
	}

	.pcs-newsletter .pcs-newsletter__submit {
		width: 100%;
	}
}

/* ---------- Search ---------- */

.pcs-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

/* Themes style bare input/button selectors, so match on the form too. */
.pcs-search .pcs-search__input {
	flex: 1 1 200px;
	min-width: 0;
	height: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid;
	font: inherit;
	line-height: normal;
}

.pcs-search .pcs-search__submit {
	flex: 0 0 auto;
	height: 48px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.6px;
}

@media (max-width: 480px) {
	.pcs-search {
		flex-direction: column;
	}

	.pcs-search .pcs-search__submit {
		width: 100%;
	}
}

/* ---------- Search results ---------- */

.pcs-results__item {
	padding: 22px 0;
	border-bottom: 1px solid;
}

.pcs-results__item:first-child {
	padding-top: 0;
}

.pcs-results__label {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.7px;
	text-transform: uppercase;
}

.pcs-results__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.3;
}

.pcs-results__title a {
	text-decoration: none;
}

.pcs-results__title a:hover {
	text-decoration: underline;
}

.pcs-results__excerpt {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
}

.pcs-results__empty {
	margin: 0;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
}

.pcs-results__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.pcs-results__pagination a,
.pcs-results__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	border-radius: 3px;
	text-decoration: none;
}

.pcs-results__pagination .current {
	background: #EFE7E1;
}

/* ---------- Post grid ---------- */

.pcs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.pcs-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 4px;
}

.pcs-card__media {
	display: block;
	height: 220px;
	overflow: hidden;
	background: #E0D3CB;
}

.pcs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pcs-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 22px 24px;
}

.pcs-card__cat {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.4px;
}

.pcs-card__title {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.3;
}

.pcs-card__title a {
	text-decoration: none;
}

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

.pcs-card__date {
	margin: 0 0 10px;
	font-size: 13px;
}

.pcs-card__excerpt {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
}

.pcs-grid__empty {
	margin: 0;
	font-size: 17px;
	font-weight: 300;
}

@media (max-width: 1024px) {
	.pcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.pcs-grid { grid-template-columns: 1fr; }
}
