/*
 * Pious Hearts – multi-session MEC event (template-parts/ph-event-multi.php).
 * Mirrors the reference design rule for rule:
 * https://pious-hearts-homepage.nawalali1417.chatgpt.site/events/masicna26
 * Every property is set explicitly so Kadence / site Additional CSS defaults don't leak in.
 * Loaded only on single MEC events whose layout is "Multi-session".
 */

/* ---------- Base (reference: :root / body / h1-h3 / .container) ---------- */
.ph-mx {
	--ph-mx-espresso: #33231d;
	--ph-mx-gold: #b9894e;
	color: #372c26;
	background: #fbf7f0;
	font: 15px/1.7 'DM Sans', Arial, sans-serif;
}

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

.ph-mx h1,
.ph-mx h2,
.ph-mx h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 500;
	line-height: 1.17;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

.ph-mx p {
	margin: 1em 0;
	text-transform: none;
}

.ph-mx a {
	color: inherit;
}

.ph-mx a:focus-visible {
	outline: 3px solid #b9894e;
	outline-offset: 4px;
}

.ph-mx-container {
	max-width: 1160px;
	margin: auto;
	padding: 0 24px;
}

/* Site Additional CSS forces `div, p { text-transform: none !important }`. */
.ph-mx .ph-mx-eyebrow,
.ph-mx .ph-mx-smallgold,
.ph-mx .ph-mx-mini {
	text-transform: uppercase !important;
}

/* ---------- Buttons (reference: .btn / .btn-light / .website-gold) ---------- */
.ph-mx .ph-mx-btn {
	display: inline-block;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--ph-mx-espresso);
	color: #fff;
	font: 700 13px/1.7 'DM Sans', Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s, background .2s;
}

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

.ph-mx .ph-mx-btn--light {
	background: #e3c69b;
	color: #33231d;
}

.ph-mx a.ph-mx-btn--light:hover {
	background: #f0d8b6;
	color: #33231d;
}

.ph-mx .ph-mx-btn--gold {
	background: #b9894e;
	color: #fff;
	border-radius: 30px;
}

/* ---------- Hero (reference: .hero / .eyebrow) ---------- */
.ph-mx-hero {
	padding: 69px 0 73px;
	color: #f8ecdc;
	background: radial-gradient(ellipse at 85% 0%, #644b38 0%, transparent 45%), linear-gradient(125deg, #302019, #453025 80%);
	border-bottom: 3px solid var(--ph-mx-gold);
}

.ph-mx .ph-mx-eyebrow {
	color: #dcb980;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.ph-mx .ph-mx-hero h1 {
	max-width: 1000px;
	margin: 14px 0 16px;
	font-size: clamp(42px, 5.3vw, 70px);
}

.ph-mx .ph-mx-hero p {
	max-width: 690px;
	margin: 0 0 28px;
	font-size: 18px;
	color: #ebd8c2;
}

/* ---------- Flyer + essentials (reference: .section / .leadgrid / .flyer / .essentials / .detail) ---------- */
.ph-mx-section {
	padding: 68px 0;
}

.ph-mx-leadgrid {
	display: grid;
	grid-template-columns: 1.36fr .85fr;
	gap: 26px;
	align-items: stretch;
}

.ph-mx-leadgrid--no-media {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.ph-mx .ph-mx-flyer {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 15px;
	box-shadow: 0 17px 42px #3d281b18;
}

.ph-mx-essentials {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px;
	background: #f2e8da;
	border: 1px solid #e5d5c0;
	border-radius: 16px;
}

.ph-mx-detail {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-top: 1px solid #d9c9b4;
	font-size: 13px;
}

.ph-mx-essentials .ph-mx-detail:first-child {
	border-top: 0;
}
.ph-mx .ph-mx-essentials__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 28px);
	color: #38271f;
}

/* The heading is now the first child, so drop the divider above the first detail row. */
.ph-mx-essentials__title + .ph-mx-detail {
	border-top: 0;
}

.ph-mx-detail span {
	color: #786b60;
}

.ph-mx-detail strong {
	max-width: 65%;
	text-align: right;
	color: #38271f;
}

.ph-mx .ph-mx-essentials .ph-mx-btn {
	min-height: 48px;
	margin-top: 18px;
	padding: 13px 23px;
	border-radius: 999px;
	font-size: 14px;
}

.ph-mx-essentials .ph-mx-btn span {
	margin-left: 8px;
}

