/* /discover/events/:country and /discover/clubs/:country (site/pages/explore.mjs).
   Loaded after club.css, whose cards, dark card, empty state and pager these
   pages reuse; every class here is dir- prefixed. The lists take the whole
   width (3 a row on a computer); the country and the app's card sit in the header. */

/* The top: a soft teal band fading into the white page (no rule under it). Left:
   the heading and its line. Right: the country and the app's card. */
.dir-hero { background: linear-gradient(180deg, var(--teal-50) 0%, rgba(240, 253, 250, .35) 70%, #FFFFFF 100%); }
.dir-head { padding-top: 28px; padding-bottom: 34px; }
.dir-head__main { display: grid; gap: 26px; }
.dir-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.dir-head h1 span { color: var(--teal); }
.dir-lede { margin: 14px 0 0; max-width: 600px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--z-600); }
.dir-head__side { display: grid; gap: 8px; align-content: start; }
.dir-head__cap { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--z-500); }

/* Make your own, in the app: the QR code, a title, a line, the link — not on a phone, which can't scan itself. */
.dir-pitch { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 16px 18px; border-radius: 20px; background: var(--deep); color: #FFFFFF; }
.dir-pitch__qr { flex: none; width: 84px; height: 84px; padding: 6px; border-radius: 12px; background: #FFFFFF; }
.dir-pitch b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.dir-pitch p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.dir-pitch__go { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--teal-300); }
.dir-pitch__go:hover { color: #FFFFFF; }

/* The country picker: a pill holding the native select (iOS's wheel, Android's list). */
/* min-width 0: a select is as wide as its longest name ("South Georgia & …") unless allowed to shrink. */
.dir-pick { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 50px; padding: 0 5px 0 16px; border-radius: 25px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--z-300); }
.dir-pick:focus-within { box-shadow: 0 0 0 2px var(--teal); }
.dir-pick__ic { display: inline-flex; color: var(--teal-7); }
.dir-pick select { flex: 1; appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; height: 48px; padding: 0 30px 0 6px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--z-900); cursor: pointer; outline: none; }
.dir-pick .btn { height: 40px; }

/* Who puts the event on (and where, on the every-country list), under the card's time and place. */
.pub-ecard__by { display: flex; align-items: center; gap: 8px; min-width: 0; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--z-700); }
.pub-ecard__by .pub-ecard__cl { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; color: #FFFFFF; font-style: normal; font-size: 10px; font-weight: 800; background: linear-gradient(145deg, #0F766E, #2DD4BF); }
.pub-ecard__by .pub-ecard__cl img { width: 100%; height: 100%; object-fit: cover; }
.pub-ecard__by .pub-ecard__cl b { font-size: 9px; }
.pub-ecard__by > i:not(.pub-ecard__cl) { font-style: normal; font-weight: 600; color: var(--z-500); white-space: nowrap; }
.pub-ecard__by > i:not(.pub-ecard__cl)::before { content: '·'; margin-right: 8px; }

/* The list: month headings over a grid of event cards, or one grid of clubs. */
.dir-body { display: flex; flex-direction: column; gap: 44px; padding-top: 32px; padding-bottom: 88px; }
.dir-body .pub-sech { margin-bottom: 18px; }
.dir-events { display: grid; gap: 20px; }

/* Clubs: the event card itself (club.css .pub-ecard), its date tile swapped for the club's round mark. */
.dir-clubs { display: grid; gap: 20px; }
.dir-club { transition: box-shadow .2s, transform .2s; }
.dir-club:hover { color: inherit; box-shadow: 0 0 0 1px var(--z-300), 0 12px 28px -14px rgba(4, 47, 46, .35); transform: translateY(-2px); }
.dir-club .dir-club__mark { position: absolute; left: 12px; bottom: 12px; width: 56px; height: 56px; box-shadow: 0 0 0 3px #FFFFFF, 0 6px 16px rgba(0, 0, 0, .2); }
.dir-club .dir-club__mark b { font-size: 18px; }
/* The card's picture rule fills the frame with every <img> in it: not the mark's own. */
.dir-club .dir-club__mark img { position: static; }
.dir-club .chips { margin-top: 4px; }

/* A country with nothing yet: the message as a card in the middle, not stretched across. */
.dir .cp-empty { width: 100%; max-width: 760px; margin-inline: auto; }
.dir-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }


/* Events and clubs share one grid: 1, then 2, then 3 a row. */
@media (min-width: 640px) {
  .dir-events, .dir-clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dir-events, .dir-clubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dir-head__main { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
}
@media (max-width: 759px) {
  /* No fixed app bar here: the header has the button, and the band ends the list. */
  .dir-body { gap: 36px; padding-top: 24px; padding-bottom: 56px; }
  .dir-head { padding-top: 22px; padding-bottom: 26px; }
    /* .dir-head: club.css's `.pub main img { display: block }` outranks a lone class. */
  .dir-head .dir-pitch { display: none; }
  .dir-pick { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dir-club, .dir-club:hover { transition: none; transform: none; }
}
