/*!
 * Church Events - front-end styles.
 *
 * Scoped entirely under .ce-root so nothing leaks into the active theme.
 * Typography uses system font stacks: no webfont is fetched, so the plugin makes
 * no third-party request and leaks no visitor IP to a font CDN.
 */

.ce-root {
	/* Light palette. Every colour is defined here, unconditionally, so a theme or
	   browser that never matches the dark query still gets a complete set. */
	--ce-ink: #221d2e;
	--ce-ink-2: #574f68;
	--ce-ink-3: #6b6479;
	--ce-bg: #ffffff;
	--ce-surface: #fbf8f4;
	--ce-surface-2: #f3ede4;
	--ce-line: #e6ddd1;
	--ce-brand: #3b2a5c;
	--ce-brand-soft: #efeaf8;
	--ce-on-brand: #ffffff;
	--ce-accent: #9a6626;
	--ce-accent-soft: #f8efe0;
	--ce-shadow: 0 1px 2px rgba(34, 29, 46, 0.05), 0 14px 30px -18px rgba(34, 29, 46, 0.28);
	--ce-shadow-lift: 0 2px 4px rgba(34, 29, 46, 0.06), 0 22px 44px -20px rgba(34, 29, 46, 0.34);
	--ce-radius: 16px;
	--ce-radius-sm: 11px;
	--ce-serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;

	color: var(--ce-ink);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
	.ce-root {
		--ce-ink: #f2eee8;
		--ce-ink-2: #b8b0c4;
		--ce-ink-3: #948ca3;
		--ce-bg: #1a1722;
		--ce-surface: #221e2c;
		--ce-surface-2: #2b2637;
		--ce-line: #352f44;
		--ce-brand: #bda9f2;
		--ce-brand-soft: #2a2340;
		--ce-on-brand: #1a1722;
		--ce-accent: #e0b46a;
		--ce-accent-soft: #33291a;
		--ce-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -20px rgba(0, 0, 0, 0.8);
		--ce-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 26px 50px -22px rgba(0, 0, 0, 0.9);
	}
}

.ce-root *,
.ce-root *::before,
.ce-root *::after {
	box-sizing: border-box;
}

.ce-root img {
	max-width: 100%;
}

.ce-root a:focus-visible,
.ce-root button:focus-visible {
	outline: 2px solid var(--ce-brand);
	outline-offset: 3px;
}

.ce-root .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Toolbar */

.ce-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.ce-bar__title {
	margin: 0;
	font-family: var(--ce-serif);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--ce-ink);
}

.ce-switch {
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	background: var(--ce-surface);
	border: 1px solid var(--ce-line);
	border-radius: 999px;
}

.ce-switch__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ce-ink-2);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ce-switch__btn:hover {
	color: var(--ce-ink);
}

.ce-switch__btn.is-active {
	background: var(--ce-bg);
	color: var(--ce-brand);
	box-shadow: 0 1px 2px rgba(34, 29, 46, 0.08);
}

.ce-switch__btn .ce-icon {
	width: 1.05em;
	height: 1.05em;
}

/* ------------------------------------------------------------ Shared bits */

.ce-icon {
	flex: 0 0 auto;
	width: 1.05em;
	height: 1.05em;
}

.ce-eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--ce-accent);
}

.ce-meta {
	list-style: none;
	display: grid;
	gap: 0.4rem;
	margin: 0 0 0.9rem;
	padding: 0;
}

.ce-meta__item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--ce-ink-2);
}

.ce-meta__item .ce-icon {
	margin-top: 0.18em;
	color: var(--ce-accent);
}

/* ------------------------------------------------------------------ Cards */

.ce-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.5rem;
}

.ce-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ce-bg);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	box-shadow: var(--ce-shadow);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ce-card:hover {
	transform: translateY(-3px);
	border-color: var(--ce-accent-soft);
	box-shadow: var(--ce-shadow-lift);
}

.ce-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--ce-brand-soft), var(--ce-accent-soft));
	overflow: hidden;
}

.ce-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ce-card:hover .ce-card__media img {
	transform: scale(1.035);
}

/* Tall enough to clear the date badge, which sits 1rem from the bottom. The card
   clips overflow, so a strip shorter than badge height + offset shaves the top off
   the month label. */
.ce-card--plain .ce-card__media {
	aspect-ratio: auto;
	height: 6.75rem;
}

.ce-card__glyph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--ce-accent);
	opacity: 0.28;
}

.ce-card__glyph .ce-icon {
	width: 2.2rem;
	height: 2.2rem;
}

.ce-badge {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 3.35rem;
	padding: 0.4rem 0 0.5rem;
	background: var(--ce-bg);
	border-radius: var(--ce-radius-sm);
	box-shadow: 0 4px 14px -6px rgba(34, 29, 46, 0.45);
}

