/*
Theme Name: Cornerstone
Theme URI: https://example.com/cornerstone
Author: Cornerstone
Author URI: https://example.com
Description: A fast, accessible, mobile-first block theme for church & faith websites. Built to pair with the Cornerstone plugin suite (sermons, events, ministries, staff, giving). Fully editable — content lives in fields, presentation lives here.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cornerstone-theme
Tags: block-theme, full-site-editing, church, religion, accessibility-ready, block-patterns
*/

/*
 * Design tokens & most styling live in theme.json (Global Styles).
 * This file holds only what theme.json can't express cleanly — mostly styling
 * for markup produced by Cornerstone plugin shortcodes.
 */

/* Service times (from [cstone_service_times]) */
.cstone-service-times {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}
.cstone-service-times .cstone-st-day {
	font-weight: 700;
	min-width: 6.5rem;
	display: inline-block;
}

/* Give button (from [cstone_give_button]) inherits button element styles */
.cstone-give-button {
	text-decoration: none;
	display: inline-block;
}

/* Card polish for CPT query loops */
.cstone-card-grid .wp-block-post {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md, 12px);
	overflow: hidden;
	background: var(--wp--preset--color--base);
}
.cstone-card-grid .wp-block-post-title {
	margin: 0.75rem 1rem 0.25rem;
}
.cstone-card-grid .wp-block-post-excerpt {
	margin: 0 1rem 1rem;
	color: var(--wp--preset--color--muted);
}
.cstone-card-grid .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Accessibility: visible focus */
:where(a, button, input, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
