/* Phase 7: the club's own public pages (directory, member sign-in, donations, store) and a few dashboard pieces. */
.club-site { --brand: var(--club, #0d6e63); --brand-deep: color-mix(in srgb, var(--club, #0d6e63) 80%, #000); min-height: 100vh; display: flex; flex-direction: column; }
.club-bar { background: var(--surface); border-bottom: 3px solid var(--brand); }
.club-bar-in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.club-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.club-logo { max-height: 40px; max-width: 120px; width: auto; }
.club-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.club-nav a { padding: 6px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.club-nav a:hover, .club-nav a[aria-current] { background: var(--bg); color: var(--brand); }
.club-main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 20px; align-content: start; flex: 1; min-width: 0; }
.club-main h1 { font-size: 28px; overflow-wrap: anywhere; }
.club-narrow { max-width: 560px; width: 100%; justify-self: center; }
.club-foot { text-align: center; padding: 16px; color: var(--muted); font-size: 13px; }
.club-foot a { color: var(--muted); }
.club-main :where(p, li, dd, h2, h3) { overflow-wrap: anywhere; }

/* Directory */
.dir-search { display: flex; flex-wrap: wrap; gap: 10px; }
.dir-search input { flex: 1 1 220px; min-width: 0; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dir-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.dir-card h2 { font-size: 18px; overflow-wrap: anywhere; }
.dir-card .dir-head { color: var(--muted); font-weight: 600; }
.dir-card .dir-bio { white-space: pre-line; font-size: 15px; }
.dir-card a { overflow-wrap: anywhere; }

/* Donations */
.amounts { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.amounts legend, .freq legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.amounts label, .freq label { position: relative; }
.amounts input, .freq input { position: absolute; opacity: 0; }
.amounts span, .freq span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; cursor: pointer; }
.amounts input:checked + span, .freq input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); }
.amounts input:focus-visible + span, .freq input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.freq { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }

/* Store */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shop-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.shop-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg); }
.shop-item .shop-body { padding: 14px; display: grid; gap: 8px; align-content: start; }
.shop-item h2 { font-size: 18px; }
.shop-item .price { font-weight: 800; font-size: 18px; }
.shop-item form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.shop-item input[type=number] { width: 5em; }
.cart-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cart-table td input[type=number] { width: 5em; }
.sum-lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; max-width: 360px; margin-left: auto; }
.sum-lines .total { font-weight: 800; font-size: 18px; }

/* Dashboard bits */
pre.snippet { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px; white-space: pre; max-width: 100%; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check-grid label { display: inline-flex; gap: 6px; align-items: center; }
.acct-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.club-tabs { gap: 6px; }

/* Directory: a member's answers to the club's profile fields (member portal) */
.dir-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 10px; margin: 6px 0; font-size: 14px; }
.dir-fields dt { font-weight: 600; max-width: 18ch; overflow-wrap: anywhere; }
.dir-fields dd { margin: 0; overflow-wrap: anywhere; }
