/* Christ SPEM theme. Values mirror the original site's Tailwind/shadcn design. */

:root {
	--cs-primary: hsl(208 100% 27%);
	--cs-primary-90: hsl(208 100% 27% / 0.9);
	--cs-primary-30: hsl(208 100% 27% / 0.3);
	--cs-primary-20: hsl(208 100% 27% / 0.2);
	--cs-primary-10: hsl(208 100% 27% / 0.1);
	--cs-primary-5: hsl(208 100% 27% / 0.05);
	--cs-accent: hsl(354 67% 50%);
	--cs-accent-10: hsl(354 67% 50% / 0.1);
	--cs-accent-5: hsl(354 67% 50% / 0.05);
	--cs-orange: #f5821f;
	--cs-yellow: #fdb813;
	--cs-blue: #2563eb;
	--cs-fg: hsl(222.2 84% 4.9%);
	--cs-muted: hsl(210 40% 96.1%);
	--cs-muted-fg: hsl(215.4 16.3% 46.9%);
	--cs-border: hsl(214.3 31.8% 91.4%);
	--cs-ring: hsl(215 80% 50%);
	--cs-danger: hsl(0 84.2% 60.2%);
	--cs-gray-50: #f9fafb;
	--cs-gray-100: #f3f4f6;
	--cs-gray-200: #e5e7eb;
	--cs-gray-300: #d1d5db;
	--cs-gray-400: #9ca3af;
	--cs-gray-500: #6b7280;
	--cs-gray-600: #4b5563;
	--cs-gray-700: #374151;
	--cs-gray-800: #1f2937;
	--cs-gray-900: #111827;
	--cs-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--cs-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--cs-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--cs-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--cs-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--cs-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--cs-radius: 0.5rem;
	--cs-radius-md: 6px;
	--cs-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
	--cs-serif: "Playfair Display", Georgia, serif;
	--cs-focus: 0 0 0 2px #fff, 0 0 0 4px var(--cs-ring);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--cs-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--cs-fg);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cs-serif);
	margin: 0;
	line-height: 1.25;
}

p, ul, ol, figure, blockquote, dl {
	margin: 0;
}

ul, ol {
	padding: 0;
}

img, video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.cs-skip {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 100;
	background: #fff;
	color: var(--cs-primary);
	padding: 0.5rem 1rem;
	border-radius: var(--cs-radius-md);
}

.cs-skip:focus {
	left: 0.5rem;
}

/* Layout */

.cs-container {
	width: 100%;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) { .cs-container { max-width: 640px; } }
