/*
 * Pious Hearts – single MEC event (single-mec-events.php).
 * Mirrors the reference design rule for rule:
 * https://pious-hearts-homepage.nawalali1417.chatgpt.site/events/shibam-preview (.event-preview*)
 * Every property is set explicitly so Kadence / site Additional CSS defaults don't leak in.
 * Loaded only on single MEC events.
 */

/* ---------- Base (reference: body / preflight / .event-preview) ---------- */
.ph-event {
	color: #241c17;
	background: #fbf7ef;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.ph-event *,
.ph-event *::before,
.ph-event *::after {
	box-sizing: border-box;
}

.ph-event h1,
.ph-event h2,
.ph-event p,
.ph-event dl,
.ph-event dd,
.ph-event figure {
	margin: 0;
	padding: 0;
	text-transform: none;
}

.ph-event a {
	color: inherit;
	text-decoration: none;
}

.ph-event img,
.ph-event svg {
	display: block;
	vertical-align: middle;
}

.ph-event-width {
	width: min(1180px, 100% - 48px);
	margin-inline: auto;
}

/* ---------- Eyebrow ---------- */
.ph-event .ph-event-eyebrow {
	display: block;
	margin: 0 0 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #ba8a4f;
}

.ph-event-hero .ph-event-eyebrow {
	color: #d9ad72;
}

/* ---------- Buttons (reference: .button / .button-gold) ---------- */
.ph-event .ph-event-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 23px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	color: #fff;
	text-decoration: none;
	background: #b78642;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: 0 12px 28px #b7864238;
}

.ph-event a.ph-event-btn:hover {
	color: #fff;
	background: #91652f;
	transform: translateY(-2px);
}

.ph-event .ph-event-btn:focus-visible,
.ph-event a:focus-visible {
	outline: 3px solid #d9ad72;
	outline-offset: 3px;
}

/* ---------- Hero (reference: .event-preview-hero) ---------- */
.ph-event-hero {
	padding: 55px 0 61px;
	color: #f7e8d1;
	background: radial-gradient(at 75% 18%, #4b3527 0%, #34241a 48%, #2b1e17 100%);
	border-bottom: 3px solid #b78642;
}

.ph-event .ph-event-hero__title {
	margin: 0 0 15px;
	font: 500 clamp(43px, 5vw, 69px)/1.06 Georgia, serif;
	letter-spacing: -.035em;
	color: inherit;
}

.ph-event .ph-event-hero__subtitle {
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.5;
	color: #e9d6bc;
}

.ph-event-hero .ph-event-btn {
	min-height: 52px;
	font-size: 14px;
}

/* ---------- Body + grid (reference: .event-preview-body / -grid) ---------- */
.ph-event-body {
	padding-top: 51px;
	padding-bottom: 80px;
}

.ph-event-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
	align-items: start;
	gap: 23px;
}

.ph-event .ph-event-media {
	margin: 0;
	border-radius: 23px;
	overflow: hidden;
	box-shadow: 0 22px 46px #3923152b;
}

.ph-event-media img {
	display: block;
	width: 100%;
	height: auto;
}

/* No featured image: the details card spans the row. */
.ph-event-grid--no-media .ph-event-card {
	grid-column: 1 / -1;
	max-width: 520px;
}

/* ---------- Details card (reference: .event-preview-details) ---------- */
.ph-event-card {
	padding: 29px;
	background: #f2e9dc;
	border: 1px solid #9367341f;
	border-radius: 23px;
	box-shadow: 0 14px 42px #442d1812;
}

.ph-event .ph-event-card__title,
.ph-event .ph-event-main__title {
	font: 500 34px/1.16 Georgia, serif;
	letter-spacing: -.025em;
	color: #241c17;
}

.ph-event .ph-event-card__title {
	margin: 0 0 19px;
}

.ph-event .ph-event-card__list {
	margin: 0;
}

.ph-event-card__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 15px;
	padding: 17px 0;
	border-top: 1px solid #dfcfbb;
}

.ph-event .ph-event-card__row dt {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #66584d;
}

.ph-event .ph-event-card__row dd {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	text-align: right;
	color: #241c17;
}

.ph-event-card .ph-event-btn {
	display: flex;
	width: 100%;
	min-height: 54px;
	margin-top: 25px;
	font-size: 14px;
}

.ph-event .ph-event-card__note {
	display: block;
	margin-top: 13px;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: #705f4e;
}

/* ---------- Copy (reference: .event-preview-copy) ---------- */
.ph-event-main {
	max-width: 850px;
	padding-top: 48px;
}

.ph-event .ph-event-main__title {
	margin: 0 0 16px;
}

/* Description text gets the reference .event-preview-copy p style whatever markup the editor produced. */
.ph-event .ph-event-content,
.ph-event .ph-event-content p,
.ph-event .ph-event-content li {
	font-size: 17px;
	line-height: 1.75;
	color: #51453d;
}

.ph-event .ph-event-content p,
.ph-event .ph-event-content ul,
.ph-event .ph-event-content ol {
	margin: 0 0 17px;
}

.ph-event .ph-event-content section,
.ph-event .ph-event-content div {
	margin: 0 0 17px;
	padding: 0;
	background: none;
}

.ph-event .ph-event-content a {
	color: #92632e;
	text-decoration: underline;
}

/* ---------- Summary row (reference: .event-preview-summary) ---------- */
.ph-event .ph-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 25px;
	margin: 30px 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #5a493b;
}

.ph-event .ph-event-meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ph-event-meta svg {
	color: #a87438;
}

/* ---------- Calendar links (reference: .event-preview-calendar) ---------- */
.ph-event-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.ph-event .ph-event-actions a {
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #92632e;
	border: 1px solid #b78642;
	border-radius: 100px;
}

.ph-event .ph-event-actions a:hover {
	color: #92632e;
	background: #f0e2cd;
}

/* ---------- Registration (reference: .event-preview-selection / -registration) ---------- */
.ph-event-register {
	max-width: 850px;
	margin-top: 48px;
	padding: 28px 30px;
	scroll-margin-top: 105px;
	background: #fffdf8;
	border: 1px solid #e7d9c6;
	border-left: 5px solid #b78642;
	border-radius: 16px;
}

.ph-event .ph-event-register__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(38px, 4.35vw, 59px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.035em;
	color: #241c17;
}

.ph-event .ph-event-register__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #241c17;
}

.ph-event-register .ph-event-btn {
	font-size: 14px;
}

/* ---------- Responsive (reference breakpoints) ---------- */
@media (max-width: 850px) {
	.ph-event-grid { grid-template-columns: 1fr; }
	.ph-event-grid--no-media .ph-event-card,
	.ph-event-card { max-width: none; }
	.ph-event-body { padding-top: 30px; }
}

@media (max-width: 820px) {
	.ph-event-width { width: min(100% - 32px, 680px); }
}

@media (max-width: 620px) {
	.ph-event-hero { padding: 41px 0 48px; }
	.ph-event .ph-event-hero__subtitle { font-size: 16px; }
	.ph-event-card { padding: 23px; }
	.ph-event-main { padding-top: 37px; }
	.ph-event .ph-event-content,
	.ph-event .ph-event-content p,
	.ph-event .ph-event-content li { font-size: 16px; }
	.ph-event-register { padding: 23px; }
}
