/* Lumo Events V27: 1350px desktop public shell with one shared content rail for the public header and listings.
 * Public routes only: inc/public-header.php loads this alongside the real navbar.
 * No admin/host, checkout/payment, or homepage Featured Events strip changes. */
:root{
  --lumo-public-shell:1350px;
  --lumo-public-gutter:clamp(20px,2.75vw,44px);
  --lumo-public-rail:calc(var(--lumo-public-shell) - var(--lumo-public-gutter) - var(--lumo-public-gutter));
}

@media (min-width:1000px){
  /* Navbar, utility links, logo and right account tools share this shell. */
  .ln-header .ln-wrap{
    width:min(100%,var(--lumo-public-shell));
    max-width:var(--lumo-public-shell);
    padding-inline:var(--lumo-public-gutter);
    margin-inline:auto;
  }

  /* Homepage Discover, Tickets, Voting, Donations: exactly the navbar content rail.
   * Intentionally DO NOT target .lumo-featured-spotlight or .lumo-featured-* . */
  body.lumo-home .lumo-discover-container,
  body.lumo-home .lumo-showcase-container{
    width:min(var(--lumo-public-rail),calc(100% - var(--lumo-public-gutter) - var(--lumo-public-gutter)))!important;
    max-width:var(--lumo-public-rail)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Discover Events: hero, filters, type tabs, results and pagination use the
   * same rail. The measured navbar-logo/tools bounds (existing V22 JS)
   * remain the authority when available. */
  .lumo-catalog:not(.dc-rail-measured) .dc-container{
    width:min(var(--lumo-public-rail),calc(100% - var(--lumo-public-gutter) - var(--lumo-public-gutter)))!important;
    max-width:var(--lumo-public-rail)!important;
    margin-inline:auto!important;
  }

  /* Other public listing pages use Bootstrap's .container. Limit to
   * top-level section shells (hero/listing/category/form/footer); avoid
   * overriding nested login, modal or payment form layouts. */
  body:has(.ln-header):not(.lumo-home) .main-wrapper > section > .container,
  body:has(.ln-header):not(.lumo-home) .main-wrapper > main > section > .container,
  body:has(.ln-header):not(.lumo-home) .main-wrapper > footer .container,
  html.lumo-public body:has(.ln-header):not(.lumo-home) .main-wrapper .lumo-wrap{
    width:min(var(--lumo-public-rail),calc(100% - var(--lumo-public-gutter) - var(--lumo-public-gutter)))!important;
    max-width:var(--lumo-public-rail)!important;
    margin-inline:auto!important;
    padding-inline:0!important;
  }

  /* Retain usable previous/next arrows after widening the carousel tracks. */
  body.lumo-home .lumo-showcase-prev,
  body.lumo-home .lumo-discover-prev{left:-17px;}
  body.lumo-home .lumo-showcase-next,
  body.lumo-home .lumo-discover-next{right:-17px;}
}

/* At tablet/mobile widths, preserve the existing 2-card layouts, mobile dock,
   scrollable tabs and original small-screen margins. */