@media (min-width: 768px) { .cs-container { max-width: 768px; padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .cs-container { max-width: 1024px; } }
@media (min-width: 1280px) { .cs-container { max-width: 1280px; } }
@media (min-width: 1536px) { .cs-container { max-width: 1536px; } }

.cs-container.cs-container--narrow { max-width: 48rem; }
.cs-container.cs-container--4xl { max-width: 56rem; }
.cs-container.cs-container--2xl { max-width: 42rem; }

.cs-section { padding: 4rem 0; }
.cs-section--lg { padding: 5rem 0; }
.cs-section--md { padding: 4rem 0; }
.cs-section--sm { padding: 3rem 0; }
.cs-section--white { background: #fff; }
.cs-section--gray { background: var(--cs-gray-50); }
.cs-section--muted { background: var(--cs-gray-100); }
.cs-section--sky { background: linear-gradient(to bottom right, #f8fafc, #e0f2fe); }
.cs-section--primary { background: var(--cs-primary); color: #fff; }
.cs-section--live { background: linear-gradient(to bottom right, var(--cs-gray-100), #eff6ff); }
.cs-section--welcome { background: linear-gradient(to bottom right, var(--cs-primary-5), transparent, var(--cs-accent-5)); }

.cs-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr);
}

.cs-grid--tight,
.cs-grid--form { gap: 1.5rem; }

@media (min-width: 768px) {
	.cs-grid--2,
	.cs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.cs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cs-grid--4 { gap: 1.5rem; }
@media (min-width: 640px) { .cs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cs-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-stack-3, .cs-stack-4, .cs-stack-6, .cs-stack-8, .cs-stack-12 { display: flex; flex-direction: column; }
.cs-stack-3 { gap: 0.75rem; }
.cs-stack-4 { gap: 1rem; }
.cs-stack-6 { gap: 1.5rem; }
.cs-stack-8 { gap: 2rem; }
.cs-stack-12 { gap: 3rem; }

.cs-center { text-align: center; }
.cs-mt-8 { margin-top: 2rem; }
.cs-mt-12 { margin-top: 3rem; }
.cs-mb-3 { margin-bottom: 0.75rem; }
.cs-mb-6 { margin-bottom: 1.5rem; }
.cs-mb-8 { margin-bottom: 2rem; }
.cs-mb-10 { margin-bottom: 2.5rem; }
.cs-pt-4 { padding-top: 1rem; }
.cs-text-primary { color: var(--cs-primary); }
.cs-text-green { color: #22c55e; }
.cs-text-red { color: #dc2626; }
.cs-small { font-size: 0.875rem; }
.cs-muted { color: var(--cs-gray-600); }
.cs-strong { font-weight: 500; }
.cs-relaxed { line-height: 1.625; }
.cs-narrow { max-width: 36rem; margin: 0 auto 2rem; }

.cs-clamp-2, .cs-clamp-3, .cs-clamp-4 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cs-clamp-2 { -webkit-line-clamp: 2; }
.cs-clamp-3 { -webkit-line-clamp: 3; }
.cs-clamp-4 { -webkit-line-clamp: 4; }

/* Icons */

.cs-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.cs-icon--xs { width: 0.875rem; height: 0.875rem; }
.cs-icon--sm { width: 1rem; height: 1rem; }
.cs-icon--md { width: 1.25rem; height: 1.25rem; }
.cs-icon--lg { width: 1.5rem; height: 1.5rem; }
.cs-icon--xl { width: 2rem; height: 2rem; }

/* Type */

.cs-h2 {
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
	color: var(--cs-gray-800);
}

@media (min-width: 768px) {
	.cs-h2 { font-size: 2.25rem; line-height: 2.5rem; }
}

.cs-h2--xl { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; }
.cs-h2.cs-h2--sm { font-size: 1.5rem; line-height: 2rem; }
.cs-section--primary .cs-h2 { color: #fff; font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 1rem; }

.cs-h3 {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.cs-lead {
	font-size: 1.125rem;
	line-height: 1.75rem;
	color: var(--cs-gray-700);
	margin-bottom: 1.5rem;
}

.cs-section-head {
	text-align: center;
	margin-bottom: 3rem;
}

.cs-section-head .cs-h2 { margin-bottom: 1rem; }

.cs-section-head p {
	font-size: 1.125rem;
	line-height: 1.75rem;
	color: var(--cs-gray-600);
	max-width: 42rem;
	margin: 0 auto;
}

.cs-icon-heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.cs-center .cs-icon-heading,
.cs-icon-heading.cs-center,
.cs-icon-heading--center { justify-content: center; }

.cs-icon-heading.cs-center { margin-bottom: 2rem; }

.cs-prose { color: var(--cs-gray-700); line-height: 1.75; }
.cs-prose--lg { font-size: 1.125rem; }
.cs-prose p, .cs-prose ul, .cs-prose ol, .cs-prose blockquote, .cs-prose figure { margin: 0 0 1.25em; }
.cs-prose > :last-child { margin-bottom: 0; }
.cs-prose ul, .cs-prose ol { padding-left: 1.5em; }
.cs-prose ul { list-style: disc; }
.cs-prose h2, .cs-prose h3, .cs-prose h4 { color: var(--cs-gray-800); margin: 1.5em 0 0.6em; }
.cs-prose h2 { font-size: 1.5rem; }
.cs-prose h3 { font-size: 1.25rem; }
.cs-prose a { color: var(--cs-primary); text-decoration: underline; }
.cs-prose img { border-radius: var(--cs-radius); }
.cs-prose blockquote { border-left: 4px solid var(--cs-primary); padding-left: 1rem; font-style: italic; }

/* Buttons */

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.5rem;
	padding: 0.5rem 1rem;
	border-radius: var(--cs-radius-md);
	border: 1px solid transparent;
	font-family: var(--cs-sans);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.cs-btn:focus-visible { outline: none; box-shadow: var(--cs-focus); }
.cs-btn[disabled],
.cs-btn.is-disabled { opacity: 0.5; pointer-events: none; }

.cs-btn--lg { height: 2.75rem; padding: 0 2rem; }
.cs-btn--block { width: 100%; }
.cs-btn--start { justify-content: flex-start; }
.cs-btn--tall { height: auto; padding: 0.75rem 1rem; font-size: 1rem; }

.cs-btn--primary { background: var(--cs-primary); color: #fff; }
.cs-btn--primary:hover { background: var(--cs-primary-90); }

.cs-btn--outline { background: #fff; border-color: var(--cs-border); color: var(--cs-fg); }

.cs-btn--outline-primary { background: #fff; border-color: var(--cs-primary); color: var(--cs-primary); }
.cs-btn--outline-primary:hover { background: var(--cs-primary); color: #fff; }

.cs-btn--white { background: #fff; color: var(--cs-primary); }
.cs-btn--white:hover { background: rgb(255 255 255 / 0.9); }

.cs-btn--gradient { background: linear-gradient(to right, var(--cs-primary), var(--cs-blue)); color: #fff; }
.cs-btn--gradient:hover { background: linear-gradient(to right, var(--cs-primary-90), rgb(37 99 235 / 0.9)); }

.cs-btn--arrow svg { transition: transform 0.3s; }
.cs-btn--arrow:hover svg { transform: translateX(4px); }

.cs-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cs-primary);
}

.cs-link-btn:hover { text-decoration: underline; }
.cs-link { color: var(--cs-primary); }
.cs-link:hover { text-decoration: underline; }

/* Forms */

.cs-form { display: flex; flex-direction: column; gap: 1rem; }

.cs-field { display: flex; flex-direction: column; gap: 0.375rem; }

.cs-field > label {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	color: var(--cs-gray-700);
}

.cs-input {
	display: flex;
	width: 100%;
	height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius-md);
	background: #fff;
	font-size: 0.875rem;
	color: var(--cs-fg);
}

.cs-input::placeholder { color: var(--cs-muted-fg); }
.cs-input:focus-visible,
.cs-input.StripeElement--focus { outline: none; box-shadow: var(--cs-focus); }
textarea.cs-input { height: auto; min-height: 80px; resize: vertical; }

.cs-input--lg { height: auto; padding-top: 0.75rem; padding-bottom: 0.75rem; font-size: 1rem; }

.cs-select {
	appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	cursor: pointer;
}

.cs-input--on-dark {
	background: rgb(255 255 255 / 0.1);
	border-color: rgb(255 255 255 / 0.2);
	color: #fff;
}

.cs-input--on-dark::placeholder { color: rgb(255 255 255 / 0.6); }
.cs-input--on-dark:focus-visible { box-shadow: 0 0 0 2px var(--cs-primary), 0 0 0 4px #fff; }

.cs-input-icon { position: relative; }

.cs-input-icon > svg {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cs-muted-fg);
	pointer-events: none;
}

.cs-input-icon > .cs-input { padding-left: 2.5rem; }
.cs-input-icon--lg > svg { left: 1rem; }
.cs-input-icon--lg > .cs-input { padding-left: 3rem; }
.cs-input-icon--top > svg { top: 0.85rem; transform: none; }

.cs-check {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.cs-check input,
.cs-radio input,
.cs-fund input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--cs-primary);
	flex-shrink: 0;
}

.cs-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cs-form.is-loading button[type="submit"] { opacity: 0.6; pointer-events: none; }

.cs-field-error {
	font-size: 0.875rem;
	color: #dc2626;
}

.cs-field-error:empty { display: none; }

/* Header */

.cs-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 1rem 0;
	background: rgb(0 0 0 / 0.2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: all 0.3s;
}

.admin-bar .cs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cs-header { top: 46px; } }

.cs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.cs-brand { display: flex; align-items: center; gap: 0.5rem; }
.cs-brand__logo { height: 3rem; width: auto; }

.cs-brand__name {
	display: none;
	font-family: var(--cs-serif);
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
}

@media (min-width: 640px) { .cs-brand__name { display: inline; } }
@media (min-width: 768px) { .cs-brand__logo { height: 3.5rem; } }

.cs-nav { display: none; }

.cs-nav__link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	transition: color 0.15s;
}

.cs-nav__link:hover { color: var(--cs-yellow); }
.cs-nav__link.is-active { color: var(--cs-orange); font-weight: 600; }

.cs-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: var(--cs-radius-md);
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.cs-menu-toggle__close,
.cs-menu-toggle[aria-expanded="true"] .cs-menu-toggle__open { display: none; }
.cs-menu-toggle[aria-expanded="true"] .cs-menu-toggle__close { display: block; }

.cs-mobile-nav { background: #fff; box-shadow: var(--cs-shadow-lg); margin-top: 0.5rem; }

.cs-mobile-nav__inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.cs-mobile-nav__link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.625rem 0.75rem;
	border-radius: var(--cs-radius-md);
	font-weight: 500;
	color: var(--cs-gray-700);
}

.cs-mobile-nav__link:hover { background: var(--cs-gray-100); }
.cs-mobile-nav__link.is-active { color: var(--cs-primary); background: var(--cs-primary-10); font-weight: 600; }

.cs-brand { flex-shrink: 0; }
.cs-brand__name,
.cs-nav__link { white-space: nowrap; }

@media (min-width: 1024px) {
	.cs-nav { display: flex; align-items: center; gap: 0.85rem; }
	.cs-menu-toggle,
	.cs-mobile-nav { display: none !important; }
}

@media (min-width: 1280px) {
	.cs-nav { gap: 1.25rem; }
}

.cs-header.is-scrolled,
.cs-solid-header .cs-header {
	background: #fff;
	box-shadow: var(--cs-shadow-lg);
	padding: 0.5rem 0;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.cs-header.is-scrolled .cs-brand__name,
.cs-solid-header .cs-brand__name,
.cs-header.is-scrolled .cs-menu-toggle,
.cs-solid-header .cs-menu-toggle { color: var(--cs-primary); }


.cs-header.is-scrolled .cs-nav__link,
.cs-solid-header .cs-nav__link { color: var(--cs-gray-700); }

.cs-header.is-scrolled .cs-nav__link:hover,
.cs-header.is-scrolled .cs-nav__link.is-active,
.cs-solid-header .cs-nav__link:hover,
.cs-solid-header .cs-nav__link.is-active { color: var(--cs-primary); }

/* Banner on inner pages */

.cs-banner {
	position: relative;
	padding: 6rem 0;
	overflow: hidden;
	background: var(--cs-gray-700);
}

@media (min-width: 768px) { .cs-banner { padding: 8rem 0; } }

.cs-banner__bg { position: absolute; inset: 0; z-index: 0; }
.cs-banner__bg img { width: 100%; height: 100%; object-fit: cover; }

.cs-banner__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.5), transparent);
	opacity: 0.9;
}

.cs-banner__inner { position: relative; z-index: 10; text-align: center; }

.cs-banner__title {
	max-width: 48rem;
	margin: 0 auto 1.5rem;
	font-size: 2.25rem;
	line-height: 2.5rem;
	font-weight: 700;
	color: #fff;
}

@media (min-width: 768px) { .cs-banner__title { font-size: 3rem; line-height: 1.1; } }

.cs-banner__subtitle {
	max-width: 48rem;
	margin: 0 auto;
	font-size: 1.25rem;
	line-height: 1.75rem;
	color: rgb(255 255 255 / 0.9);
}

/* Home: hero video and ticker */

.cs-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 28rem;
	overflow: hidden;
	background: var(--cs-gray-900);
}

.cs-hero__media { position: absolute; inset: 0; z-index: 0; }

.cs-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, -50%);
	object-fit: cover;
	pointer-events: none;
}

.cs-hero__shade { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }

.cs-ticker {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 20;
	width: 100%;
	padding: 0.75rem 0;
	overflow: hidden;
	background: rgb(0 0 0 / 0.8);
	color: #fff;
}

.cs-ticker__track {
	display: flex;
	width: max-content;
	white-space: nowrap;
	animation: cs-marquee 20s linear infinite;
}

.cs-ticker__track span {
	display: inline-block;
	min-width: 100vw;
	padding: 0 1rem;
}

@media (min-width: 768px) { .cs-ticker__track span { font-size: 1.125rem; } }

@keyframes cs-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Home: welcome */

.cs-welcome {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) { .cs-welcome { grid-template-columns: 1fr 1fr; } }

.cs-welcome__media { position: relative; }

.cs-welcome__media img {
	position: relative;
	z-index: 10;
	width: 100%;
	border-radius: var(--cs-radius);
	box-shadow: var(--cs-shadow-xl);
}

.cs-welcome__blob {
	position: absolute;
	border-radius: 9999px;
}

.cs-welcome__blob--a { top: -1rem; left: -1rem; width: 6rem; height: 6rem; background: var(--cs-primary-10); }
.cs-welcome__blob--b { bottom: -1rem; right: -1rem; width: 8rem; height: 8rem; background: var(--cs-accent-10); }
.cs-welcome__title { margin-bottom: 1.5rem; }
.cs-welcome .cs-lead:last-of-type { margin-bottom: 2rem; }

.cs-rule {
	width: 5rem;
	height: 0.25rem;
	margin-bottom: 1.5rem;
	background: var(--cs-primary);
}

/* Cards */

.cs-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	box-shadow: var(--cs-shadow-lg);
	transition: box-shadow 0.3s;
}

.cs-event-card:hover,
.cs-sermon-card:hover,
.cs-store-book:hover,
.cs-post-card:hover,
.cs-album-card:hover { box-shadow: var(--cs-shadow-xl); }

.cs-card__header {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.5rem 1.5rem 0.5rem;
}

.cs-card__header--roomy { padding-bottom: 1.5rem; }

.cs-card__title {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--cs-gray-800);
}

.cs-card__body { flex-grow: 1; padding: 0 1.5rem 0.75rem; }
.cs-card__text { font-size: 0.875rem; line-height: 1.25rem; color: var(--cs-gray-600); }
.cs-card__footer { display: flex; align-items: center; padding: 0 1.5rem 1.5rem; }

.cs-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: var(--cs-gray-500);
}

.cs-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

.cs-event-card__media { display: block; background: var(--cs-gray-200); }
.cs-event-card__media img { display: block; width: 100%; }

.cs-empty {
	padding: 2.5rem 1rem;
	text-align: center;
	color: var(--cs-gray-600);
}

.cs-empty__icon {
	display: block;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	color: var(--cs-gray-400);
}

.cs-empty h3 { font-size: 1.25rem; font-weight: 600; color: var(--cs-gray-700); margin-bottom: 0.5rem; }

/* Home: testimonials */

.cs-quote {
	position: relative;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--cs-radius);
	box-shadow: var(--cs-shadow-lg);
}

.cs-quote__mark {
	position: absolute;
	top: -1rem;
	left: -1rem;
	display: flex;
	padding: 0.5rem;
	border-radius: 9999px;
	background: var(--cs-primary-10);
	color: var(--cs-primary);
}

.cs-quote blockquote { padding-top: 1rem; margin-bottom: 1.5rem; color: var(--cs-gray-700); }
.cs-quote figcaption { display: flex; align-items: center; gap: 1rem; }
.cs-quote__name { display: block; font-weight: 600; }
.cs-quote__role { display: block; font-size: 0.875rem; color: var(--cs-gray-500); }

.cs-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border: 2px solid var(--cs-primary-20);
	border-radius: 9999px;
	background: var(--cs-primary-10);
	color: var(--cs-primary);
	font-weight: 500;
}

/* Home: visit and newsletter */

.cs-visit { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .cs-visit { grid-template-columns: 1fr 1fr; } }

.cs-visit__info { display: flex; flex-direction: column; gap: 2rem; }

.cs-icon-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.cs-icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--cs-gray-700); }
.cs-icon-list li > svg { margin-top: 0.125rem; }
.cs-icon-list a:hover { color: var(--cs-primary); }

