/*
 Theme Name:   Creedy Child
 Theme URI:    https://creedy.wpengine.com/
 Description:  Creedy Child Theme
 Author:       the WeDesignTech team
 Author URI:   https://wedesignthemes.com/
 Template:     creedy
 Version:      1.0.0
 Text Domain:  creedy-child
*/

/* Events archive: keep The Events Calendar's accessible view structure while
   aligning its container, type and controls with the Creedy theme. */
body.post-type-archive-tribe_events #tribe-events-pg-template {
	max-width: none;
	padding: 0;
}

body.post-type-archive-tribe_events .tribe-events .tribe-common-l-container {
	max-width: 1180px;
	padding: 64px 28px 88px;
}

body.post-type-archive-tribe_events .tribe-events .tribe-events-header {
	margin-bottom: 40px;
}

body.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar__datepicker-button,
body.post-type-archive-tribe_events .tribe-events .tribe-events-calendar-list__event-title-link,
body.post-type-archive-tribe_events .tribe-events .tribe-events-calendar-month__day-cell--selected,
body.post-type-archive-tribe_events .tribe-events .tribe-events-calendar-month__day-date-link {
	font-family: var(--wdtFontTypo_H4, inherit);
}

body.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar__datepicker-button,
body.post-type-archive-tribe_events .tribe-events .tribe-events-calendar-list__event-title-link {
	color: var(--wdtHeadAltColor, #68091e);
}

body.post-type-archive-tribe_events .tribe-events .tribe-common-c-btn,
body.post-type-archive-tribe_events .tribe-events a.tribe-common-c-btn {
	background-color: var(--wdtPrimaryColor, #68091e);
	border-radius: var(--wdtRadius_Part, 999px);
	color: var(--wdtAccentTxtColor, #ffffff);
}

body.post-type-archive-tribe_events .tribe-events .tribe-common-c-btn:focus-visible,
body.post-type-archive-tribe_events .tribe-events a.tribe-common-c-btn:focus-visible,
body.post-type-archive-tribe_events .tribe-events a:focus-visible {
	outline: 2px solid var(--wdtPrimaryColor, #68091e);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	body.post-type-archive-tribe_events .tribe-events .tribe-common-l-container {
		padding: 40px 20px 56px;
	}
}

/* Single-event sales page. Each section can be independently enabled per event. */
.monja-event-page {
	background: #f8f4eb;
}

.monja-event-container {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
}

.monja-event-hero {
	background: #f8f4eb;
	padding: 72px 0 56px;
}

.monja-event-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
	align-items: center;
	gap: 56px;
}

.monja-event-hero h1 {
	color: var(--wdtHeadAltColor, #68091e);
	font-family: var(--wdtFontTypo_H2, inherit);
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	line-height: 1.05;
	margin: 0;
}

.monja-event-hero__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.monja-event-main {
	padding-top: 16px;
	padding-bottom: 88px;
}

.monja-event-details {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 48px;
	padding: 28px 0;
	border-top: 1px solid rgba(104, 9, 30, .25);
	border-bottom: 1px solid rgba(104, 9, 30, .25);
}

.monja-event-details span,
.monja-event-details small {
	display: block;
}

.monja-event-details span {
	color: var(--wdtHeadAltColor, #68091e);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.monja-event-details strong {
	color: var(--wdtBodyTxtColor, #161616);
	font-size: 1.05rem;
}

.monja-event-details small {
	margin-top: 6px;
}

.monja-event-actions {
	margin: 0 0 32px;
}

.monja-event-button,
.monja-event-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.monja-event-button {
	background: var(--wdtPrimaryColor, #68091e);
	border-radius: var(--wdtRadius_Part, 999px);
	color: var(--wdtAccentTxtColor, #fff);
}

.monja-event-button:hover,
.monja-event-button:focus-visible {
	background: var(--wdtSecondaryColor, #4b0616);
	color: #fff;
	transform: translateY(-1px);
}

.monja-event-link {
	color: var(--wdtHeadAltColor, #68091e);
	font-weight: 700;
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.monja-event-content,
.monja-event-practical {
	max-width: 72ch;
}

.monja-event-content {
	font-size: 1.05rem;
	line-height: 1.8;
}

.monja-event-practical {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid rgba(104, 9, 30, .25);
}

.monja-event-practical h2 {
	color: var(--wdtHeadAltColor, #68091e);
	font-family: var(--wdtFontTypo_H4, inherit);
	margin: 0 0 12px;
}

.monja-event-page ::selection {
	background: var(--wdtPrimaryColor, #68091e);
	color: #fff;
}

.monja-event-page a:focus-visible {
	outline: 2px solid var(--wdtPrimaryColor, #68091e);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.monja-event-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.monja-event-hero {
		padding: 48px 0 36px;
	}

	.monja-event-hero__grid,
	.monja-event-details {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.monja-event-main {
		padding-bottom: 56px;
	}
}

/* GiveWP campaign page: story first, donation form second. The goal and form
   are GiveWP blocks, so their data remains managed in the campaign dashboard. */
.monja-campaign-page {
	background: #f8f4eb;
	color: var(--wdtBodyTxtColor, #1b1b1b);
}

.monja-campaign-container {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
}

.monja-campaign-hero {
	padding: 72px 0;
	background: #f8f4eb;
}

.monja-campaign-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
	align-items: center;
	gap: 56px;
}

.monja-campaign-eyebrow {
	margin: 0 0 12px;
	color: var(--wdtPrimaryColor, #68091e);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.monja-campaign-hero h1,
.monja-campaign-page h2,
.monja-campaign-page h3 {
	color: var(--wdtHeadAltColor, #68091e);
	font-family: var(--wdtFontTypo_H2, inherit);
}

.monja-campaign-hero h1 {
	max-width: 12ch;
	margin: 0;
	font-size: clamp(2.5rem, 5vw, 4.8rem);
	line-height: 1.04;
}

.monja-campaign-lead {
	max-width: 52ch;
	margin: 24px 0 32px;
	font-size: 1.15rem;
	line-height: 1.7;
}

.monja-campaign-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 30px;
	border-radius: 999px;
	background: var(--wdtPrimaryColor, #68091e);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.monja-campaign-button:hover,
.monja-campaign-button:focus-visible {
	background: var(--wdtSecondaryColor, #4b0616);
	color: #fff;
	transform: translateY(-1px);
}

.monja-campaign-hero__image {
	margin: 0;
}

.monja-campaign-hero__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
}

.monja-campaign-story {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
	gap: 72px;
	padding-top: 80px;
	padding-bottom: 80px;
}

.monja-campaign-page h2 {
	margin: 0 0 20px;
	font-size: clamp(2rem, 3.4vw, 3.1rem);
	line-height: 1.15;
}

.monja-campaign-richtext {
	max-width: 68ch;
	font-size: 1.05rem;
	line-height: 1.8;
}

.monja-campaign-richtext p:first-child {
	margin-top: 0;
}

.monja-campaign-goal {
	align-self: center;
	padding: 28px;
	border: 1px solid rgba(104, 9, 30, .18);
	border-radius: 14px;
	background: #fffdf8;
}

.monja-campaign-how {
	padding: 80px 0;
	background: #eaf4f5;
}

.monja-campaign-how h2 {
	max-width: 18ch;
}

.monja-campaign-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 40px;
}

.monja-campaign-steps article {
	padding: 28px;
	border-top: 3px solid var(--wdtPrimaryColor, #68091e);
	background: rgba(255, 255, 255, .6);
}

.monja-campaign-steps span {
	color: var(--wdtPrimaryColor, #68091e);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .1em;
}

.monja-campaign-steps h3 {
	margin: 14px 0 10px;
	font-size: 1.35rem;
}

.monja-campaign-steps p {
	margin: 0;
	line-height: 1.65;
}

.monja-campaign-donate {
	display: grid;
	grid-template-columns: minmax(0, .7fr) minmax(360px, 1.3fr);
	gap: 56px;
	padding-top: 88px;
	padding-bottom: 96px;
	scroll-margin-top: 28px;
}

.monja-campaign-donate__intro p:not(.monja-campaign-eyebrow) {
	max-width: 40ch;
	font-size: 1.05rem;
	line-height: 1.7;
}

.monja-campaign-form {
	min-width: 0;
}

.monja-campaign-page a:focus-visible {
	outline: 2px solid var(--wdtPrimaryColor, #68091e);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.monja-campaign-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.monja-campaign-hero,
	.monja-campaign-how {
		padding-top: 52px;
		padding-bottom: 52px;
	}

	.monja-campaign-hero__grid,
	.monja-campaign-story,
	.monja-campaign-donate,
	.monja-campaign-steps {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.monja-campaign-story,
	.monja-campaign-donate {
		padding-top: 56px;
		padding-bottom: 56px;
	}
}
