/* The FEAST — public/frontend styles */

.the-feast-notice,
.feast-auth-notice {
	padding: 1rem 1.25rem;
	border-radius: 4px;
	color: #1d2327;
	margin-bottom: 1.25rem;
}

.the-feast-notice,
.feast-auth-notice--info {
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
}

.feast-auth-notice--success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
}

.feast-auth-notice--error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
}

.feast-auth-notice--warning {
	background: #fffbeb;
	border: 1px solid #fcd34d;
}

.feast-auth {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	box-sizing: border-box;
}

body.feast-auth-page .page-content-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.feast-auth-page .page-content-inner .wp-block-post-content,
body.feast-auth-page .page-content-inner .wp-block-shortcode,
body.feast-auth-page .page-content-inner > .entry-content {
	width: 100%;
	max-width: 400px;
}

.feast-auth__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.feast-auth__lead {
	margin: 0 0 1.5rem;
	color: #555;
}

.feast-auth__divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #777;
	margin: 1.5rem 0;
}

.feast-auth__divider::before,
.feast-auth__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #ddd;
}

.feast-auth__footer {
	margin-top: 1.5rem;
	text-align: center;
}

.feast-auth-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.feast-auth-form__remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.feast-auth-form__legacy {
	margin: 1rem 0;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feast-auth-form__checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 0.5rem;
}

.feast-auth-form__legacy-fields {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
}

.feast-auth-form__legacy-fields[hidden] {
	display: none;
}

