/* Club pages — extends birkly-subpage.css (site chrome via birkly-header/footer) */

.bk-club-shell {
  padding: clamp(100px, 12vh, 140px) 0 clamp(64px, 8vw, 120px);
  box-sizing: border-box;
}

.bk-club-shell--tight {
  padding-top: clamp(88px, 10vh, 120px);
}

.bk-club-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bk-line, #E7EAE4);
  font-family: var(--bk-mono, 'IBM Plex Mono', monospace);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.bk-club-subnav a {
  color: #717789;
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.bk-club-subnav a:hover,
.bk-club-subnav a[aria-current="page"] {
  color: #1E1F2A;
}

.bk-club-subnav a[aria-current="page"] {
  font-weight: 600;
}

.bk-club-subnav form {
  display: inline;
  margin: 0;
}

.bk-club-subnav .bk-club-signout {
  font: inherit;
  font-family: var(--bk-mono, 'IBM Plex Mono', monospace);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #717789;
  background: none;
  border: none;
  padding: 8px 2px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bk-club-subnav .bk-club-signout:hover {
  color: #1E1F2A;
}

.bk-club-badge {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 99px;
  background: #7CE3DE;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E1F2A;
  vertical-align: middle;
}

.bk-club-card {
  background: #fff;
  border: 1px solid var(--bk-line, #E7EAE4);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  margin-bottom: 16px;
}

.bk-club-card h2,
.bk-club-card h3 {
  margin: 0 0 8px;
}

.bk-club-card h2 a,
.bk-club-card h3 a {
  color: inherit;
  text-decoration: none;
}

.bk-club-card h2 a:hover,
.bk-club-card h3 a:hover {
  text-decoration: underline;
}

.bk-club-meta {
  font-family: var(--bk-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  color: var(--bk-muted, #4A4F5E);
  margin: 0 0 10px;
}

.bk-club-body {
  margin: 12px 0;
  font-size: clamp(15px, 0.9vw, 17px);
}

.bk-club-body .mention,
.bk-club-body a.mention {
  color: #1E1F2A;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #7CE3DE;
}

.bk-club-composer label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 500;
}

.bk-club-composer textarea,
.bk-club-composer input[type="text"],
.bk-club-composer input[type="email"],
.bk-club-composer input[type="password"],
.bk-club-composer input[type="url"],
.bk-club-composer input[type="file"],
.bk-club-composer select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--bk-line, #E7EAE4);
  border-radius: 10px;
  font: inherit;
  margin-top: 6px;
  background: #fff;
}

.bk-club-composer textarea {
  min-height: 110px;
  resize: vertical;
}

.bk-club-btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.bk-club-btn--mint {
  background: #7CE3DE;
  color: #1E1F2A;
}

.bk-club-btn--mint:hover {
  box-shadow: 0 10px 28px rgba(124, 227, 222, 0.45);
}

.bk-club-btn--ghost {
  background: transparent;
  border: 1px solid var(--bk-line, #E7EAE4);
  color: #1E1F2A;
}

.bk-club-btn--ghost:hover {
  border-color: #7CE3DE;
}

.bk-club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.bk-club-thread {
  margin-top: 8px;
}

.bk-club-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--bk-line, #E7EAE4);
}

.bk-club-replies {
  margin: 10px 0 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--bk-line, #E7EAE4);
}

.bk-club-reply {
  padding: 10px 0;
  font-size: 0.95rem;
}

.bk-club-reply-form {
  margin-top: 10px;
}

.bk-club-reply-form textarea {
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--bk-line, #E7EAE4);
  border-radius: 10px;
  font: inherit;
  margin-top: 8px;
}

.bk-club-notif--read {
  opacity: 0.65;
}

.bk-club-hint {
  font-size: 0.88rem;
  color: var(--bk-muted, #4A4F5E);
  margin: 0 0 12px;
}

.bk-club-hint a {
  color: #1E1F2A;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #7CE3DE;
}

.bk-club-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.bk-club-form-status {
  font-size: 0.88rem;
  color: var(--bk-muted, #4A4F5E);
  margin-top: 10px;
}

.bk-club-settings fieldset {
  border: 1px solid var(--bk-line, #E7EAE4);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 16px;
}

.bk-club-settings legend {
  padding: 0 6px;
  font-weight: 600;
}

.bk-club-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 0.92rem;
}

.bk-club-auth-card {
  max-width: 480px;
  margin: 0 auto;
}

.bk-club-pagehead {
  margin-bottom: 28px;
}

.bk-club-pagehead .bk-h2 {
  margin: 0;
}

.bk-club-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 20px;
}

.bk-club-profile-head__meta {
  flex: 1 1 200px;
}

.bk-club-avatar,
.bk-club-avatar-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bk-line, #E7EAE4);
  background: #fff;
}

.bk-club-avatar-wrap--sm img,
.bk-club-avatar-wrap--sm .bk-club-avatar {
  width: 64px;
  height: 64px;
}

.bk-club-member-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bk-club-member-card__link:hover h2 {
  text-decoration: underline;
}

.bk-club-links-pre {
  font-family: var(--bk-sans);
  white-space: pre-wrap;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

.bk-club-feed-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--bk-line, #E7EAE4);
}

.bk-club-feed-item:last-child {
  border-bottom: none;
}

/* @mention autocomplete */
.bk-mention-menu {
  position: absolute;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid var(--bk-line, #E7EAE4);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(30, 31, 42, 0.12);
  padding: 6px;
  box-sizing: border-box;
}

.bk-mention-menu__empty {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--bk-muted, #4A4F5E);
}

.bk-mention-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #1E1F2A;
}

.bk-mention-menu__item:hover,
.bk-mention-menu__item.is-active {
  background: rgba(124, 227, 222, 0.2);
}

.bk-mention-menu__avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E7EAE4;
  font-size: 0.85rem;
  font-weight: 600;
}

.bk-mention-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-mention-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bk-mention-menu__name {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-mention-menu__hint {
  font-family: var(--bk-mono, 'IBM Plex Mono', monospace);
  font-size: 0.75rem;
  color: var(--bk-muted, #4A4F5E);
}

/* Early member UI when local session exists before cross-origin auth */
html.bk-club-ssr-member [data-birkly-auth="guest"] { display: none !important; }
html.bk-club-ssr-member [data-birkly-auth="member"] { display: block !important; }