.ce-badge__mon {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ce-accent);
}

.ce-badge__day {
	font-family: var(--ce-serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.05;
	color: var(--ce-ink);
}

.ce-badge__wd {
	margin-top: 0.1rem;
	padding-top: 0.22rem;
	border-top: 1px solid var(--ce-line);
	width: 1.9rem;
	text-align: center;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ce-ink-3);
}

.ce-card__body {
	flex: 1 1 auto;
	padding: 1.25rem 1.25rem 0.35rem;
}

.ce-card__title {
	margin: 0 0 0.75rem;
	font-family: var(--ce-serif);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.24;
	letter-spacing: -0.01em;
}

.ce-card__title a {
	color: var(--ce-ink);
	text-decoration: none;
}

/* The title link is stretched across the whole card, so the card is one link
   rather than several duplicate ones pointing at the same place. */
.ce-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ce-card__text {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--ce-ink-2);
}

.ce-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding: 0.85rem 1.25rem 1rem;
	border-top: 1px solid var(--ce-line);
}

.ce-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ce-brand);
}

.ce-more .ce-icon {
	width: 1em;
	height: 1em;
	transition: transform 0.22s ease;
}

.ce-card:hover .ce-more .ce-icon {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------- Rows */

.ce-list {
	display: grid;
	gap: 1rem;
}

.ce-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.25rem;
	background: var(--ce-bg);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	box-shadow: var(--ce-shadow);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ce-row:hover {
	border-color: var(--ce-accent-soft);
	box-shadow: var(--ce-shadow-lift);
}

.ce-row__date {
	flex: 0 0 4.35rem;
	display: grid;
	place-items: center;
	align-content: center;
	padding: 0.7rem 0.3rem;
	background: var(--ce-surface);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius-sm);
}

.ce-row__wd {
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ce-ink-3);
}

.ce-row__day {
	font-family: var(--ce-serif);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.05;
}

.ce-row__mon {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ce-accent);
}

.ce-row__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ce-row__title {
	margin: 0 0 0.6rem;
	font-family: var(--ce-serif);
	font-size: 1.22rem;
	font-weight: 600;
	line-height: 1.25;
}

.ce-row__title a {
	color: var(--ce-ink);
	text-decoration: none;
}

.ce-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ce-row__text {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: var(--ce-ink-2);
}

.ce-row__media {
	flex: 0 0 clamp(6rem, 16%, 10rem);
}

.ce-row__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ce-radius-sm);
}

/* ------------------------------------------------------------------ Share */

.ce-share {
	position: relative;
	z-index: 2;
}

.ce-share__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-share__list li {
	margin: 0;
}

