.event-detail { padding-bottom: 54px; }
.event-back { margin: 4px 0 16px; }
.event-back a, .event-text-link {
    color: var(--accent);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.event-heading, .event-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}
.event-article { display: grid; gap: 14px; }
.event-heading {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 188px;
    align-items: center;
    background: #eef2fc;
    color: var(--heading-ink, #29244f);
}
.event-heading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, #f7f8fdef, #f4f5fbdc 59%, #eef1f9ad);
}
.event-banner.detail-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: auto;
    margin: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
}
.event-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-banner:not(:has(img)) { filter: hue-rotate(23deg) saturate(.8); }
.event-heading-copy { padding: clamp(16px, 2.6vw, 32px); }
.event-heading h1 {
    max-width: 1050px;
    margin: 8px 0 10px;
    font-size: calc(var(--menu-font-size, 18px) * 1.3);
    line-height: 1.14;
    letter-spacing: -.028em;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 2px #fff, 0 0 10px #ffffffb0;
}
.event-heading-date { display: flex; align-items: center; gap: 7px; margin: 0; color: #413b65; font-weight: 700; }
.event-heading-date .icon { width: 18px; height: 18px; }
.event-heading-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.event-address-copy { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: #413b65; font-size: 14px; text-decoration: none; }
.event-address-copy span { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.event-address-copy .icon { width: 16px; height: 16px; flex: 0 0 16px; }
.event-heading .event-feedback { margin: 4px 0 0; color: #413b65; }
.event-detail dt { color: var(--muted); font-size: .875rem; }
.event-detail dd { margin: 2px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 14px;
    border: 1px solid #c4d3e8;
    border-radius: 11px;
    background: #f8faff;
    color: var(--accent-deep);
    font-weight: 750;
    font-size: .925rem;
    text-align: center;
}
.event-button:hover { background: #e7f0fb; }
.event-button-primary { border-color: transparent; background: var(--accent); color: white; }
.event-button-primary:hover { background: var(--accent-deep); }
.event-button:disabled { opacity: .6; cursor: wait; }

.event-panel { padding: clamp(14px, 2vw, 22px); }
.event-panel h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.03em; }
.event-panel p { margin: 0 0 12px; }
.event-panel p:last-child { margin-bottom: 0; }
.event-join { display: grid; gap: 8px; }
.event-join h2, .event-join p { margin: 0; }
.event-join form { margin: 0; }
.spg-smart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    padding: 6px 0;
    font-family: 'Open Sans', sans-serif;
}
.spg-smart-actions > p { flex-basis: 100%; text-align: center; }
.spg-smart-actions .reg-block { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; }
.spg-smart-actions .spg-btn-base {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 55px;
    min-width: min(240px, 100%);
    max-width: 100%;
    padding: 10px 20px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    color: #fff;
    font: 800 13px/1.1 'Open Sans', sans-serif;
    letter-spacing: .5px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
}
.spg-btn-base svg { flex-shrink: 0; opacity: .9; }
.spg-btn-base .ajax-reg-btn-text { display: flex; flex-direction: column; }
.spg-btn-base small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; opacity: .9; text-transform: none; }
.spg-smart-actions .spg-btn-base:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.2); filter: brightness(1.1); }
.spg-smart-actions .spg-btn-base:disabled { opacity: .6; cursor: wait; }
.spg-smart-actions .btn-online { background: linear-gradient(135deg, #2e50b1 0%, #4a6fd6 100%); }
.spg-smart-actions .btn-offline { background: linear-gradient(135deg, #92400e 0%, #d97706 100%); }
.spg-smart-actions .btn-watch { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.spg-smart-actions .btn-guest-reg { background: linear-gradient(135deg, #0575e6 0%, #021b79 100%); }
.spg-smart-actions .btn-guest-login { background: #fff; color: #021b79; border: 2px solid #021b79; }
.spg-smart-actions .btn-guest-login, .spg-smart-actions .btn-guest-login:hover { box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.spg-smart-actions .is-registered { background: linear-gradient(135deg, #059669 0%, #10b981 100%); border: 1px solid #047857; }
.spg-smart-actions .is-registered:hover { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.spg-smart-actions .btnTicket {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    max-width: 100%;
    padding: 8px 10px;
    background: #fff;
    color: #92400e;
    border: 2px solid #92400e;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: .2s;
}
.spg-smart-actions .btnTicket:hover { background: #fef3c7; }
.spg-smart-actions .reg-block:has(.btnTicket) { justify-content: center; }
.event-ticket-label { display: inline-flex; align-items: center; gap: 7px; }
.event-ticket-code {
    display: block;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 20px;
    background: #fff;
    line-height: 0;
}
.event-ticket-code canvas, .event-ticket-code img {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

#event-auth {
    position: fixed;
    inset: 2vh 0 auto;
    margin: 0 auto;
    width: min(95vw, 500px);
    height: 90vh;
    height: 90dvh;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}
#event-auth::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
html:has(#event-auth[open]) { overflow: hidden; }
#event-auth iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.event-auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0006;
    color: #fff;
    font: 700 28px/1 sans-serif;
    cursor: pointer;
}
.event-rich-text { overflow-x: auto; overflow-wrap: anywhere; }
.event-rich-text img { max-width: 100%; height: auto; }
#program { padding: 0; }
.event-program-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: clamp(14px, 2vw, 22px); }
.event-program-toolbar h2, .event-program-toolbar p { margin: 0; }
.event-program-toolbar p { flex-basis: 100%; }
.sp-prog-actions-v5 { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.sp-prog-actions-v5 .sp-prog-btn-v5 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 2px solid #1a3b75;
    border-radius: 8px;
    background: #1a3b75;
    color: #fff;
    font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.sp-prog-actions-v5 .sp-prog-btn-v5:hover { filter: brightness(1.1); }
.sp-prog-actions-v5 .sp-prog-btn-ghost-v5 { background: #fff; color: #1a3b75; }
.event-emoji { width: 1em; height: 1em; margin: 0 .07em; flex-shrink: 0; }
.event-program-frame { display: block; width: 100%; height: 72vh; min-height: 420px; border: 0; border-top: 1px solid var(--line); background: #f3f6fc; }
.event-program-text { padding: 0 clamp(14px, 2vw, 22px) 16px; }
.event-pdf { border-top: 1px solid var(--line); background: #e7edf6; }
.event-pdf [data-pdf-status] { padding: 16px; }
.event-pdf-page { width: 100%; background: white; }
.event-pdf-page + .event-pdf-page { margin-top: 8px; }
.event-pdf-page canvas { display: block; width: 100%; height: auto; }
.event-info { margin: 0; }
.event-info > div + div { margin-top: 12px; }
.event-feedback { color: var(--accent-deep); font-size: 14px; overflow-wrap: anywhere; }
.event-feedback:empty { display: none; }

.event-join > .event-text-link, .event-quick-edit {
    width: fit-content;
    padding-block: 3px;
    color: #637085;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}
.event-quick-edit { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.event-quick-edit input { margin: 0; accent-color: var(--accent); }
.event-join > .event-text-link:hover, .event-join > .event-text-link:focus-visible,
.event-quick-edit:hover, .event-quick-edit:focus-within {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.event-edit-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-inline-start: 4px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #e9f0fb;
    color: var(--accent-deep);
    vertical-align: middle;
}
.event-edit-icon svg { width: 15px; height: 15px; }
.event-edit-icon:hover { background: #d8e5f8; }
.event-edit-icon:disabled { opacity: .45; cursor: default; }
.event-edit-empty { color: #637085; font-weight: 400; }
.event-inline-form {
    display: grid;
    gap: 8px;
    margin: 6px 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f3f6fc;
    color: var(--ink);
    font: 400 14px/1.4 Inter, 'Segoe UI', Arial, sans-serif;
}
.event-inline-form textarea, .event-inline-form input:not([type="hidden"]) {
    display: block;
    width: 100%;
    padding: 7px;
    border: 1px solid #c4d3e8;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}
.event-inline-form textarea { resize: vertical; }
.event-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-inline-actions .event-button { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.event-inline-form .event-feedback { margin: 0; }
#program [data-edit-slot] { min-width: 0; max-width: 100%; }

@media (max-width: 740px) {
    .event-detail { padding-bottom: 28px; }
    .event-back { margin: 6px 0 10px; }
    .event-article { gap: 10px; }
    .event-heading { min-height: 0; }
    .event-program-frame { min-height: 340px; height: 56vh; }
}
