/*
======================================================
CatholicG33K Prayer Community
Connect-Era Unified Design
======================================================
*/

.cg-prayer-page {
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
	background:
		radial-gradient(
			circle at 50% 0%,
			rgba(16, 35, 55, 0.26),
			transparent 38rem
		),
		#05080f;
	color: #f4efe3;
}

.cg-prayer-page,
.cg-prayer-page * {
	box-sizing: border-box;
}

.cg-prayer-page .cg-container,
.cg-prayer-page .cg-container-sm {
	width: min(calc(100% - 2rem), 920px);
	margin-inline: auto;
}

.cg-prayer-page .cg-page-header {
	max-width: 760px;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.cg-prayer-page .cg-cross {
	margin-bottom: 0.75rem;
	color: #ffb400;
	font-size: 1.35rem;
	line-height: 1;
}

.cg-prayer-page .cg-title {
	margin: 0;
	color: #f4efe3;
	font-family: var(--cg-font-heading, Georgia, serif);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.045em;
}

.cg-prayer-page .cg-subtitle {
	max-width: 640px;
	margin: 0.9rem auto 0;
	color: #ffb400;
	font-family: var(--cg-font-mono, "Courier New", monospace);
	font-size: clamp(0.7rem, 1.4vw, 0.82rem);
	font-weight: 500;
	line-height: 1.65;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cg-prayer-page .cg-page-header::after {
	content: "";
	display: block;
	width: 88px;
	height: 1px;
	margin: 1.35rem auto 0;
	background: rgba(255, 180, 0, 0.48);
}

/*
------------------------------------------------------
Shared panel
------------------------------------------------------
*/

.cg-prayer-form-shell,
.cg-prayer-wall-shell,
.cg-prayer-answer-shell {
	max-width: 860px;
	margin: 0 auto;
	padding: clamp(1.4rem, 4vw, 2.6rem);
	background: #10131b;
	border: 1px solid rgba(255, 180, 0, 0.28);
	border-radius: 0;
	box-shadow: none;
}

.cg-prayer-page .cg-connect-header {
	max-width: 680px;
	margin: 0 auto 2rem;
	text-align: center;
}

.cg-prayer-page .cg-connect-header h2 {
	margin: 0;
	color: #f4efe3;
	font-family: var(--cg-font-heading, Georgia, serif);
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
}

.cg-prayer-page .cg-connect-header p {
	margin: 0.75rem auto 0;
	color: rgba(244, 239, 227, 0.7);
	font-size: 0.96rem;
	line-height: 1.7;
}

/*
------------------------------------------------------
Form
------------------------------------------------------
*/

.cg-prayer-form {
	display: grid;
	gap: 1.35rem;
}

.cg-prayer-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: start;
}

.cg-prayer-form-row .cg-prayer-field {
	align-content: start;
	align-self: start;
}

.cg-prayer-field {
	display: grid;
	gap: 0.55rem;
	min-width: 0;
}

.cg-prayer-field label,
.cg-prayer-choice-group legend,
.cg-prayer-checkbox-field label {
	color: #ffb400;
	font-family: var(--cg-font-mono, "Courier New", monospace);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cg-prayer-optional {
	display: block;
	margin-top: 0.2rem;
	color: rgba(244, 239, 227, 0.52);
	font-family: inherit;
	font-size: 0.67rem;
	font-weight: 400;
	letter-spacing: 0.035em;
	text-transform: none;
}

.cg-natural-input {
	display: flex;
	min-height: 50px;
	align-items: center;
	gap: 0.7rem;
	padding: 0 1rem;
	background: #080b12;
	border: 1px solid rgba(154, 164, 184, 0.3);
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.cg-natural-input:hover,
.cg-natural-input:focus-within {
	background: #0b0f17;
	border-color: #ffb400;
}

.cg-natural-input:focus-within {
	box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.1);
}

.cg-natural-input > span {
	flex: 0 0 auto;
	color: rgba(244, 239, 227, 0.58);
	font-size: 0.85rem;
	white-space: nowrap;
}

.cg-natural-input input,
.cg-natural-input textarea {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #f4efe3 !important;
	font: inherit;
}

.cg-natural-input input[type="text"],
.cg-natural-input input[type="email"] {
	width: 100%;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
}

.cg-natural-textarea {
	align-items: flex-start;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.cg-natural-textarea > span {
	padding-top: 0.1rem;
}

.cg-natural-textarea textarea {
	width: 100%;
	min-height: 175px;
	resize: vertical;
	line-height: 1.7;
}

.cg-prayer-field > select,
.cg-prayer-search,
.cg-prayer-filter {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(154, 164, 184, 0.3);
	border-radius: 0;
	outline: 0;
	background: #080b12;
	box-shadow: none;
	color: #f4efe3;
	font: inherit;
}

.cg-prayer-field > select:hover,
.cg-prayer-search:hover,
.cg-prayer-filter:hover,
.cg-prayer-field > select:focus,
.cg-prayer-search:focus,
.cg-prayer-filter:focus {
	background: #0b0f17;
	border-color: #ffb400;
	box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.1);
}

.cg-prayer-field select option,
.cg-prayer-filter option {
	background: #10131b;
	color: #f4efe3;
}

.cg-prayer-field-help,
.cg-prayer-moderation-note {
	margin: 0;
	color: rgba(244, 239, 227, 0.58);
	font-size: 0.84rem;
	line-height: 1.65;
}

.cg-prayer-moderation-note {
	text-align: center;
}

.cg-prayer-field-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.25rem;
}

.cg-prayer-character-count {
	flex: 0 0 auto;
	margin: 0;
	color: rgba(244, 239, 227, 0.5);
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.cg-prayer-character-count.is-warning {
	color: #ffcf58;
}

.cg-prayer-character-count.is-limit {
	color: #ff8d8d;
	font-weight: 700;
}

/*
------------------------------------------------------
Visibility choices
------------------------------------------------------
*/

.cg-prayer-choice-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cg-prayer-choice-group legend {
	margin-bottom: 0.65rem;
}

.cg-prayer-visibility-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.cg-prayer-choice-button {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.cg-prayer-choice-button input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.cg-prayer-choice-button > span {
	display: grid;
	min-height: 92px;
	align-content: center;
	gap: 0.35rem;
	padding: 1rem;
	border: 1px solid rgba(255, 180, 0, 0.22);
	background: #0b0f17;
	color: rgba(244, 239, 227, 0.74);
	text-align: center;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease;
}

.cg-prayer-choice-button:hover > span,
.cg-prayer-choice-button:focus-within > span,
.cg-prayer-choice-button.is-selected > span {
	border-color: #ffb400;
	background: rgba(255, 180, 0, 0.09);
	color: #f4efe3;
}

.cg-prayer-choice-button strong {
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.7rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.cg-prayer-choice-button small {
	color: rgba(244, 239, 227, 0.58);
	font-size: 0.76rem;
	line-height: 1.5;
}

.cg-prayer-checkbox-field {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.9rem 1rem;
	background: rgba(255, 180, 0, 0.045);
	border: 1px solid rgba(255, 180, 0, 0.13);
}

.cg-prayer-checkbox-field input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 0.1rem;
	accent-color: #ffb400;
}

.cg-prayer-checkbox-field label {
	color: rgba(244, 239, 227, 0.8);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.6;
	text-transform: none;
}

/*
------------------------------------------------------
Buttons
------------------------------------------------------
*/

.cg-prayer-page .cg-btn,
.cg-prayer-widget .cg-btn {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.85rem 1.4rem;
	border: 1px solid #ffb400;
	border-radius: 0;
	outline: 0;
	background: #ffb400;
	box-shadow: none;
	color: #080b12;
	font-family: var(--cg-font-mono, "Courier New", monospace);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.cg-prayer-page .cg-btn:hover,
.cg-prayer-page .cg-btn:focus,
.cg-prayer-widget .cg-btn:hover,
.cg-prayer-widget .cg-btn:focus {
	background: #f4efe3;
	border-color: #f4efe3;
	color: #080b12;
	transform: translateY(-1px);
}

.cg-prayer-page .cg-btn-outline {
	background: transparent;
	color: #ffb400;
}

.cg-prayer-page .cg-btn-outline:hover,
.cg-prayer-page .cg-btn-outline:focus {
	background: #ffb400;
	border-color: #ffb400;
	color: #080b12;
}

.cg-prayer-submit {
	width: 100%;
	min-height: 54px !important;
}

.cg-prayer-submit.cg-is-loading,
.cg-prayer-submit:disabled,
.cg-pray-button.cg-is-loading,
.cg-pray-button:disabled {
	cursor: wait;
	opacity: 0.68;
	transform: none;
}

/*
------------------------------------------------------
Notices
------------------------------------------------------
*/

.cg-prayer-notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid;
	border-left-width: 3px;
	border-radius: 0;
	line-height: 1.65;
}

.cg-prayer-notice p {
	margin: 0.35rem 0 0;
}

.cg-prayer-notice-success {
	background: rgba(95, 189, 117, 0.08);
	border-color: rgba(95, 189, 117, 0.55);
	color: #dfffe7;
}

.cg-prayer-notice-error {
	background: rgba(220, 100, 100, 0.08);
	border-color: rgba(220, 100, 100, 0.6);
	color: #ffe1e1;
}

/*
------------------------------------------------------
Prayer Wall
------------------------------------------------------
*/

.cg-prayer-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	gap: 0.8rem;
	margin: 0 0 1rem;
	align-items: stretch;
}

.cg-prayer-search-wrap {
	min-width: 0;
}

.cg-prayer-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.cg-prayer-search,
.cg-prayer-filter {
	min-width: 0;
}

.cg-prayer-filter {
	width: auto;
}

.cg-prayer-results-summary {
	margin: 0 0 1.5rem;
	color: rgba(244, 239, 227, 0.52);
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.cg-prayer-wall-status {
	min-height: 1px;
	color: #ffb400;
	text-align: center;
}

.cg-prayer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.cg-prayer-card {
	display: block;
	overflow: hidden;
	background: #0b0f17;
	border: 1px solid rgba(255, 180, 0, 0.18);
	border-radius: 0;
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease;
}

.cg-prayer-card:hover {
	background: #0d121b;
	border-color: rgba(255, 180, 0, 0.42);
}

.cg-prayer-answered-banner {
	padding: 0.65rem 1.2rem;
	background: rgba(255, 180, 0, 0.1);
	border-bottom: 1px solid rgba(255, 180, 0, 0.18);
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cg-prayer-card-body {
	position: relative;
	padding: 1.4rem 1.4rem 1.25rem;
}

.cg-prayer-quote-mark {
	position: absolute;
	top: 0.55rem;
	left: 0.9rem;
	color: rgba(255, 180, 0, 0.18);
	font-family: Georgia, serif;
	font-size: 3.6rem;
	line-height: 1;
}

.cg-prayer-message {
	position: relative;
	z-index: 1;
	padding-left: 1rem;
	color: rgba(244, 239, 227, 0.84);
	font-size: 0.98rem;
	line-height: 1.8;
}

.cg-prayer-message p {
	margin: 0 0 1rem;
}

.cg-prayer-message p:last-child {
	margin-bottom: 0;
}

.cg-prayer-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.cg-prayer-author strong {
	color: #f4efe3;
	font-family: var(--cg-font-heading, Georgia, serif);
	font-size: 1rem;
	font-weight: 400;
}

.cg-prayer-category {
	margin-top: 0.25rem;
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.64rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cg-prayer-date {
	color: rgba(244, 239, 227, 0.45);
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.65rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cg-prayer-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.cg-prayer-actions .cg-btn {
	min-height: 42px;
	padding: 0.65rem 1rem;
}

.cg-pray-button.cg-prayed {
	background: rgba(255, 180, 0, 0.1);
	color: #ffb400;
	opacity: 0.75;
}

.cg-prayer-count {
	margin: 0;
	color: rgba(244, 239, 227, 0.55);
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.67rem;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.cg-prayer-card-message {
	min-height: 0;
	padding: 0 1.4rem;
	color: #ffb400;
	font-size: 0.82rem;
}

.cg-prayer-card-message:not(:empty) {
	padding-bottom: 1rem;
}

/*
------------------------------------------------------
Empty states and pagination
------------------------------------------------------
*/

.cg-prayer-empty-state {
	padding: 2.5rem 1.25rem;
	background: #0b0f17;
	border: 1px solid rgba(255, 180, 0, 0.16);
	text-align: center;
}

.cg-prayer-empty-icon {
	margin-bottom: 0.7rem;
	color: #ffb400;
	font-size: 1.4rem;
}

.cg-prayer-empty-state h2 {
	margin: 0;
	color: #f4efe3;
	font-family: var(--cg-font-heading, Georgia, serif);
	font-size: 1.4rem;
	font-weight: 400;
}

.cg-prayer-empty-state p {
	margin: 0.75rem 0 0;
	color: rgba(244, 239, 227, 0.62);
	line-height: 1.7;
}

.cg-prayer-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.cg-prayer-page-link {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 0.75rem;
	border: 1px solid rgba(255, 180, 0, 0.3);
	background: transparent;
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.7rem;
	text-decoration: none;
}

.cg-prayer-page-link:hover,
.cg-prayer-page-link:focus,
.cg-prayer-page-link.is-current {
	background: #ffb400;
	border-color: #ffb400;
	color: #080b12;
}

/*
------------------------------------------------------
Prayer widget
------------------------------------------------------
*/

.cg-prayer-widget {
	padding: clamp(1.3rem, 4vw, 2rem);
	background: #10131b;
	border: 1px solid rgba(255, 180, 0, 0.28);
	color: #f4efe3;
	text-align: center;
}

.cg-prayer-widget-cross {
	margin-bottom: 0.6rem;
	color: #ffb400;
	font-size: 1.3rem;
}

.cg-prayer-widget-eyebrow,
.cg-prayer-widget-type {
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.67rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cg-prayer-widget h3 {
	margin: 0.8rem 0;
	color: #f4efe3;
	font-family: var(--cg-font-heading, Georgia, serif);
	font-size: 1.4rem;
	font-weight: 400;
}

.cg-prayer-widget-request {
	color: rgba(244, 239, 227, 0.76);
	line-height: 1.7;
}

.cg-prayer-widget-button {
	width: 100%;
	margin-top: 1rem;
}

.cg-prayer-widget-links {
	display: grid;
	gap: 0.6rem;
	margin-top: 1.3rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 180, 0, 0.14);
}

.cg-prayer-widget-links a {
	color: #ffb400;
	font-family: var(--cg-font-mono, monospace);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.cg-prayer-widget-links a:hover,
.cg-prayer-widget-links a:focus {
	color: #f4efe3;
}

/*
------------------------------------------------------
Utilities
------------------------------------------------------
*/

.cgpc-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cg-prayer-notice:focus {
	outline: 2px solid #ffb400;
	outline-offset: 4px;
}

#cgpc-name:disabled {
	color: rgba(244, 239, 227, 0.35) !important;
	cursor: not-allowed;
}

/*
------------------------------------------------------
Responsive
------------------------------------------------------
*/

@media (max-width: 760px) {

	.cg-prayer-page .cg-container,
	.cg-prayer-page .cg-container-sm {
		width: min(calc(100% - 1.25rem), 920px);
	}

	.cg-prayer-form-row,
	.cg-prayer-visibility-buttons,
	.cg-prayer-toolbar {
		grid-template-columns: 1fr;
	}

	.cg-prayer-filter-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.cg-prayer-filter-group .cg-prayer-filter,
	.cg-prayer-filter-group .cg-btn {
		width: 100%;
	}

	.cg-prayer-meta,
	.cg-prayer-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.cg-prayer-actions .cg-btn {
		width: 100%;
	}

	.cg-prayer-field-meta {
		flex-direction: column;
	}

	.cg-prayer-character-count {
		align-self: flex-end;
	}

}

@media (max-width: 560px) {

	.cg-natural-input {
		display: grid;
		gap: 0.2rem;
		padding-top: 0.65rem;
		padding-bottom: 0.65rem;
	}

	.cg-natural-input > span {
		font-size: 0.72rem;
	}

	.cg-natural-input input[type="text"],
	.cg-natural-input input[type="email"] {
		height: 38px !important;
		min-height: 38px !important;
		max-height: 38px !important;
	}

	.cg-natural-textarea textarea {
		min-height: 150px;
	}

	.cg-prayer-filter-group {
		grid-template-columns: 1fr;
	}

	.cg-prayer-form-shell,
	.cg-prayer-wall-shell,
	.cg-prayer-answer-shell {
		padding: 1.1rem;
	}

	.cg-prayer-card-body,
	.cg-prayer-meta,
	.cg-prayer-actions {
		padding-left: 1rem;
		padding-right: 1rem;
	}

}

@media (prefers-reduced-motion: reduce) {

	.cg-prayer-page *,
	.cg-prayer-page *::before,
	.cg-prayer-page *::after,
	.cg-prayer-widget *,
	.cg-prayer-widget *::before,
	.cg-prayer-widget *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

}
/*
======================================================
Prayer Community Cross Image Override
Uses the same image as Catholic Living
======================================================
*/

.cg-prayer-page .cg-prayer-hero .cg-cross,
.cg-prayer-page .cg-prayer-empty-state .cg-cross {
	display: block;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	flex: 0 0 40px;
	margin: 0 auto 1.35rem;

	background-image: url("https://catholicg33k.com/wp-content/uploads/2026/06/GOLDCROSS_transparent.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	color: transparent;
	font-size: 0;
	line-height: 0;
	text-indent: -9999px;

	filter:
		drop-shadow(0 0 8px rgba(217, 163, 0, 0.20))
		drop-shadow(0 0 16px rgba(217, 163, 0, 0.12));
}

.cg-prayer-page .cg-prayer-empty-state .cg-cross {
	margin-bottom: 1.25rem;
}

@media (max-width: 760px) {

	.cg-prayer-page .cg-prayer-hero .cg-cross,
	.cg-prayer-page .cg-prayer-empty-state .cg-cross {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
		flex-basis: 40px;
		font-size: 0;
		line-height: 0;
	}

}