.feast-auth-form__section {
	margin: 1.5rem 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feast-auth-form__section-title {
	margin: 0 0 1rem;
	font-size: 1rem;
}

.feast-profile-meta {
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
	font-size: 0.92rem;
}

.feast-profile-readonly {
	display: inline-block;
	padding: 0.35rem 0;
}

.feast-profile-photo-field__preview {
	margin-bottom: 0.75rem;
}

.feast-profile-photo-field__preview img {
	display: block;
	max-width: 180px;
	height: auto;
	border-radius: 8px;
}

.feast-profile-photo-field__remove {
	display: block;
	margin: 0 0 0.75rem;
}

.feast-auth-oauth {
	display: grid;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.feast-auth-oauth__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	font-size: 0.95rem;
	border: 1px solid #dadce0;
	background: #fff;
	color: #1d2327;
	font-weight: 600;
	padding: 0.65rem 1rem;
}

.feast-auth-oauth__btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.feast-auth-oauth__icon {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.feast-auth-oauth__icon--google {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");
}

.feast-auth-oauth__btn--google:hover {
	background: #f8f9fa;
}

.feast-auth-oauth__btn--facebook {
	background: #1877f2;
	border-color: #1877f2;
	color: #fff;
}

.feast-auth-oauth__btn--facebook:hover {
	background: #166fe5;
	border-color: #166fe5;
	color: #fff;
}

.feast-auth-oauth__icon--facebook {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
}

.feast-auth-oauth__admin {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: #646970;
}

.feast-member-profile {
	max-width: 1200px;
	margin: 0 auto;
}

.feast-member-profile__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.feast-member-profile__layout,
.feast-member-account {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.feast-member-account__navigation {
	flex: 0 0 260px;
	width: 260px;
	background: #f8f9fa;
	border-right: 1px solid #e5e7eb;
}

.feast-member-account__menu,
.entry-content .feast-member-profile .feast-member-account__menu,
.feast-member-profile .feast-member-account__menu {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.feast-member-account__item,
.entry-content .feast-member-profile .feast-member-account__item,
.feast-member-profile .feast-member-account__item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border-bottom: 1px solid #e5e7eb;
}

.feast-member-account__item:last-child {
	border-bottom: 0;
}

.feast-member-account__item a,
.entry-content .feast-member-profile .feast-member-account__item a,
.feast-member-profile .feast-member-account__item a {
	display: block;
	padding: 1rem 1.25rem;
	color: #374151 !important;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.4;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feast-member-account__item a:hover,
.entry-content .feast-member-profile .feast-member-account__item a:hover,
.feast-member-profile .feast-member-account__item a:hover {
	background: #fff;
	color: var(--feast-primary, #c41e3a) !important;
}

.feast-member-account__item.is-active a,
.entry-content .feast-member-profile .feast-member-account__item.is-active a,
.feast-member-profile .feast-member-account__item.is-active a {
	background: #fff;
	color: var(--feast-primary, #c41e3a) !important;
	border-left-color: var(--feast-primary, #c41e3a);
	font-weight: 700;
}

.feast-member-account__content,
.feast-member-profile__content {
	flex: 1;
	min-width: 0;
	padding: 2rem;
	background: #fff;
}

.feast-member-profile__panel-title {
	margin: 0 0 0.5rem;
	font-family: var(--feast-font-heading, inherit);
	font-size: 1.35rem;
}

.feast-member-profile__panel {
	min-width: 0;
}

.feast-member-events-group {
	margin-top: 1.75rem;
}

.feast-member-events-group__title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #646970;
}

.feast-member-events-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.feast-member-events-list__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.feast-member-events-list__title {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
}

.feast-member-events-list__title:hover {
	color: #b91c1c;
}

.feast-member-events-list__meta {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: #646970;
}

.feast-member-events-list__location::before {
	content: '·';
	margin: 0 0.35rem;
}

.feast-member-events-list__status {
	flex-shrink: 0;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #eef2ff;
	color: #3730a3;
}

.feast-member-events-list__status--registered,
.feast-member-events-list__status--pending_payment,
.feast-member-events-list__status--pending_verification {
	background: #ecfdf5;
	color: #047857;
}

.feast-member-events-list__status--waitlisted {
	background: #fffbeb;
	color: #b45309;
}

.feast-member-events-list__status--cancelled,
.feast-member-events-list__status--rejected {
	background: #fef2f2;
	color: #b91c1c;
}

.feast-member-attendance-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.25rem 0 1.5rem;
}

.feast-member-attendance-stat {
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.feast-member-attendance-stat strong {
	display: block;
	font-size: 1.5rem;
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.feast-member-attendance-stat span {
	font-size: 0.85rem;
	color: #646970;
}

.feast-member-attendance-stat--absent strong {
	color: #b91c1c;
}

.feast-member-attendance-table-wrap {
	overflow-x: auto;
}

.feast-member-attendance-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
}

.feast-member-attendance-table th,
.feast-member-attendance-table td {
	padding: 0.85rem 1rem;
	text-align: left;
	border-bottom: 1px solid #eef0f2;
	vertical-align: top;
}

.feast-member-attendance-table th {
	background: #f6f7f7;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.feast-member-attendance-table tr:last-child td {
	border-bottom: 0;
}

.feast-member-attendance-status {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.feast-member-attendance-status--present {
	background: #ecfdf5;
	color: #047857;
}

.feast-member-attendance-status--absent {
	background: #fef2f2;
	color: #b91c1c;
}

.feast-member-attendance-status--upcoming {
	background: #eff6ff;
	color: #1d4ed8;
}

.feast-member-attendance-checkin {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.78rem;
	color: #646970;
}

.feast-member-qr {
	margin-top: 2rem;
	padding: 1rem 1.25rem;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	text-align: center;
}

.feast-member-qr__canvas {
	display: block;
	margin: 0 auto 0.75rem;
	max-width: 100%;
	height: auto;
}

.feast-member-qr__canvas img {
	display: block;
	margin: 0 auto;
}

.feast-member-qr__download {
	margin-bottom: 0.75rem;
}

.feast-member-qr__token {
	display: block;
	word-break: break-all;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

.feast-auth-help {
	margin: 0;
	color: #555;
}

.feast-event-payment-instructions {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
}

.feast-event-attendees {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

@media (max-width: 640px) {
	.feast-auth-form__row,
	.feast-event-attendees {
		grid-template-columns: 1fr;
	}

	.feast-member-profile__header {
		flex-direction: column;
	}

	.feast-member-account {
		flex-direction: column;
	}

	.feast-member-account__navigation {
		flex: 1 1 auto;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #e5e7eb;
	}

	.feast-member-account__menu {
		display: flex;
		flex-wrap: wrap;
	}

	.feast-member-account__item {
		flex: 1 1 auto;
		border-bottom: 0;
		border-right: 1px solid #e5e7eb;
	}

	.feast-member-account__item:last-child {
		border-right: 0;
	}

	.feast-member-account__item a {
		padding: 0.85rem 1rem;
		text-align: center;
		border-left: 0;
		border-bottom: 3px solid transparent;
	}

	.feast-member-account__item.is-active a {
		border-left: 0;
		border-bottom-color: var(--feast-primary, #c41e3a);
	}

	.feast-member-account__content {
		padding: 1.25rem;
	}

	.feast-member-attendance-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feast-member-events-list__item {
		flex-direction: column;
	}
}

.feast-event-attendees h3 {
	margin-top: 0;
	font-size: 1.1rem;
}

.feast-event-attendees ul {
	margin: 0;
	padding-left: 1.25rem;
}

.feast-receipt-upload {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
}

/* Events calendar (TEC-style list + single) */
.feast-events {
	margin: 0 auto;
}

.feast-events--homepage {
	max-width: none;
	width: 100%;
	margin: 0;
}

.feast-events__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.feast-events__title {
	margin: 0;
	font-size: 1.75rem;
}

.feast-events__views {
	display: flex;
	gap: 0.5rem;
}

.feast-events__view-link {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #1d2327;
	font-weight: 600;
}

.feast-events__view-link.is-active,
.feast-events__view-link:hover {
	background: #ff474f;
	border-color: #ff474f;
	color: #fff;
}

.feast-events__month-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	background: #f6f7f7;
	border-radius: 4px;
}

.feast-events__month-heading {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.25rem;
	color: #0a0a0a;
}

.feast-events__list,
.feast-events__month-list {
	display: grid;
	gap: 1rem;
}

.feast-events__empty {
	padding: 2rem;
	text-align: center;
	background: #f6f7f7;
	border-radius: 4px;
}

.feast-event-card {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	background: #fff;
}

.feast-event-card__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ff474f;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	padding: 0.5rem;
	min-height: 72px;
}

.feast-event-card__month {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-weight: 700;
}

.feast-event-card__day {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.feast-event-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
}

.feast-event-card__title a {
	color: #0a0a0a;
	text-decoration: none;
}

.feast-event-card__title a:hover {
	color: #ff474f;
}

.feast-event-card__meta {
	margin: 0;
	color: #666;
	font-size: 0.9375rem;
}

.feast-event-card__badge {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ff474f;
}

/* Calendar view */
.feast-events-calendar-wrap {
	overflow-x: auto;
}

.feast-events-calendar {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--feast-border, #e8e8e8);
	border-radius: var(--feast-radius, 6px);
	overflow: hidden;
}

.feast-events-calendar th,
.feast-events-calendar td {
	border: 1px solid var(--feast-border, #e8e8e8);
	vertical-align: top;
}

.feast-events-calendar th {
	padding: 0.75rem;
	background: var(--feast-gray, #f5f5f5);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: center;
}

.feast-events-calendar__day {
	width: 14.28%;
	min-height: 110px;
	padding: 0.5rem;
	background: #fff;
}

.feast-events-calendar__day.is-other-month {
	background: #fafafa;
	opacity: 0.65;
}

.feast-events-calendar__day.is-today .feast-events-calendar__date {
	background: var(--feast-primary, #ff474f);
	color: #fff;
}

.feast-events-calendar__day.has-events {
	background: #fffafa;
}

.feast-events-calendar__date {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin-bottom: 0.35rem;
	border-radius: 50%;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--feast-secondary, #0a0a0a);
}

.feast-events-calendar__events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.feast-events-calendar__events li + li {
	margin-top: 0.25rem;
}

.feast-events-calendar__events a {
	display: block;
	padding: 0.2rem 0.35rem;
	border-radius: 3px;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--feast-secondary, #0a0a0a);
	text-decoration: none;
	background: rgba(255, 71, 79, 0.08);
}

.feast-events-calendar__events a:hover {
	background: rgba(255, 71, 79, 0.16);
	color: var(--feast-primary, #ff474f);
}

/* Single event — EventChamp layout */
.feast-event-single {
	padding: 0;
	max-width: none;
}

.feast-event-single .feast-eventchamp {
	--feast-primary: #ff474f;
	--feast-secondary: #0a0a0a;
	--feast-gray: #f5f5f5;
	--feast-gray-dark: #666;
	--feast-border: #e8e8e8;
	--feast-radius: 6px;
	--feast-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feast-eventchamp ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.feast-eventchamp__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 72px 16px;
}

.feast-eventchamp__hero--placeholder {
	background: linear-gradient(135deg, rgba(255, 71, 79, 0.35), rgba(10, 10, 10, 0.92));
}

.feast-eventchamp__hero-bg {
	position: absolute;
	inset: 0;
}

.feast-eventchamp__hero-img,
.feast-eventchamp__hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.feast-eventchamp__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.82) 100%);
}

.feast-eventchamp__hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 2rem 0 2.75rem;
	color: #fff;
}

.feast-eventchamp__back {
	margin: 0 0 1.25rem;
}

.feast-eventchamp__back a {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	opacity: 0.9;
}

.feast-eventchamp__back a:hover {
	opacity: 1;
	color: #fff !important;
}

.feast-eventchamp__hero-badge {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.7rem;
	background: var(--feast-primary, #ff474f);
	border-radius: 3px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.feast-eventchamp .feast-eventchamp__hero-title {
	margin: 0 0 1rem;
	max-width: 760px;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	color: #fff !important;
}

.feast-eventchamp__hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.92);
}

.feast-eventchamp__hero-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.feast-eventchamp__hero-meta svg {
	flex-shrink: 0;
	color: var(--feast-primary, #ff474f);
}

.feast-eventchamp__page {
	padding: 2.5rem 0 3.5rem;
	background: var(--feast-gray, #f5f5f5);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.feast-eventchamp__notices {
	margin-bottom: 1.5rem;
}

.feast-eventchamp__notices .feast-auth-notice:last-child {
	margin-bottom: 0;
}

.feast-eventchamp__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 2rem;
	align-items: start;
}

.feast-eventchamp__main {
	background: #fff;
	border: 1px solid var(--feast-border, #e8e8e8);
	border-radius: var(--feast-radius, 6px);
	box-shadow: var(--feast-shadow, 0 10px 40px rgba(0, 0, 0, 0.06));
	overflow: hidden;
}

.feast-eventchamp__featured {
	margin: 0;
	overflow: hidden;
}

.feast-eventchamp__featured img {
	display: block;
	width: 100%;
	height: auto;
}

.feast-eventchamp__content-wrap {
	padding: 1.5rem;
}

.feast-eventchamp__content {
	margin-bottom: 2rem;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--feast-gray-dark, #666);
}

.feast-eventchamp__content p:last-child {
	margin-bottom: 0;
}

.feast-eventchamp__tabs {
	margin-top: 0.5rem;
}

.feast-eventchamp__tab-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.feast-eventchamp__tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 1px solid var(--feast-border, #e8e8e8);
	margin-bottom: 1.5rem;
}

.feast-eventchamp__tab {
	display: inline-block;
	margin-bottom: -1px;
	padding: 0.85rem 1.25rem;
	border-bottom: 3px solid transparent;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--feast-gray-dark, #666);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.feast-eventchamp__tab:hover {
	color: var(--feast-secondary, #0a0a0a);
}

#feast-event-tab-participants:checked ~ .feast-eventchamp__tablist label[for="feast-event-tab-participants"],
#feast-event-tab-payment:checked ~ .feast-eventchamp__tablist label[for="feast-event-tab-payment"] {
	color: var(--feast-primary, #ff474f);
	border-bottom-color: var(--feast-primary, #ff474f);
}

.feast-eventchamp__tabpanel {
	display: none;
}

#feast-event-tab-participants:checked ~ .feast-eventchamp__tabpanels .feast-eventchamp__tabpanel--participants,
#feast-event-tab-payment:checked ~ .feast-eventchamp__tabpanels .feast-eventchamp__tabpanel--payment {
	display: block;
}

.feast-eventchamp__panel {
	margin-top: 0.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--feast-border, #e8e8e8);
}

.feast-eventchamp .feast-eventchamp__panel-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	color: var(--feast-secondary, #0a0a0a);
}

.feast-eventchamp__subheading {
	margin: 1.25rem 0 0.75rem;
	font-size: 1rem;
}

.feast-eventchamp__muted {
	margin: 0;
	color: var(--feast-gray-dark, #666);
}

.feast-eventchamp__people {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.feast-eventchamp__people li {
	padding: 0.35rem 0.75rem;
	background: var(--feast-gray, #f5f5f5);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
}

.feast-eventchamp__people--waitlist li {
	background: #eee;
	color: #555;
}

.feast-eventchamp__sidebar {
	display: grid;
	gap: 1.25rem;
	position: sticky;
	top: calc(var(--feast-header-height, 100px) + 1rem);
}

.feast-eventchamp__infobox,
.feast-eventchamp__ticketbox {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--feast-border, #e8e8e8);
	border-radius: var(--feast-radius, 6px);
	box-shadow: var(--feast-shadow, 0 10px 40px rgba(0, 0, 0, 0.06));
}

.feast-eventchamp .feast-eventchamp__box-title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--feast-border, #e8e8e8);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--feast-secondary, #0a0a0a);
}

.feast-eventchamp__infoitem {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--feast-border, #e8e8e8);
}

.feast-eventchamp__infoitem:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.feast-eventchamp__infoicon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 71, 79, 0.1);
	color: var(--feast-primary, #ff474f);
}

.feast-eventchamp__infotext {
	display: grid;
	gap: 0.15rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--feast-secondary, #0a0a0a);
}

.feast-eventchamp__infotext strong {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--feast-gray-dark, #666);
}

.feast-eventchamp__ticketbox p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--feast-gray-dark, #666);
}

.feast-eventchamp__register-actions {
	display: grid;
	gap: 0.65rem;
}

.feast-eventchamp__register-status {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: var(--feast-gray, #f5f5f5);
	border-left: 3px solid var(--feast-primary, #ff474f);
}

.feast-eventchamp__instructions {
	background: var(--feast-gray, #f5f5f5);
	border: 1px solid var(--feast-border, #e8e8e8);
	border-radius: var(--feast-radius, 6px);
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.feast-eventchamp__instructions h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.feast-event-cancel-form {
	margin-top: 0.75rem;
}

@media (max-width: 960px) {
	.feast-eventchamp__layout {
		grid-template-columns: 1fr;
	}

	.feast-eventchamp__sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.feast-eventchamp__hero {
		min-height: 320px;
	}

	.feast-eventchamp__main,
	.feast-eventchamp__infobox,
	.feast-eventchamp__ticketbox {
		padding: 1.25rem;
	}

	.feast-eventchamp__tablist {
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.feast-eventchamp__tab {
		white-space: nowrap;
	}
}

.feast-auth .feast-btn,
.feast-events .feast-btn,
.feast-eventchamp .feast-btn,
.feast-member-profile .feast-btn,
.feast-check-in-scanner .feast-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.feast-auth .feast-btn--primary,
.feast-events .feast-btn--primary,
.feast-eventchamp .feast-btn--primary,
.feast-member-profile .feast-btn--primary,
.feast-check-in-scanner .feast-btn--primary {
	background: #ff474f;
	border-color: #ff474f;
	color: #fff;
}

.feast-auth .feast-btn--primary:hover,
.feast-events .feast-btn--primary:hover,
.feast-eventchamp .feast-btn--primary:hover,
.feast-member-profile .feast-btn--primary:hover,
.feast-check-in-scanner .feast-btn--primary:hover {
	background: #e0353d;
	border-color: #e0353d;
	color: #fff;
}

.feast-auth .feast-btn--block,
.feast-events .feast-btn--block,
.feast-eventchamp .feast-btn--block,
.feast-member-profile .feast-btn--block,
.feast-check-in-scanner .feast-btn--block {
	display: block;
	width: 100%;
	text-align: center;
}

.feast-contact-form label {
	display: block;
	margin-bottom: 1rem;
}

.feast-contact-form label span {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.feast-contact-form input[type="text"],
.feast-contact-form input[type="email"],
.feast-contact-form input[type="tel"],
.feast-contact-form input[type="number"],
.feast-contact-form input[type="date"],
.feast-contact-form input[type="file"],
.feast-contact-form select,
.feast-contact-form textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.feast-contact-form input[type="checkbox"] {
	width: auto !important;
}

.feast-event-cancel-form {
	margin-top: 0.75rem;
}

.feast-check-in-scanner {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.feast-check-in-scanner__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.feast-check-in-scanner__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: end;
}

.feast-check-in-scanner__filters label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.875rem;
}

.feast-qr-reader {
	max-width: 100%;
	min-height: 320px;
}

.feast-scan-result {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 6px;
}

.feast-scan-result--success {
	background: #d5f5e3;
	color: #0f5132;
}

.feast-scan-result--warning {
	background: #fff3cd;
	color: #664d03;
}

.feast-scan-result--error {
	background: #f8d7da;
	color: #842029;
}

/* Gallery */
.feast-gallery {
	--feast-gallery-primary: #ff474f;
	--feast-gallery-secondary: #0a0a0a;
	--feast-gallery-gray: #f7f7f7;
	--feast-gallery-border: #ececec;
	--feast-gallery-radius: 10px;
	--feast-gallery-shadow: 0 16px 40px rgba(10, 10, 10, 0.08);
}

.feast-gallery--empty,
.feast-gallery__empty {
	margin: 0;
}

.feast-gallery--empty {
	padding: 3rem 1.5rem;
	text-align: center;
	background: var(--feast-gallery-gray);
	border: 1px dashed var(--feast-gallery-border);
	border-radius: var(--feast-gallery-radius);
	color: #666;
}

.feast-gallery__browse[hidden],
.feast-gallery__detail[hidden] {
	display: none !important;
}

.feast-gallery__album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.feast-gallery__album-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: calc(var(--feast-gallery-radius) + 4px);
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	box-shadow: 0 10px 30px rgba(10, 10, 10, 0.06);
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feast-gallery__album-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--feast-gallery-primary);
	z-index: 2;
}

.feast-gallery__album-card:hover,
.feast-gallery__album-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 22px 48px rgba(255, 71, 79, 0.14);
	outline: none;
}

.feast-gallery__album-cover {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	background: linear-gradient(145deg, #1a1a1a, #333);
	overflow: hidden;
}

.feast-gallery__album-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.feast-gallery__album-card:hover .feast-gallery__album-cover img,
.feast-gallery__album-card:focus-visible .feast-gallery__album-cover img {
	transform: scale(1.06);
}

.feast-gallery__album-cover-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(145deg, rgba(255, 71, 79, 0.18), rgba(10, 10, 10, 0.08)),
		repeating-linear-gradient(
			-45deg,
			rgba(255, 255, 255, 0.08),
			rgba(255, 255, 255, 0.08) 10px,
			transparent 10px,
			transparent 20px
		);
}

.feast-gallery__album-cover-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.05) 35%, rgba(10, 10, 10, 0.72) 100%);
	pointer-events: none;
}

.feast-gallery__album-count-badge {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--feast-gallery-secondary);
	font-family: "Poppins", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feast-gallery__album-body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.15rem 1.25rem 1.3rem;
	min-width: 0;
}

.feast-gallery__album-name {
	font-family: "Poppins", sans-serif;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--feast-gallery-secondary);
}

.feast-gallery__album-date {
	display: block;
	font-size: 0.88rem;
	color: rgba(0, 0, 0, 0.55);
}

.feast-gallery__album-desc {
	display: -webkit-box;
	overflow: hidden;
	color: #666;
	font-size: 0.92rem;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.feast-gallery__album-action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.35rem;
	font-family: "Poppins", sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--feast-gallery-primary);
}

.feast-gallery__album-action::after {
	content: "→";
	transition: transform 0.2s ease;
}

.feast-gallery__album-card:hover .feast-gallery__album-action::after,
.feast-gallery__album-card:focus-visible .feast-gallery__album-action::after {
	transform: translateX(4px);
}

.feast-gallery__detail-head {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--feast-gallery-border);
}

.feast-gallery__back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--feast-gallery-primary);
	font-family: "Poppins", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
}

.feast-gallery__back:hover,
.feast-gallery__back:focus-visible {
	color: var(--feast-gallery-secondary);
	outline: none;
}

.feast-gallery__eyebrow {
	margin: 0 0 0.35rem;
	font-family: "Poppins", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--feast-gallery-primary);
}

.feast-gallery__detail-title {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	line-height: 1.15;
	color: var(--feast-gallery-secondary);
}

.feast-gallery__detail-desc {
	margin: 0.65rem 0 0;
	max-width: 760px;
	color: #666;
	font-size: 1rem;
	line-height: 1.7;
}

.feast-gallery__detail-desc[hidden] {
	display: none;
}

.feast-gallery__status {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--feast-gallery-radius);
	font-size: 0.92rem;
}

.feast-gallery__status[hidden] {
	display: none;
}

.feast-gallery__status--loading {
	background: #fff7f7;
	color: #8a1f26;
	border: 1px solid rgba(255, 71, 79, 0.18);
}

.feast-gallery__status--error {
	background: #fff1f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.feast-gallery__loading {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	padding: 3rem 0;
}

.feast-gallery__loading span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--feast-gallery-primary);
	animation: feast-gallery-pulse 0.9s infinite ease-in-out;
}

.feast-gallery__loading span:nth-child(2) { animation-delay: 0.15s; }
.feast-gallery__loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes feast-gallery-pulse {
	0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
	40% { opacity: 1; transform: scale(1); }
}

.feast-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.feast-gallery__item {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: left;
}

.feast-gallery__item-frame {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--feast-gallery-radius);
	background: var(--feast-gallery-gray);
}

