/*
 * Site-wide base typography and colour tokens.
 *
 * These used to come from Elementor's "Default Kit" (global colours and fonts,
 * body text and h1–h6 styles on .elementor-kit-5). Elementor is no longer
 * used, so the same values live here, on the .cjndg-site body class (added in
 * functions.php) with the same specificity, loaded right after Astra's CSS.
 *
 * Fonts (Noto Serif for headings, Open Sans for text) are loaded by
 * cjdng_enqueue_site_fonts() in functions.php.
 */

:root {
	/* Colours */
	--cjndg-red: #dd183b;            /* Astra global colour 0 */
	--cjndg-red-light: #ffede6;      /* Astra global colour 4 */
	--cjndg-color-primary: #e4677b;
	--cjndg-color-heading: #333333;
	--cjndg-color-text: #333333;
	--cjndg-color-body: #666666;

	/* Fonts */
	--cjndg-font-heading: "Noto Serif", Georgia, serif;
	--cjndg-font-heading-weight: 600;
	--cjndg-font-text: "Open Sans", Arial, sans-serif;
	--cjndg-font-text-weight: 400;

	/* Page content width: change it here only. Header and footer stay on
	   Astra's Container Width (Customizer, 1200px). Every template frames
	   its content as max-width var(--cjndg-frame) + padding-inline
	   var(--cjndg-gutter), so the content itself is exactly
	   --cjndg-content-width wide on desktop. */
	--cjndg-content-width: 1024px;
	--cjndg-gutter: max(1.25rem, 4vw);
	--cjndg-frame: calc(var(--cjndg-content-width) + 2 * var(--cjndg-gutter));
	/* Side padding for full-width bands whose content must line up with the frame. */
	--cjndg-band-gutter: max(var(--cjndg-gutter), calc(50vw - var(--cjndg-content-width) / 2));
}

.cjndg-site {
	color: var(--cjndg-color-body);
	font-family: "Open Sans", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5em;
}

.cjndg-site h1 {
	color: var(--cjndg-color-heading);
	font-family: "Noto Serif", Sans-serif;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2em;
}

.cjndg-site h2 {
	color: var(--cjndg-color-heading);
	font-family: "Noto Serif", Sans-serif;
	font-size: 32px;
	font-weight: 600;
}

.cjndg-site h3 {
	color: var(--cjndg-color-heading);
	font-size: 24px;
	font-weight: 500;
}

.cjndg-site h4 {
	color: var(--cjndg-color-heading);
	font-family: "Noto Serif", Sans-serif;
	font-size: 20px;
	font-weight: 400;
}

.cjndg-site h5 {
	color: var(--cjndg-color-heading);
	font-family: "Noto Serif", Sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5em;
}

.cjndg-site h6 {
	color: var(--cjndg-color-heading);
	font-family: "Noto Serif", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5em;
}

/* Page background behind boxed content (policies, events, camps, archives).
   Astra paints it with global colour 4, the same peach as the footer message
   form band (includes/footer-form.css), which made the band blend into the
   page. A light warm grey (as on the room rental pages) keeps the band
   distinct; the band itself always stays peach. */
body,
body.ast-separate-container {
	background-color: #faf8f7;
}

/*
 * Centre pages: one breadcrumb and one page top (option A, 2026-11-08).
 * The breadcrumb is cjndg_breadcrumbs() and the page top
 * cjndg_centre_page_head(), both in includes/centre-context.php. Links take
 * the centre colour on hover.
 */
.cjndg-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 13.5px;
	line-height: 1.4;
	color: #4a4240;
}

.cjndg-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.cjndg-breadcrumbs li + li::before {
	content: "›";
	color: #8a7d77;
}

.cjndg-site .cjndg-breadcrumbs a {
	color: #4a4240;
	text-decoration: none;
}

.cjndg-site .cjndg-breadcrumbs a:hover,
.cjndg-site .cjndg-breadcrumbs a:focus-visible {
	color: var(--cjndg-centre-accent, var(--cjndg-red));
	text-decoration: underline;
}

.cjndg-breadcrumbs [aria-current="page"] {
	color: #2b2321;
	font-weight: 600;
}

.cjndg-page-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 2rem;
	text-align: left;
}

.cjndg-site .cjndg-page-head .cjndg-page-head-title {
	margin: 6px 0 0;
	font-family: var(--cjndg-font-heading);
	font-weight: 600;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.15;
	color: #2b2321;
}

.cjndg-page-head-meta {
	margin: 0;
	max-width: 70ch;
	font-size: 1rem;
	color: #6b5d58;
}

/*
 * Header: hamburger menu up to 1200px (Astra swaps at 921px). Pairs with
 * cjdng_header_break_point() in functions.php; keep both at 1200px.
 */
@media (min-width: 922px) and (max-width: 1200px) {
	body #ast-desktop-header {
		display: none;
	}

	body #ast-mobile-header {
		display: block;
	}

	/* Astra's tablet-only (max-width: 921px) header and drawer rules, copied so
	   this range looks exactly like the tablet header. */
	#ast-mobile-header .menu-toggle {
		padding: 12px;
		font-size: 24px;
	}

	header .custom-logo-link img,
	.ast-header-break-point .site-logo-img .custom-mobile-logo-link img {
		max-width: 120px;
		width: 120px;
	}

	.ast-header-break-point .ast-builder-layout-element[data-section="title_tagline"],
	.ast-header-break-point .ast-builder-layout-element[data-section="section-hb-social-icons-1"] {
		display: flex;
	}

	.ast-header-social-1-wrap {
		margin: 25px;
	}

	.ast-header-social-1-wrap .ast-builder-social-element {
		margin-left: 15px;
		margin-right: 15px;
	}

	.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
		max-width: 90%;
	}

	.ast-mobile-header-wrap .ast-primary-header-bar,
	.ast-primary-header-bar .site-primary-header-wrap {
		min-height: 80px;
	}

	.ast-header-break-point .ast-primary-header-bar {
		display: grid;
	}

	.ast-header-break-point .ast-builder-menu-mobile .main-navigation {
		display: block;
		font-size: 0.9375rem;
	}

	.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
		color: #000;
		padding: 25px;
	}
}