.ce-share__link {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	color: var(--ce-ink-3);
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ce-share__link .ce-icon {
	width: 0.95rem;
	height: 0.95rem;
}

.ce-share__link:hover {
	background: var(--ce-surface-2);
}

.ce-share__link--facebook:hover { color: #1877f2; }
.ce-share__link--x:hover        { color: var(--ce-ink); }
.ce-share__link--whatsapp:hover { color: #1da851; }
.ce-share__link--linkedin:hover { color: #0a66c2; }
.ce-share__link--mail:hover     { color: var(--ce-accent); }

.ce-share--full {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.ce-share__label {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--ce-ink-3);
}

.ce-share--full .ce-share__list {
	gap: 0.5rem;
}

.ce-share--full .ce-share__link {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--ce-line);
	background: var(--ce-bg);
}

.ce-share--full .ce-share__link .ce-icon {
	width: 1.05rem;
	height: 1.05rem;
}

/* --------------------------------------------------------------- Calendar */

.ce-cal {
	background: var(--ce-bg);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
	box-shadow: var(--ce-shadow);
	overflow: hidden;
}

.ce-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.2rem;
	background: linear-gradient(180deg, var(--ce-surface), var(--ce-bg));
	border-bottom: 1px solid var(--ce-line);
}

.ce-cal__title {
	margin: 0;
	font-family: var(--ce-serif);
	font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	text-align: center;
}

.ce-cal__nav {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	background: var(--ce-bg);
	border: 1px solid var(--ce-line);
	border-radius: 50%;
	color: var(--ce-ink-2);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ce-cal__nav:hover {
	color: var(--ce-brand);
	border-color: var(--ce-brand);
}

/* Many themes ship a "responsive table" rule such as
   `table, thead, tbody, tr, th, td { display: block }`, which turns a calendar grid
   into a single unreadable column. These declarations restore the table formatting
   context explicitly; !important is confined to the display property, where a theme
   override is fatal rather than merely cosmetic. */
.ce-root .ce-cal__grid {
	display: table !important;
	width: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-collapse: collapse !important;
	border-spacing: 0;
	table-layout: fixed;
	background: transparent;
	font-size: inherit;
	overflow: visible;
}

.ce-root .ce-cal__grid thead {
	display: table-header-group !important;
}

.ce-root .ce-cal__grid tbody {
	display: table-row-group !important;
}

.ce-root .ce-cal__grid tr {
	display: table-row !important;
	background: transparent;
	border: 0;
}

.ce-root .ce-cal__grid th,
.ce-root .ce-cal__grid td {
	display: table-cell !important;
	width: auto;
}

.ce-root .ce-cal__grid tr:nth-child(even),
.ce-root .ce-cal__grid tr:nth-child(odd) {
	background: transparent;
}

.ce-root .ce-cal__grid td::before {
	content: none !important;
}

.ce-root .ce-cal__grid th {
	padding: 0.7rem 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ce-ink-3);
	background: var(--ce-surface);
	border: 0;
	border-bottom: 1px solid var(--ce-line);
}

.ce-cal__grid th abbr[title] {
	text-decoration: none;
	border: 0;
	cursor: help;
}

.ce-root .ce-cal__cell {
	position: relative;
	background: var(--ce-bg);
	height: 7.25rem;
	padding: 0.4rem;
	vertical-align: top;
	border: 0;
	border-right: 1px solid var(--ce-line);
	border-bottom: 1px solid var(--ce-line);
}

.ce-cal__cell:last-child {
	border-right: 0;
}

.ce-cal__grid tbody tr:last-child .ce-cal__cell {
	border-bottom: 0;
}

.ce-root .ce-cal__cell.is-outside {
	background: var(--ce-surface);
}

.ce-cal__cell.is-outside .ce-cal__num {
	opacity: 0.4;
}

.ce-cal__num {
	display: inline-grid;
	place-items: center;
	min-width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ce-ink-2);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ce-cal__daylink {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

.ce-cal__daylink:hover .ce-cal__num {
	background: var(--ce-accent-soft);
	color: var(--ce-accent);
}

.ce-cal__cell.is-today .ce-cal__num,
.ce-cal__cell.is-today .ce-cal__daylink:hover .ce-cal__num {
	background: var(--ce-brand);
	color: var(--ce-on-brand);
}

.ce-cal__events {
	display: grid;
	gap: 3px;
	margin: 0.3rem 0 0;
	padding: 0;
	list-style: none;
}

.ce-cal__events li {
	margin: 0;
}

.ce-pill {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	padding: 0.22rem 0.42rem;
	background: var(--ce-brand-soft);
	border-left: 3px solid var(--ce-brand);
	border-radius: 7px;
	font-size: 0.72rem;
	line-height: 1.3;
	color: var(--ce-ink);
	text-decoration: none;
	overflow: hidden;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.ce-pill__time {
	flex: 0 0 auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ce-brand);
}

.ce-pill__txt {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ce-pill:hover {
	background: var(--ce-brand);
	color: var(--ce-on-brand);
}

.ce-pill:hover .ce-pill__time {
	color: var(--ce-on-brand);
}

.ce-cal__overflow {
	display: inline-block;
	padding: 0.1rem 0.4rem;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--ce-accent);
	text-decoration: none;
}

.ce-cal__overflow:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------- Day panel */

.ce-day {
	margin-top: 1.5rem;
	padding: 1.35rem;
	background: var(--ce-surface);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
}

.ce-day:focus {
	outline: none;
}

.ce-day__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.ce-day__title {
	margin: 0;
	font-family: var(--ce-serif);
	font-size: 1.2rem;
	font-weight: 600;
}

.ce-day__close {
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ce-ink-2);
	text-decoration: none;
}

.ce-day__close:hover {
	color: var(--ce-brand);
}

.ce-day__list {
	display: grid;
	gap: 0.85rem;
}

.ce-day__empty {
	margin: 0;
	color: var(--ce-ink-2);
}

/* ---------------------------------------------------------- Pager & empty */

.ce-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.ce-pager__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1.05rem;
	background: var(--ce-bg);
	border: 1px solid var(--ce-line);
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--ce-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ce-pager__link:hover {
	border-color: var(--ce-brand);
	color: var(--ce-brand);
}

.ce-pager__link.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.ce-pager__status {
	font-size: 0.82rem;
	color: var(--ce-ink-3);
	font-variant-numeric: tabular-nums;
}

.ce-empty {
	display: grid;
	place-items: center;
	gap: 0.7rem;
	padding: 3.5rem 1.5rem;
	text-align: center;
	background: var(--ce-surface);
	border: 1px dashed var(--ce-line);
	border-radius: var(--ce-radius);
	color: var(--ce-ink-2);
}

.ce-empty p {
	margin: 0;
	max-width: 28rem;
}

.ce-empty__icon {
	width: 2.2rem;
	height: 2.2rem;
	color: var(--ce-accent);
	opacity: 0.55;
}

/* ------------------------------------------------------------ Single event */

.ce-single {
	margin: 0 0 2rem;
}

.ce-single--after {
	margin: 2.5rem 0 0;
}

.ce-hero {
	margin: 0 0 1.5rem;
	border-radius: var(--ce-radius);
	overflow: hidden;
	box-shadow: var(--ce-shadow);
}

.ce-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 26rem;
	object-fit: cover;
}

.ce-panel {
	display: grid;
	gap: 1.4rem;
	padding: 1.5rem;
	background: var(--ce-surface);
	border: 1px solid var(--ce-line);
	border-radius: var(--ce-radius);
}

.ce-panel__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1.2rem;
}

