/* WP EventFlow – frontend */

.sfc-calendar {
	--sfc-cols: 5;
	--sfc-cols-tablet: 3;
	--sfc-cols-mobile: 1;
	--sfc-gap: 32px;
	--sfc-img-h: 160px;
	--sfc-radius: 24px;
	--sfc-c: var(--sfc-cols);
	--sfc-ink: #111;
	--sfc-muted: #5f6368;
	--sfc-line: #dadce0;
	--sfc-primary: #4f38e0;
	--sfc-on-primary: #fff;
	--sfc-btn-r: 999px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	color: var(--sfc-ink);
	font-size: 16px;
	line-height: 1.4;
}
.sfc-calendar *,
.sfc-calendar *::before,
.sfc-calendar *::after,
.sfc-modal-overlay,
.sfc-modal-overlay * {
	box-sizing: border-box;
}
.sfc-modal-overlay, .sfc-single-meta { --sfc-primary: #4f38e0; --sfc-on-primary: #fff; --sfc-btn-r: 999px; }
.sfc-bt-rounded { --sfc-btn-r: 12px; }
.sfc-bt-square { --sfc-btn-r: 0px; }
@media (max-width: 1024px) {
	.sfc-calendar { --sfc-c: var(--sfc-cols-tablet); --sfc-gap-r: min(var(--sfc-gap), 24px); }
}
@media (max-width: 640px) {
	.sfc-calendar { --sfc-c: var(--sfc-cols-mobile); --sfc-gap: 16px; }
}

/* Header */
.sfc-header { margin-bottom: 20px; }
.sfc-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--sfc-ink);
}
.sfc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sfc-toolbar[hidden] { display: none; }

