/* The public club directory.
   Sits on top of vybe.css and only adds what the directory pages need: lists of
   places, lists of clubs, breadcrumbs and pagination.
   Light only, matching the rest of the site. */

.dir { padding-block: clamp(24px, 6vw, 56px); max-width: 1100px; }

.dir h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 12px; }
.dir h2 { font-family: var(--display); font-size: clamp(19px, 2.6vw, 25px); margin: 40px 0 14px; }
.dir .lede { color: var(--ink2); font-size: clamp(16px, 2vw, 19px); max-width: 62ch; margin: 0 0 22px; }

/* ---- breadcrumbs ---- */
.crumbs { margin: 0 0 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0;
             font-size: 13px; color: var(--ink3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink3); }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--coral); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---- lists of places and of clubs ---- */
.places, .clubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
                  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.clubs { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.places a, .clubs a {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.places a:hover, .clubs a:hover { border-color: var(--coral); transform: translateY(-1px); box-shadow: var(--shadow); }
.places a:focus-visible, .clubs a:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.places b, .clubs b { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.places small, .clubs small { display: block; color: var(--ink3); font-size: 13px; margin-top: 3px; }

.clubs .kind, .clubs .badge, .clubs .asked {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px;
}
.clubs .kind  { background: #f4f1fb; color: var(--ink2); }
.clubs .badge { background: var(--hot); color: #fff; }
.clubs .asked { background: #eef9f5; color: #0f7a62; }
.clubs .is-vybe a { border-color: #ffd0d9; }

/* ---- pagination ---- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 32px 0 8px; }
.pager a, .pager .here, .pager .gap {
  min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600;
}
.pager .gap { border-color: transparent; background: none; color: var(--ink3); min-width: 0; }
.pager a { color: var(--ink2); text-decoration: none; }
.pager a:hover { border-color: var(--coral); color: var(--coral); }
.pager .here { background: var(--hot); color: #fff; border-color: transparent; }

/* ---- a single club ---- */
.club-page .state {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: clamp(18px, 3vw, 28px); margin: 22px 0 8px; box-shadow: var(--shadow);
}
.club-page .state p { margin: 0 0 12px; }
.club-page .state p:last-child { margin-bottom: 0; }
.club-page .is-on { border-color: #ffd0d9; }

.club-page .ask { display: grid; gap: 8px; max-width: 420px; margin-top: 14px; }
.club-page .ask label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.club-page .ask input[type=email] {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink);
}
.club-page .ask input[type=email]:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
/* The honeypot: off screen rather than display:none, which some fillers skip. */
.club-page .ask #hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.club-page .ask .note { font-size: 13px; color: var(--ink2); margin: 2px 0 0; min-height: 1.2em; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 8px; font-size: 15px; }
.facts dt { color: var(--ink3); font-weight: 600; }
.facts dd { margin: 0; }
.facts a { color: var(--coral); text-decoration: underline; word-break: break-word; }

/* ---- the search bar on /directory ---- */
.dir-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.dir-search label { flex: 1 0 100%; font-size: 13px; font-weight: 600; color: var(--ink2); }
.dir-search input {
  flex: 1 1 320px; font: inherit; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; color: var(--ink);
}
.dir-search input:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
#dir-results { margin: 8px 0 18px; }

/* ---- the pitch at the foot of every page ---- */
.pitch {
  margin: 48px 0 0; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius);
  background: linear-gradient(140deg, #fff4ef, #f7f1ff);
  border: 1px solid var(--line);
}
.pitch h2 { margin-top: 0; }
.pitch p { color: var(--ink2); max-width: 60ch; }
.pitch .btn { margin-right: 8px; margin-top: 6px; }

/* ---- foot ---- */
.dir-foot { border-top: 1px solid var(--line); margin-top: 56px; padding-block: 28px; font-size: 14px; color: var(--ink2); }
.dir-foot a { color: var(--ink2); text-decoration: underline; }
.dir-foot .small { font-size: 12.5px; color: var(--ink3); max-width: 80ch; }

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
}
