/*
 * Event page (app/event.html), "Wariant C" of the 2026 refresh. Colours come from ui-tokens.css.
 */
.event-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.event-main-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
    border-radius: var(--ui-radius);
}

.event-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-type-badge {
    align-self: flex-start;
    height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--ui-radius-sm);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.event-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 12px 0;
    border-top: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
    font-size: 17px;
}
.event-meta-item {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}
.event-meta-item svg {
    flex: none;
    color: var(--ui-text-subtle);
}
.event-meta-muted {
    color: var(--ui-text-subtle);
}
.event-ended-badge {
    padding: 1px 8px;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-hover);
    color: var(--ui-text-muted);
    font-size: 13px;
    font-weight: 700;
}
.event-next-edition {
    font-size: 15px;
}

.event-description {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.5;
}

/* Buttons */
.event-btn {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-sm);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}
.event-btn-primary {
    background: var(--ui-accent);
    color: #fff;
    font-weight: 700;
}
.event-btn-primary:hover {
    background: var(--ui-accent-hover);
    color: #fff;
}
.event-btn-lg {
    min-height: 48px;
    padding: 0 24px;
    font-size: 18px;
}
.event-btn-sm {
    align-self: flex-start;
    min-height: 32px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
}
.event-btn-light {
    background: var(--ui-surface);
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
    font-size: 15px;
}
.event-btn-light:hover {
    background: var(--ui-hover);
    color: var(--ui-text);
}
.event-btn-outline {
    align-self: flex-start;
    min-height: 38px;
    border-color: var(--ui-border-strong);
    color: var(--ui-text-2);
    font-size: 15px;
}
.event-btn-outline:hover {
    background: var(--ui-hover);
    color: var(--ui-text);
}

/* Sections */
.event-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.event-section-title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ui-border-strong);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.event-section-more {
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--ui-accent);
    font-weight: 600;
    text-decoration: none;
}
.event-section-more:hover {
    color: var(--ui-accent-hover);
    text-decoration: underline;
}
.event-related {
    margin-top: 12px;
}

/* Editions timeline (aside): a dot per edition joined by a line; ended editions muted, the current one filled */
.event-editions {
    margin: 0;
    padding: 0;
    list-style: none;
}
.event-edition {
    position: relative;
    padding: 0 0 18px 26px;
}
.event-edition:last-child {
    padding-bottom: 0;
}
.event-edition::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 2px;
    width: 2px;
    background: var(--ui-border);
}
.event-edition:last-child::before {
    display: none;
}
.event-edition::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ui-accent);
    border-radius: 50%;
    background: var(--ui-surface);
}
.event-edition.is-ended::after {
    border-color: var(--ui-border-strong);
    background: var(--ui-border-strong);
}
.event-edition.is-current::after {
    background: var(--ui-accent);
    box-shadow: 0 0 0 3px var(--ui-accent-soft);
}
.event-edition-body {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.event-edition-head {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}
.event-edition-year {
    margin-right: 4px;
    font-size: 17px;
    font-weight: 700;
}
a.event-edition-body .event-edition-head {
    color: var(--ui-accent);
}
a.event-edition-body:hover .event-edition-head {
    color: var(--ui-accent-hover);
    text-decoration: underline;
}
.event-edition.is-ended .event-edition-head {
    color: var(--ui-text-muted);
}
.event-edition-details {
    color: var(--ui-text-subtle);
    font-size: 14px;
}.event-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Sidebar */
.event-aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.event-organizer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    /* white like most logo backgrounds, so a logo's own white box does not show */
    background: var(--ui-surface);
    border: 1px solid var(--ui-border-strong);
    border-radius: 10px;
}
.event-organizer-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ui-text-subtle);
}
.event-organizer-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
/* Logos come in any shape, so no frame: the image keeps its own proportions within a generous box */
.event-organizer-logo {
    flex: none;
    display: block;
    width: auto;
    height: auto;
    max-width: 45%;
    max-height: 72px;
}
.event-organizer-name {
    min-width: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--ui-text);
    overflow-wrap: anywhere;
}
.event-organizer-name:hover {
    color: var(--ui-accent);
}
.event-organizer-description {
    margin: 0;
    font-size: 15px;
    color: var(--ui-text-2);
}
.event-organizer-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.event-organizer-social {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.event-organizer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-text-2);
}
.event-organizer-social a:hover {
    background: var(--ui-hover);
    color: var(--ui-text);
}

.event-map {
    display: block;
    width: 100%;
    aspect-ratio: 819 / 484;
    border: 0;
    border-radius: var(--ui-radius);
}

.event-compact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.event-compact:hover .event-compact-title {
    color: var(--ui-accent);
}
.event-compact-image {
    flex: none;
    display: block;
    width: 132px;
    height: 74px;
    object-fit: cover;
    border-radius: var(--ui-radius-sm);
}
.event-compact-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.event-compact-title {
    font-weight: 700;
    line-height: 1.25;
}
.event-compact-date {
    font-size: 14px;
    color: var(--ui-text-subtle);
}
.event-compact-place {
    font-size: 14px;
    font-weight: 600;
}
.event-live-badge {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--ui-success-soft);
    color: var(--ui-success-text);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .event-page {
        padding-bottom: 0;
    }
    .event-aside {
        padding-top: 40px;
    }
    .event-title {
        font-size: 30px;
    }
}