.sfc-filter { position: relative; }
.sfc-filter-btn,
.sfc-today-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px 6px 16px;
	border: 1px solid #c4c7cc;
	border-radius: 6px;
	background: #fff;
	color: var(--sfc-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.sfc-filter-btn:hover, .sfc-today-btn:hover { border-color: #888; }
.sfc-filter-btn.is-active { border-color: var(--sfc-primary); color: var(--sfc-primary); background: color-mix(in srgb, var(--sfc-primary) 8%, #fff); }
.sfc-filter-btn .sfc-icon { width: 16px; height: 16px; }
.sfc-filter-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	min-width: 250px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--sfc-line);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.sfc-filter-menu[hidden] { display: none; }
.sfc-filter-menu { max-height: 360px; overflow-y: auto; }
.sfc-filter-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}
.sfc-filter-opt:hover { background: #f3f4f6; }
.sfc-filter-all { border-bottom: 1px solid #eee; border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.sfc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.sfc-icon { display: inline-flex; width: 1em; height: 1em; flex: none; }
.sfc-icon svg { width: 100%; height: 100%; }

/* Grid / list / masonry containers */
.sfc-items {
	display: grid;
	grid-template-columns: repeat(var(--sfc-c), minmax(0, 1fr));
	gap: var(--sfc-gap);
}
.sfc-items + .sfc-group-title { margin-top: calc(var(--sfc-gap) + 8px); }
.sfc-group-title {
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sfc-primary);
	font-size: 20px;
	font-weight: 800;
}
.sfc-items--list { grid-template-columns: minmax(0, 1fr); }
.sfc-items--masonry {
	display: block;
	column-count: var(--sfc-c);
	column-gap: var(--sfc-gap);
}
.sfc-items--masonry .sfc-card {
	break-inside: avoid;
	margin-bottom: var(--sfc-gap);
	display: inline-flex;
	width: 100%;
}
.sfc-items--masonry .sfc-card-desc { -webkit-line-clamp: unset; display: block; }

/* Card */
.sfc-card {
	--sfc-color: #4f38e0;
	--sfc-text: #fff;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--sfc-radius);
	background: var(--sfc-color);
	color: var(--sfc-text);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.sfc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.sfc-card-media {
	position: relative;
	flex: none;
	height: var(--sfc-img-h);
	background: rgba(0, 0, 0, .25);
	overflow: hidden;
}
.sfc-card-media.no-image { background: color-mix(in srgb, var(--sfc-color) 70%, #000); }
.sfc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.sfc-card:hover .sfc-card-media img { transform: scale(1.04); }

.sfc-date {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 76px;
	padding: 12px 12px 10px;
	background: #f2f2f2;
	color: #1d1d1f;
	border-bottom-right-radius: var(--sfc-radius);
	line-height: 1;
}
.sfc-date-m { font-size: 13px; letter-spacing: .02em; }
.sfc-date-d { margin-top: 4px; font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.sfc-date.is-range .sfc-date-d { font-size: 30px; white-space: nowrap; }
.sfc-date.is-split { flex-direction: row; align-items: center; gap: 8px; padding-left: 14px; padding-right: 14px; }
.sfc-date-part { display: flex; flex-direction: column; align-items: center; }
.sfc-date.is-split .sfc-date-d { font-size: 28px; }
.sfc-date-sep { font-size: 20px; font-weight: 700; padding-top: 14px; }

.sfc-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #ffd43b;
	color: #1d1d1f;
	font-size: 12px;
	font-weight: 700;
}
.sfc-badge .sfc-icon { width: 13px; height: 13px; }

.sfc-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 32px 32px 30px;
	min-width: 0;
}
.sfc-card-type {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .01em;
	opacity: .85;
}
.sfc-card-title {
	margin: 6px 0 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	color: inherit;
	overflow-wrap: anywhere;
}
.sfc-card-title a { color: inherit; text-decoration: none; }
.sfc-card-title a:hover, .sfc-card-title a:focus-visible { text-decoration: underline; }
.sfc-card-tags { margin-top: 4px; font-size: 14px; opacity: .72; }

.sfc-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	padding: 6px 14px 6px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .1);
	background: color-mix(in srgb, var(--sfc-text) 12%, transparent);
	font-size: 14px;
}
.sfc-chip .sfc-icon { width: 14px; height: 14px; }

.sfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 22px;
	border-radius: var(--sfc-btn-r);
	background: var(--sfc-primary);
	color: var(--sfc-on-primary) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.sfc-btn:hover { background: var(--sfc-primary); filter: brightness(.9); }
.sfc-card-btn { align-self: stretch; margin-top: 16px; }

.sfc-card-desc {
	display: -webkit-box;
	margin: 20px 0 0;
	font-size: 13.5px;
	line-height: 1.3;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sfc-chip + .sfc-card-desc, .sfc-card-btn + .sfc-card-desc { -webkit-line-clamp: 3; }
.sfc-more {
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
}
.sfc-more:hover { text-decoration: underline; }

/* List card */
.sfc-card--list { flex-direction: row; }
.sfc-card--list .sfc-card-media { width: 34%; max-width: 380px; height: auto; min-height: var(--sfc-img-h); }
.sfc-card--list .sfc-card-desc { -webkit-line-clamp: 3; }
.sfc-card--list .sfc-card-btn { align-self: flex-start; min-width: 200px; }
@media (max-width: 640px) {
	.sfc-card--list { flex-direction: column; }
	.sfc-card--list .sfc-card-media { width: 100%; max-width: none; height: var(--sfc-img-h); }
}

/* Pagination */
.sfc-pagination:empty { display: none; }
.sfc-pagination { margin-top: calc(var(--sfc-gap) + 4px); display: flex; justify-content: center; }
.sfc-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.sfc-page {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-btn-r);
	background: #fff;
	color: var(--sfc-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.sfc-page:hover:not(:disabled) { border-color: var(--sfc-primary); color: var(--sfc-primary); }
.sfc-page.is-current:hover { color: var(--sfc-on-primary) !important; }
.sfc-page.is-current { background: var(--sfc-primary); border-color: var(--sfc-primary); color: var(--sfc-on-primary); }
.sfc-page:disabled { opacity: .35; cursor: default; }
.sfc-page-arrow .sfc-icon { width: 16px; height: 16px; }
.sfc-page-gap { padding: 0 4px; color: var(--sfc-muted); }
.sfc-load-more {
	min-height: 44px;
	padding: 10px 32px;
	border: 0;
	border-radius: var(--sfc-btn-r);
	background: var(--sfc-primary);
	color: var(--sfc-on-primary);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Carousel */
.sfc-carousel { position: relative; }
.sfc-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--sfc-c) - 1) * var(--sfc-gap)) / var(--sfc-c));
	gap: var(--sfc-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 0 8px;
}
.sfc-track::-webkit-scrollbar { display: none; }
.sfc-slide { scroll-snap-align: start; display: flex; }
.sfc-slide .sfc-card { width: 100%; }
.sfc-arrow {
	position: absolute;
	top: calc(var(--sfc-img-h) / 2);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	cursor: pointer;
}
.sfc-arrow .sfc-icon { width: 20px; height: 20px; }
.sfc-arrow:disabled { opacity: 0; pointer-events: none; }
.sfc-arrow-prev { left: -14px; }
.sfc-arrow-next { right: -14px; }
@media (max-width: 640px) {
	.sfc-arrow-prev { left: 6px; }
	.sfc-arrow-next { right: 6px; }
}

/* Slider */
.sfc-slider { position: relative; }
.sfc-slider .sfc-arrow { top: 50%; }
.sfc-slider-viewport { overflow: hidden; border-radius: var(--sfc-radius); }
.sfc-slider-track { display: flex; transition: transform .45s ease; }
.sfc-slider-slide { flex: 0 0 100%; min-width: 0; display: flex; }
.sfc-card--slide { flex-direction: row; width: 100%; min-height: 380px; }
.sfc-card--slide:hover { transform: none; box-shadow: none; }
.sfc-card--slide .sfc-card-media { flex: 0 0 55%; height: auto; }
.sfc-card--slide .sfc-card-body { justify-content: center; padding: 44px; }
.sfc-card--slide .sfc-card-title { font-size: 28px; }
.sfc-card--slide .sfc-card-desc { -webkit-line-clamp: 5; font-size: 15px; }
.sfc-card--slide .sfc-card-btn { align-self: flex-start; min-width: 220px; }
@media (max-width: 760px) {
	.sfc-card--slide { flex-direction: column; min-height: 0; }
	.sfc-card--slide .sfc-card-media { flex: none; height: 220px; }
	.sfc-card--slide .sfc-card-body { padding: 28px; }
	.sfc-card--slide .sfc-card-title { font-size: 22px; }
	.sfc-slider .sfc-arrow { top: 110px; }
}
.sfc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.sfc-dot-btn {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9cbd0;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}
.sfc-dot-btn.is-current { width: 26px; background: var(--sfc-primary); }

/* Month / week / day navigation */
.sfc-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sfc-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #c4c7cc;
	border-radius: 50%;
	background: #fff;
	color: var(--sfc-ink);
	cursor: pointer;
}
.sfc-nav-btn .sfc-icon { width: 16px; height: 16px; }
.sfc-nav-label { margin-left: 8px; font-size: 18px; font-weight: 800; }
@media (max-width: 640px) {
	.sfc-nav { margin-left: 0; width: 100%; }
	.sfc-nav-label { font-size: 16px; }
}

/* Month */
.sfc-month {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--sfc-line);
	border-left: 1px solid var(--sfc-line);
	border-radius: 12px;
	overflow: hidden;
}
.sfc-month-head {
	padding: 10px 8px;
	border-right: 1px solid var(--sfc-line);
	border-bottom: 1px solid var(--sfc-line);
	background: #f6f7f9;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}
.sfc-month-cell {
	min-height: 118px;
	padding: 6px;
	border-right: 1px solid var(--sfc-line);
	border-bottom: 1px solid var(--sfc-line);
	background: #fff;
	min-width: 0;
}
.sfc-month-cell.is-other { background: #fafafa; }
.sfc-month-cell.is-other .sfc-month-num { opacity: .4; }
.sfc-month-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}
.sfc-month-cell.is-today .sfc-month-num { background: var(--sfc-primary); color: var(--sfc-on-primary); }
.sfc-month-events { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.sfc-month-cell:not(.is-expanded) .sfc-cal-event.is-extra { display: none; }
.sfc-month-more {
	padding: 2px 4px;
	border: 0;
	background: none;
	color: var(--sfc-muted);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.sfc-cal-event {
	display: flex;
	gap: 5px;
	width: 100%;
	padding: 4px 7px;
	border: 0;
	border-radius: 6px;
	background: var(--sfc-color);
	color: var(--sfc-text);
	font: inherit;
	font-size: 12.5px;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	min-width: 0;
}
.sfc-cal-event:hover { filter: brightness(1.08); }
.sfc-cal-time { flex: none; opacity: .85; }
.sfc-cal-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sfc-agenda { display: none; }
@media (max-width: 640px) {
	.sfc-month-cell { min-height: 54px; padding: 4px 2px; text-align: center; }
	.sfc-month-head { padding: 8px 2px; font-size: 11px; }
	.sfc-month-events { display: none; }
	.sfc-month-cell.has-events .sfc-month-num { box-shadow: inset 0 -3px 0 var(--sfc-primary); }
	.sfc-agenda { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
}
.sfc-agenda-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 1px solid var(--sfc-line);
	border-left: 5px solid var(--sfc-color);
	border-radius: 10px;
	background: #fff;
	color: var(--sfc-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sfc-agenda-date { display: flex; flex-direction: column; align-items: center; min-width: 36px; line-height: 1.1; }
.sfc-agenda-date b { font-size: 20px; }
.sfc-agenda-date small, .sfc-agenda-main small { color: var(--sfc-muted); font-size: 12px; }
.sfc-agenda-main { display: flex; flex-direction: column; min-width: 0; }
.sfc-agenda-title { font-weight: 700; }

/* Week */
.sfc-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}
.sfc-week-day {
	min-height: 220px;
	padding: 8px;
	border: 1px solid var(--sfc-line);
	border-radius: 12px;
	background: #fff;
	min-width: 0;
}
.sfc-week-day.is-today { border-color: var(--sfc-primary); box-shadow: inset 0 0 0 1px var(--sfc-primary); }
.sfc-week-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; color: var(--sfc-muted); }
.sfc-week-head b { font-size: 22px; color: var(--sfc-ink); }
.sfc-week-events { display: flex; flex-direction: column; gap: 6px; }
.sfc-week .sfc-cal-event { flex-direction: column; gap: 1px; }
.sfc-week .sfc-cal-title { white-space: normal; }
.sfc-week-none { color: #bbb; text-align: center; }
@media (max-width: 900px) {
	.sfc-week { grid-template-columns: minmax(0, 1fr); }
	.sfc-week-day { min-height: 0; display: flex; gap: 12px; align-items: flex-start; }
	.sfc-week-head { margin: 0; min-width: 44px; }
	.sfc-week-events { flex: 1; }
	.sfc-week-none { text-align: left; }
}

.sfc-empty { padding: 40px 0; text-align: center; color: var(--sfc-muted); }

/* ---------------- Popup ---------------- */
html.sfc-modal-open, html.sfc-modal-open body { overflow: hidden; }
.sfc-modal-overlay {
	--pop-bg: #fff;
	--pop-ink: #15171c;
	--pop-muted: #5c6370;
	--pop-line: #e7e9ee;
	--pop-card: #f4f5f8;
	--pop-close: #fff;
	--pop-close-ink: #15171c;
	--pop-accent: var(--sfc-primary);
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	background: rgba(10, 12, 18, .6);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	overflow-y: auto;
	animation: sfc-fade .18s ease;
	font-size: 16px;
	line-height: 1.5;
}
.sfc-modal-overlay.sfc-pt-dark {
	--pop-bg: #15171c;
	--pop-ink: #f3f4f7;
	--pop-muted: #a3a9b6;
	--pop-line: #2a2e37;
	--pop-card: #1e2128;
	--pop-close: #2a2e37;
	--pop-close-ink: #fff;
	--pop-accent: color-mix(in srgb, var(--sfc-primary) 55%, #fff);
}
@keyframes sfc-fade { from { opacity: 0; } to { opacity: 1; } }
.sfc-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	background: var(--pop-bg);
	color: var(--pop-ink);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	animation: sfc-rise .24s ease;
}
@keyframes sfc-rise { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.sfc-modal-overlay button { text-transform: none; letter-spacing: normal; }
.sfc-calendar [hidden], .sfc-modal-overlay [hidden] { display: none !important; }

.sfc-modal .sfc-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--pop-close) !important;
	color: var(--pop-close-ink) !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
	line-height: 1;
	cursor: pointer;
	transition: transform .15s ease;
}
.sfc-modal .sfc-modal-close:hover { transform: scale(1.08); }
.sfc-modal .sfc-modal-close:focus-visible,
.sfc-modal .sfc-btn:focus-visible,
.sfc-modal .sfc-share-btn:focus-visible,
.sfc-modal .sfc-link-btn:focus-visible { outline: 3px solid var(--pop-accent); outline-offset: 2px; }
.sfc-modal-close .sfc-icon { width: 18px; height: 18px; }

/* Order: cover, head, body, map, foot */
.sfc-modal-cover { order: 1; }
.sfc-modal-head { order: 2; }
.sfc-modal .sfc-modal-body { order: 3; }
.sfc-modal .sfc-map { order: 4; }
.sfc-modal .sfc-modal-foot { order: 5; }
.sfc-modal-cover img { display: block; width: 100%; max-height: min(46vh, 420px); object-fit: cover; }

.sfc-modal-head { padding: 30px 44px 6px; text-align: left; }
.sfc-modal.no-cover .sfc-modal-head { padding-top: 64px; }
.sfc-modal-type {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--sfc-color);
	color: var(--sfc-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: none;
}
.sfc-modal-title {
	margin: 14px 0 0;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.015em;
	color: var(--pop-ink);
}
.sfc-modal-head .sfc-modal-actions { justify-content: flex-start; margin-top: 22px; }
.sfc-modal-head .sfc-btn { min-width: 0; padding: 10px 26px; }

.sfc-modal .sfc-modal-body { padding: 22px 44px 8px; }
.sfc-modal-tags { margin: 0 0 14px; color: var(--pop-muted); font-size: 14px; }
.sfc-desc-wrap { position: relative; max-height: 6.4em; overflow: hidden; }
.sfc-desc-wrap::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.6em;
	background: linear-gradient(to bottom, transparent, var(--pop-bg));
}
.sfc-desc-wrap.is-open { max-height: none; }
.sfc-desc-wrap.is-open::after { display: none; }
.sfc-modal-desc { font-size: 16px; line-height: 1.65; }
.sfc-modal-desc > :first-child { margin-top: 0; }
.sfc-modal-desc > :last-child { margin-bottom: 0; }
.sfc-modal-desc img { max-width: 100%; height: auto; border-radius: 12px; }
.sfc-modal-desc a { color: var(--pop-accent); }
.sfc-link-btn {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pop-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.sfc-link-btn:hover { text-decoration: underline; }
.sfc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* When / Where cards */
.sfc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.sfc-info > .sfc-info-col { min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--pop-card); }
.sfc-info > .sfc-info-col:only-child { grid-column: 1 / -1; }
.sfc-info h4, .sfc-share h4, .sfc-gallery-section h4, .sfc-files-section h4, .sfc-host-info h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	color: var(--pop-ink);
}
.sfc-info h4 .sfc-icon, .sfc-share h4 .sfc-icon, .sfc-host-info h4 .sfc-icon {
	box-sizing: content-box;
	--sfc-clock: var(--pop-card);
	width: 15px;
	height: 15px;
	padding: 7px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--pop-accent) 16%, transparent);
	color: var(--pop-accent);
}
.sfc-info p { margin: 0 0 4px; font-size: 15px; }
.sfc-info .sfc-strong { font-weight: 700; }
.sfc-address { white-space: pre-line; color: var(--pop-muted); }
.sfc-venue-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sfc-addcal { position: relative; margin-top: 6px; }
.sfc-addcal summary { display: inline-block; list-style: none; color: var(--pop-accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.sfc-addcal summary::-webkit-details-marker { display: none; }
.sfc-addcal summary:hover { text-decoration: underline; }
.sfc-addcal-menu {
	position: absolute;
	z-index: 5;
	top: calc(100% + 8px);
	left: 0;
	display: flex;
	flex-direction: column;
	min-width: 230px;
	padding: 6px;
	background: var(--pop-bg);
	border: 1px solid var(--pop-line);
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}
.sfc-addcal-menu a, .sfc-addcal-menu button {
	padding: 10px 12px;
	border: 0;
	border-radius: 9px;
	background: none;
	color: var(--pop-ink);
	font: inherit;
	font-size: 14px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.sfc-addcal-menu a:hover, .sfc-addcal-menu button:hover { background: var(--pop-card); }

.sfc-video { position: relative; margin-top: 26px; padding-top: 56.25%; border-radius: 18px; overflow: hidden; background: #000; }
.sfc-video iframe, .sfc-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sfc-gallery-section, .sfc-files-section { margin-top: 26px; }
.sfc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sfc-gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.sfc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sfc-gallery-item:hover img { transform: scale(1.05); }
.sfc-files { margin: 0; padding: 0; list-style: none; }
.sfc-files li { margin: 0 0 6px; }
.sfc-files a { display: inline-flex; align-items: center; gap: 8px; color: var(--pop-ink); font-size: 15px; }
.sfc-files .sfc-icon { width: 18px; height: 18px; color: var(--pop-accent); }
.sfc-file-size { color: var(--pop-muted); }

.sfc-modal .sfc-map { height: 300px; margin: 22px 44px 0; border-radius: 18px; overflow: hidden; background: var(--pop-card); }
.sfc-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.sfc-modal .sfc-modal-foot { padding: 22px 44px 40px; }
.sfc-host {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--pop-line);
	border-radius: 18px;
}
.sfc-host-info { min-width: 0; }
.sfc-host-name { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.sfc-host-info a { display: block; margin-bottom: 2px; color: var(--pop-accent); font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.sfc-host-info a:hover { text-decoration: underline; }
.sfc-host-logo { flex: 0 0 auto; max-width: 160px; }
.sfc-host-logo img { display: block; max-width: 100%; max-height: 90px; object-fit: contain; }
.sfc-share { margin-top: 0; padding-top: 0; border-top: 0; }
.sfc-host + .sfc-share { margin-top: 24px; }
.sfc-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.sfc-modal .sfc-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px !important;
	border: 1px solid var(--pop-line);
	border-radius: var(--sfc-btn-r) !important;
	background: var(--pop-card);
	color: var(--pop-ink) !important;
	font: inherit;
	font-size: 15px !important;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.sfc-modal .sfc-share-btn:hover { border-color: var(--pop-accent); background: var(--pop-bg); }
.sfc-share-btn .sfc-icon { width: 16px; height: 16px; color: var(--pop-accent); }

@media (max-width: 640px) {
	.sfc-modal-overlay { padding: 0; }
	.sfc-modal { border-radius: 0; min-height: 100%; }
	.sfc-modal-head { padding: 24px 22px 4px; }
	.sfc-modal.no-cover .sfc-modal-head { padding-top: 60px; }
	.sfc-modal .sfc-modal-body { padding: 18px 22px 6px; }
	.sfc-modal .sfc-modal-foot { padding: 18px 22px 32px; }
	.sfc-modal .sfc-map { height: 240px; margin: 18px 22px 0; }
	.sfc-info { grid-template-columns: 1fr; }
	.sfc-share-row { grid-template-columns: 1fr; }
	.sfc-host { flex-direction: column; align-items: flex-start; }
}

/* Single event page */
.sfc-single-meta { margin: 0 0 1.5em; padding: 1.1em 1.4em; border-radius: 14px; border-left: 5px solid var(--sfc-primary); background: color-mix(in srgb, var(--sfc-primary) 7%, #fff); }
.sfc-single-meta p { margin: 0 0 .5em; }
.sfc-single-meta .sfc-btn { margin: .25em .25em 0 0; }

@media (prefers-reduced-motion: reduce) {
	.sfc-card, .sfc-card-media img, .sfc-slider-track, .sfc-modal-overlay, .sfc-modal { transition: none; animation: none; }
}

/* ================= WP EventFlow design layer (v1.1) ================= */

/* Toolbar polish */
.sfc-filter-btn, .sfc-today-btn { border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s ease, box-shadow .15s ease; }
.sfc-filter-btn:hover, .sfc-today-btn:hover { border-color: var(--sfc-primary); }
.sfc-filter-opt input { accent-color: var(--sfc-primary); }
.sfc-filter-menu { border-radius: 14px; box-shadow: 0 16px 40px rgba(16, 24, 40, .16); }
.sfc-nav-btn { transition: border-color .15s ease, color .15s ease; }
.sfc-nav-btn:hover { border-color: var(--sfc-primary); color: var(--sfc-primary); }
.sfc-month-head { background: color-mix(in srgb, var(--sfc-primary) 7%, #fff); }
.sfc-month-cell.is-today { background: color-mix(in srgb, var(--sfc-primary) 6%, #fff); }
.sfc-calendar button:focus-visible, .sfc-calendar a:focus-visible { outline: 3px solid color-mix(in srgb, var(--sfc-primary) 55%, transparent); outline-offset: 2px; }

/* Card shadow */
.sfc-sh-soft .sfc-card { box-shadow: 0 6px 20px rgba(16, 24, 40, .09); }
.sfc-sh-strong .sfc-card { box-shadow: 0 16px 38px rgba(16, 24, 40, .22); }
.sfc-sh-soft .sfc-card:hover { box-shadow: 0 14px 30px rgba(16, 24, 40, .16); }
.sfc-sh-strong .sfc-card:hover { box-shadow: 0 22px 46px rgba(16, 24, 40, .3); }
.sfc-card--slide:hover { box-shadow: none; }

/* Date badge: floating tile */
.sfc-ds-float .sfc-date {
	top: 12px;
	left: 12px;
	min-width: 62px;
	padding: 9px 10px 8px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.sfc-ds-float .sfc-date-m { color: var(--sfc-primary); font-weight: 700; }
.sfc-ds-float .sfc-date-d { font-size: 30px; }
.sfc-ds-float .sfc-date.is-range .sfc-date-d { font-size: 22px; }
.sfc-ds-float .sfc-date.is-split .sfc-date-d { font-size: 22px; }
.sfc-ds-float .sfc-date.is-split { padding-left: 12px; padding-right: 12px; }
.sfc-ds-float .sfc-badge { top: 12px; right: 12px; }

/* Button on solid / overlay cards: inverted so it never disappears into the card color */
.sfc-cs-solid .sfc-card .sfc-card-btn,
.sfc-cs-overlay .sfc-card .sfc-card-btn {
	background: var(--sfc-text);
	color: var(--sfc-color) !important;
}
.sfc-cs-solid .sfc-card .sfc-card-btn:hover,
.sfc-cs-overlay .sfc-card .sfc-card-btn:hover { background: var(--sfc-text); filter: brightness(.92); }
.sfc-cs-overlay .sfc-card .sfc-card-btn { color: #111 !important; background: #fff; }

/* ---- Card style: clean / soft / outline (light cards, colored accents) ---- */
.sfc-cs-clean .sfc-card,
.sfc-cs-soft .sfc-card,
.sfc-cs-outline .sfc-card {
	--sfc-text: #1d1d1f !important;
	background: #fff;
	color: #1d1d1f;
}
.sfc-cs-clean .sfc-card { border: 1px solid var(--sfc-line); border-bottom: 4px solid var(--sfc-color); }
.sfc-cs-soft .sfc-card { background: color-mix(in srgb, var(--sfc-color) 11%, #fff); }
.sfc-cs-outline .sfc-card { border: 2px solid var(--sfc-color); }
.sfc-cs-clean .sfc-card-media.no-image,
.sfc-cs-soft .sfc-card-media.no-image,
.sfc-cs-outline .sfc-card-media.no-image { background: color-mix(in srgb, var(--sfc-color) 24%, #fff); }
.sfc-cs-clean .sfc-card-type,
.sfc-cs-soft .sfc-card-type,
.sfc-cs-outline .sfc-card-type { color: color-mix(in srgb, var(--sfc-color) 80%, #000); font-weight: 700; opacity: 1; }
.sfc-cs-clean .sfc-chip,
.sfc-cs-soft .sfc-chip,
.sfc-cs-outline .sfc-chip { background: color-mix(in srgb, var(--sfc-color) 15%, #fff); color: #1d1d1f; }
.sfc-cs-clean .sfc-card-tags,
.sfc-cs-soft .sfc-card-tags,
.sfc-cs-outline .sfc-card-tags { color: var(--sfc-muted); opacity: 1; }
.sfc-cs-clean .sfc-more,
.sfc-cs-soft .sfc-more,
.sfc-cs-outline .sfc-more { color: color-mix(in srgb, var(--sfc-color) 80%, #000); font-weight: 600; }
.sfc-cs-clean .sfc-card .sfc-card-btn,
.sfc-cs-soft .sfc-card .sfc-card-btn,
.sfc-cs-outline .sfc-card .sfc-card-btn { background: var(--sfc-primary); color: var(--sfc-on-primary) !important; }
.sfc-cs-clean .sfc-card:hover,
.sfc-cs-outline .sfc-card:hover { box-shadow: 0 14px 30px rgba(16, 24, 40, .14); }

/* ---- Card style: overlay (text on top of the picture) ---- */
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) {
	--sfc-text: #fff !important;
	min-height: calc(var(--sfc-img-h) + 250px);
	background: color-mix(in srgb, var(--sfc-color) 55%, #000);
	color: #fff;
}
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-card-media {
	position: absolute;
	inset: 0;
	height: auto;
}
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, color-mix(in srgb, var(--sfc-color) 78%, #000) 86%);
}
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-date { z-index: 2; }
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-badge { z-index: 2; }
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-card-body {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	margin-top: auto;
	padding: 24px;
}
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-card-desc { -webkit-line-clamp: 3; }
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-chip { background: rgba(255, 255, 255, .2); color: #fff; }

/* Card body spacing a little calmer on every style */
.sfc-card-body { padding: 28px 28px 26px; }
.sfc-card--slide .sfc-card-body { padding: 44px; }
@media (max-width: 760px) { .sfc-card--slide .sfc-card-body { padding: 28px; } }
@media (prefers-reduced-motion: reduce) { .sfc-modal .sfc-modal-close, .sfc-btn { transition: none; } }


/* ================= v1.2: toolbar, badges, agenda & timeline ================= */

/* Toolbar */
.sfc-toolbar { justify-content: flex-start; gap: 10px 12px; }
.sfc-search {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 1 1 220px;
	max-width: 340px;
	margin: 0;
}
.sfc-search .sfc-icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--sfc-muted); pointer-events: none; }
.sfc-calendar .sfc-search-input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 16px 0 40px;
	border: 1px solid var(--sfc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--sfc-ink);
	font: inherit;
	font-size: 15px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	-webkit-appearance: none;
	appearance: none;
}
.sfc-calendar .sfc-search-input:focus { outline: 0; border-color: var(--sfc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sfc-primary) 22%, transparent); }
.sfc-search-input::-webkit-search-cancel-button { cursor: pointer; }

.sfc-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 0 100%; order: 10; }
.sfc-chipbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--sfc-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sfc-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sfc-chipbtn:hover { border-color: var(--sfc-primary); }
.sfc-chipbtn .sfc-dot { width: 9px; height: 9px; border-radius: 50%; }
.sfc-chipbtn.is-active { border-color: var(--sfc-primary); background: var(--sfc-primary); color: var(--sfc-on-primary); }
.sfc-chipbtn.is-active .sfc-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

.sfc-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	background: none;
	color: var(--sfc-primary);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.sfc-clear[hidden] { display: none; }
.sfc-clear .sfc-icon { width: 13px; height: 13px; }
.sfc-clear:hover { text-decoration: underline; }
.sfc-link-clear { padding: 0; border: 0; background: none; color: var(--sfc-primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.sfc-empty p { margin: 0 0 10px; }

.sfc-views { display: inline-flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--sfc-ink) 7%, #fff); }
.sfc-view {
	margin: 0;
	padding: 7px 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--sfc-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.sfc-view:hover { color: var(--sfc-ink); }
.sfc-view.is-active { background: #fff; color: var(--sfc-primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }

.sfc-subscribe {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--sfc-line);
	border-radius: var(--sfc-btn-r);
	background: #fff;
	color: var(--sfc-ink) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	transition: border-color .15s ease;
}
.sfc-subscribe:hover { border-color: var(--sfc-primary); }
.sfc-subscribe .sfc-icon { width: 16px; height: 16px; color: var(--sfc-primary); }
.sfc-views + .sfc-subscribe, .sfc-nav + .sfc-subscribe { margin-left: 0; }
.sfc-toolbar > .sfc-subscribe:last-child { margin-left: auto; }
.sfc-toolbar > .sfc-views ~ .sfc-subscribe, .sfc-toolbar > .sfc-nav ~ .sfc-subscribe { margin-left: 0; }

/* Pills & badges */
.sfc-badges { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sfc-badges .sfc-badge { position: static; }
.sfc-ds-float .sfc-badges { top: 12px; right: 12px; }
.sfc-badge--inline { position: static; display: inline-flex; }

.sfc-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.sfc-pill--when { background: var(--sfc-primary); color: var(--sfc-on-primary); }
.sfc-pill--price { background: #fff; color: #1d1d1f; }
.sfc-st-cancelled { background: #d92d20; color: #fff; }
.sfc-st-sold_out { background: #1d1d1f; color: #fff; }
.sfc-st-few_left { background: #f79009; color: #1d1d1f; }
.sfc-st-new { background: #12b76a; color: #fff; }
.sfc-media-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.sfc-media-foot .sfc-pill--price { margin-left: auto; }
.sfc-card-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sfc-card-pills .sfc-pill { box-shadow: none; }
.sfc-card-media { position: relative; }
.sfc-card.is-cancelled .sfc-card-media img { filter: grayscale(1); opacity: .65; }
.sfc-card.is-cancelled .sfc-card-title a, .sfc-cal-event.is-cancelled { text-decoration: line-through; }
.sfc-cs-overlay .sfc-card:not(.sfc-card--list):not(.sfc-card--slide) .sfc-badges { z-index: 2; }
.sfc-modal-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sfc-modal-pills .sfc-pill { box-shadow: none; padding: 5px 14px; font-size: 13px; }
.sfc-modal-pills .sfc-pill--price { background: var(--pop-card); color: var(--pop-ink); }

/* ---- Agenda (compact rows) ---- */
.sfc-items--agenda, .sfc-items--timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sfc-rowcard {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px 20px;
	border: 1px solid var(--sfc-line);
	border-left: 5px solid var(--sfc-color);
	border-radius: calc(var(--sfc-radius) * .6);
	background: #fff;
	color: var(--sfc-ink);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}
.sfc-rowcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 24, 40, .12); }
.sfc-sh-soft .sfc-rowcard { box-shadow: 0 4px 16px rgba(16, 24, 40, .07); }
.sfc-sh-strong .sfc-rowcard { box-shadow: 0 12px 30px rgba(16, 24, 40, .16); }
.sfc-row-date .sfc-date {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 12px 10px;
	border-radius: 14px;
	background: var(--sfc-color);
	color: var(--sfc-text);
	box-shadow: none;
}
.sfc-row-date .sfc-date-m, .sfc-row-date .sfc-date-d, .sfc-row-date .sfc-date-sep { color: inherit; }
.sfc-row-date .sfc-date-d { font-size: 28px; }
.sfc-row-date .sfc-date.is-range .sfc-date-d { font-size: 20px; }
.sfc-row-thumb { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--sfc-color) 20%, #fff); }
.sfc-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sfc-row-main { flex: 1 1 auto; min-width: 0; }
.sfc-rowcard .sfc-card-type { margin: 0 0 4px; color: color-mix(in srgb, var(--sfc-color) 80%, #000); font-size: 13px; font-weight: 700; opacity: 1; }
.sfc-rowcard .sfc-card-title { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.sfc-rowcard .sfc-card-title a { color: var(--sfc-ink); text-decoration: none; }
.sfc-rowcard .sfc-card-title a:hover { color: var(--sfc-primary); }
.sfc-row-meta { display: flex; align-items: center; gap: 8px; color: var(--sfc-muted); font-size: 14px; }
.sfc-row-meta .sfc-icon { --sfc-clock: #fff; width: 14px; height: 14px; flex: 0 0 auto; color: var(--sfc-color); }
.sfc-rowcard .sfc-card-tags { margin: 4px 0 0; color: var(--sfc-muted); font-size: 13px; }
.sfc-row-desc { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--sfc-muted); font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sfc-row-aside { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sfc-rowcard .sfc-pill { box-shadow: none; border: 1px solid var(--sfc-line); }
.sfc-rowcard .sfc-pill--when { border-color: transparent; }
.sfc-rowcard .sfc-pill[class*="sfc-st-"] { border-color: transparent; }
.sfc-row-btn { min-width: 0; padding: 9px 22px; font-size: 14px; }
.sfc-rowcard .sfc-badge--inline { background: color-mix(in srgb, #f5c518 28%, #fff); color: #1d1d1f; }
.sfc-rowcard.is-cancelled .sfc-card-title a { text-decoration: line-through; }
.sfc-rowcard.is-cancelled .sfc-row-thumb img { filter: grayscale(1); opacity: .6; }

/* ---- Timeline ---- */
.sfc-items--timeline { position: relative; gap: 22px; }
.sfc-items--timeline::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 112px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--sfc-primary) 55%, #fff), color-mix(in srgb, var(--sfc-primary) 12%, #fff));
}
.sfc-tl-item { position: relative; display: grid; grid-template-columns: 96px 32px minmax(0, 1fr); align-items: start; }
.sfc-tl-date .sfc-date {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	width: 84px;
	padding: 10px 8px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--sfc-color) 14%, #fff);
	color: color-mix(in srgb, var(--sfc-color) 70%, #000);
	box-shadow: none;
}
.sfc-tl-date .sfc-date-m, .sfc-tl-date .sfc-date-d, .sfc-tl-date .sfc-date-sep { color: inherit; }
.sfc-tl-date .sfc-date-d { font-size: 26px; }
.sfc-tl-date .sfc-date.is-range .sfc-date-d { font-size: 18px; }
.sfc-tl-dot { z-index: 1; justify-self: center; width: 18px; height: 18px; margin-top: 22px; border: 4px solid #fff; border-radius: 50%; background: var(--sfc-color); box-shadow: 0 0 0 2px var(--sfc-color); }
.sfc-tl-item .sfc-rowcard { border-left-width: 1px; }
.sfc-items--timeline .sfc-rowcard { align-items: flex-start; }
.sfc-items--timeline .sfc-row-thumb { width: 120px; height: 96px; align-self: flex-start; }

@media (max-width: 760px) {
	.sfc-search { max-width: none; flex-basis: 100%; }
	.sfc-views { margin-left: 0; order: 9; max-width: 100%; overflow-x: auto; }
	.sfc-rowcard { flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 14px 16px; }
	.sfc-row-thumb { display: none; }
	.sfc-row-aside { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; }
	.sfc-row-date .sfc-date { min-width: 58px; padding: 8px; }
	.sfc-row-date .sfc-date-d { font-size: 22px; }
	.sfc-items--timeline::before { left: 7px; }
	.sfc-tl-item { grid-template-columns: 18px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; }
	.sfc-tl-dot { grid-column: 1; grid-row: 1; margin-top: 4px; }
	.sfc-tl-date { grid-column: 2; grid-row: 1; justify-self: start; }
	.sfc-tl-date .sfc-date { flex-direction: row; gap: 8px; width: auto; padding: 6px 12px; }
	.sfc-tl-item .sfc-rowcard { grid-column: 2; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .sfc-rowcard { transition: none; } .sfc-rowcard:hover { transform: none; } }
