/*
Theme Name: Discovery Institute
Description: Custom theme for The Discovery Institute & Discovery Program — culture-building curriculum and staff training for schools.
Author: sharmanhall
Version: 1.1.0
Template: astra
Text Domain: discovery-institute
*/

/* ------------------------------------------------------------------
   Brand palette (derived from the 2020 site's echelon/green.css,
   whose customized accent was actually blue #0071AB):
   --brand-primary  #0071AB   accent / links / buttons
   --brand-dark     #302f30   headings
   --brand-text     #444444   body text
   --brand-border   #ebebeb   borders / light backgrounds
   Global colors are managed by the parent theme's palette
   (--ast-global-color-0 = primary); rules below are layout-only
   refinements the customizer can't express.
------------------------------------------------------------------ */

/* Teaser pull-quotes (the 2020 site's signature intro quotes) */
.wp-block-quote.teaser {
	border-left: 4px solid var(--ast-global-color-0, #0071AB);
	background: var(--ast-global-color-5, #f5f9fc);
	padding: 1.25em 1.5em;
	margin-bottom: 2em;
	font-size: 1.05em;
}

.wp-block-quote.teaser cite {
	display: block;
	margin-top: 0.5em;
	font-style: normal;
	font-size: 0.9em;
	color: var(--ast-global-color-3, #444444);
}

/* Training-dates callout on /training-options/ — Galynn edits this each January */
.wp-block-group.training-dates {
	border: 1px solid var(--ast-global-color-0, #0071AB);
	border-left-width: 6px;
	border-radius: 4px;
	padding: 1.25em 1.5em;
	margin-bottom: 2em;
	background: #eef6fb;
}

.wp-block-group.training-dates h2 {
	margin-top: 0;
	color: var(--ast-global-color-0, #0071AB);
}

/* Homepage card grid: keep card images tidy and clickable headings obvious */
.wp-block-column .wp-block-image img {
	border-radius: 4px;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.wp-block-column h3 a {
	text-decoration: none;
}

.wp-block-column h3 a:hover {
	text-decoration: underline;
}

/* Breadcrumbs (Rank Math, interior pages only) */
.discovery-breadcrumbs {
	font-size: 0.85em;
	margin-bottom: 1.25em;
	color: var(--ast-global-color-3, #444444);
}

.discovery-breadcrumbs a {
	text-decoration: none;
}

/* 404 page */
.discovery-404 {
	text-align: center;
	padding: 3em 1em;
}

.discovery-404 ul {
	list-style: none;
	margin: 2em auto 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: center;
	max-width: 640px;
}

.discovery-404 ul a {
	display: inline-block;
	padding: 0.5em 1em;
	border: 1px solid var(--ast-global-color-0, #0071AB);
	border-radius: 4px;
	text-decoration: none;
}

/* Contact CTA synced block */
.discovery-contact-cta {
	border-top: 1px solid var(--ast-global-color-7, #ebebeb);
	margin-top: 3em;
	padding-top: 2em;
}

/* Mobile: tighten hero + card spacing (90% of traffic is mobile) */
@media (max-width: 768px) {
	.wp-block-cover {
		min-height: 340px !important;
	}

	.wp-block-cover h1 {
		font-size: 1.75rem;
	}

	.wp-block-columns {
		gap: 1.25em;
	}
}