.cs-social { display: flex; flex-wrap: wrap; gap: 1rem; }

.cs-social a {
	display: flex;
	padding: 0.5rem;
	border: 1px solid var(--cs-border);
	border-radius: 9999px;
	color: var(--cs-gray-600);
	transition: color 0.15s, border-color 0.15s;
}

.cs-social a:hover { color: var(--cs-primary); border-color: var(--cs-primary); }

.cs-map { overflow: hidden; border-radius: var(--cs-radius); box-shadow: var(--cs-shadow-sm); }
.cs-map--shadow { box-shadow: var(--cs-shadow-xl); }
.cs-map iframe { display: block; width: 100%; border: 0; }

.cs-visit__cta { width: 100%; margin-top: 1.5rem; }
@media (min-width: 768px) { .cs-visit__cta { width: auto; } }

.cs-newsletter { max-width: 48rem; }
.cs-newsletter .cs-lead { color: rgb(255 255 255 / 0.9); margin-bottom: 2rem; }

.cs-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 28rem;
	margin: 0 auto;
}

@media (min-width: 640px) { .cs-newsletter__form { flex-direction: row; } }

/* Dialogs and toasts */

.cs-dialog {
	width: calc(100% - 2rem);
	max-width: 32rem;
	padding: 0;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	background: #fff;
	color: var(--cs-fg);
	box-shadow: var(--cs-shadow-lg);
}