/* ---------- Intro (reference: .intro / .smallgold) ---------- */
.ph-mx-intro {
	max-width: 830px;
	margin: 58px auto 0;
	text-align: center;
}

.ph-mx .ph-mx-intro h2 {
	margin: 12px 0;
	font-size: clamp(30px, 4vw, 44px);
}

.ph-mx .ph-mx-intro p {
	font-size: 16px;
	color: #66564a;
}

.ph-mx .ph-mx-smallgold {
	color: var(--ph-mx-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

/* ---------- Sessions (reference: .events / .sectionheading / .cards / .card) ---------- */
.ph-mx-events {
	padding: 68px 0 76px;
	background: #efe4d6;
	border-top: 1px solid #e5d5c2;
	border-bottom: 1px solid #e5d5c2;
	scroll-margin-top: 90px;
}

.ph-mx-sectionheading {
	margin: 0 0 34px;
	text-align: center;
}

.ph-mx .ph-mx-sectionheading h2 {
	margin: 9px 0;
	font-size: clamp(34px, 4vw, 48px);
}

.ph-mx .ph-mx-sectionheading p {
	margin: 0;
	color: #716154;
}

.ph-mx-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ph-mx-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fffdf9;
	border: 1px solid #dcc7ae;
	border-radius: 16px;
	box-shadow: 0 10px 32px #49311e12;
	transition: transform .2s, box-shadow .2s;
}

.ph-mx-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 38px #49311e20;
}

.ph-mx-cardhead {
	padding: 23px 25px 20px;
	color: #fff3e5;
	background: #402920;
	border-bottom: 3px solid #c69a64;
}

.ph-mx .ph-mx-mini {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #d9b78b;
}

.ph-mx .ph-mx-cardhead h3 {
	margin: 9px 0 4px;
	font-size: 28px;
}

.ph-mx .ph-mx-cardhead p {
	margin: 0;
	font-size: 13px;
	color: #ead9c6;
}

.ph-mx-cardbody {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 23px 25px 25px;
}

.ph-mx-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}

.ph-mx-fact {
	padding: 11px;
	background: #f5eee6;
	border: 1px solid #eee0d0;
	border-radius: 9px;
}

.ph-mx-fact small {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8a7562;
}

.ph-mx-fact strong {
	display: block;
	margin-top: 3px;
	font-size: 16px;
	color: #3c2b23;
}

.ph-mx .ph-mx-btn--card {
	width: 100%;
	margin-top: 22px;
	padding: 15px;
	background: #b9894e;
	border-radius: 30px;
}

.ph-mx .ph-mx-btn--expired {
	background: #cbbfb1;
	color: #fff;
	cursor: default;
}

.ph-mx-card.is-expired .ph-mx-cardhead {
	background: #5a4a40;
}

.ph-mx .ph-mx-note {
	margin: 24px auto 0;
	font-size: 12px;
	text-align: center;
	color: #756557;
}

/* ---------- Registration (reference: .selection / .registrationbox / .regfine) ---------- */
.ph-mx-selection {
	padding: 52px 0 75px;
	background: #fbf7f0;
}

.ph-mx-selectinner {
	max-width: 920px;
	margin: auto;
}

.ph-mx-registrationbox {
	padding: 34px;
	background: #fffdf9;
	border: 1px solid #e7d5bd;
	border-left: 5px solid #b9894e;
	border-radius: 15px;
	box-shadow: 0 8px 28px #3a29110a;
}

.ph-mx .ph-mx-registrationbox h2 {
	margin: 0 0 14px;
	font-size: clamp(35px, 5vw, 53px);
}

.ph-mx .ph-mx-registrationbox p {
	color: #67574b;
}

.ph-mx .ph-mx-registrationbox .ph-mx-regfine {
	font-size: 13px;
	color: #806e60;
}

.ph-mx .ph-mx-registrationbox .ph-mx-btn {
	margin-top: 8px;
}

/* ---------- Responsive (reference breakpoint 850px) ---------- */
@media (max-width: 850px) {
	.ph-mx-leadgrid,
	.ph-mx-cards { grid-template-columns: 1fr; }
	.ph-mx-section { padding: 40px 0; }
	.ph-mx-events { padding: 50px 0; }
	.ph-mx-hero { padding: 52px 0; }
	.ph-mx-essentials { padding: 25px; }
	.ph-mx-intro { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.ph-mx * { transition: none !important; }
}
