/* Calendario Chiesa Gospel - single event page. Reuses the theme tokens with fallbacks. */
.cgev-single {
	--cgev-ink: var(--cg-ink, #101010);
	--cgev-paper: var(--cg-paper, #f4f4f4);
	--cgev-blue: var(--cg-blue, #0038ff);
	--cgev-ice: var(--cg-ice, #dbe7ff);
	--cgev-muted: #4a4a4a;
	--cgev-red: #b00020;
	--cgev-sans: var(--cg-sans, "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif);
	--cgev-serif: var(--cg-serif, "Instrument Serif", "Times New Roman", serif);
	--cgev-ease: var(--cg-ease, cubic-bezier(.22, .7, .2, 1));
	box-sizing: border-box;
	padding-inline: max(var(--cg-gutter, 16px), calc((100% - 1264px) / 2));
	padding-block: 32px 96px;
	color: var(--cgev-ink);
	font-family: var(--cgev-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}
.cgev-single *, .cgev-single *::before, .cgev-single *::after { box-sizing: border-box; }
.cgev-single__in { max-width: 800px; }
.cgev-single :where(p, ul, h1, h2, figure) { margin: 0; padding: 0; }
.cgev-single ul { list-style: none; }
.cgev-single .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cgev-single :focus-visible { outline: 3px solid var(--cgev-blue); outline-offset: 3px; border-radius: 6px; }

.cgev-single__back { margin-bottom: 24px; font-weight: 700; }
.cgev-single__back a { color: var(--cgev-blue); text-underline-offset: 4px; }
.cgev-single__back a:hover { color: var(--cgev-ink); }

/* Type pills (same look as the calendar). */
.cgev-single__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cgev-pill {
	display: inline-block; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--cgev-ink);
	font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
}

.cgev-single__title {
	font-family: var(--cgev-sans);
	font-weight: 800;
	font-stretch: 62%;
	font-variation-settings: "wdth" 62;
	text-transform: uppercase;
	line-height: .9;
	letter-spacing: -.01em;
	font-size: clamp(2.75rem, 10vw, 5.5rem);
	margin-bottom: 32px;
	overflow-wrap: anywhere;
}

/* "Quando" / "Dove" boxes. */
.cgev-box {
	margin-bottom: 16px; padding: 20px 22px; border: 3px solid var(--cgev-ink); border-radius: 24px;
	background: var(--cgev-ice);
}
.cgev-box__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.cgev-box__main { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.cgev-date { font-family: var(--cgev-serif); font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.1; }
.cgev-time { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cgev-place { font-family: var(--cgev-serif); font-size: 1.6rem; line-height: 1.15; }
.cgev-box__rule { margin-top: 12px; color: var(--cgev-ink); }
.cgev-box__rule span { font-weight: 700; }
.cgev-box.is-cancelled .cgev-date, .cgev-box.is-cancelled .cgev-time { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Notices. */
.cgev-notice { margin-top: 14px; padding: 12px 16px; border-radius: 14px; border: 2px solid; font-size: 1rem; line-height: 1.4; }
.cgev-notice--cancelled { background: #fff; color: var(--cgev-red); border-color: var(--cgev-red); }
.cgev-notice--modified { background: #fff; color: var(--cgev-ink); border-color: var(--cgev-blue); }

.cgev-single__image { margin: 32px 0; }
.cgev-single__image img { display: block; width: 100%; height: auto; border-radius: 24px; }
.cgev-single__content { margin-top: 32px; font-size: 1.1rem; line-height: 1.7; }
.cgev-single__content > * + * { margin-top: 1.2em; }
.cgev-single__content a { color: var(--cgev-blue); text-underline-offset: 3px; }
.cgev-single__content img { max-width: 100%; height: auto; }

/* Buttons. */
.cgev-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
	border: 2px solid var(--cgev-ink); border-radius: 999px; background: #fff; color: var(--cgev-ink);
	font: 700 .875rem/1 var(--cgev-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background .25s var(--cgev-ease), color .25s var(--cgev-ease), transform .25s var(--cgev-ease);
}
.cgev-btn:hover { background: var(--cgev-ink); color: #fff; }
.cgev-btn:active { transform: scale(.97); }
.cgev-btn--primary { background: var(--cgev-blue); border-color: var(--cgev-blue); color: #fff; }
.cgev-btn--primary:hover { background: var(--cgev-ink); border-color: var(--cgev-ink); }
.cgev-single__more { margin-top: 32px; }
.cgev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cgev-actions:empty { display: none; }

/* Next dates. */
.cgev-next { margin-top: 48px; }
.cgev-next__list { border-top: 2px solid var(--cgev-ink); }
.cgev-next__item { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(16, 16, 16, .2); }
.cgev-next__item a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--cgev-ink); text-decoration-color: var(--cgev-blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cgev-next__item a:hover { color: var(--cgev-blue); }
.cgev-next__date { font-weight: 800; }
.cgev-next__time { font-variant-numeric: tabular-nums; }
.cgev-next__item.is-current a { font-weight: 800; }
.cgev-next__item.is-current { background: var(--cgev-ice); padding-inline: 10px; border-radius: 10px; }
.cgev-next__item.is-cancelled a { text-decoration: line-through; color: var(--cgev-muted); }
.cgev-next__note { color: var(--cgev-muted); font-size: .95rem; }
.cgev-tag {
	display: inline-block; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--cgev-blue);
	font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cgev-blue); background: #fff;
}
.cgev-tag--cancelled { background: var(--cgev-red); border-color: var(--cgev-red); color: #fff; }

@media (min-width: 768px) {
	.cgev-single { padding-block: 48px 128px; }
	.cgev-box { padding: 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.cgev-btn { transition: none; }
	.cgev-btn:active { transform: none; }
}