.cs-dialog::backdrop { background: rgb(0 0 0 / 0.8); }
#event-dialog { max-width: 26.5rem; }

.cs-dialog > form,
.cs-dialog__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
}

.cs-dialog__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	padding: 0.25rem;
	border: 0;
	border-radius: 4px;
	background: none;
	opacity: 0.7;
	cursor: pointer;
}

.cs-dialog__close:hover { opacity: 1; }

.cs-dialog__title {
	padding-right: 2rem;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.cs-dialog__title--lg { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; }
.cs-dialog__desc { margin-top: -0.5rem; font-size: 0.875rem; color: var(--cs-muted-fg); }

.cs-dialog__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

@media (min-width: 640px) { .cs-dialog__actions { flex-direction: row; justify-content: flex-end; } }

.cs-event-dialog { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.5rem 0; }
.cs-event-dialog h3 { font-size: 1.125rem; font-weight: 600; }
.cs-event-dialog p { font-size: 0.875rem; color: var(--cs-gray-600); }
.cs-event-dialog__time { display: flex; align-items: center; gap: 0.5rem; color: var(--cs-gray-700) !important; }

.cs-toasts {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
	padding: 1rem;
	pointer-events: none;
}

@media (min-width: 640px) {
	.cs-toasts { top: auto; bottom: 0; left: auto; flex-direction: column; max-width: 420px; }
}

.cs-toast {
	position: relative;
	padding: 1rem 2rem 1rem 1.5rem;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius-md);
	background: #fff;
	color: var(--cs-fg);
	box-shadow: var(--cs-shadow-lg);
	pointer-events: auto;
	animation: cs-toast-in 0.25s ease-out;
}

.cs-toast--error { background: var(--cs-danger); border-color: var(--cs-danger); color: #fff; }
.cs-toast__title { font-size: 0.875rem; font-weight: 600; }
.cs-toast__text { font-size: 0.875rem; opacity: 0.9; }

.cs-toast__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.6;
	cursor: pointer;
	line-height: 1;
}

.cs-toast.is-leaving { opacity: 0; transform: translateX(1rem); transition: all 0.2s; }

@keyframes cs-toast-in {
	from { opacity: 0; transform: translateY(1rem); }
	to { opacity: 1; transform: none; }
}

/* Tabs */

.cs-tabs__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.25rem;
	margin-bottom: 3rem;
	padding: 0.25rem;
	border-radius: var(--cs-radius);
	background: var(--cs-gray-200);
	color: var(--cs-muted-fg);
}

