:root {
	--ebr-bg: #f8fafc;
	--ebr-card: #ffffff;
	--ebr-fg: #0f172a;
	--ebr-muted: #64748b;
	--ebr-border: #e2e8f0;
	--ebr-primary: #0f172a;
	--ebr-cta: #f97316;
	--ebr-radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ebr-fg);
	background: var(--ebr-bg);
	line-height: 1.5;
}
a { color: var(--ebr-primary); }

.ebr-site-header { background: #fff; border-bottom: 1px solid var(--ebr-border); }
.ebr-site-header__inner { max-width: 1100px; margin: 0 auto; padding: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ebr-site-brand { font-weight: 700; text-decoration: none; color: inherit; font-size: 1.1rem; display: inline-flex; align-items: center; }
.ebr-site-brand--logo { line-height: 0; }
.ebr-site-brand--logo .custom-logo-link { display: inline-block; }
.ebr-site-brand--logo img,
.ebr-site-brand--logo .custom-logo { display: block; max-height: 56px; width: auto; height: auto; }
.ebr-user-nav { display: flex; gap: 1rem; align-items: center; }
.ebr-user-nav a { text-decoration: none; color: var(--ebr-muted); }
.ebr-user-nav a:hover { color: var(--ebr-fg); }

.ebr-site-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; min-height: 70vh; }

.ebr-site-footer { border-top: 1px solid var(--ebr-border); margin-top: 3rem; background: #fff; }
.ebr-site-footer__inner { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; color: var(--ebr-muted); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.ebr-site-footer__nav .ebr-site-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.ebr-site-footer__nav a { color: var(--ebr-muted); text-decoration: none; }
.ebr-site-footer__nav a:hover { color: var(--ebr-fg); }
.ebr-site-footer__text { font-size: .9rem; line-height: 1.6; }
.ebr-site-footer__text a { color: var(--ebr-fg); }
.ebr-site-footer__copy { font-size: .8rem; color: var(--ebr-muted); }

.ebr-btn { display: inline-block; padding: .65rem 1.1rem; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--ebr-border); background: #fff; color: var(--ebr-fg); }
.ebr-btn--primary { background: var(--ebr-primary); color: #fff; border-color: var(--ebr-primary); }
.ebr-btn--cta { background: var(--ebr-cta); color: #fff; border-color: var(--ebr-cta); }
.ebr-btn[disabled], .ebr-btn--disabled { opacity: .55; cursor: not-allowed; pointer-events: none; background: #e5e7eb; color: #6b7280; border-color: #e5e7eb; }

.ebr-hero { padding: 1.5rem 0 1rem; }
.ebr-hero h1 { margin: 0 0 .25rem; font-size: 2rem; }
.ebr-hero__sub { margin: 0; color: var(--ebr-muted); }
.ebr-empty { padding: 2rem; text-align: center; color: var(--ebr-muted); }
.ebr-muted { color: var(--ebr-muted); }

.ebr-events__section-title { margin: 2.5rem 0 1rem; font-size: 1.4rem; }
.ebr-events__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.ebr-events__card { background: var(--ebr-card); border: 1px solid var(--ebr-border); border-radius: var(--ebr-radius); overflow: hidden; display: flex; flex-direction: column; }
.ebr-events__cover img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ebr-events__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ebr-events__title { margin: 0 0 .35rem; font-size: 1.15rem; }
.ebr-events__date, .ebr-events__time, .ebr-events__venue { margin: 0 0 .25rem; color: var(--ebr-muted); font-size: .9rem; }
.ebr-events__desc { font-size: .9rem; margin: .5rem 0 0; }
.ebr-events__body .ebr-btn { margin-top: 1.5rem; align-self: flex-start; }
.ebr-events__no-photos { margin-top: 1.5rem; font-size: .9rem; }

.ebr-events--past .ebr-events__card--past { background: #fafafa; }
.ebr-events--past .ebr-events__cover img { filter: saturate(.7); }
.ebr-events--past .ebr-events__title { font-size: 1.05rem; }

.ebr-auth { max-width: 460px; margin: 2rem auto; background: var(--ebr-card); border: 1px solid var(--ebr-border); border-radius: var(--ebr-radius); padding: 1.5rem; }
.ebr-auth h1 { margin-top: 0; }
.ebr-auth__form label { display: block; margin: .75rem 0; font-size: .9rem; }
.ebr-auth__form label span { display: block; color: var(--ebr-muted); margin-bottom: .25rem; }
.ebr-auth__form input { width: 100%; padding: .65rem .75rem; border: 1px solid var(--ebr-border); border-radius: 8px; font-size: 1rem; }

.ebr-alert { padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0; }
.ebr-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ebr-alert--info  { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

.ebr-pill { display: inline-block; padding: .15rem .55rem; border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

.ebr-account__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.ebr-account__hello { color: var(--ebr-muted); margin: 0; }
.ebr-account__events ul, .ebr-account__regs { list-style: none; padding: 0; }
.ebr-account__open-list li { background: var(--ebr-card); border: 1px solid var(--ebr-border); border-radius: var(--ebr-radius); padding: .75rem 1rem; margin-bottom: .5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ebr-account__open-list small { color: var(--ebr-muted); }

.ebr-account__reg { background: var(--ebr-card); border: 1px solid var(--ebr-border); border-radius: var(--ebr-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.ebr-account__reg-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.ebr-account__reg-head h3 { margin: 0; }
.ebr-account__reg-meta { display: grid; grid-template-columns: 140px 1fr; gap: .25rem .75rem; margin: 0 0 .75rem; }
.ebr-account__reg-meta dt { color: var(--ebr-muted); }
.ebr-account__reg-meta dd { margin: 0; }
.ebr-account__deadline { display: block; margin-top: .35rem; color: var(--ebr-muted); }

.ebr-page { background: var(--ebr-card); border: 1px solid var(--ebr-border); border-radius: var(--ebr-radius); padding: 1.5rem; }
.ebr-page__head h1 { margin-top: 0; }

.ebr-404 { text-align: center; padding: 3rem 0; }

@media (max-width: 600px) {
	.ebr-account__reg-meta { grid-template-columns: 1fr; }
}
