/* Park Hardware Events — colors pulled from the mockup.
   Override any of these from a Divi custom CSS box if the client's brand
   colors drift slightly from these values. */
@import url('https://fonts.googleapis.com/css2?family=Alike&display=swap');

:root {
	--ph-heading-font: 'Alike', Georgia, serif;
	--ph-navy: #14213d;
	--ph-gold: #f2b705;
	--ph-red: #a6272c;
	--ph-white: #ffffff;
	--ph-border: rgba(255, 255, 255, 0.25);
	--ph-muted: rgba(255, 255, 255, 0.75);
}

/* ============ CALENDAR ============ */

.ph-calendar {
	/* Transparent by default so it sits on whatever background color the
	   Divi section/row already has (navy in the mockup). */
	background: transparent;
	color: var(--ph-white);
	border: 1px solid var(--ph-border);
	padding: 24px;
	max-width: 700px;
	font-family: inherit;
}

.ph-calendar-header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-bottom: 20px;
	gap: 24px;
}

.ph-cal-title {
	margin: 0;
	font-family: var(--ph-heading-font);
	font-size: 1.9em;
	letter-spacing: 0.02em;
	color: var(--ph-white);
	font-weight: 400;
}

.ph-cal-nav {
	color: var(--ph-gold);
	font-size: 1.3em;
	text-decoration: none;
	line-height: 1;
}
.ph-cal-nav:hover { opacity: 0.75; }

.ph-cal-full-link {
	position: absolute;
	right: 0;
	color: var(--ph-gold);
	font-size: 0.75em;
	letter-spacing: 0.05em;
	text-decoration: none;
	font-weight: 700;
}
.ph-cal-full-link:hover { text-decoration: underline; }

.ph-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-top: 1px solid var(--ph-border);
	border-left: 1px solid var(--ph-border);
}

.ph-cal-weekday {
	text-align: center;
	font-size: 0.72em;
	letter-spacing: 0.08em;
	color: var(--ph-muted);
	padding: 8px 4px;
	border-right: 1px solid var(--ph-border);
	border-bottom: 1px solid var(--ph-border);
	font-weight: 700;
}

.ph-cal-cell {
	min-height: 74px;
	padding: 6px;
	border-right: 1px solid var(--ph-border);
	border-bottom: 1px solid var(--ph-border);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ph-cal-cell.is-outside .ph-cal-daynum {
	color: rgba(255, 255, 255, 0.3);
}

.ph-cal-daynum {
	font-size: 0.8em;
	color: var(--ph-white);
}

.ph-cal-chip {
	display: block;
	text-decoration: none;
	border-radius: 2px;
	padding: 3px 5px;
	font-size: 0.68em;
	line-height: 1.25;
	color: var(--ph-white);
}

.ph-chip-red    { background: var(--ph-red); }
.ph-chip-gold   { background: var(--ph-gold); color: var(--ph-navy); }

.ph-chip-title { display: block; font-weight: 700; }
.ph-chip-time  { display: block; opacity: 0.9; }

.ph-cal-legend {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 16px;
	font-size: 0.72em;
	letter-spacing: 0.04em;
	color: var(--ph-white);
	flex-wrap: wrap;
}

.ph-legend-item { display: inline-flex; align-items: center; gap: 6px; }

.ph-legend-swatch {
	width: 12px;
	height: 12px;
	display: inline-block;
	border-radius: 2px;
}

.ph-legend-note {
	margin-left: auto;
	color: var(--ph-muted);
	font-weight: 400;
}

/* ============ UPCOMING EVENTS HEADING ============ */

.ph-cards-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 40px 0 24px;
}

.ph-heading-rule {
	flex: 1;
	max-width: 160px;
	height: 1px;
	background: var(--ph-border);
}

.ph-heading-text {
	margin: 0;
	font-family: var(--ph-heading-font);
	color: var(--ph-white);
	font-weight: 400;
	font-size: 2.2em;
}

/* ============ CARDS ============ */

.ph-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.ph-card {
	background: var(--ph-white);
	color: var(--ph-navy);
	display: flex;
	flex-direction: column;
}

.ph-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ph-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ph-card-datebadge {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 52px;
	text-align: center;
	padding: 5px 0 6px;
	color: var(--ph-white);
	line-height: 1.1;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.ph-badge-red  { background: var(--ph-red); }
.ph-badge-gold { background: var(--ph-gold); color: var(--ph-navy); }

.ph-badge-dow   { display: block; font-size: 0.65em; letter-spacing: 0.05em; }
.ph-badge-month { display: block; font-size: 0.65em; letter-spacing: 0.05em; }
.ph-badge-day   { display: block; font-size: 1.3em; font-weight: 700; }

.ph-card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ph-card-tag {
	align-self: flex-start;
	font-size: 0.65em;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 2px;
	color: var(--ph-white);
}

.ph-tag-red  { background: var(--ph-red); }
.ph-tag-gold { background: var(--ph-gold); color: var(--ph-navy); }

.ph-card-title {
	margin: 0;
	font-family: var(--ph-heading-font);
	font-size: 1.35em;
	font-weight: 400;
	color: var(--ph-navy);
}

.ph-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.78em;
	color: #4a5468;
}

.ph-card-meta-item { display: inline-flex; align-items: center; gap: 5px; }

.ph-icon-clock,
.ph-icon-pin {
	width: 12px;
	height: 12px;
	display: inline-block;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}
.ph-icon-pin { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

.ph-card-excerpt {
	margin: 2px 0 4px;
	font-size: 0.85em;
	line-height: 1.4;
	color: #556;
}

.ph-card-btn {
	margin-top: auto;
	display: inline-block;
	background: var(--ph-navy);
	color: var(--ph-white);
	text-align: center;
	text-decoration: none;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 10px 14px;
}
.ph-card-btn:hover { opacity: 0.85; }

.ph-cards-empty {
	color: var(--ph-white);
	text-align: center;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 640px) {
	.ph-calendar { padding: 14px; }
	.ph-cal-title { font-size: 1.1em; }
	.ph-cal-cell { min-height: 54px; }
	.ph-cal-chip { font-size: 0.6em; }
	.ph-calendar-header { flex-wrap: wrap; gap: 10px; }
	.ph-cal-full-link { position: static; width: 100%; text-align: center; }
}
