/* Evently spacing normalization · 2026-11-06
   Public catalog + editorial marketing only. No guest invitations, accounts,
   checkout, Moments private albums, or event dashboards are restyled. */
:root{--ev-space-xs:12px;--ev-space-sm:20px;--ev-space-md:34px;--ev-space-lg:58px}

/* 1. Template catalog: keep discovery close to content without destroying artwork. */
html body.post-type-archive-evently_template .etpl.evc .evc-collections,
html body.tax-evently_event_type .etpl.evc .evc-collections{
  padding-block:24px!important;
  border:0!important;
}
html body.post-type-archive-evently_template .etpl.evc .evc-heading,
html body.tax-evently_event_type .etpl.evc .evc-heading{margin-bottom:16px!important}
html body.post-type-archive-evently_template .etpl.evc .evc-collection-rail,
html body.tax-evently_event_type .etpl.evc .evc-collection-rail{
  margin-block:0!important;padding:3px 2px 8px!important;
  scrollbar-width:none!important;scroll-snap-type:x proximity;
}
html body.post-type-archive-evently_template .etpl.evc .evc-collection-rail::-webkit-scrollbar,
html body.tax-evently_event_type .etpl.evc .evc-collection-rail::-webkit-scrollbar{display:none}
html body.post-type-archive-evently_template .etpl.evc .evc-collection,
html body.tax-evently_event_type .etpl.evc .evc-collection{flex-basis:230px;aspect-ratio:16/10}
html body.post-type-archive-evently_template .etpl.evc #catalogo,
html body.tax-evently_event_type .etpl.evc #catalogo{
  padding:28px 0 44px!important;
  border-top:1px solid #edf0f5!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-catalog-topline,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-catalog-topline{
  margin:0 0 13px!important;gap:18px!important;align-items:end;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-catalog-topline h2,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-catalog-topline h2{
  margin:7px 0 0!important;font-size:clamp(28px,3vw,39px)!important;
  line-height:1.13!important;letter-spacing:-.045em!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-overline,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-overline{margin:0!important}
html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar,
html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:12px!important;
  min-height:0!important;margin:0 0 12px!important;
  padding:10px 15px!important;border-radius:15px!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar p,
html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar p{
  margin:0!important;line-height:1.4!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar button,
html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar button{
  min-height:42px!important;padding:9px 14px!important;
  margin:0!important;line-height:1.3!important;
}
/* One desktop row: search, format selector and expandable filters. */
html body.post-type-archive-evently_template .etpl.evc #catalogo form.etpl-discovery,
html body.tax-evently_event_type .etpl.evc #catalogo form.etpl-discovery{
  display:grid!important;
  grid-template-columns:minmax(250px,1fr) max-content max-content!important;
  gap:10px 14px!important;align-items:center!important;
  padding:12px!important;min-height:0!important;
  margin:0 0 10px!important;border-radius:17px!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-search-v2,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-search-v2{
  grid-column:auto!important;width:100%!important;max-width:none!important;
  min-width:0!important;height:48px!important;min-height:48px!important;margin:0!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-search-v2 input,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-search-v2 input{
  height:46px!important;min-height:46px!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-format-rail,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-format-rail{
  display:flex!important;grid-column:auto!important;align-items:center!important;
  flex-wrap:nowrap!important;gap:7px!important;min-width:0!important;
  margin:0!important;padding:0!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-format-chip,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-format-chip{
  min-height:40px!important;white-space:nowrap!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters{
  margin:0!important;justify-self:end;align-self:center;width:auto!important;min-width:0;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters:not([open])>summary,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters:not([open])>summary{
  display:inline-flex!important;align-items:center!important;
  min-height:43px!important;padding:9px 14px!important;
  white-space:nowrap!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters[open],
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters[open]{
  grid-column:1/-1!important;justify-self:stretch!important;width:100%!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters-grid,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) auto!important;
  margin-top:8px!important;gap:10px!important;max-width:100%;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-results-head,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-results-head{
  margin:10px 0 16px!important;padding:0!important;
  min-height:0!important;align-items:center!important;
}
html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-results-head p,
html body.tax-evently_event_type .etpl.evc #catalogo .etpl-results-head p{margin:0!important}

/* Other commercial catalog sections: content determines the height. */
html body.post-type-archive-evently_template .etpl.evc :is(.evc-videos,.evc-faq,.etpl-popular,.etpl-stream-plans,.etpl-service),
html body.tax-evently_event_type .etpl.evc :is(.evc-videos,.evc-faq,.etpl-popular,.etpl-stream-plans,.etpl-service){
  padding-block:clamp(28px,3vw,44px)!important;min-height:0;
}
html body.post-type-archive-evently_template .etpl.evc :is(.evc-heading,.etpl-popular-head,.etpl-stream-plans-head),
html body.tax-evently_event_type .etpl.evc :is(.evc-heading,.etpl-popular-head,.etpl-stream-plans-head){
  margin-bottom:18px!important;
}

/* 2. Marketing pages sharing the large legacy .section rhythm. */
html body.evently-brand-ui.page:not(.evently-commerce-page):not(.evently-purchase-light):not(.home) .section{
  padding-block:clamp(34px,4.4vw,60px)!important;
}
html body.evently-brand-ui.page.evently-purchase-light:not(.evently-commerce-page) .section{
  padding-block:clamp(32px,4vw,56px)!important;
}
html body.evently-brand-ui.page:not(.home) .section:empty{display:none!important}
html body.evently-brand-ui.page:not(.home) .section .section-head{
  margin-bottom:clamp(16px,2.6vw,28px)!important;
}
html body.evently-brand-ui.page:not(.home) .section .section-head h2{
  margin-top:0!important;
}
/* Streamed service subhomes should not introduce a second giant gap
   between the shared cinematic navigation and the actual content. */
html body.evently-streaming-service .page-content{padding-top:0!important}
html body.evently-streaming-service .entry-content>.section:first-child{padding-top:30px!important}
html body.evently-streaming-service .es-stream-nav{margin-bottom:0!important}
html body.evently-streaming-service .es-stream-content-anchor{margin:0!important;padding:0!important}

@media(max-width:960px){
  html body.post-type-archive-evently_template .etpl.evc #catalogo form.etpl-discovery,
  html body.tax-evently_event_type .etpl.evc #catalogo form.etpl-discovery{
    grid-template-columns:minmax(0,1fr) max-content!important;gap:9px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-search-v2,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-search-v2{grid-column:1/-1!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters{grid-column:2!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters[open],
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters[open]{grid-column:1/-1!important}
}
@media(max-width:600px){
  html body.post-type-archive-evently_template .etpl.evc .evc-collections,
  html body.tax-evently_event_type .etpl.evc .evc-collections{padding-block:18px!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo,
  html body.tax-evently_event_type .etpl.evc #catalogo{padding:19px 0 30px!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-catalog-topline,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-catalog-topline{
    display:block!important;margin-bottom:12px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-catalog-topline h2,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-catalog-topline h2{
    font-size:clamp(24px,7.3vw,33px)!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-catalog-topline>p,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-catalog-topline>p{
    margin-top:7px!important;font-size:12px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar,
  html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar{
    gap:7px!important;padding:10px 12px!important;margin-bottom:9px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar p,
  html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar p{font-size:12px!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .ev-next-catalog-bar button,
  html body.tax-evently_event_type .etpl.evc #catalogo .ev-next-catalog-bar button{
    min-height:38px!important;padding:7px 10px!important;font-size:11px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo form.etpl-discovery,
  html body.tax-evently_event_type .etpl.evc #catalogo form.etpl-discovery{
    padding:10px!important;gap:8px!important;
    grid-template-columns:minmax(0,1fr) auto!important;margin-bottom:8px!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-search-v2,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-search-v2{
    grid-column:1/-1!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-format-rail,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-format-rail{
    grid-column:1!important;overflow-x:auto!important;
  }
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters{grid-column:2!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters[open],
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters[open]{grid-column:1/-1!important}
  html body.post-type-archive-evently_template .etpl.evc #catalogo .etpl-more-filters-grid,
  html body.tax-evently_event_type .etpl.evc #catalogo .etpl-more-filters-grid{
    grid-template-columns:1fr!important;
  }
  html body.evently-brand-ui.page:not(.home):not(.evently-commerce-page) .section{
    padding-block:34px!important;
  }
}
@media(prefers-reduced-motion:reduce){
 html body.post-type-archive-evently_template .etpl.evc .evc-collection{transition:none!important}
}
