/* Sale page shares the home palette, navigation and footer, with its own layout. */
.event-page [hidden] { display:none !important; }
.event-main { padding-bottom:60px; }
.event-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:25px 0 30px; color:var(--muted); font-size:12px; }
.event-breadcrumb a { display:inline-flex; align-items:center; gap:9px; min-height:44px; color:var(--ink); }
.event-breadcrumb .icon { width:16px; height:16px; transform:rotate(180deg); }
.event-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; grid-template-areas:"intro purchase" "media purchase" "information purchase"; gap:25px 42px; align-items:start; }
.event-intro { grid-area:intro; min-width:0; }
.event-title-row { min-height:44px; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.event-status { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:650; padding:8px 11px; border-radius:5px; background:#e8f2e7; color:#315b2a; }
.event-status>span { width:6px; height:6px; border-radius:50%; background:currentColor; }
.event-status.status-finished,.event-status.status-unavailable { color:#853e32; background:#f5e9e4; }
.event-status.status-scheduled { color:#72551e; background:#f7efdc; }
.event-page h1 { margin-top:16px; font-size:42px; line-height:1.12; letter-spacing:-1.8px; overflow-wrap:anywhere; }
.event-intro-meta { display:flex; align-items:center; flex-wrap:wrap; gap:0 18px; }
.event-subtitle { display:flex; align-items:center; gap:7px; font-size:14px; color:var(--muted); margin-top:15px; }
.event-subtitle .icon { width:17px; height:17px; color:var(--red); }
.share-tools { position:relative; }
.share-popover { position:absolute; top:48px; right:0; width:min(270px,calc(100vw - 40px)); padding:14px; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 30px #0001; z-index:10; }
.share-button { min-height:44px; display:inline-flex; align-items:center; gap:8px; background:transparent; font-size:12px; color:var(--muted); padding:10px 0 10px 10px; }
.share-button .icon { width:18px; height:18px; }
.share-feedback { font-size:12px; line-height:1.6; margin-top:8px; color:var(--muted); }
.share-feedback:empty { display:none; }
.share-fallback { display:block; font-size:13px; margin-top:12px; }
.share-fallback input { display:block; width:100%; min-height:48px; font-size:16px; padding:10px; margin-top:6px; border:1px solid var(--line); border-radius:6px; }
.event-media { grid-area:media; min-width:0; }
.event-poster { background:#e9ece3; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.event-poster>img { width:100%; max-height:590px; object-fit:contain; height:auto; }
.poster-fallback { min-height:330px; padding:35px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; position:relative; overflow:hidden; isolation:isolate; background:linear-gradient(120deg,#181e19,#303b2f); color:#fff; }
.poster-fallback::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(130deg,transparent 0 65px,#ffffff05 65px 66px); z-index:-1; }
.poster-brand { font-style:italic; font-weight:900; font-size:65px; color:#f26453; line-height:1; }
.poster-fallback>span:not(.poster-brand) { font-size:10px; letter-spacing:2px; margin-top:18px; color:#c4cebe; }
.poster-fallback>strong { font-size:27px; letter-spacing:-.8px; line-height:1.2; max-width:440px; margin-top:12px; }
.poster-fallback>small { font-size:11px; color:#b2bfa9; margin-top:20px; }
.event-video { border:1px solid var(--line); border-radius:8px; margin-top:12px; overflow:hidden; }
.event-video summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:12px 16px; font-size:14px; cursor:pointer; list-style:none; }
.event-video summary::-webkit-details-marker { display:none; }
.event-video summary .icon { width:18px; height:18px; transform:rotate(90deg); }
.video-container { aspect-ratio:16/9; background:#171b17; display:flex; align-items:center; justify-content:center; }
.video-container p { color:#ddd; font-size:14px; padding:20px; }
.video-container iframe { width:100%; height:100%; border:0; }
.event-purchase { grid-area:purchase; position:sticky; top:24px; min-width:0; }
.purchase-card { padding:27px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 35px #1a271009; }
.purchase-card .section-kicker { font-size:9px; }
.sale-price { margin-top:22px; }
.sale-price>span { display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.sale-price>strong { font-size:40px; font-weight:750; letter-spacing:-1.7px; line-height:1.2; }
.sale-price small { font-size:14px; letter-spacing:0; font-weight:500; color:var(--muted); margin-left:4px; }
.sale-status-note { padding:15px; border:1px solid #e7e9df; border-radius:7px; margin-top:22px; background:#f5f7f0; color:#3a5031; }
.sale-status-note>strong { display:block; font-size:13px; }
.sale-status-note>p { margin-top:7px; font-size:12px; line-height:1.7; }
.sale-status-note.status-finished,.sale-status-note.status-unavailable { background:#fcf1ed; color:#853e32; border-color:#f0ded7; }
.sale-status-note.status-scheduled { background:#fcf7e9; color:#72551e; border-color:#eee5c9; }
.sale-cta { width:100%; margin-top:17px; min-height:52px; font-size:14px; gap:12px; }
.sale-cta.is-disabled { color:#596052; background:#e6e9e0; cursor:not-allowed; }
.sale-cta.is-disabled:hover { transform:none; }
.purchase-caption { font-size:11px; color:var(--muted); line-height:1.6; text-align:center; margin-top:12px; }
.trial-note { font-size:12px; color:var(--muted); line-height:1.6; margin-top:12px; }
.purchase-facts { margin-top:24px; padding-top:21px; border-top:1px solid var(--line); display:grid; gap:17px; }
.purchase-facts>div { display:flex; gap:11px; align-items:flex-start; }
.purchase-facts .icon { width:18px; height:18px; color:var(--red); }
.purchase-facts span { font-size:11px; color:var(--muted); }
.purchase-facts strong { display:block; font-size:13px; color:var(--ink); margin-top:4px; }
.purchase-organizer { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:18px; margin-top:22px; min-height:60px; }
.purchase-organizer span { font-size:11px; color:var(--muted); }
.purchase-organizer strong { display:block; font-size:13px; margin-top:5px; color:var(--ink); }
.purchase-organizer .icon { width:17px; height:17px; color:var(--red); }
.event-information { grid-area:information; min-width:0; }
.event-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:23px; background:#f0f1e9; border:1px solid var(--line); border-radius:10px; }
.event-facts>div { display:flex; align-items:flex-start; gap:12px; }
.event-facts .icon { color:var(--red); width:21px; height:21px; }
.event-facts span { font-size:11px; color:var(--muted); }
.event-facts strong { display:block; font-size:16px; color:var(--ink); margin-top:5px; line-height:1.4; }
.event-facts small { display:block; margin-top:4px; font-size:12px; }
.event-section-nav { display:flex; flex-wrap:wrap; gap:26px; border-bottom:1px solid var(--line); margin-top:22px; }
.event-section-nav a { display:flex; align-items:center; min-height:49px; font-size:12px; color:var(--muted); }
.event-section-nav a:hover { color:var(--red); }
.event-content-section { margin-top:35px; scroll-margin-top:25px; }
.event-content-section h2 { font-size:29px; margin:10px 0 20px; }
.event-description { font-size:16px; color:#50584c; line-height:1.85; overflow-wrap:anywhere; }
.event-description>* { max-width:100%; }
.event-description p { margin-bottom:16px; }
.event-description :is(h1,h2,h3,h4) { font-size:23px; letter-spacing:-.5px; line-height:1.3; margin:25px 0 14px; color:var(--ink); }
.event-description :is(ul,ol) { padding-left:24px; margin:15px 0; }
.event-description li { margin-block:7px; }
.event-description img { max-width:100%; height:auto; border-radius:8px; margin-block:18px; }
.event-description a { color:var(--red); text-decoration:underline; }
.event-description table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; }
.event-description :is(td,th) { padding:10px; border:1px solid var(--line); }
.event-description blockquote { border-left:3px solid var(--red); padding:5px 18px; margin:20px 0; }
.included-items { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; margin:0; }
.included-items li { display:flex; gap:10px; align-items:flex-start; background:#eff2e9; padding:16px; border-radius:7px; font-size:14px; line-height:1.6; }
.included-items .icon { color:#426336; width:19px; height:19px; margin-top:2px; }
.organizer-profile { display:flex; align-items:center; gap:16px; padding:22px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.organizer-avatar { display:grid; place-items:center; width:50px; height:50px; border-radius:8px; background:#eef0e7; color:#536147; font-size:24px; font-weight:650; flex-shrink:0; }
.organizer-profile>span:nth-child(2) { display:flex; flex-direction:column; gap:5px; min-width:0; }
.organizer-profile small { font-size:11px; color:var(--muted); }
.organizer-profile strong { font-size:17px; overflow-wrap:anywhere; }
.organizer-profile>span:nth-child(2)>span { color:var(--red); font-size:12px; margin-top:3px; }
.organizer-profile>.icon { margin-left:auto; color:var(--red); }
.other-events { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:60px; font-size:14px; border-top:1px solid var(--line); margin-top:35px; padding-top:15px; }
.other-events .icon { color:var(--red); }
.mobile-purchase { display:none; }
@media(max-width:1050px) {
    .event-layout { grid-template-columns:minmax(0,1fr) 310px; gap:23px; }
    .purchase-card { padding:22px; }
    .event-page h1 { font-size:35px; }
}
@media(max-width:800px) {
    .event-layout { grid-template-columns:1fr; grid-template-areas:"intro" "media" "purchase" "information"; gap:20px; }
    .event-purchase { position:static; }
    .purchase-facts,.purchase-organizer,.purchase-card>.section-kicker { display:none; }
    .purchase-card { padding:22px; }
    .sale-price { margin-top:0; }
    .sale-price>strong { font-size:34px; }
    .sale-status-note { margin-top:16px; }
    .event-section-nav { gap:18px; }
    .event-page { padding-bottom:110px; }
    .mobile-purchase { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:30; background:#fff; border-top:1px solid var(--line); box-shadow:0 -8px 24px #15210c0c; padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); gap:15px; align-items:center; }
    .mobile-purchase>div { flex:0 0 auto; }
    .mobile-purchase>div>span { display:block; font-size:11px; color:var(--muted); margin-bottom:4px; }
    .mobile-purchase strong { display:block; font-size:21px; letter-spacing:-.6px; }
    .mobile-purchase strong small { display:block; font-size:11px; letter-spacing:0; color:var(--muted); }
    .mobile-purchase>.sale-cta,.mobile-purchase>form { flex:1; min-width:0; margin:0; }
    .mobile-purchase .sale-cta { margin:0; font-size:14px; min-height:50px; padding:12px; }
    .mobile-purchase .icon { width:17px; height:17px; }
}
@media(max-width:640px) {
    .event-breadcrumb { margin:8px 0 13px; gap:10px; font-size:12px; }
    .event-breadcrumb a { font-size:14px; }
    .event-breadcrumb>span:last-child { display:none; }
    .event-title-row { gap:8px; }
    .event-status { font-size:12px; padding:8px 10px; }
    .share-button { width:44px; height:44px; padding:10px; justify-content:center; flex-shrink:0; }
    .share-button>span { display:none; }
    .share-button .icon { width:21px; height:21px; }
    .event-page h1 { font-size:29px; letter-spacing:-1px; line-height:1.15; margin-top:13px; }
    .event-subtitle { font-size:15px; margin-top:12px; }
    .event-layout { gap:18px; }
    .poster-fallback { min-height:215px; padding:24px 20px; }
    .poster-brand { font-size:44px; }
    .poster-fallback>span:not(.poster-brand) { font-size:10px; margin-top:12px; }
    .poster-fallback>strong { font-size:21px; max-width:280px; margin-top:10px; }
    .poster-fallback>small { font-size:11px; margin-top:15px; }
    .event-poster>img { max-height:none; }
    .event-video summary { font-size:15px; min-height:48px; }
    .purchase-card { padding:20px; border-radius:10px; }
    .sale-price>span { font-size:14px; }
    .sale-price>strong { font-size:35px; }
    .sale-price small { font-size:15px; }
    .sale-status-note { padding:14px; }
    .sale-status-note>strong { font-size:15px; }
    .sale-status-note>p { font-size:14px; line-height:1.6; }
    .sale-cta { font-size:16px; min-height:52px; }
    .purchase-caption { font-size:13px; }
    .event-facts { padding:18px 14px; gap:18px; }
    .event-facts>div { gap:8px; min-width:0; }
    .event-facts span { font-size:12px; }
    .event-facts strong { font-size:15px; overflow-wrap:anywhere; }
    .event-facts small { font-size:13px; }
    .event-facts .icon { width:18px; height:18px; }
    .event-section-nav { gap:5px 18px; margin-top:14px; }
    .event-section-nav a { font-size:14px; min-height:48px; }
    .event-content-section { margin-top:28px; }
    .event-content-section h2 { font-size:27px; margin-bottom:17px; }
    .event-description { font-size:16px; line-height:1.75; }
    .included-items { grid-template-columns:1fr; }
    .included-items li { font-size:16px; padding:15px; }
    .organizer-profile { padding:17px; gap:12px; }
    .organizer-profile small { font-size:13px; }
    .organizer-profile strong { font-size:17px; }
    .organizer-profile>span:nth-child(2)>span { font-size:14px; }
    .organizer-avatar { width:42px; height:42px; }
    .other-events { font-size:15px; line-height:1.6; }
    .event-main { padding-bottom:32px; }
    .share-feedback { font-size:14px; }
    .share-fallback { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
    .event-page * { scroll-behavior:auto; }
}
/* Registration deadline: four readable columns, including small smartphones. */
.event-countdown { margin-top:20px; padding:17px 14px; border:1px solid #efd6cf; border-radius:9px; background:#fff6f1; }
.event-countdown h2 { display:flex; align-items:center; gap:7px; margin:0 0 15px; font-size:14px; letter-spacing:0; line-height:1.5; font-weight:650; }
.event-countdown h2 .icon { width:18px; height:18px; color:var(--red); }
.countdown-units { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; text-align:center; }
.countdown-units>div { min-width:0; padding:10px 2px; background:#fff; border:1px solid #f0e4dd; border-radius:6px; }
.countdown-units strong { display:block; font-size:27px; font-weight:750; line-height:1.1; color:var(--red); font-variant-numeric:tabular-nums; }
.countdown-units span { display:block; font-size:10px; line-height:1.5; margin-top:5px; color:#665e57; }
.event-countdown>p,.event-countdown noscript p { font-size:11px; line-height:1.6; color:#665e57; margin-top:12px; }
@media(max-width:640px) {
    .event-countdown { padding:16px 12px; }
    .event-countdown h2 { font-size:15px; }
    .countdown-units strong { font-size:29px; }
    .countdown-units span { font-size:11px; }
    .event-countdown>p,.event-countdown noscript p { font-size:13px; }
}
