.ded-event-page-wrap,.ded-shortcode-wrap,.ded-event-hub{--ded-brand:#111;--ded-accent:#d4145a;--ded-secondary:#2b82c9;--ded-hero-bg:#f8f8fb;--ded-card-bg:#fff;--ded-text:#111827;--ded-muted:#5b6472;--ded-button-text:#fff;--ded-radius:18px;--ded-max-width:1240px;color:var(--ded-text)}
.ded-event-shell,.ded-event-hub{max-width:var(--ded-max-width);margin:0 auto;padding:34px 20px 60px}.ded-back-link{display:inline-block;margin:0 0 20px;color:var(--ded-secondary);font-weight:800;text-decoration:none}
.ded-event-hero,.ded-hub-hero{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:38px;align-items:center;background:linear-gradient(135deg,var(--ded-hero-bg),#fff);border-radius:var(--ded-radius);padding:42px;box-shadow:0 16px 50px rgba(17,24,39,.08);position:relative;overflow:hidden}.ded-event-hero:before,.ded-hub-hero:before{content:"";position:absolute;inset:-50px auto auto -20px;width:560px;height:170px;background:linear-gradient(90deg,var(--ded-accent),var(--ded-secondary));opacity:.13;filter:blur(18px);transform:rotate(-4deg)}
.ded-event-hero-copy,.ded-event-date-card,.ded-hub-hero>*{position:relative;z-index:1}.ded-event-kicker,.ded-hub-kicker{font-weight:950;text-transform:uppercase;letter-spacing:.09em;color:var(--ded-accent);font-size:13px;margin-bottom:10px}.ded-event-hero h1,.ded-hub-hero h2{font-size:clamp(34px,5vw,68px);line-height:.95;margin:0;color:var(--ded-brand);letter-spacing:-.04em}.ded-hub-hero p{font-size:20px;color:var(--ded-muted);max-width:780px}.ded-gradient-rule{height:7px;width:min(540px,80%);background:linear-gradient(90deg,var(--ded-secondary),var(--ded-accent));border-radius:999px;margin:22px 0}
.ded-badge-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.ded-badge{display:inline-flex;align-items:center;background:#fff;border:1px solid rgba(17,24,39,.12);border-radius:999px;padding:7px 11px;font-weight:850;font-size:12px;color:var(--ded-text);box-shadow:0 3px 10px rgba(0,0,0,.05)}.ded-badge-hot{background:var(--ded-accent);border-color:var(--ded-accent);color:var(--ded-button-text)}
.ded-event-summary{font-size:18px;color:var(--ded-muted);max-width:760px}.ded-event-summary p{margin:0}.ded-cta-row,.ded-hub-pills{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.ded-button,.ded-hub-pills a{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:12px 18px;font-weight:900;text-decoration:none;transition:transform .15s,box-shadow .15s}.ded-button:hover,.ded-hub-pills a:hover{transform:translateY(-1px)}.ded-button-primary,.ded-hub-pills a{background:var(--ded-accent);color:var(--ded-button-text);box-shadow:0 10px 22px rgba(212,20,90,.25)}.ded-button-secondary{background:var(--ded-brand);color:var(--ded-button-text);box-shadow:0 10px 22px rgba(17,17,17,.15)}.ded-button-light{background:#fff;color:var(--ded-brand);border:1px solid rgba(17,24,39,.12)}
.ded-event-date-card{background:var(--ded-card-bg);border-radius:calc(var(--ded-radius) - 4px);padding:28px;border:1px solid rgba(17,24,39,.1);box-shadow:0 14px 32px rgba(17,24,39,.08)}.ded-date-main{font-size:28px;font-weight:950;line-height:1.05;color:var(--ded-brand)}.ded-time-main{font-size:24px;font-weight:900;margin-top:10px;color:var(--ded-accent)}.ded-date-venue{font-weight:850;margin-top:18px}.ded-calendar-note{color:var(--ded-muted);font-size:13px;margin-top:14px}
.ded-sponsor-slot{display:flex;align-items:center;justify-content:center;min-height:82px;border:1px dashed rgba(17,24,39,.25);border-radius:var(--ded-radius);background:repeating-linear-gradient(45deg,#fff,#fff 10px,var(--ded-hero-bg) 10px,var(--ded-hero-bg) 20px);color:var(--ded-muted);margin:26px 0;gap:12px}.ded-sponsor-slot span{font-size:11px;text-transform:uppercase;letter-spacing:.1em}.ded-sponsor-slot strong{color:var(--ded-brand)}
.ded-event-body-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:34px;margin-top:34px}.ded-event-main,.ded-side-card,.ded-related-section{background:var(--ded-card-bg);border-radius:var(--ded-radius);box-shadow:0 10px 34px rgba(17,24,39,.07);border:1px solid rgba(17,24,39,.08)}.ded-event-main{overflow:hidden}.ded-event-image{margin:0;background:#111}.ded-event-image img{display:block;width:100%;height:auto}.ded-event-content{font-size:18px;line-height:1.65;padding:34px}.ded-tribe-calendar-links{padding:0 34px 34px}.ded-side-card{padding:24px;margin-bottom:18px}.ded-side-card h2{margin:0 0 10px;font-size:18px;color:var(--ded-brand)}.ded-side-card h3{margin:0 0 8px;font-size:24px}.ded-quick-facts dl{display:grid;grid-template-columns:80px 1fr;gap:8px;margin:0}.ded-quick-facts dt{font-weight:900;color:var(--ded-muted)}.ded-quick-facts dd{margin:0;font-weight:800}.ded-text-link{font-weight:900;color:var(--ded-accent)}.ded-side-actions{display:flex;gap:10px;flex-wrap:wrap}.ded-share-row{display:flex;gap:8px;flex-wrap:wrap}.ded-share-row a{display:inline-block;background:var(--ded-hero-bg);border:1px solid rgba(17,24,39,.1);border-radius:999px;padding:8px 11px;text-decoration:none;font-weight:850;color:var(--ded-text)}
.ded-related-section{padding:28px;margin-top:34px}.ded-related-section h2,.ded-section-title{margin-top:0;font-size:30px;color:var(--ded-brand)}.ded-prev-next{display:flex;justify-content:space-between;gap:14px;margin-top:28px;border-top:1px solid rgba(17,24,39,.12);padding-top:24px}.ded-prev-next a{font-weight:900;text-decoration:none;color:var(--ded-accent)}
.ded-events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ded-event-card{background:var(--ded-card-bg);border:1px solid rgba(17,24,39,.1);border-radius:var(--ded-radius);overflow:hidden;box-shadow:0 8px 26px rgba(17,24,39,.08);display:flex;flex-direction:column}.ded-event-card-image{display:block;position:relative;aspect-ratio:16/10;background:linear-gradient(135deg,var(--ded-brand),var(--ded-secondary));overflow:hidden}.ded-event-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.ded-event-card:hover img{transform:scale(1.035)}.ded-card-badge{position:absolute;left:12px;top:12px;background:var(--ded-accent);color:var(--ded-button-text);font-weight:900;padding:6px 10px;border-radius:999px;font-size:12px}.ded-card-date-chip{position:absolute;right:12px;top:12px;background:#fff;color:var(--ded-brand);border-radius:12px;min-width:54px;min-height:54px;display:grid;place-items:center;box-shadow:0 4px 16px rgba(0,0,0,.14);overflow:hidden}.ded-card-date-chip strong{font-size:11px;color:var(--ded-accent)}.ded-card-date-chip em{font-style:normal;font-size:24px;font-weight:950;line-height:.8}.ded-event-card-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#fff;font-size:42px;font-weight:900;letter-spacing:.08em}.ded-event-card-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}.ded-event-card-date{font-size:12px;font-weight:950;color:var(--ded-accent);text-transform:uppercase;letter-spacing:.05em}.ded-event-card h3{font-size:22px;line-height:1.05;margin:0}.ded-event-card h3 a{text-decoration:none;color:var(--ded-brand)}.ded-event-card p{color:var(--ded-muted);margin:0}.ded-event-card-venue{font-weight:850;color:var(--ded-muted)}.ded-card-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto;padding-top:10px}.ded-card-footer a{font-weight:900;color:var(--ded-accent);text-decoration:none}
.ded-card-layout-featured{display:grid;grid-template-columns:42% 1fr}.ded-card-layout-featured .ded-event-card-image{aspect-ratio:auto;min-height:280px}.ded-card-layout-featured .ded-event-card-body{padding:28px}.ded-card-layout-featured h3{font-size:34px}
.ded-filter-bar{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;background:#fff;border:1px solid rgba(17,24,39,.1);border-radius:var(--ded-radius);padding:16px;margin:22px 0;box-shadow:0 8px 24px rgba(17,24,39,.05)}.ded-filter-bar label{display:block;font-size:12px;font-weight:900;text-transform:uppercase;color:var(--ded-muted);letter-spacing:.06em;margin-bottom:5px}.ded-filter-bar input,.ded-filter-bar select{width:100%;border:1px solid rgba(17,24,39,.18);border-radius:10px;padding:10px 12px}.ded-filter-actions{display:flex;gap:8px}.ded-filter-actions button{border:0;border-radius:10px;background:var(--ded-accent);color:#fff;font-weight:900;padding:11px 14px}.ded-filter-actions a{align-self:center;font-weight:850;color:var(--ded-muted)}
.ded-map-list{display:grid;gap:10px}.ded-map-list article{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid rgba(17,24,39,.1);border-radius:12px;padding:14px}.ded-map-list a{font-weight:900;color:var(--ded-accent)}
.ded-events-search{display:flex;gap:8px;max-width:760px}.ded-events-search input{flex:1;border:1px solid rgba(17,24,39,.18);border-radius:999px;padding:12px 16px}.ded-events-search button{border:0;border-radius:999px;background:var(--ded-accent);color:var(--ded-button-text);font-weight:900;padding:12px 18px}
.ded-mobile-action-bar{display:none}.ded-preset-flyer_first .ded-event-hero{grid-template-columns:1fr;background:var(--ded-brand);color:#fff}.ded-preset-flyer_first .ded-event-hero h1,.ded-preset-flyer_first .ded-date-main{color:#fff}.ded-preset-flyer_first .ded-event-date-card{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.2)}.ded-preset-compact .ded-event-hero{padding:28px}.ded-preset-compact .ded-event-hero h1{font-size:clamp(30px,4vw,48px)}.ded-preset-minimal .ded-event-hero,.ded-preset-minimal .ded-event-main,.ded-preset-minimal .ded-side-card,.ded-preset-minimal .ded-related-section{box-shadow:none}
@media(max-width:980px){.ded-event-hero,.ded-hub-hero,.ded-event-body-grid{grid-template-columns:1fr}.ded-events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ded-card-layout-featured{grid-template-columns:1fr}.ded-filter-bar{grid-template-columns:1fr 1fr}.ded-event-date-card{max-width:none}}
@media(max-width:640px){.ded-event-shell,.ded-event-hub{padding:20px 12px 84px}.ded-event-hero,.ded-hub-hero{padding:24px}.ded-event-content{padding:22px;font-size:16px}.ded-events-grid{grid-template-columns:1fr}.ded-prev-next{display:grid}.ded-events-search,.ded-filter-bar,.ded-map-list article{display:grid;grid-template-columns:1fr}.ded-mobile-action-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:99999;display:flex;gap:8px;align-items:center;justify-content:space-between;background:var(--ded-brand);color:#fff;border-radius:999px;padding:9px 10px 9px 14px;box-shadow:0 12px 30px rgba(0,0,0,.25)}.ded-mobile-action-bar a{background:var(--ded-accent);color:#fff;border-radius:999px;padding:8px 10px;text-decoration:none;font-weight:900}.ded-mobile-action-bar strong{font-size:12px}}

.ded-card-recurring{position:absolute;left:12px;bottom:12px;background:#111;color:#fff;font-weight:900;padding:6px 10px;border-radius:999px;font-size:12px}
.ded-event-lane{margin-top:34px}
.ded-lane-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ded-lane-head h3{font-size:30px;line-height:1;margin:0;color:var(--ded-brand)}
.ded-hub-lanes .ded-event-lane:first-child{margin-top:20px}

/* DED v2.4 real ads */
.ded-ad-zone{display:grid;gap:14px;margin:26px 0}
.ded-ad-zone-sidebar_top,.ded-ad-zone-sidebar_bottom{margin:0 0 18px}
.ded-ad-item{background:#fff;border:1px solid rgba(17,24,39,.1);border-radius:var(--ded-radius);overflow:hidden;box-shadow:0 8px 26px rgba(17,24,39,.06)}
.ded-ad-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--ded-muted);padding:8px 12px;border-bottom:1px solid rgba(17,24,39,.08);background:var(--ded-hero-bg)}
.ded-ad-item img{display:block;width:100%;height:auto}
.ded-ad-html{padding:16px}
.ded-ad-zone-mobile_bottom{display:none}
@media(max-width:640px){.ded-ad-zone-mobile_bottom{display:grid;margin:18px 0}}

/* DED v3.1 Design Studio live renderer */
.ded-design-active .ded-ds-area{display:grid;gap:24px}
.ded-design-active .ded-ds-area-top{margin-bottom:28px}
.ded-design-active .ded-ds-area-bottom{margin-top:30px}
.ded-design-active .ded-ds-section{min-width:0;order:var(--ded-mobile-order,0)}
.ded-design-active .ded-ds-section:empty{display:none}
.ded-design-active .ded-ds-spacing-tight{margin-block:8px}
.ded-design-active .ded-ds-spacing-normal{margin-block:16px}
.ded-design-active .ded-ds-spacing-wide{margin-block:30px}
.ded-design-active .ded-ds-radius-none>*{border-radius:0!important}
.ded-design-active .ded-ds-radius-small>*{border-radius:8px!important}
.ded-design-active .ded-ds-radius-medium>*{border-radius:16px!important}
.ded-design-active .ded-ds-radius-large>*{border-radius:28px!important}
.ded-design-active .ded-ds-shadow-none>*{box-shadow:none!important}
.ded-design-active .ded-ds-shadow-soft>*{box-shadow:0 10px 30px rgba(17,24,39,.08)!important}
.ded-design-active .ded-ds-shadow-strong>*{box-shadow:0 22px 65px rgba(17,24,39,.18)!important}
.ded-design-active .ded-ds-style-card>*{background:var(--ded-card-bg);border:1px solid rgba(17,24,39,.08);padding:22px;border-radius:var(--ded-radius)}
.ded-design-active .ded-ds-style-dark>*{background:#111827!important;color:#fff!important}
.ded-design-active .ded-ds-style-dark h1,.ded-design-active .ded-ds-style-dark h2,.ded-design-active .ded-ds-style-dark h3,.ded-design-active .ded-ds-style-dark p,.ded-design-active .ded-ds-style-dark dd,.ded-design-active .ded-ds-style-dark dt{color:#fff!important}
.ded-design-active .ded-ds-style-accent>*{background:linear-gradient(135deg,var(--ded-accent),var(--ded-secondary));color:#fff}
.ded-design-active .ded-ds-style-accent h1,.ded-design-active .ded-ds-style-accent h2,.ded-design-active .ded-ds-style-accent h3,.ded-design-active .ded-ds-style-accent p{color:#fff}
.ded-design-active .ded-ds-style-minimal>*{background:transparent!important;box-shadow:none!important;border-color:transparent!important}
.ded-design-active.ded-pack-flyer_first .ded-ds-section-flyer{grid-row:1}
.ded-design-active.ded-pack-flyer_first .ded-event-image img{max-height:none}
.ded-design-active.ded-pack-premium_sponsored .ded-event-hero{background:linear-gradient(135deg,var(--ded-accent),var(--ded-secondary));color:#fff}
.ded-design-active.ded-pack-premium_sponsored .ded-event-hero h1,.ded-design-active.ded-pack-premium_sponsored .ded-event-summary{color:#fff}
.ded-design-active.ded-pack-community_clean .ded-event-hero{background:#fff;border:1px solid rgba(17,24,39,.08)}
.ded-design-active.ded-pack-compact_recurring .ded-event-hero{padding:28px;min-height:0}
.ded-design-active.ded-pack-compact_recurring .ded-event-hero h1{font-size:clamp(30px,4vw,54px)}
.ded-design-active .ded-cta-row.ded-ds-cta-row{margin:0;display:flex;flex-wrap:wrap;gap:12px}
.ded-design-active .ded-map-card .ded-button{margin-top:8px}
.ded-design-active .ded-event-body-grid.ded-no-sidebar{grid-template-columns:1fr}
.ded-design-active .ded-event-body-grid.ded-no-sidebar .ded-event-main{max-width:100%}
.ded-design-active.ded-desktop-layout-flyer_left_details_right .ded-event-body-grid{grid-template-columns:minmax(320px,1fr) minmax(300px,.85fr)}
.ded-design-active.ded-desktop-layout-editorial_stack .ded-event-body-grid{grid-template-columns:1fr}
.ded-design-active.ded-desktop-layout-editorial_stack .ded-event-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ded-design-active.ded-desktop-layout-compact_list .ded-event-hero{padding:24px}.ded-design-active.ded-desktop-layout-compact_list .ded-event-body-grid{gap:18px}
@media(max-width:900px){
    .ded-design-active .ded-ds-area,.ded-design-active .ded-event-main,.ded-design-active .ded-event-side{display:grid!important;gap:16px}
    .ded-design-active .ded-event-body-grid{display:grid!important;grid-template-columns:1fr!important}
    .ded-design-active .ded-ds-mobile-hide{display:none!important}
    .ded-design-active .ded-ds-mobile-collapse>*{max-height:92px;overflow:hidden;position:relative}
    .ded-design-active.ded-mobile-layout-flyer_first .ded-ds-section-flyer{order:1!important}
    .ded-design-active.ded-mobile-layout-flyer_first .ded-ds-section-hero{order:2!important}
    .ded-design-active.ded-mobile-layout-facts_first .ded-ds-section-quick_facts{order:1!important}
    .ded-design-active.ded-mobile-layout-compact .ded-event-hero{padding:20px}
    .ded-design-active.ded-mobile-layout-compact .ded-event-hero h1{font-size:34px}
}

/* DED v3.2 mobile collapse fix */
.ded-design-active .ded-ds-collapse-toggle{display:none}
@media(max-width:900px){
    .ded-design-active .ded-ds-mobile-collapse{border:1px solid rgba(17,24,39,.08);border-radius:var(--ded-radius);overflow:hidden;background:var(--ded-card-bg)}
    .ded-design-active .ded-ds-mobile-collapse>*:first-child{max-height:118px;overflow:hidden;position:relative}
    .ded-design-active .ded-ds-mobile-collapse:not(.is-open)>*:first-child:after{
        content:"";position:absolute;left:0;right:0;bottom:0;height:54px;
        background:linear-gradient(to bottom,rgba(255,255,255,0),var(--ded-card-bg));
        pointer-events:none;
    }
    .ded-design-active .ded-ds-mobile-collapse.is-open>*:first-child{max-height:none}
    .ded-design-active .ded-ds-collapse-toggle{
        display:block;width:100%;border:0;border-top:1px solid rgba(17,24,39,.08);
        background:#fff;color:var(--ded-accent);font-weight:900;padding:12px;cursor:pointer;
    }
}

/* DED v3.4 stronger template pack behavior */
.ded-design-active.ded-pack-david_nightlife .ded-event-hero{background:linear-gradient(135deg,#0f172a,#1e293b 55%,#d4145a);color:#fff}
.ded-design-active.ded-pack-david_nightlife .ded-event-hero h1,.ded-design-active.ded-pack-david_nightlife .ded-event-summary{color:#fff}
.ded-design-active.ded-pack-david_nightlife .ded-event-date-card{background:#fff;color:#111827}
.ded-design-active.ded-pack-flyer_first .ded-ds-area-top{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr);align-items:stretch}
.ded-design-active.ded-pack-flyer_first .ded-ds-section-flyer{grid-column:1;grid-row:1 / span 2}
.ded-design-active.ded-pack-flyer_first .ded-ds-section-hero{grid-column:2;grid-row:1}
.ded-design-active.ded-pack-flyer_first .ded-ds-section-cta{grid-column:2;grid-row:2}
.ded-design-active.ded-pack-flyer_first .ded-event-image{height:100%;margin:0}
.ded-design-active.ded-pack-flyer_first .ded-event-image img{height:100%;min-height:420px;object-fit:cover}
.ded-design-active.ded-pack-magazine_feature .ded-event-content{font-size:1.08rem;line-height:1.72;max-width:860px;margin-inline:auto}
.ded-design-active.ded-pack-magazine_feature .ded-event-hero{background:#fff;border:1px solid rgba(17,24,39,.08)}
.ded-design-active.ded-pack-premium_sponsored .ded-ds-section-ads .ded-ad-zone{margin:0}
.ded-design-active.ded-pack-community_clean .ded-button-primary{background:#111827;color:#fff}
.ded-design-active.ded-pack-community_clean .ded-event-shell,.ded-design-active.ded-pack-community_clean .ded-event-hero{background:#fff}
.ded-design-active.ded-pack-compact_recurring .ded-ds-area-top{gap:12px}
.ded-design-active.ded-pack-compact_recurring .ded-side-card{padding:18px}
@media(max-width:900px){
    .ded-design-active.ded-pack-flyer_first .ded-ds-area-top{display:grid;grid-template-columns:1fr}
    .ded-design-active.ded-pack-flyer_first .ded-ds-section-flyer,.ded-design-active.ded-pack-flyer_first .ded-ds-section-hero,.ded-design-active.ded-pack-flyer_first .ded-ds-section-cta{grid-column:auto;grid-row:auto}
    .ded-design-active.ded-pack-flyer_first .ded-event-image img{min-height:0;height:auto}
}

/* DED v3.7 Hub Builder output */
.ded-built-hub.ded-hub-style-nightlife .ded-hub-hero{background:linear-gradient(135deg,#111827,#1e293b 55%,var(--ded-accent));color:#fff}
.ded-built-hub.ded-hub-style-nightlife .ded-hub-hero h2,.ded-built-hub.ded-hub-style-nightlife .ded-hub-hero p{color:#fff}
.ded-built-hub.ded-hub-style-clean .ded-hub-hero{background:#fff;border:1px solid rgba(17,24,39,.08)}
.ded-built-hub.ded-hub-style-compact .ded-hub-hero{padding:28px;min-height:0}
.ded-built-hub .ded-event-lane{margin:34px 0}
.ded-built-hub .ded-lane-head h3{font-size:clamp(24px,3vw,40px);line-height:1;margin:0}
.ded-events-layout-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ded-events-layout-flyer_wall{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ded-events-layout-flyer_wall .ded-event-card{min-height:280px}
.ded-events-layout-flyer_wall .ded-card-image{aspect-ratio:1/1.25}
.ded-events-layout-compact{display:grid;gap:10px}
.ded-events-layout-compact .ded-event-card{display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:center}
.ded-events-layout-compact .ded-card-image{aspect-ratio:1/1;width:92px}
@media(max-width:900px){
    .ded-hub-mobile-scroll .ded-event-lane .ded-events-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
    .ded-hub-mobile-scroll .ded-event-lane .ded-event-card{min-width:78%;scroll-snap-align:start}
    .ded-events-layout-flyer_wall{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ded-events-layout-mini{grid-template-columns:1fr}
    .ded-events-layout-compact .ded-event-card{grid-template-columns:72px 1fr}
    .ded-events-layout-compact .ded-card-image{width:72px}
}

/* DED v4.0 public hub width + lane polish */
.ded-built-hub{
    width:min(1320px, calc(100vw - 48px));
    max-width:none;
    margin-left:50%;
    transform:translateX(-50%);
    box-sizing:border-box;
}
.ded-built-hub .ded-hub-hero{
    min-height:310px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:28px;
}
.ded-built-hub .ded-hub-hero h2{
    font-size:clamp(42px,6vw,86px);
    line-height:.92;
    max-width:720px;
}
.ded-built-hub .ded-hub-hero p{
    max-width:540px;
    font-size:clamp(16px,1.4vw,21px);
}
.ded-built-hub .ded-hub-lanes{
    display:grid;
    gap:36px;
}
.ded-built-hub .ded-event-lane{
    margin:0;
}
.ded-built-hub .ded-events-grid{
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}
.ded-built-hub .ded-events-layout-featured{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.ded-built-hub .ded-events-layout-flyer_wall{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
.ded-built-hub .ded-events-layout-mini{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.ded-built-hub .ded-events-layout-compact{
    grid-template-columns:1fr;
}
.ded-built-hub .ded-empty{
    background:#fff;
    border:1px solid rgba(17,24,39,.08);
    border-radius:16px;
    padding:18px;
    color:var(--ded-muted);
}
@media(max-width:900px){
    .ded-built-hub{
        width:calc(100vw - 28px);
    }
    .ded-built-hub .ded-hub-hero{
        grid-template-columns:1fr;
        min-height:0;
        padding:28px;
    }
    .ded-built-hub .ded-hub-hero h2{
        font-size:clamp(38px,13vw,62px);
    }
}

/* DED v4.2 cleanup 1/3: public page gutters + mobile overflow fix */
:root{
    --ded-page-gutter-desktop: clamp(24px, 4vw, 64px);
    --ded-page-gutter-mobile: 18px;
}

/* Keep event pages and hub pages away from the browser edge. */
.ded-event-shell,
.ded-event-hub,
.ded-built-hub{
    box-sizing: border-box;
}

/* Single event page gutters. */
.ded-event-shell{
    width: min(var(--ded-max-width, 1320px), calc(100vw - (var(--ded-page-gutter-desktop) * 2))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hub page gutters. Do not let full-bleed math push content offscreen. */
.ded-built-hub{
    width: min(1320px, calc(100vw - (var(--ded-page-gutter-desktop) * 2))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

/* Stop giant hero text from running out of the right side. */
.ded-built-hub .ded-hub-hero,
.ded-event-shell .ded-event-hero{
    overflow: hidden;
    box-sizing: border-box;
}

.ded-built-hub .ded-hub-hero > *,
.ded-event-shell .ded-event-hero > *{
    min-width: 0;
}

.ded-built-hub .ded-hub-hero h1,
.ded-built-hub .ded-hub-hero h2,
.ded-event-shell .ded-event-hero h1{
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
}

.ded-built-hub .ded-hub-hero p,
.ded-event-shell .ded-event-summary{
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* Mobile must have visible left/right margin and readable hero type. */
@media (max-width: 900px){
    .ded-event-shell,
    .ded-event-hub,
    .ded-built-hub{
        width: calc(100vw - (var(--ded-page-gutter-mobile) * 2)) !important;
        margin-left: var(--ded-page-gutter-mobile) !important;
        margin-right: var(--ded-page-gutter-mobile) !important;
        transform: none !important;
    }

    .ded-built-hub .ded-hub-hero{
        padding: 24px !important;
        border-radius: 18px !important;
        min-height: 0 !important;
    }

    .ded-built-hub .ded-hub-hero h2{
        font-size: clamp(34px, 12vw, 54px) !important;
        line-height: .95 !important;
        letter-spacing: -0.04em;
    }

    .ded-built-hub .ded-hub-hero p{
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .ded-built-hub .ded-hub-pills{
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .ded-filter-bar,
    .ded-built-hub .ded-filter-bar{
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .ded-built-hub .ded-event-lane,
    .ded-event-shell .ded-ds-area{
        min-width: 0;
    }
}

/* Extra narrow phones. */
@media (max-width: 430px){
    :root{
        --ded-page-gutter-mobile: 14px;
    }

    .ded-built-hub .ded-hub-hero{
        padding: 20px !important;
    }

    .ded-built-hub .ded-hub-hero h2{
        font-size: clamp(30px, 11vw, 46px) !important;
    }
}

/* DED v4.3 cleanup 2/3: match hub width/margins to single event pages */
/*
   The hub lives inside a theme page container. A normal width:auto/auto-margin
   centers it inside that smaller theme container, not the browser viewport.
   This safely recenters the hub block on the viewport while keeping the same
   left/right gutters as the single event layout.
*/
.ded-built-hub{
    width: min(var(--ded-max-width, 1320px), calc(100vw - (var(--ded-page-gutter-desktop) * 2))) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
}

/* Keep all direct hub children aligned inside the corrected hub wrapper. */
.ded-built-hub > *{
    max-width: 100%;
    box-sizing: border-box;
}

/* Make the hub card edge align visually with the single-event hero edge. */
.ded-built-hub .ded-hub-hero,
.ded-built-hub .ded-filter-bar,
.ded-built-hub .ded-event-lane{
    width: 100%;
    box-sizing: border-box;
}

/* Mobile: use fixed gutters and no accidental horizontal scroll. */
@media (max-width: 900px){
    .ded-built-hub{
        width: calc(100vw - (var(--ded-page-gutter-mobile) * 2)) !important;
        margin-left: 50% !important;
        margin-right: 0 !important;
        transform: translateX(-50%) !important;
        overflow-x: clip;
    }

    .ded-built-hub .ded-hub-hero,
    .ded-built-hub .ded-filter-bar,
    .ded-built-hub .ded-event-lane{
        width: 100%;
        max-width: 100%;
    }
}

/* DED v4.4 cleanup 3/3: final hub alignment fix */
/*
   v4.3 used margin-left:50%, which over-pushed the hub.
   Correct behavior: use POSITION left:50% + translateX(-50%).
   This matches the single event page shell: viewport-centered, max-width, with gutters.
*/
.ded-built-hub{
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    width: min(var(--ded-max-width, 1320px), calc(100vw - (var(--ded-page-gutter-desktop) * 2))) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
}

/* Keep child blocks inside the corrected hub width. */
.ded-built-hub .ded-hub-hero,
.ded-built-hub .ded-filter-bar,
.ded-built-hub .ded-event-lane,
.ded-built-hub .ded-hub-lanes{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Desktop alignment should now match the single event shell edge. */
@media (min-width: 901px){
    .ded-built-hub{
        min-width: 0 !important;
    }
}

/* Mobile: keep the same fixed gutter logic without edge bleed. */
@media (max-width: 900px){
    .ded-built-hub{
        position: relative !important;
        left: 50% !important;
        width: calc(100vw - (var(--ded-page-gutter-mobile) * 2)) !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: translateX(-50%) !important;
        overflow-x: clip !important;
    }
}

/* DED v4.5 structural hub fix */
/*
   Root cause:
   The hub shortcode was rendering inside Newspaper's normal page column:
   td-main-content-wrap > td-container > td-pb-span8 > td-page-content.
   This template fix bypasses that page wrapper and renders the hub like the
   single event template: header/footer from theme, content shell from plugin.
*/
.ded-hub-page-template{
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ded-hub-page-template .ded-hub-page-inner{
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable every prior viewport-shift hack only inside the true hub template. */
.ded-hub-page-template .ded-built-hub{
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: min(var(--ded-max-width, 1320px), calc(100vw - 96px)) !important;
    max-width: none !important;
    margin: 72px auto 64px auto !important;
    box-sizing: border-box !important;
}

/* Match single-event page visual gutters. */
.ded-hub-page-template .ded-hub-hero,
.ded-hub-page-template .ded-filter-bar,
.ded-hub-page-template .ded-event-lane{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* If Newspaper/TagDiv still leaves page-title spacing, keep our hub independent. */
.ded-hub-page-template + .td-main-content-wrap,
body.page .ded-hub-page-template ~ .td-main-content-wrap{
    display: none !important;
}

@media (max-width: 900px){
    .ded-hub-page-template .ded-built-hub{
        width: calc(100vw - 36px) !important;
        margin: 36px auto 44px auto !important;
    }
}

@media (max-width: 430px){
    .ded-hub-page-template .ded-built-hub{
        width: calc(100vw - 28px) !important;
        margin-top: 28px !important;
    }
}
