/* ============================================================================
   Best Snail Mail — Directory styles
   Aesthetic: cozy postal / vintage mail room. Kraft paper, airmail accents,
   postage-stamp cards, postmarks, washi tape, handwritten notes.
   Everything is scoped under .bsm so it won't collide with a WordPress theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Courier+Prime:wght@400;700&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,900&family=Karla:wght@400;500;700&display=swap');

/* ----------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
.bsm {
  --ink: #2b2118;
  --ink-soft: #6b5946;
  --ink-faint: #9a8a72;
  --kraft: #c9a878;
  --kraft-deep: #b48f5d;
  --paper: #fbf5e7;
  --paper-2: #f3e8cf;
  --cream: #fffaf0;

  --air-red: #c8402e;
  --air-blue: #2f5d86;
  --gold: #d6a44c;
  --sage: #7f9a76;

  --line: #d9c6a3;
  --line-strong: #c3aa7e;

  --shadow-sm: 0 2px 6px rgba(60, 44, 24, .12);
  --shadow-md: 4px 6px 0 rgba(43, 33, 24, .14);
  --shadow-lg: 0 18px 40px -18px rgba(43, 33, 24, .45);

  --r-sm: 4px;
  --r-md: 8px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --font-mono: "Courier Prime", "Courier New", monospace;

  /* default card accent; overridden per-card via inline --accent */
  --accent: var(--air-blue);

  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}

/* Reset just within our scope */
.bsm *,
.bsm *::before,
.bsm *::after { box-sizing: border-box; }

.bsm h1, .bsm h2, .bsm h3, .bsm h4, .bsm p, .bsm ul, .bsm figure { margin: 0; }
.bsm button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.bsm a { color: inherit; }

/* ----------------------------------------------------------------------------
   Paper background + grain
   -------------------------------------------------------------------------- */
.bsm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 12% -10%, #fff9ec 0%, rgba(255,249,236,0) 45%),
    radial-gradient(120% 90% at 100% 0%, #f6ead0 0%, rgba(246,234,208,0) 50%),
    linear-gradient(175deg, var(--paper) 0%, var(--paper-2) 100%);
}
.bsm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

.bsm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ----------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.bsm-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 245, 231, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px dashed var(--line-strong);
}
.bsm-topbar .bsm-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.bsm-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.bsm-logo { width: 42px; height: 42px; flex: 0 0 auto; }
.bsm-wordmark { display: flex; flex-direction: column; line-height: 1; }
.bsm-wordmark b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.bsm-wordmark span {
  font-family: var(--font-hand);
  font-size: 1.02rem;
  color: var(--air-red);
  transform: rotate(-2deg);
  margin-top: 2px;
}
.bsm-topbar-search { margin-left: auto; flex: 0 1 360px; }

/* ----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.bsm-hero { padding: 54px 0 30px; position: relative; }
.bsm-hero-inner { max-width: 760px; }
.bsm-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  color: var(--air-red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.bsm-eyebrow::before,
.bsm-eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--air-red); opacity: .5; }
.bsm-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.bsm-hero h1 em {
  font-style: italic;
  color: var(--air-red);
  position: relative;
}
.bsm-hero h1 .bsm-underline { position: relative; white-space: nowrap; }
.bsm-hero h1 .bsm-underline svg {
  position: absolute;
  left: 0; right: 0; bottom: -.02em;
  width: 100%; height: .22em;
  color: var(--gold);
}
.bsm-hero-sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-top: 56px;
  max-width: 56ch;
}

/* big address-line search */
.bsm-search { position: relative; display: flex; align-items: stretch; gap: 8px; }
.bsm-search input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.04rem;
  padding: 15px 18px 15px 50px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow .15s ease, transform .15s ease;
}
.bsm-search input::placeholder { color: var(--ink-faint); }
.bsm-search input:focus {
  outline: none;
  box-shadow: 6px 8px 0 var(--air-blue);
  transform: translate(-1px, -1px);
}
.bsm-search .bsm-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  color: var(--air-red);
  pointer-events: none;
}
/* "Reset" button beside the search box — always visible, clears search + filters */
.bsm-search-reset {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform .13s ease, box-shadow .13s ease, background .13s ease, color .13s ease;
}
.bsm-search-reset:hover { background: var(--ink); color: var(--cream); }
.bsm-search-reset:active { transform: translate(1px, 1px); box-shadow: 1px 2px 0 rgba(43, 33, 24, .14); }
.bsm-hero .bsm-search { margin-top: 28px; max-width: 560px; }