@media (min-width: 768px) { .cs-tabs__list--about { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-tabs__list--about { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cs-tabs__list--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-tabs__list--four:not(.cs-tabs__list--muted) {
	max-width: 48rem;
	margin: 0 auto 2rem;
	gap: 0.5rem;
	background: var(--cs-muted);
}

.cs-tabs__list--muted { border-radius: var(--cs-radius-md); background: var(--cs-muted); }

.cs-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 0.75rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s;
}

.cs-tabs__tab:focus-visible { outline: none; box-shadow: var(--cs-focus); }

.cs-tabs__tab[aria-selected="true"] {
	background: var(--cs-primary);
	color: #fff;
	box-shadow: var(--cs-shadow-sm);
}

.cs-panel-card {
	min-height: 400px;
	padding: 1.5rem;
	border-radius: var(--cs-radius);
	background: #fff;
	box-shadow: var(--cs-shadow-xl);
}

@media (min-width: 768px) { .cs-panel-card { padding: 2.5rem; } }

/* About */

.cs-check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.cs-check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.cs-check-list li svg { margin-top: 0.125rem; }
.cs-check-list li span { font-size: 1.125rem; line-height: 1.75rem; color: var(--cs-gray-700); }

.cs-value {
	padding: 1.5rem;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius);
	background: var(--cs-gray-50);
	box-shadow: var(--cs-shadow-md);
	text-align: center;
	transition: box-shadow 0.3s;
}

.cs-value:hover { box-shadow: var(--cs-shadow-xl); }

.cs-value__icon {
	display: inline-flex;
	margin-bottom: 1rem;
	padding: 0.75rem;
	border-radius: 9999px;
	background: var(--cs-primary-10);
	color: var(--cs-primary);
}

.cs-value h3 { margin-bottom: 0.5rem; font-size: 1.25rem; font-weight: 600; color: var(--cs-gray-800); }
.cs-value p { color: var(--cs-gray-600); }

.cs-leader img { width: 100%; height: 18rem; object-fit: cover; object-position: top; }
.cs-leader__body { padding: 1.5rem; }
.cs-leader__body h3 { margin-bottom: 0.25rem; font-size: 1.25rem; font-weight: 700; color: var(--cs-gray-800); }
.cs-leader__role { margin-bottom: 0.75rem; font-weight: 500; color: var(--cs-primary); }
.cs-leader__bio { font-size: 0.875rem; color: var(--cs-gray-600); }

/* Events calendar */

.cs-calendar {
	padding: 1rem;
	border-radius: var(--cs-radius);
	background: #fff;
	color: var(--cs-gray-800);
	box-shadow: var(--cs-shadow-md);
}

.cs-calendar__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.cs-calendar__group { display: inline-flex; }

.cs-calendar__group button {
	margin-left: -1px;
	padding: 0.375rem 0.9rem;
	border: 1px solid #ccc;
	background: #fff;
	color: #373a3c;
	font-size: 0.875rem;
	cursor: pointer;
}

.cs-calendar__group button:first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
.cs-calendar__group button:last-child { border-radius: 0 4px 4px 0; }
.cs-calendar__group button:hover { background: #e6e6e6; }
.cs-calendar__group button.is-active { background: #e6e6e6; box-shadow: inset 0 3px 5px rgb(0 0 0 / 0.125); }

.cs-calendar__label { flex: 1 1 12rem; text-align: center; font-weight: 600; }

.cs-cal-month { border: 1px solid #ddd; }

.cs-cal-head,
.cs-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cs-cal-head div {
	padding: 3px;
	border-left: 1px solid #ddd;
	font-size: 90%;
	font-weight: 700;
	text-align: center;
}

.cs-cal-head div:first-child,
.cs-cal-week .cs-cal-day:first-child { border-left: 0; }

.cs-cal-week { min-height: 6.5rem; border-top: 1px solid #ddd; }

.cs-cal-day {
	min-width: 0;
	padding: 2px 3px 4px;
	border-left: 1px solid #ddd;
}

.cs-cal-day.is-off { background: #f3f3f3; color: #999; }
.cs-cal-day.is-today { background: #eaf6ff; }

.cs-cal-day__num {
	display: block;
	margin-left: auto;
	padding: 0 3px;
	border: 0;
	background: none;
	font-size: 0.85rem;
	cursor: pointer;
}

.cs-cal-event {
	display: block;
	width: 100%;
	margin-top: 2px;
	padding: 2px 5px;
	overflow: hidden;
	border: 0;
	border-radius: 5px;
	background: #3b82f6;
	color: #fff;
	font-size: 0.75rem;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.9;
	cursor: pointer;
}

.cs-cal-event:hover { opacity: 1; }
.cs-cal-event--birthday { background: #f59e0b; }
.cs-cal-event.is-cont-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cs-cal-event.is-cont-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.cs-cal-more {
	display: block;
	padding: 1px 4px;
	border: 0;
	background: none;
	color: var(--cs-primary);
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
}

.cs-cal-list { border: 1px solid #ddd; }

.cs-cal-list__day {
	padding: 0.5rem 0.75rem;
	border-top: 1px solid #ddd;
	background: #fafafa;
	font-weight: 600;
	font-size: 0.875rem;
}

.cs-cal-list__day:first-child { border-top: 0; }
.cs-cal-list__day.is-today { background: #eaf6ff; }

.cs-cal-list__item {
	display: flex;
	gap: 1rem;
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 0;
	border-top: 1px solid #eee;
	background: #fff;
	font-size: 0.875rem;
	text-align: left;
	cursor: pointer;
}

.cs-cal-list__item:hover { background: #f5f8ff; }
.cs-cal-list__time { flex: 0 0 6.5rem; color: var(--cs-gray-600); }
.cs-cal-list__dot { width: 0.6rem; height: 0.6rem; margin-top: 0.4rem; border-radius: 50%; background: #3b82f6; flex-shrink: 0; }
.cs-cal-list__item--birthday .cs-cal-list__dot { background: #f59e0b; }
.cs-cal-list__empty { padding: 2rem; text-align: center; color: var(--cs-gray-500); }

@media (max-width: 640px) {
	.cs-cal-week { min-height: 4.5rem; }
	.cs-cal-event { font-size: 0.65rem; padding: 1px 3px; }
	.cs-calendar__group button { padding: 0.375rem 0.6rem; }
}

/* Event and sermon detail */

.cs-detail { background: #fff; }
.cs-detail--gray { background: var(--cs-gray-50); }

.cs-detail__hero { position: relative; height: 18rem; background: var(--cs-gray-700); }
@media (min-width: 768px) { .cs-detail__hero { height: 24rem; } }
.cs-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.cs-detail__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.7), transparent); }

.cs-detail__heading {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem 0;
}

@media (min-width: 768px) { .cs-detail__heading { padding: 2rem 0; } }

.cs-detail__heading h1 {
	margin-bottom: 0.5rem;
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
	color: #fff;
}

@media (min-width: 768px) { .cs-detail__heading h1 { font-size: 2.25rem; line-height: 2.5rem; } }

.cs-detail__byline { font-size: 0.875rem; color: var(--cs-gray-200); }
.cs-detail__series { margin-top: 0.25rem; font-size: 0.75rem; color: var(--cs-orange); }
.cs-detail__body { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.cs-detail__toolbar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.cs-detail__toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.cs-detail__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 768px) { .cs-detail__actions { gap: 1rem; } }

.cs-dropdown { position: relative; }

.cs-dropdown__menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	right: 0;
	z-index: 20;
	min-width: 14rem;
	padding: 0.25rem;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius-md);
	background: #fff;
	box-shadow: var(--cs-shadow-md);
}

@media (max-width: 767px) { .cs-dropdown__menu { right: auto; left: 0; } }

.cs-dropdown__menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-size: 0.875rem;
}

.cs-dropdown__menu a:hover { background: var(--cs-muted); }

.cs-facts {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding: 1.5rem;
	border-radius: var(--cs-radius);
	background: var(--cs-gray-50);
	box-shadow: var(--cs-shadow);
}

@media (min-width: 640px) { .cs-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cs-facts__item { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--cs-gray-600); }
.cs-facts__item svg { margin-top: 0.25rem; }
.cs-facts__label { font-weight: 600; color: var(--cs-gray-700); }

.cs-links-card,
.cs-media-card { margin-bottom: 2rem; padding: 1.5rem; height: auto; }
.cs-links-card { box-shadow: var(--cs-shadow); }
.cs-media-card { box-shadow: var(--cs-shadow-lg); }

.cs-links-card__title,
.cs-media-card__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--cs-gray-800);
}

.cs-about-event .cs-h2 { margin-bottom: 1rem; }

.cs-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-audio { width: 100%; }

.cs-detail__label {
	margin-bottom: 0.25rem;
	font-family: var(--cs-sans);
	font-size: 1rem;
	font-weight: 600;
	color: var(--cs-gray-700);
}

.cs-bullets { list-style: disc inside; color: var(--cs-gray-600); }

/* Sermons */

.cs-filters {
	display: grid;
	gap: 1rem;
	align-items: end;
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	border-radius: var(--cs-radius);
	background: #fff;
	box-shadow: var(--cs-shadow-lg);
}

@media (min-width: 768px) { .cs-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-sermon-card__media { position: relative; height: 12rem; background: var(--cs-gray-200); }
.cs-sermon-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-sermon-card__badges { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.25rem; }

.cs-sermon-card__badges span {
	display: flex;
	padding: 0.3rem;
	border-radius: 9999px;
	background: rgb(0 0 0 / 0.6);
	color: #fff;
}

.cs-sermon-card__series { margin-top: 0.5rem; font-size: 0.75rem; color: var(--cs-primary); }

/* Gallery */

.cs-album-card { color: inherit; }

.cs-album-card__media {
	position: relative;
	display: block;
	height: 15rem;
	overflow: hidden;
	background: var(--cs-gray-200);
}

.cs-album-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.cs-album-card:hover .cs-album-card__media img { transform: scale(1.05); }
.cs-album-card__body { display: block; flex-grow: 1; padding: 1rem; background: var(--cs-gray-50); }

.cs-album-card__title {
	display: block;
	margin-bottom: 0.25rem;
	overflow: hidden;
	font-weight: 600;
	color: var(--cs-gray-800);
	text-overflow: ellipsis;
	text-transform: capitalize;
	white-space: nowrap;
}

.cs-album-card__meta { display: block; font-size: 0.75rem; color: var(--cs-gray-500); }
.cs-album-card__meta + .cs-album-card__meta { margin-top: 0.25rem; }

.cs-photo-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cs-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cs-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-photo {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--cs-radius);
	box-shadow: var(--cs-shadow-md);
	transition: box-shadow 0.3s;
}

.cs-photo:hover { box-shadow: var(--cs-shadow-xl); }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cs-photo:hover img { transform: scale(1.1); }

.cs-photo__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.5rem;
	overflow: hidden;
	background: linear-gradient(to top, rgb(0 0 0 / 0.7), transparent);
	color: var(--cs-gray-100);
	font-size: 0.75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(0 0 0 / 0.92);
}

.cs-lightbox__figure { max-width: 92vw; text-align: center; }
.cs-lightbox__figure img { max-width: 92vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.cs-lightbox__figure figcaption { margin-top: 0.75rem; color: #eee; font-size: 0.875rem; }
.cs-lightbox__figure figcaption:empty { display: none; }

.cs-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 9999px;
	background: rgb(255 255 255 / 0.12);
	color: #fff;
	cursor: pointer;
}

.cs-lightbox button:hover { background: rgb(255 255 255 / 0.25); }
.cs-lightbox__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
.cs-lightbox__nav { top: 50%; width: 3rem; height: 3rem; transform: translateY(-50%); }
.cs-lightbox__nav--prev { left: 1rem; }
.cs-lightbox__nav--next { right: 1rem; }
.cs-lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #bbb; font-size: 0.875rem; }

/* Pastor's Corner */

.cs-desk { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .cs-desk { grid-template-columns: 2fr 1fr; } }

.cs-word,
.cs-verses { height: auto; box-shadow: var(--cs-shadow-xl); }

.cs-word__head { display: flex; flex-direction: column; gap: 0.375rem; padding: 1.5rem; }

.cs-word__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--cs-gray-800);
}

.cs-word__month {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--cs-muted-fg);
}

.cs-word__body { padding: 0 1.5rem 1.5rem; }
.cs-word__body h3 { margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 600; color: var(--cs-gray-700); }
.cs-word__body p { margin-bottom: 1rem; line-height: 1.625; color: var(--cs-gray-700); }
.cs-word__body .cs-word__verse { margin-bottom: 0; text-align: right; font-weight: 600; font-style: italic; color: var(--cs-primary); }

.cs-verses { padding: 1.5rem; }

.cs-verses__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--cs-gray-800);
}

.cs-verses__ref { font-weight: 600; color: var(--cs-primary); }
.cs-verses__text { font-size: 0.875rem; font-style: italic; color: var(--cs-gray-600); }

.cs-book__cover {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24rem;
	overflow: hidden;
	background: var(--cs-gray-200);
}

.cs-book__cover img { width: auto; height: 100%; object-fit: contain; }
.cs-book__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; color: var(--cs-gray-800); }
.cs-book__footer { margin-top: auto; padding: 1rem; border-top: 1px solid var(--cs-border); }