.feast-gallery__image {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.28s ease;
}

.feast-gallery__item:hover .feast-gallery__image,
.feast-gallery__item:focus-visible .feast-gallery__image {
	transform: scale(1.05);
}

.feast-gallery__zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 10, 0.28);
	color: #fff;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.feast-gallery__item:hover .feast-gallery__zoom,
.feast-gallery__item:focus-visible .feast-gallery__zoom {
	opacity: 1;
}

.feast-gallery__caption {
	display: block;
	padding: 0.65rem 0.1rem 0;
	font-size: 0.84rem;
	font-weight: 600;
	color: #444;
}

.feast-gallery__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--feast-gallery-border);
}

.feast-gallery__pagination[hidden] {
	display: none;
}

.feast-gallery__page-list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.feast-gallery__page-btn {
	min-width: 42px;
	height: 42px;
	padding: 0 0.85rem;
	border: 1px solid var(--feast-gallery-border);
	border-radius: 999px;
	background: #fff;
	color: var(--feast-gallery-secondary);
	font-family: "Poppins", sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.feast-gallery__page-btn:hover:not(:disabled),
.feast-gallery__page-btn:focus-visible:not(:disabled) {
	border-color: rgba(255, 71, 79, 0.35);
	color: var(--feast-gallery-primary);
	outline: none;
}

.feast-gallery__page-btn.is-active {
	background: var(--feast-gallery-primary);
	border-color: var(--feast-gallery-primary);
	color: #fff;
}

.feast-gallery__page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.feast-gallery__page-ellipsis {
	padding: 0 0.35rem;
	color: #999;
}

.feast-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

.feast-gallery-lightbox.is-open {
	display: flex;
}

.feast-gallery-lightbox[hidden] {
	display: none !important;
}

.feast-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.94);
}