/* decorative stamp strip in hero */
.bsm-stamprow {
  position: absolute;
  right: -10px; top: 40px;
  display: flex; gap: 10px;
  transform: rotate(6deg);
  opacity: .92;
}
.bsm-stamprow .bsm-deco-stamp {
  width: 74px; height: 88px;
  background: var(--cream);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-size: 2rem;
  filter: saturate(1.05);
}

/* ----------------------------------------------------------------------------
   View tabs (segmented postal control)
   -------------------------------------------------------------------------- */
.bsm-views-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 6px;
}
.bsm-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bsm-suggest-btn {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--air-blue);
  background: var(--air-blue);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(43, 33, 24, .16);
  transition: transform .13s ease, box-shadow .13s ease;
}
.bsm-suggest-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(43, 33, 24, .16); }
.bsm-suggest-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(43, 33, 24, .16); }
.bsm-view-btn {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s ease;
}
.bsm-view-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.bsm-view-btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.bsm-view-btn .bsm-vc { font-size: .95rem; }

/* ----------------------------------------------------------------------------
   Toolbar: category chips + selects
   -------------------------------------------------------------------------- */
.bsm-toolbar {
  margin: 18px 0 6px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.bsm-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bsm-toolbar-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin-right: 4px;
}
.bsm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bsm-chip {
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .14s ease;
}
.bsm-chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip, var(--kraft-deep));
}
.bsm-chip:hover { transform: translateY(-1px); border-color: var(--ink); }
.bsm-chip[aria-pressed="true"] {
  background: var(--chip, var(--ink));
  color: #fff;
  border-color: transparent;
}
.bsm-chip[aria-pressed="true"]::before { background: rgba(255,255,255,.85); }

.bsm-toolbar-spacer { flex: 1 1 auto; }
.bsm-select {
  position: relative;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.bsm-select select {
  font: inherit;
  appearance: none;
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.bsm-select::after {
  content: "▾";
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------------------
   Results meta line
   -------------------------------------------------------------------------- */
.bsm-resultbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
}
.bsm-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.bsm-count b { color: var(--air-red); font-weight: 900; }
.bsm-count small {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-left: 8px;
}

/* ----------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */
.bsm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.bsm-card {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
/* faint ruled paper texture inside the card */
.bsm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 26px,
    rgba(47, 93, 134, .05) 26px 27px
  );
  opacity: .55;
}
.bsm-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 12px 0 rgba(43, 33, 24, .16), var(--shadow-lg);
}
.bsm-card.is-featured { border-color: var(--gold); }
.bsm-card.is-featured::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 8px, #e9c074 8px 16px);
}

.bsm-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.bsm-headline { min-width: 0; }
.bsm-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.bsm-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.bsm-cat-tag {
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  white-space: nowrap;
}

