/*
 * community-detail.css — Community Detail page styles
 * Depends on: tokens.css (--jt-* CSS variables) + jertam.css (Bootstrap overrides)
 * Loaded via @section Styles ใน Detail.cshtml
 */

/* ── Skip link (a11y) ─────────────────────────────────────────────────────── */
.jt-skip-link {
    position: absolute; top: -40px; left: 8px; z-index: 100;
    background: var(--jt-ink); color: white; padding: 8px 16px; border-radius: 8px;
}
.jt-skip-link:focus { top: 8px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.jt-c-hero { background: white; border-bottom: 1px solid var(--jt-line, #eee); }
.jt-c-hero__cover {
    height: 260px; background-size: cover; background-position: center;
    background-color: var(--jt-cream, #FAF7F2); position: relative;
}
.jt-c-hero__cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(26, 43, 31, 0.30) 100%);
}
.jt-c-hero__body { padding-bottom: 24px; }
.jt-c-hero__grid {
    display: grid; grid-template-columns: 120px 1fr auto;
    gap: 20px; align-items: flex-end; margin-top: -48px;
}
.jt-c-hero__logo {
    width: 120px; height: 120px; border-radius: 20px; overflow: hidden;
    border: 4px solid white; position: relative; display: block;
    background: var(--jt-cream, #FAF7F2);
    box-shadow: 0 10px 24px -8px rgba(26, 43, 31, 0.20);
}
.jt-c-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.jt-c-hero__logo-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--jt-font-display, system-ui); font-size: 48px; font-weight: 700;
    color: var(--jt-orange-600, #d97706);
}
.jt-c-hero__verified {
    position: absolute; bottom: -4px; right: -4px;
    width: 28px; height: 28px; background: var(--jt-orange-500, #F58220);
    color: white; border-radius: 50%; border: 3px solid white;
    display: flex; align-items: center; justify-content: center;
}
.jt-c-hero__id {
    /* Ensure children stack vertically; min-width:0 prevents grid blowout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    /* Keep kicker visible above cover gradient when id column is pulled up */
    position: relative;
    z-index: 2;
}

.jt-c-hero__kicker {
    display: block;
    font-family: var(--jt-font-mono, ui-monospace);
    font-size: 11px;
    font-weight: 700;
    color: var(--jt-orange-600, #d97706);
    letter-spacing: 0.6px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 4px;
    /* readability over cover-photo gradient */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
.jt-c-hero__name {
    font-family: var(--jt-font-display, system-ui); font-size: 40px;
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
    color: var(--jt-ink, #1A2B1F); margin: 0;
    padding-top: 12px;
}
.jt-c-hero__sub { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; }
.jt-c-hero__sub > span:first-child { font-size: 14px; color: var(--jt-ink-2, #4a5759); }
.jt-handle {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 11.5px;
    color: var(--jt-orange-600, #d97706);
}
.jt-c-hero__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jt-c-action { width: 40px; height: 40px; padding: 0; display: inline-flex;
               align-items: center; justify-content: center; border-radius: 12px; }
.jt-c-join { padding: 8px 18px; border-radius: 10px; font-weight: 600; }
/* Joined state — btn-light ของ Bootstrap จางเกือบขาว มองยากก่อน hover
   ใส่พื้น cream + เส้นขอบ ให้เห็นชัดว่าเป็นสมาชิกแล้ว */
.jt-c-join.btn-light {
    background: var(--jt-cream, #FAF7F2);
    border: 1.5px solid var(--jt-line, #e5e7eb);
    color: var(--jt-ink, #1A2B1F);
}
.jt-c-join.btn-light:hover,
.jt-c-join.btn-light:focus-visible {
    background: #fff0ec;
    border-color: var(--jt-orange-300, #f9b48a);
    color: var(--jt-orange-700, #b45309);
}

.jt-c-hero__desc {
    font-size: 14.5px; line-height: 1.55; color: var(--jt-ink-2, #4a5759);
    max-width: 720px; margin: 16px 0 0;
}
.jt-c-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jt-chip {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 9999px; background: var(--jt-cream, #FAF7F2);
    border: 1px solid var(--jt-line, #eee); font-size: 12px; font-weight: 500;
    color: var(--jt-ink-2, #4a5759);
}

/* ── Stats + avatar cluster ───────────────────────────────────────────────── */
.jt-c-stats { background: white; border-bottom: 1px solid var(--jt-line, #eee); padding: 20px 0; }
.jt-c-stats__inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.jt-c-stats__nums { display: flex; gap: 32px; flex-wrap: wrap; }
.jt-c-stats__nums .num {
    font-family: var(--jt-font-display, system-ui); font-size: 28px;
    font-weight: 800; letter-spacing: -0.025em; line-height: 1; display: block;
    color: var(--jt-ink, #1A2B1F);
}
.jt-c-stats__nums .num.orange { color: var(--jt-orange-500, #F58220); }
.jt-c-stats__nums .num.green  { color: var(--jt-green-600,  #1B4D2E); }
.jt-c-stats__nums .lbl {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 11px;
    color: var(--jt-muted, #8A9387); letter-spacing: 0.4px;
    margin-top: 4px; display: block;
}
.jt-c-stats__avatars {
    display: flex; flex-wrap: wrap; justify-content: flex-end;
    max-width: 360px; margin-left: auto;
}
.jt-c-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid white; margin-left: -8px; position: relative; z-index: 0;
    overflow: hidden; background: var(--jt-cream, #FAF7F2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: var(--jt-ink-2, #4a5759);
    transition: transform 0.15s ease, z-index 0s;
    cursor: pointer;
}
.jt-c-avatar:hover,
.jt-c-avatar:focus-visible {
    z-index: 10;
    transform: scale(1.18) translateY(-2px);
    outline: none;
}
.jt-c-avatar:focus-visible { box-shadow: 0 0 0 2px var(--jt-orange, #F58220); }
.jt-c-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jt-c-avatar:first-child { margin-left: 0; }
.jt-c-avatar--more {
    background: var(--jt-ink, #1A2B1F); color: white;
    font-size: 9px; font-weight: 700; font-family: var(--jt-font-mono, ui-monospace);
    text-decoration: none;
}

/* ── Sticky tabs ──────────────────────────────────────────────────────────── */
.jt-c-tabs {
    background: white; border-bottom: 1px solid var(--jt-line, #eee);
    position: sticky; top: 67px; z-index: 40;
}
.jt-c-tabs ul {
    display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
    overflow-x: auto; scrollbar-width: none;
}
.jt-c-tabs ul::-webkit-scrollbar { display: none; }
.jt-c-tabs a {
    display: flex; align-items: baseline; gap: 6px; padding: 14px 0;
    border-bottom: 2px solid transparent; color: var(--jt-muted, #8A9387);
    text-decoration: none; font-family: var(--jt-font-display, system-ui);
    font-size: 14.5px; font-weight: 500; white-space: nowrap;
    transition: all 0.12s; margin-bottom: -1px;
}
.jt-c-tabs a.active {
    color: var(--jt-ink, #1A2B1F); font-weight: 700;
    border-bottom-color: var(--jt-orange-500, #F58220);
}
.jt-c-tabs__n {
    font-family: var(--jt-font-mono, ui-monospace);
    font-size: 10.5px; color: var(--jt-muted, #8A9387);
}

/* ── Composer ─────────────────────────────────────────────────────────────── */
.jt-c-composer {
    background: white; border-radius: 18px;
    border: 1px solid var(--jt-line, #eee); padding: 18px;
    margin-bottom: 12px;
}
.jt-c-composer__row { display: flex; gap: 12px; }
.jt-c-composer__avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--jt-cream, #FAF7F2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--jt-ink, #1A2B1F);
}
.jt-c-composer__input {
    width: 100%; border: none; outline: none; resize: none;
    font-family: inherit; font-size: 15px; color: var(--jt-ink, #1A2B1F);
    background: transparent; line-height: 1.5; padding: 10px 0;
}
.jt-c-composer__actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding-top: 12px;
    border-top: 1px solid var(--jt-line, #eee);
}
.jt-c-composer__attach { display: flex; gap: 4px; }
.jt-c-composer__icon-btn {
    width: 36px; height: 36px; border-radius: 10px; background: transparent;
    border: none; color: var(--jt-muted, #8A9387); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.jt-c-composer__icon-btn:hover { background: var(--jt-cream, #FAF7F2); color: var(--jt-ink, #1A2B1F); }

/* ── Main + feed wrap (narrow 760px like Member profile) ─────────────────── */
.jt-c-main { padding: 28px 0 60px; }
.jt-c-feed-wrap {
    max-width: 760px; margin: 0 auto;
    padding: 0 16px;
}

/* ── Post card ────────────────────────────────────────────────────────────── */
.jt-c-post-list > .jt-c-post,
.jt-c-feed-tab > .jt-c-post {
    margin-bottom: 16px;
}
.jt-c-post {
    background: white; border-radius: 18px;
    border: 1px solid var(--jt-line, #eee);
    box-shadow: var(--jt-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    overflow: hidden; position: relative;
    cursor: pointer;                      /* whole card → posts/{slug} via JS */
    transition: box-shadow .15s, transform .15s;
}
.jt-c-post:hover {
    box-shadow: 0 8px 24px -6px rgba(26, 43, 31, 0.10);
}
.jt-c-post--pinned { border: 1.5px solid var(--jt-orange-300, #FCD9B6); }
.jt-c-post__pin-stripe {
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--jt-orange-500, #F58220);
}
.jt-c-post__header { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; }
.jt-c-post__avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; background: var(--jt-cream, #FAF7F2);
    display: block; text-decoration: none;
}
.jt-c-post__avatar img { width: 100%; height: 100%; object-fit: cover; }
.jt-c-post__avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--jt-ink-2, #4a5759);
}
.jt-c-post__author { flex: 1; min-width: 0; }
.jt-c-post__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jt-c-post__name {
    font-family: var(--jt-font-display, system-ui);
    font-size: 14px; font-weight: 700; color: var(--jt-ink, #1A2B1F);
    text-decoration: none;
}
.jt-c-post__role {
    font-size: 10px; font-weight: 700; color: var(--jt-orange-700, #b85e0f);
    background: var(--jt-orange-50, #fff7ec); padding: 2px 8px;
    border-radius: 9999px; border: 1px solid var(--jt-orange-200, #fed7aa);
}
.jt-c-post__pin-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 600; color: var(--jt-orange-700, #b85e0f);
    background: var(--jt-orange-50, #fff7ec); padding: 2px 8px 2px 6px;
    border-radius: 9999px;
}
.jt-c-post__meta {
    font-family: var(--jt-font-mono, ui-monospace);
    font-size: 11.5px; color: var(--jt-muted, #8A9387);
}
.jt-c-post__more .btn {
    color: var(--jt-muted, #8A9387); background: transparent; border: none;
    border-radius: 50%; width: 32px; height: 32px;
}
.jt-c-post__more .btn:hover, .jt-c-post__more.show .btn { background: var(--jt-cream, #FAF7F2); }
.jt-c-dropdown {
    border-radius: 12px; padding: 6px; min-width: 180px;
    box-shadow: 0 12px 36px rgba(26, 43, 31, 0.18);
    border: 1px solid rgba(26, 43, 31, 0.06);
}
.jt-c-dropdown .dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    font-size: 13.5px; font-weight: 500;
}
.jt-c-dropdown .dropdown-item:hover { background: var(--jt-cream, #FAF7F2); }
.jt-c-dropdown .dropdown-item.text-danger:hover { background: #FEE2E2; }

.jt-c-post__body {
    font-size: 14.5px; line-height: 1.6; color: var(--jt-ink-2, #4a5759);
    padding: 0 20px; margin-bottom: 12px;
}
.jt-c-post__media { position: relative; }
.jt-c-post__media img { width: 100%; height: 420px; object-fit: cover; display: block; }

.jt-c-post__gallery {
    display: grid; gap: 2px;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
}
.jt-c-post__gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 320px; }
.jt-c-post__gallery[data-count="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; }
.jt-c-post__gallery[data-count="3"] .jt-c-post__gallery-item:first-child { grid-row: 1 / -1; }
.jt-c-post__gallery-item { position: relative; }
.jt-c-post__gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jt-c-post__gallery-more {
    position: absolute; inset: 0; background: rgba(26, 43, 31, 0.65);
    color: white; font-family: var(--jt-font-display, system-ui);
    font-weight: 700; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
}

.jt-c-post__video { position: relative; }
.jt-c-post__video img { width: 100%; height: 380px; object-fit: cover; display: block; }
.jt-c-post__video-el  { width: 100%; height: 380px; object-fit: cover; display: block; background: #000; }
.jt-c-post__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .28);
    border: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: background .2s;
}
.jt-c-post__play:hover { background: rgba(0, 0, 0, .42); }
.jt-c-post__play svg {
    width: 60px;
    height: 60px;
    background: var(--jt-orange-500);
    border-radius: 50%;
    padding: 14px;
    box-shadow: var(--jt-shadow-glow-orange);
    transition: transform .2s;
    color: #fff;
}
.jt-c-post__play:hover svg { transform: scale(1.08); }
.jt-c-post__duration {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(0, 0, 0, 0.7); color: white;
    padding: 4px 10px; border-radius: 6px; font-size: 11px;
}

.jt-c-post__stats { display: flex; padding: 8px 12px; border-top: 1px solid var(--jt-line, #eee); }
.jt-c-post__stat {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 8px; border-radius: 10px;
    background: transparent; border: none; cursor: pointer;
    color: var(--jt-ink-2, #4a5759); font-size: 13px; font-weight: 500;
}
.jt-c-post__stat:hover { background: var(--jt-cream, #FAF7F2); }
/* Active (toggled) state — like → orange, bookmark → blue */
.jt-c-post__stat.jt-react-btn.is-active { color: var(--jt-orange, #F58220); }
.jt-c-post__stat.jt-react-btn.is-active[data-action="like"] svg { fill: var(--jt-orange, #F58220); stroke: var(--jt-orange, #F58220); }
.jt-c-post__stat.jt-react-btn.is-active[data-action="bookmark"] { color: #2563EB; }
.jt-c-post__stat.jt-react-btn.is-active[data-action="bookmark"] svg { stroke: #2563EB; fill: #DBEAFE; }
/* Like count — คลิกเพื่อดูรายชื่อคนที่กดถูกใจ */
.jt-c-post__like-count { cursor: pointer; border-radius: 4px; padding: 1px 2px; }
.jt-c-post__like-count:hover { text-decoration: underline; }

/* Likers modal list styles moved to jertam.css (shared component — ใช้ทั้งหน้า
   community และ post detail) */

/* ── Comment modal ────────────────────────────────────────────────────────── */

/* Outer wrapper injected by _PostComment.cshtml */
.jt-pc-wrap { display: flex; flex-direction: column; }

/* Post content area */
.jt-pc-post { padding: 1rem 1.125rem 0.75rem; border-bottom: 1px solid var(--jt-line, #e5e7eb); }
.jt-pc-post__author {
    display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem;
}
.jt-pc-post__avatar-link { flex-shrink: 0; }
.jt-pc-post__avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    background: var(--jt-paper, #f3f4f6);
}
.jt-pc-post__name {
    font-size: 0.875rem; font-weight: 600; text-decoration: none;
    color: var(--jt-text, #111827);
}
.jt-pc-post__name:hover { text-decoration: underline; }
.jt-pc-post__full-link { margin-top: 0.625rem; }
.jt-pc-post__read-more {
    font-size: 0.8rem; color: var(--jt-orange, #F58220);
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem;
}
.jt-pc-post__read-more:hover { text-decoration: underline; }

/* Block content inside modal — styling มาจาก post_detail.css (โหลดในหน้า community)
   เพื่อให้แสดงผล "เหมือนหน้า post detail" ทุกประการ + interaction ครบ
   (gallery lightbox / JT-clip player / place map). render โดย _blockRenderer.js */
.jt-pc-blocks { padding: 0 0.125rem; }

/* Comments divider + heading */
.jt-pc-comments-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.125rem 0.375rem;
    font-size: 0.875rem; font-weight: 600; color: var(--jt-text, #111827);
    border-bottom: 1px solid var(--jt-line, #e5e7eb);
}
.jt-pc-comments-count {
    font-size: 0.8rem; font-weight: 500; color: var(--jt-muted, #6b7280);
}

/* Scrollable comment area */
.jt-pc-scroll {
    max-height: 340px; overflow-y: auto;
    padding: 0.375rem 0;
}
.jt-pc-empty {
    text-align: center; color: var(--jt-muted, #6b7280);
    font-size: 0.875rem; padding: 1.5rem 1rem;
}

/* Individual comment item */
.jt-comment-list { margin: 0; padding: 0; }
.jt-comment-item {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.5rem 1rem 0.375rem;
    list-style: none;
}
.jt-comment-item__avatar-link { flex-shrink: 0; margin-top: 2px; }
.jt-comment-item__avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    background: var(--jt-paper, #f3f4f6);
}
.jt-comment-item__bubble {
    background: var(--jt-paper, #f3f4f6); border-radius: 12px;
    padding: 0.375rem 0.75rem 0.25rem;
    min-width: 0; flex: 1;
}
.jt-comment-item__name {
    font-size: 0.8125rem; font-weight: 600; color: var(--jt-text, #111827);
    text-decoration: none; display: block; margin-bottom: 0.125rem;
}
.jt-comment-item__name:hover { text-decoration: underline; }
.jt-comment-item__text {
    font-size: 0.875rem; color: var(--jt-text, #111827);
    line-height: 1.5; word-break: break-word; white-space: pre-wrap;
}
.jt-comment-item__time {
    display: block; font-size: 0.75rem; color: var(--jt-muted, #6b7280);
    margin-top: 0.25rem;
}

/* Comment input row (pinned below scroll area — Facebook-style) */
.jt-comment-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--jt-line, #e5e7eb);
    background: white;
    /* Sticky: glued to bottom of .jt-pc-wrap when modal is tall */
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.jt-comment-input-row__textarea {
    flex: 1;
    min-height: 38px;
    max-height: 120px;
    resize: none;
    border: 1.5px solid var(--jt-line, #e5e7eb);
    border-radius: 20px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: inherit;
    background: var(--jt-paper, #f3f4f6);
    color: var(--jt-text, #111827);
    transition: border-color 0.15s, background 0.15s;
    outline: none;
    overflow-y: hidden;
}
.jt-comment-input-row__textarea:focus {
    border-color: var(--jt-orange, #F58220);
    background: white;
}
.jt-comment-input-row__textarea::placeholder { color: var(--jt-muted, #9ca3af); }
.jt-comment-input-row__send {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--jt-orange, #F58220);
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.jt-comment-input-row__send:hover:not(:disabled) { background: var(--jt-orange-600, #d97706); }
.jt-comment-input-row__send:active:not(:disabled) { transform: scale(0.93); }
.jt-comment-input-row__send:disabled {
    background: var(--jt-line, #e5e7eb);
    color: var(--jt-muted, #9ca3af);
    cursor: not-allowed;
}

/* Guest variant — single login-prompt button */
.jt-comment-input-row--guest { justify-content: center; }
.jt-comment-input-row__login-prompt {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1.5px dashed var(--jt-line, #e5e7eb);
    border-radius: 20px;
    background: var(--jt-paper, #f3f4f6);
    color: var(--jt-muted, #6b7280);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.jt-comment-input-row__login-prompt:hover {
    border-color: var(--jt-orange, #F58220);
    color: var(--jt-orange, #F58220);
}

/* ── Sentinel + end card ──────────────────────────────────────────────────── */
.jt-c-sentinel {
    text-align: center; padding: 24px 0; color: var(--jt-muted, #8A9387);
}
.jt-mp-end { text-align: center; padding: 32px 0; color: var(--jt-muted, #8A9387); }
.jt-mp-end__title { font-weight: 600; font-size: 14px; }

/* ── Empty states ─────────────────────────────────────────────────────────── */
.jt-c-empty {
    text-align: center; padding: 40px 20px; color: var(--jt-muted, #8A9387);
    background: white; border-radius: 18px; border: 1px solid var(--jt-line, #eee);
}

/* ── Section head (used on Events & Members tabs) ─────────────────────────── */
.jt-c-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.jt-c-section-head__kicker {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 11px;
    color: var(--jt-orange-600, #d97706); letter-spacing: 0.6px;
    text-transform: uppercase;
}
.jt-c-section-head__rule { flex: 1; height: 1px; background: var(--jt-line, #eee); }

/* ── Events ───────────────────────────────────────────────────────────────── */
.jt-c-event-filters {
    display: flex; gap: 8px; margin-bottom: 20px;
    overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.jt-c-event-filters::-webkit-scrollbar { display: none; }
.jt-c-event-filter {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 9999px; background: white; color: var(--jt-ink-2, #4a5759);
    border: 1.5px solid var(--jt-line, #eee); font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap; flex-shrink: 0; cursor: pointer;
}
.jt-c-event-filter.is-active {
    background: var(--jt-ink, #1A2B1F); color: white;
    border-color: var(--jt-ink, #1A2B1F);
}
.jt-c-event-filter__n {
    background: var(--jt-cream, #FAF7F2); padding: 2px 8px; border-radius: 9999px;
    font-size: 11px; font-family: var(--jt-font-mono, ui-monospace);
}
.jt-c-event-filter.is-active .jt-c-event-filter__n {
    background: rgba(255, 255, 255, 0.20); color: white;
}
.jt-c-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #E11D48; animation: jtBlink 1.2s ease-in-out infinite; display: inline-block;
}
@keyframes jtBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.jt-c-event-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.jt-c-event {
    background: white; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--jt-line, #eee);
    box-shadow: var(--jt-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    display: flex; flex-direction: column;
}
.jt-c-event--past { opacity: 0.8; }
.jt-c-event__cover {
    position: relative; height: 160px; background: var(--jt-cream, #FAF7F2);
}
.jt-c-event__cover img { width: 100%; height: 100%; object-fit: cover; }
.jt-c-event__badge {
    position: absolute; top: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 700;
}
.jt-c-event__badge--live { background: #E11D48; color: white; }
.jt-c-event__badge--past { background: rgba(0, 0, 0, 0.6); color: white; }
.jt-c-event__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.jt-c-event__cat {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 10px;
    color: var(--jt-muted, #8A9387); letter-spacing: 0.6px;
    text-transform: uppercase;
}
.jt-c-event__title {
    font-family: var(--jt-font-display, system-ui); font-size: 16px; font-weight: 700;
    color: var(--jt-ink, #1A2B1F); margin: 0; line-height: 1.3;
}
.jt-c-event__when, .jt-c-event__where {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--jt-ink-2, #4a5759);
}
.jt-c-event__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.jt-c-event__after-link {
    color: var(--jt-orange-600, #d97706); font-weight: 600; font-size: 13px;
    text-decoration: none; align-self: flex-start;
}

/* ── Events strip (horizontal scroll above tabs) ──────────────────────────── */
.jt-c-strip { margin-bottom: 24px; }
.jt-c-strip__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.jt-c-strip__title {
    font-family: var(--jt-font-display, system-ui); font-size: 18px;
    font-weight: 700; color: var(--jt-ink, #1A2B1F); margin: 0;
}
.jt-c-strip__more {
    font-size: 13px; color: var(--jt-orange-600, #d97706);
    text-decoration: none; font-weight: 600;
}
.jt-c-strip__scroll {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 8px; scrollbar-width: thin;
}
.jt-c-strip__item { flex: 0 0 280px; }

/* ── Members ──────────────────────────────────────────────────────────────── */
.jt-c-admin-block {
    background: white; border-radius: 18px; padding: 20px;
    border: 1px solid var(--jt-line, #eee); margin-bottom: 20px;
}
.jt-c-admin-block__head {
    font-size: 12px; font-weight: 700; color: var(--jt-ink, #1A2B1F);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.jt-c-admin-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.jt-c-members-search {
    display: flex; gap: 10px; margin-bottom: 18px;
    flex-wrap: wrap; align-items: center;
}
.jt-input-with-icon { position: relative; }
.jt-input-with-icon svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--jt-muted, #8A9387); pointer-events: none;
}
.jt-input-with-icon .form-control { height: 42px; border-radius: 9999px; padding-left: 40px; }
.jt-c-member-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.jt-c-member-filters .jt-chip {
    height: 36px; font-size: 13px; cursor: pointer; border: 1.5px solid var(--jt-line, #eee);
    background: white;
}
.jt-c-member-filters .jt-chip.is-active {
    background: var(--jt-ink, #1A2B1F); color: white; border-color: var(--jt-ink, #1A2B1F);
}
.jt-c-member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.jt-c-member {
    background: white; border-radius: 14px; padding: 14px;
    border: 1px solid var(--jt-line, #eee); display: flex;
    align-items: center; gap: 12px;
}
.jt-c-member--admin { background: var(--jt-cream, #FAF7F2); }
.jt-c-member__avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; background: var(--jt-cream, #FAF7F2);
    display: block; text-decoration: none;
}
.jt-c-member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.jt-c-member__avatar-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--jt-ink-2, #4a5759);
}
.jt-c-member__info { flex: 1; min-width: 0; }
.jt-c-member__name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jt-c-member__name {
    font-weight: 700; color: var(--jt-ink, #1A2B1F);
    text-decoration: none; font-size: 14px;
}
.jt-c-member__role {
    font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 9999px;
}
.jt-c-member__role--admin { color: var(--jt-orange-700, #b85e0f); background: var(--jt-orange-50, #fff7ec); border: 1px solid var(--jt-orange-200, #fed7aa); }
.jt-c-member__role--mod   { color: var(--jt-green-700,  #155729); background: #E7F4EC; border: 1px solid #BFE0CC; }
.jt-c-member__meta {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 11px;
    color: var(--jt-muted, #8A9387); display: flex; gap: 6px;
    align-items: center; flex-wrap: wrap;
}
.jt-c-member__follow {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--jt-orange-500, #F58220); color: white; border: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.jt-c-member__follow.is-following { background: var(--jt-green-600, #1B4D2E); }

/* ── About tab ────────────────────────────────────────────────────────────── */
.jt-c-about-tab { display: flex; flex-direction: column; gap: 16px; }
.jt-c-about-card {
    background: white; border-radius: 18px; padding: 24px;
    border: 1px solid var(--jt-line, #eee);
}
.jt-c-about-card__heading {
    font-family: var(--jt-font-display, system-ui); font-size: 18px; font-weight: 700;
    color: var(--jt-ink, #1A2B1F); margin: 0 0 12px;
}
.jt-c-about-card__subhead {
    font-size: 13px; font-weight: 700; color: var(--jt-orange-600, #d97706);
    margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.jt-c-about-card__body { font-size: 14.5px; line-height: 1.6; color: var(--jt-ink-2, #4a5759); margin: 0; }
.jt-c-about-tiles {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px;
}
.jt-c-about-tile {
    background: var(--jt-cream, #FAF7F2); border-radius: 12px; padding: 14px;
}
.jt-c-about-tile__lbl {
    font-family: var(--jt-font-mono, ui-monospace); font-size: 10.5px;
    color: var(--jt-muted, #8A9387); letter-spacing: 0.4px; text-transform: uppercase;
    margin-bottom: 6px;
}
.jt-c-about-tile__val {
    font-family: var(--jt-font-display, system-ui); font-size: 22px;
    font-weight: 700; color: var(--jt-ink, #1A2B1F);
}
.jt-c-about-tile__val.orange { color: var(--jt-orange-500, #F58220); }
.jt-c-about-tile__val.green  { color: var(--jt-green-600,  #1B4D2E); }
.jt-c-about-dl { display: grid; grid-template-columns: 140px 1fr; gap: 12px 24px; margin: 0; }
.jt-c-about-dl dt { font-weight: 700; color: var(--jt-ink-2, #4a5759); font-size: 13px; }
.jt-c-about-dl dd { margin: 0; color: var(--jt-ink, #1A2B1F); font-size: 13.5px; }
.jt-c-features { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jt-c-features li {
    background: var(--jt-cream, #FAF7F2); padding: 8px 14px;
    border-radius: 9999px; font-size: 13px; color: var(--jt-ink, #1A2B1F);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .jt-c-event-grid     { grid-template-columns: 1fr 1fr; }
    .jt-c-about-tiles    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .jt-c-stats__avatars { max-width: 100%; justify-content: flex-start; }
    .jt-c-about-dl       { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 639px) {
    .jt-c-hero__cover    { height: 140px; }
    .jt-c-hero__grid     { grid-template-columns: 1fr; row-gap: 12px; margin-top: -32px; }
    .jt-c-hero__logo     { width: 80px; height: 80px; border-radius: 16px; }
    .jt-c-hero__name     { font-size: 26px; }
    .jt-c-stats__inner   { grid-template-columns: 1fr; gap: 16px; }
    .jt-c-stats__nums    { gap: 18px; }
    .jt-c-stats__nums .num { font-size: 22px; }
    .jt-c-event-grid     { grid-template-columns: 1fr; }
    .jt-c-admin-grid, .jt-c-member-grid { grid-template-columns: 1fr; }
    .jt-c-post__media img, .jt-c-post__video img, .jt-c-post__video-el { height: 280px; }
    .jt-c-about-tiles    { grid-template-columns: 1fr 1fr; }
}