.cs-blog-tab__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.cs-mini-post { color: inherit; box-shadow: var(--cs-shadow-md); }
.cs-mini-post:hover { box-shadow: var(--cs-shadow-lg); }
.cs-mini-post__media { display: block; height: 12rem; overflow: hidden; background: var(--cs-gray-200); }
.cs-mini-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cs-mini-post:hover .cs-mini-post__media img { transform: scale(1.05); }
.cs-mini-post__body { display: flex; flex-grow: 1; flex-direction: column; gap: 0.25rem; padding: 1rem; }
.cs-mini-post__title { font-family: var(--cs-serif); font-weight: 600; color: var(--cs-gray-800); }
.cs-mini-post:hover .cs-mini-post__title { color: var(--cs-primary); }
.cs-mini-post__date { margin-bottom: 0.25rem; font-size: 0.75rem; color: var(--cs-gray-500); }
.cs-mini-post__excerpt { font-size: 0.875rem; color: var(--cs-gray-600); }

.cs-store-book__cover { height: 15rem; background: var(--cs-gray-200); }
.cs-store-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-price { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 600; color: var(--cs-primary); }

.cs-testimony-form {
	max-width: 42rem;
	height: auto;
	margin: 2rem auto 0;
	padding: 1.5rem;
	text-align: left;
	box-shadow: var(--cs-shadow-xl);
}