/* The little postage stamp */
.bsm-stamp {
  flex: 0 0 auto;
  width: 74px; height: 86px;
  position: relative;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, #fff) 0%, #fff 72%);
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, #fff);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(43, 33, 24, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
}
.bsm-stamp-inner {
  position: absolute;
  inset: 5px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--ink));
  border-radius: 2px;
  pointer-events: none;
}
.bsm-stamp-art { font-size: 2rem; line-height: 1; filter: saturate(1.1); }
.bsm-stamp-denom {
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
/* postmark stamped across the corner showing the combined score */
.bsm-postmark {
  position: absolute;
  right: -14px; bottom: -12px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--air-red);
  box-shadow: inset 0 0 0 1.5px rgba(200,64,46,.35);
  color: var(--air-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  background: rgba(255, 250, 240, .35);
  mix-blend-mode: multiply;
  font-family: var(--font-mono);
}
.bsm-postmark b { font-size: .92rem; line-height: 1; font-weight: 700; }
.bsm-postmark span { font-size: .42rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* (the old corner "New" ribbon was replaced by .bsm-new-badge in the ratings row) */

/* Featured handwritten tag */
.bsm-featured {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  color: #b07d2c;
  transform: rotate(-3deg);
  margin: 5px 0 1px;
}

.bsm-desc {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* meta row, postal-form style */
.bsm-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink);
}
.bsm-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.bsm-meta-item svg { width: 13px; height: 13px; color: var(--ink-faint); }
.bsm-meta-item b { color: var(--air-red); }

/* ratings block */
.bsm-ratings {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}
.bsm-rates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
/* round "New" stamp shown in the card's white space, beside the ratings */
.bsm-new-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--air-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(8deg);
  box-shadow: 0 3px 8px rgba(43, 33, 24, .22), inset 0 0 0 2px rgba(255, 255, 255, .38);
}
.bsm-rate { display: flex; align-items: center; gap: 7px; }
.bsm-rate-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  width: 54px;
  white-space: nowrap;
}
/* ratings — static fractional stars (editor + combined) */
.bsm-stars-static {
  position: relative;
  display: inline-block;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.bsm-stars-static .bsm-stars-bg { color: var(--line-strong); }
.bsm-stars-static .bsm-stars-fg {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  color: var(--gold);
}
.bsm-rate-num { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; }
.bsm-rate-count { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-faint); }
.bsm-rate-none { font-size: .8rem; font-style: italic; color: var(--ink-faint); }
/* interactive "Rate this club" widget (visitor's own rating) */
.bsm-rate-input { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.bsm-rate-input .bsm-stars-i button { padding: 0 2px; cursor: pointer; }
.bsm-rate-prompt {
  font-family: var(--font-mono);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

/* ratings — interactive integer stars (readers) */
.bsm-stars-i { display: inline-flex; }
.bsm-stars-i button {
  font-size: 1.06rem;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--line-strong);
  padding: 0 1px;
  transition: transform .1s ease, color .1s ease;
}
.bsm-stars-i button.is-on { color: var(--gold); }
.bsm-stars-i button.is-hot { color: var(--gold); transform: scale(1.18); }
.bsm-stars-i.is-yours button.is-on { color: var(--air-red); }
.bsm-rate-thanks {
  font-family: var(--font-hand);
  font-size: 1.02rem;
  color: var(--sage);
  margin-left: 4px;
}

/* rank badge (Top performers view) */
.bsm-rank {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .95rem;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}
.bsm-rank.is-gold { background: var(--gold); color: var(--ink); }

/* footer of card */
.bsm-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.bsm .bsm-visit {
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 11px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform .13s ease, box-shadow .13s ease;
}
.bsm-visit:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--accent); }
.bsm-visit:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--accent); }
.bsm-more {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  padding: 6px 4px;
}
.bsm-more:hover { color: var(--air-red); }

/* ----------------------------------------------------------------------------
   Category browse view
   -------------------------------------------------------------------------- */
.bsm-cat-section { margin-bottom: 38px; }
.bsm-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bsm-cat-head .bsm-cat-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.bsm-cat-head h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
}
.bsm-cat-head .bsm-cat-rule { flex: 1 1 auto; height: 1px; background: var(--line-strong); }
.bsm-cat-head .bsm-cat-num {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.bsm-empty {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--cream);
}
.bsm-empty .bsm-empty-emoji { font-size: 3rem; }
.bsm-empty h3 { font-family: var(--font-display); font-size: 1.6rem; margin-top: 10px; }
.bsm-empty p { color: var(--ink-soft); margin-top: 6px; }
.bsm-empty button {
  margin-top: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .08em;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}
.bsm-empty-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.bsm-empty-actions button { margin-top: 0; }

/* ----------------------------------------------------------------------------
   Modal — "peek inside" opened letter
   -------------------------------------------------------------------------- */
