:root {
    --ev-bg: #f7f2ea;
    --ev-bg-deep: #1a120c;
    --ev-surface: #fffdf9;
    --ev-border: rgba(26, 18, 12, 0.1);
    --ev-text: #2b2118;
    --ev-muted: #6b5c50;
    --ev-accent: #c45c26;
    --ev-accent-hover: #a84a1a;
    --ev-green: #2f5d4a;
    --ev-radius: 16px;
    --ev-shadow: 0 18px 50px rgba(26, 18, 12, 0.12);
    --ev-font: "DM Sans", system-ui, sans-serif;
    --ev-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--ev-font);
    color: var(--ev-text);
    background: var(--ev-bg);
    line-height: 1.5;
}

.ev-display {
    font-family: var(--ev-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
    letter-spacing: -0.02em;
}

.ev-display--light { color: #fff; }

.ev-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ev-accent);
    margin: 0 0 .75rem;
}

.ev-kicker--light { color: rgba(255,255,255,.85); }

.ev-lead {
    font-size: 1.125rem;
    color: var(--ev-muted);
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

.ev-lead--light { color: rgba(255,255,255,.88); }

.ev-section { padding: 3rem 0 4rem; }
.ev-section--narrow { max-width: 720px; }
.ev-section-title { font-family: var(--ev-display); font-size: 1.75rem; margin: 0 0 .35rem; }
.ev-section-sub { color: var(--ev-muted); margin: 0 0 2rem; }

.ev-hero-home {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(196,92,38,.25), transparent 55%),
        linear-gradient(160deg, #2f5d4a 0%, #1a120c 70%);
    color: #fff;
    padding: 5rem 0 4rem;
}

.ev-hero-home__inner { max-width: 720px; }

.ev-btn-primary {
    --bs-btn-bg: var(--ev-accent);
    --bs-btn-border-color: var(--ev-accent);
    --bs-btn-hover-bg: var(--ev-accent-hover);
    --bs-btn-hover-border-color: var(--ev-accent-hover);
    --bs-btn-color: #fff;
    border-radius: 999px;
    padding: .65rem 1.35rem;
    font-weight: 600;
}

.ev-event-card {
    display: block;
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--ev-shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.ev-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(26, 18, 12, 0.16);
    color: inherit;
}

.ev-event-card__date {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ev-accent);
    margin-bottom: .5rem;
}

.ev-event-card h3 {
    font-family: var(--ev-display);
    font-size: 1.35rem;
    margin: 0 0 .5rem;
}

.ev-event-card p { color: var(--ev-muted); margin: 0 0 1rem; }

.ev-event-card__cta {
    font-weight: 600;
    color: var(--ev-green);
    font-size: .9rem;
}

.ev-portal-hero {
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3rem;
    background: linear-gradient(160deg, #2f5d4a, #1a120c);
    background-size: cover;
    background-position: center;
}

.ev-portal-hero__content { padding-bottom: 1rem; }

.ev-portal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.5rem;
}

.ev-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
}

.ev-chip:hover { background: rgba(255,255,255,.24); color: #fff; }
.ev-chip--wa { background: rgba(37, 211, 102, .2); border-color: rgba(37, 211, 102, .35); }

.ev-category-card {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--ev-shadow);
}

.ev-category-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: rgba(196, 92, 38, .12);
    color: var(--ev-accent);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.ev-category-card h3 {
    font-family: var(--ev-display);
    font-size: 1.25rem;
    margin: 0 0 .5rem;
}

.ev-category-card p {
    color: var(--ev-muted);
    font-size: .95rem;
    margin: 0 0 1.25rem;
    min-height: 2.8rem;
}

.ev-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ev-muted);
}

.ev-empty i { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: .6; }

.ev-shell--guest .ev-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.ev-auth-card {
    width: min(420px, 100%);
    background: var(--ev-surface);
    border-radius: var(--ev-radius);
    padding: 2rem;
    box-shadow: var(--ev-shadow);
    border: 1px solid var(--ev-border);
}

.ev-auth-card__head { text-align: center; margin-bottom: 1.5rem; }
.ev-auth-card__head i { font-size: 2rem; color: var(--ev-accent); }
.ev-auth-card__head h1 { font-family: var(--ev-display); font-size: 1.5rem; margin: .5rem 0; }
.ev-auth-foot { text-align: center; margin: 1.25rem 0 0; font-size: .9rem; }

.ev-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1.5rem;
    background: var(--ev-bg-deep);
    color: #fff;
}

.ev-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.ev-topnav { display: flex; gap: 1rem; flex-wrap: wrap; }
.ev-topnav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; }
.ev-topnav a:hover { color: #fff; }
.ev-topnav-muted { opacity: .65; }

.ev-main { min-height: calc(100vh - 56px); }

.ev-panel {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.5rem;
    box-shadow: var(--ev-shadow);
}

.ev-panel h2 {
    font-family: var(--ev-display);
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
}

.ev-panel--sticky { position: sticky; top: 1.5rem; }

.ev-input {
    border-radius: 10px;
    border-color: var(--ev-border);
}

.ev-table-wrap {
    background: var(--ev-surface);
    border-radius: var(--ev-radius);
    border: 1px solid var(--ev-border);
    box-shadow: var(--ev-shadow);
}

.ev-table { margin: 0; }
.ev-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ev-muted); }

.ev-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ev-badge--draft { background: #eee; color: #666; }
.ev-badge--published { background: rgba(47,93,74,.15); color: var(--ev-green); }
.ev-badge--archived { background: rgba(26,18,12,.08); color: var(--ev-muted); }

.ev-stat {
    background: var(--ev-surface);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 1.25rem 1.5rem;
}

.ev-stat span { display: block; color: var(--ev-muted); font-size: .85rem; }
.ev-stat strong { font-family: var(--ev-display); font-size: 2rem; }

.ev-flash-wrap {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: grid;
    gap: .5rem;
    max-width: min(420px, calc(100vw - 2rem));
}

.ev-flash {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    box-shadow: var(--ev-shadow);
    font-size: .92rem;
}

.ev-flash--ok { background: #e8f5ef; color: #1e5a3a; }
.ev-flash--err { background: #fdecea; color: #8b2e24; }

.ev-preview img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ev-border);
}

.ev-preview-banner {
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    padding: .65rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    border-bottom: 1px solid #ffecb5;
}

.ev-prose { color: var(--ev-muted); line-height: 1.7; }

.ev-meta { margin: .5rem 0 0; }
.ev-meta--light { color: rgba(255,255,255,.8); }

@media (max-width: 768px) {
    .ev-portal-hero { min-height: 70vh; }
    .ev-topbar { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