.cs-testimony-form__title { font-size: 1.5rem; font-weight: 600; }
.cs-testimony-form .cs-muted { margin-top: -0.75rem; }

.cs-testimony { height: auto; padding: 1.5rem; }

.cs-testimony__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--cs-gray-800);
}

.cs-testimony__date { margin: 0.375rem 0 1rem; font-size: 0.75rem; color: var(--cs-gray-500); }
.cs-testimony__text { font-size: 0.875rem; color: var(--cs-gray-600); white-space: pre-wrap; }

/* Blog */

.cs-post-card__media { display: block; height: 13rem; overflow: hidden; background: var(--cs-gray-200); }
.cs-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cs-post-card:hover .cs-post-card__media img { transform: scale(1.05); }
.cs-post-card__title { transition: color 0.15s; }
.cs-post-card a:hover .cs-post-card__title { color: var(--cs-primary); }

.cs-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
}

.cs-pagination .page-numbers {
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius-md);
	font-size: 0.875rem;
}

.cs-pagination .page-numbers.current { background: var(--cs-primary); border-color: var(--cs-primary); color: #fff; }
.cs-pagination a.page-numbers:hover { border-color: var(--cs-primary); color: var(--cs-primary); }

.cs-tags { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cs-border); }

.cs-tags h4 {
	margin-bottom: 0.5rem;
	font-family: var(--cs-sans);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--cs-gray-600);
}

.cs-tags__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cs-pill {
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	background: var(--cs-gray-100);
	color: var(--cs-gray-700);
	font-size: 0.75rem;
	font-weight: 500;
}

.cs-pill:hover { background: var(--cs-gray-200); }

/* Live */

.cs-live { display: flex; flex-direction: column; gap: 2rem; }

.cs-live__player {
	overflow: hidden;
	border-radius: 0.75rem;
	background: #000;
	box-shadow: var(--cs-shadow-2xl);
}

.cs-live__aside { display: flex; flex-direction: column; gap: 1.5rem; }

@media (min-width: 1024px) {
	.cs-live { flex-direction: row; align-items: flex-start; }
	.cs-live__player { width: 66.666%; }
	.cs-live__aside { width: 33.333%; }
}

.cs-live__offline { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #ddd; text-align: center; }

.cs-panel {
	padding: 1.5rem;
	border-radius: var(--cs-radius);
	background: #fff;
	box-shadow: var(--cs-shadow-lg);
}

.cs-panel__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--cs-primary);
}

.cs-panel > p { color: var(--cs-gray-700); }

/* Donate */

.cs-donate { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .cs-donate { grid-template-columns: 1fr 1fr; } }

.cs-donate__intro { display: flex; flex-direction: column; gap: 1.5rem; }
.cs-donate__intro .cs-h2 { font-size: 1.875rem; line-height: 2.25rem; }
.cs-donate__intro .cs-lead { margin-bottom: 0; }

.cs-highlight { display: flex; align-items: flex-start; gap: 1rem; }
.cs-highlight svg { margin-top: 0.25rem; }
.cs-highlight h3 { font-size: 1.25rem; font-weight: 600; color: var(--cs-gray-800); }
.cs-highlight p { margin-top: 0.25rem; color: var(--cs-gray-600); }

.cs-donate__box {
	padding: 2rem;
	border: 1px solid var(--cs-border);
	border-radius: 0.75rem;
	background: var(--cs-gray-50);
	box-shadow: var(--cs-shadow-2xl);
}

@media (max-width: 480px) { .cs-donate__box { padding: 1.25rem; } }

.cs-donate-form { display: flex; flex-direction: column; gap: 1.5rem; }
.cs-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.cs-fieldset legend,
.cs-donate-form .cs-field > label {
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--cs-gray-800);
}

.cs-fieldset legend { margin-bottom: 0.75rem; }

.cs-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.cs-amount {
	height: 3.25rem;
	border-color: var(--cs-border);
	background: #fff;
	color: var(--cs-fg);
	font-size: 1.125rem;
}