body.feast-gallery-lightbox-open,
html.feast-gallery-lightbox-open {
	overflow: hidden;
}

.feast-gallery-lightbox__stage {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1200px, 100%);
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	pointer-events: none;
}

.feast-gallery-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: 0;
	pointer-events: auto;
}

.feast-gallery-lightbox__close,
.feast-gallery-lightbox__nav {
	position: fixed;
	z-index: 2;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.feast-gallery-lightbox__close:hover,
.feast-gallery-lightbox__nav:hover,
.feast-gallery-lightbox__close:focus-visible,
.feast-gallery-lightbox__nav:focus-visible {
	background: var(--feast-gallery-primary);
	outline: none;
}

.feast-gallery-lightbox__close {
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
}

.feast-gallery-lightbox__nav {
	top: 50%;
	width: 50px;
	height: 50px;
	margin-top: -25px;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
}

.feast-gallery-lightbox__nav--prev {
	left: max(1rem, env(safe-area-inset-left));
}

.feast-gallery-lightbox__nav--next {
	right: max(1rem, env(safe-area-inset-right));
}

.feast-gallery-lightbox__image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(92vw, 1200px);
	max-height: calc(100vh - 7rem);
	max-height: calc(100dvh - 7rem);
	margin: 0 auto;
	border-radius: var(--feast-gallery-radius);
	object-fit: contain;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.feast-gallery-lightbox__caption {
	max-width: min(92vw, 720px);
	margin: 0.85rem 0 0;
	padding: 0 1rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.95rem;
	line-height: 1.5;
}

.feast-gallery-lightbox__caption[hidden] {
	display: none;
}

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

@media (max-width: 768px) {
	.feast-gallery__album-grid,
	.feast-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feast-gallery-lightbox {
		padding: 1rem;
	}

	.feast-gallery-lightbox__nav {
		display: none;
	}
}

@media (max-width: 520px) {
	.feast-gallery__album-grid,
	.feast-gallery__grid {
		grid-template-columns: 1fr;
	}

	.feast-gallery__pagination {
		gap: 0.5rem;
	}

	.feast-gallery__page-list {
		order: 3;
		width: 100%;
		justify-content: center;
	}
}