.bsm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(43, 33, 24, .55);
  backdrop-filter: blur(3px);
}
.bsm-modal.is-open { display: grid; animation: bsm-fade .2s ease; }
.bsm-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--line-strong);
  animation: bsm-pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.bsm-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  pointer-events: none;
  border-top: 10px solid transparent;
  background:
    repeating-linear-gradient(-45deg, var(--air-red) 0 10px, #fff 10px 20px, var(--air-blue) 20px 30px, #fff 30px 40px) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 4px;
  opacity: .85;
}
.bsm-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  font-size: 1.1rem;
  color: var(--ink);
  display: grid; place-items: center;
}
.bsm-modal-close:hover { background: var(--air-red); color: #fff; border-color: var(--air-red); }
.bsm-modal-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--air-red);
}
.bsm-modal-card h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.04;
  margin: 8px 0 6px;
}
.bsm-modal-card .bsm-cats { margin-bottom: 16px; }
.bsm-modal-card .bsm-modal-desc { color: var(--ink-soft); font-size: 1.02rem; }
.bsm-modal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.bsm-modal-facts div { padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); }
.bsm-modal-facts dt { color: var(--ink-faint); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.bsm-modal-facts dd { margin: 3px 0 0; font-weight: 700; }
.bsm-modal-card .bsm-visit { display: inline-block; margin-top: 8px; }

/* ----------------------------------------------------------------------------
   Suggest-a-club form (rendered inside the modal)
   -------------------------------------------------------------------------- */
.bsm-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.bsm-field { display: flex; flex-direction: column; gap: 5px; }
.bsm-field > span {
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.bsm-field input,
.bsm-field select,
.bsm-field textarea {
  font: inherit;
  font-size: .95rem;
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.bsm-field textarea { resize: vertical; }
.bsm-field input:focus,
.bsm-field select:focus,
.bsm-field textarea:focus { outline: none; border-color: var(--air-blue); }
.bsm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bsm-form .bsm-form-submit { margin-top: 6px; }
.bsm-form-submit[disabled] { opacity: .6; cursor: default; }
.bsm-submit-done { text-align: center; padding: 12px 4px 4px; }
.bsm-submit-emoji { font-size: 2.8rem; }
.bsm-submit-done h2 { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; margin: 8px 0 6px; }
.bsm-submit-done p { color: var(--ink-soft); margin-bottom: 18px; }

/* ----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bsm-footer {
  margin-top: 60px;
  border-top: 2px dashed var(--line-strong);
  background: rgba(243, 232, 207, .5);
}
.bsm-footer .bsm-wrap { padding-top: 36px; padding-bottom: 40px; }
.bsm-foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.bsm-foot-brand { max-width: 320px; }
.bsm-foot-brand b { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }
.bsm-foot-brand p { color: var(--ink-soft); margin-top: 8px; font-size: .92rem; }
.bsm-foot-note {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--air-blue);
  transform: rotate(-2deg);
  text-align: left;
  line-height: 1.25;
  padding: 0;
}
.bsm-foot-note:hover { color: var(--air-red); }
.bsm-foot-legal {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-faint);
  letter-spacing: .03em;
}

/* ----------------------------------------------------------------------------
   Entrance animations
   -------------------------------------------------------------------------- */
@keyframes bsm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsm-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bsm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.bsm-card { animation: bsm-rise .5s both; }
.bsm-grid .bsm-card:nth-child(1) { animation-delay: .02s; }
.bsm-grid .bsm-card:nth-child(2) { animation-delay: .06s; }
.bsm-grid .bsm-card:nth-child(3) { animation-delay: .10s; }
.bsm-grid .bsm-card:nth-child(4) { animation-delay: .14s; }
.bsm-grid .bsm-card:nth-child(5) { animation-delay: .18s; }
.bsm-grid .bsm-card:nth-child(6) { animation-delay: .22s; }
.bsm-grid .bsm-card:nth-child(7) { animation-delay: .26s; }
.bsm-grid .bsm-card:nth-child(8) { animation-delay: .30s; }
.bsm-grid .bsm-card:nth-child(n+9) { animation-delay: .34s; }

/* ----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .bsm-topbar-search { display: none; }
  .bsm-hero { padding-top: 36px; }
  .bsm-stamprow { display: none; }
  .bsm-grid { grid-template-columns: 1fr; }
  .bsm-toolbar-spacer { flex-basis: 100%; height: 0; }
}

/* ----------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bsm * { animation: none !important; transition: none !important; }
}