.cs-amount.is-selected,
.cs-amount.is-selected:hover { background: var(--cs-primary); border-color: var(--cs-primary); color: #fff; }

.cs-funds { display: flex; flex-direction: column; gap: 0.5rem; }

.cs-fund {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border-radius: var(--cs-radius-md);
	background: var(--cs-gray-100);
	color: var(--cs-gray-700);
	font-size: 0.875rem;
	cursor: pointer;
}

.cs-donate-form__section { padding-top: 1rem; border-top: 1px solid var(--cs-border); }
.cs-check--strong span { font-size: 1rem; font-weight: 600; color: var(--cs-gray-800); }

.cs-frequency { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; padding-left: 1.5rem; }
.cs-radio { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--cs-gray-700); cursor: pointer; }

.cs-card-element { height: auto; padding: 0.75rem; }

.cs-notice {
	padding: 0.75rem;
	border-radius: var(--cs-radius-md);
	background: #fef3c7;
	color: #92400e;
	font-size: 0.875rem;
}

.cs-donate-form__submit { height: 3rem; margin-top: 0.5rem; font-size: 1.125rem; }

.cs-donate-form__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: -0.75rem;
	font-size: 0.75rem;
	color: var(--cs-gray-500);
}

/* Contact */

.cs-contact { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .cs-contact { grid-template-columns: 1fr 1fr; } }

.cs-touch { height: auto; padding: 1.5rem; box-shadow: var(--cs-shadow-xl); }

.cs-touch__title {
	margin-bottom: 1.5rem;
	font-size: 1.875rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--cs-gray-800);
}

.cs-touch__item { display: flex; align-items: flex-start; gap: 1rem; }
.cs-touch__item svg { margin-top: 0.25rem; }
.cs-touch__label { font-weight: 600; color: var(--cs-gray-700); }

.cs-new-here { margin-top: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cs-border); }

.cs-new-here__box {
	padding: 1.5rem;
	border: 1px solid var(--cs-primary-30);
	border-radius: var(--cs-radius);
	background: var(--cs-primary-10);
	box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.cs-new-here__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.cs-new-here__head h3 { font-size: 1.25rem; font-weight: 600; color: var(--cs-primary); }
.cs-new-here__box p { margin-bottom: 1.25rem; color: var(--cs-gray-700); }

.cs-message-box {
	padding: 2rem;
	border-radius: var(--cs-radius);
	background: var(--cs-gray-50);
	box-shadow: var(--cs-shadow-sm);
}

.cs-message-box .cs-h2 { margin-bottom: 1.5rem; }

/* First-timer form */

.cs-first-timer {
	padding: 2rem;
	border: 1px solid var(--cs-gray-200);
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: var(--cs-shadow-2xl);
}

@media (min-width: 768px) { .cs-first-timer { padding: 3rem; } }

.cs-first-timer__head,
.cs-first-timer__thanks { margin-bottom: 2.5rem; text-align: center; }
.cs-first-timer__thanks { margin-bottom: 0; }

.cs-first-timer__icon {
	display: block;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	color: var(--cs-primary);
}

.cs-first-timer__head h2,
.cs-first-timer__thanks h2 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--cs-gray-800); }
.cs-first-timer__head p,
.cs-first-timer__thanks p { margin-top: 0.75rem; font-size: 1.125rem; color: var(--cs-gray-600); }
.cs-first-timer__thanks .cs-btn { margin-top: 2rem; }

/* 404 */

.cs-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 7rem 1rem 4rem;
	background: var(--cs-gray-50);
	text-align: center;
}

.cs-404__code { font-size: 8rem; line-height: 1; font-weight: 700; color: var(--cs-primary); }
.cs-404__title { margin: 1rem 0 1.5rem; font-size: 1.875rem; font-weight: 700; color: var(--cs-gray-800); }
.cs-404__text { max-width: 28rem; margin: 0 auto 2rem; font-size: 1.125rem; color: var(--cs-gray-600); }

.cs-404__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

@media (min-width: 640px) { .cs-404__actions { flex-direction: row; } }

/* Footer */

.cs-footer { padding: 4rem 0 2rem; background: var(--cs-gray-900); color: #fff; }

.cs-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .cs-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cs-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cs-footer__brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.cs-footer__brand img { height: 3rem; width: auto; }
.cs-footer__brand span { font-family: var(--cs-serif); font-size: 1.25rem; font-weight: 700; }
.cs-footer__about { margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--cs-gray-300); }
.cs-footer__social { display: flex; gap: 1rem; }
.cs-footer__social a,
.cs-footer__links a,
.cs-footer__list a { color: var(--cs-gray-300); transition: color 0.15s; }
.cs-footer__social a:hover,
.cs-footer__links a:hover,
.cs-footer__list a:hover { color: var(--cs-primary); }

.cs-footer__title { margin-bottom: 1rem; font-family: var(--cs-serif); font-size: 1.125rem; font-weight: 600; }

.cs-footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.cs-footer__links a { display: flex; align-items: center; gap: 0.5rem; }

.cs-footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.cs-footer__list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--cs-gray-300); }
.cs-footer__icon { margin-top: 0.15rem; color: hsl(205 60% 56%); }
.cs-footer__strong { font-weight: 500; color: #fff; }

.cs-footer__bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--cs-gray-800);
	color: var(--cs-gray-400);
	font-size: 0.875rem;
	text-align: center;
}

/* Scroll-in animation, only when JavaScript runs */

.cs-js [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cs-js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.cs-ticker__track { animation: none; }
	.cs-photo img,
	.cs-album-card__media img { transition: none; }
}

/* Block editor content */

.alignwide { max-width: 72rem; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption,
.wp-caption-text { font-size: 0.875rem; color: var(--cs-gray-500); text-align: center; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Red hover fills only on devices with a mouse; on phones a tapped button would stay red. */

@media (hover: hover) {
	.cs-btn--outline:hover,
	.cs-amount:hover { background: var(--cs-accent); border-color: var(--cs-accent); color: #fff; }
	.cs-menu-toggle:hover,
	.cs-header.is-scrolled .cs-menu-toggle:hover,
	.cs-solid-header .cs-menu-toggle:hover { background: var(--cs-accent); color: #fff; }
	.cs-amount.is-selected:hover { background: var(--cs-primary); border-color: var(--cs-primary); color: #fff; }
}
