/* Laptops and up (1024 px): the attendee pages outside an event, in the desktop design. Linked with media="(min-width: 1024px)"
   (src/views.ts), so phones, the PWA and the app never load it. The look is the phone design's; only the layout differs.
   "Find your event": a 76 px header (the e2m.live logo, the title, search at the right), a wide page (1240 px), the code field,
   the events in a grid; the filter button floats bottom right and its sheet is a centred dialog.
   Sign in: the e2m.live logo above the card, both centred. */
@media (min-width: 1024px) {
  html:has(main > .swx) { scrollbar-width: none; }   /* the design's page shows no scrollbar (the column stays centred on the window) */
  html:has(main > .swx)::-webkit-scrollbar { display: none; }
  main:has(> .swx) { position: relative; box-sizing: border-box; max-width: 1240px; padding: 0 40px 64px; }
  /* the header spans the window: logo 32px from the left, search 32px from the right (design: 116 x 38 logo, title at 180px) */
  .swx .swbar { box-sizing: border-box; width: 100vw; height: 76px; min-height: 76px; margin-left: calc(50% - 50vw); padding: 0 32px; gap: 8px; }
  .swx .swbar::before { content: ""; flex: none; width: 116px; height: 38px; margin-right: 24px; background: url(/static/e2m-logo-3x.webp) left center / contain no-repeat; }
  .swx .swbar .screen { font-size: 1.75rem; font-weight: 600; letter-spacing: 0; }
  .swx.js .swbar .screen { display: block !important; flex: 1 0 auto; }           /* the title stays beside the search field (the phone swaps one for the other) */
  .swx .swbar .swsearch { flex: 0 1 420px !important; max-width: 420px; margin-left: auto !important; }      /* the search field opens at the right, beside its button */
  .swx .swbar .swsearch-btn { margin-right: 0 !important; }
  .swx .lede { max-width: 640px; margin: 8px 0 16px !important; }
  .swx .joinbar { max-width: 640px; }
  main:has(> .swx) .dsect { margin-top: 24px; }
  main:has(> .swx) .cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px !important; align-items: stretch; }
  main:has(> .swx) .cards > li { display: flex; }
  main:has(> .swx) .cards > li > * { flex: 1 1 auto; }
  main:has(> .swx) .evcard { border-radius: 12px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
  main:has(> .swx) .evcard:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
  main:has(> .swx) .evcard :is(.evc-img, .evc-ph) { flex: none; height: 140px; }
  /* the design's card: picture and text centred in a row of equal cards (radius 12), the dates in regular weight */
  main:has(> .swx) .evcard { display: flex !important; flex-direction: column; justify-content: center; align-items: stretch !important; border-radius: 12px !important; text-align: left; }
  main:has(> .swx) .evc-d { font-weight: 400 !important; line-height: normal !important; }
  .swx .joinbar .btn { border: 0 !important; }
  /* filter: floats bottom right; its sheet is a centred dialog */
  main:has(> .swx) > .fab { right: 32px !important; bottom: 24px !important; inset-inline-end: 32px; border-radius: 8px; }
  main:has(> .swx) .bsheet { align-items: center; }
  main:has(> .swx) .bsheet-in { width: min(520px, calc(100vw - 48px)); padding: 28px !important; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .55); animation: none; }
  main:has(> .swx) .bsheet-bar { display: none; }

  /* sign in */
  .authwrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
  .authwrap::before { content: ""; flex: none; width: 260px; height: 80px; background: url(/static/e2m-logo-3x.webp) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); }
  .authwrap .authcard { box-sizing: border-box; max-width: 440px; }
}