.ce-fact {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.ce-fact__icon {
	width: 1.3rem;
	height: 1.3rem;
	margin-top: 0.1rem;
	color: var(--ce-accent);
}

.ce-fact__label {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ce-ink-3);
}

.ce-fact__value {
	font-size: 0.95rem;
	color: var(--ce-ink);
}

.ce-fact__lines {
	display: grid;
}

.ce-fact__line--lead {
	font-weight: 600;
}

.ce-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.4rem;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--ce-brand);
	text-decoration: none;
}

.ce-link:hover {
	text-decoration: underline;
}

.ce-panel__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding-top: 1.3rem;
	border-top: 1px solid var(--ce-line);
}

.ce-panel__actions:empty {
	display: none;
}

.ce-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.68rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ce-btn .ce-icon {
	width: 1em;
	height: 1em;
}

.ce-btn--primary {
	background: var(--ce-brand);
	color: var(--ce-on-brand);
	box-shadow: 0 8px 18px -10px var(--ce-brand);
}

.ce-btn--primary:hover {
	transform: translateY(-1px);
}

.ce-btn--ghost {
	background: var(--ce-bg);
	border-color: var(--ce-line);
	color: var(--ce-ink);
}

.ce-btn--ghost:hover {
	border-color: var(--ce-brand);
	color: var(--ce-brand);
}

.ce-addcal {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ce-addcal__label {
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ce-ink-3);
}

.ce-dates {
	margin: 0 0 1.75rem;
}

.ce-dates__title {
	margin: 0 0 0.85rem;
	font-family: var(--ce-serif);
	font-size: 1.2rem;
	font-weight: 600;
}

.ce-dates__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-dates__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 0.7rem 0.95rem;
	border-radius: var(--ce-radius-sm);
	font-size: 0.9rem;
}

.ce-dates__item:nth-child(odd) {
	background: var(--ce-surface);
}

.ce-dates__time {
	flex: 0 0 auto;
	color: var(--ce-ink-3);
	font-variant-numeric: tabular-nums;
}

.ce-sharebar {
	padding-top: 1.25rem;
	border-top: 1px solid var(--ce-line);
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 782px) {
	.ce-row__media {
		display: none;
	}
}

@media (max-width: 720px) {
	.ce-cal__cell {
		height: auto;
		min-height: 4rem;
		padding: 0.3rem 0.15rem;
		text-align: center;
	}

	.ce-cal__num {
		min-width: 1.7rem;
		height: 1.7rem;
		font-size: 0.78rem;
	}

	/* The whole cell becomes the tap target; individual pills are too small to
	   hit reliably at this width, so the day panel takes over. */
	.ce-cal__daylink::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 2;
	}

	.ce-cal__events {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 3px;
		margin-top: 0.2rem;
	}

	/* Zero font-size hides the label visually while leaving it in the
	   accessibility tree, unlike display:none. */
	.ce-pill {
		width: 6px;
		height: 6px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--ce-brand);
		font-size: 0;
		line-height: 0;
	}

	.ce-cal__overflow {
		display: none;
	}

	.ce-cal__head {
		padding: 0.85rem 0.9rem;
	}

	.ce-day {
		padding: 1.1rem;
	}
}

@media (max-width: 560px) {
	.ce-grid {
		gap: 1.15rem;
	}

	.ce-row {
		padding: 1rem;
		gap: 0.9rem;
	}

	.ce-row__date {
		flex-basis: 3.6rem;
	}

	.ce-row__day {
		font-size: 1.5rem;
	}

	.ce-pager {
		gap: 0.6rem;
	}

	.ce-panel {
		padding: 1.15rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-root *,
	.ce-root *::before,
	.ce-root *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.ce-card:hover {
		transform: none;
	}

	.ce-card:hover .ce-card__media img {
		transform: none;
	}
}

@media print {
	.ce-share,
	.ce-switch,
	.ce-pager,
	.ce-cal__nav,
	.ce-panel__actions {
		display: none !important;
	}

	.ce-card,
	.ce-row,
	.ce-cal,
	.ce-panel {
		box-shadow: none;
		border-color: #ccc;
		break-inside: avoid;
	}
}
