/* ═══════════════════════════════════════════════════════════════════════════════
   EPISODE ONE — DISCUSSIONS
   Matches notifications.css / messages.css system
   ═══════════════════════════════════════════════════════════════════════════════ */

.disc-page {
    background: linear-gradient(180deg, #f7f6f3 0%, #f2f2f2 300px);
    min-height: 100vh;
    padding-bottom: 100px;
}

.disc-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 24px 0;
}


/* ── Layout ── */
.disc-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

/* ── List container ── */
.disc-feed-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.disc-compose-card-standalone {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e0d5;
    border-top: 3px solid #D4AF37;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 18px 20px;
}
.disc-feed {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e0d5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ── Row (was card) ── */
.disc-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.disc-card:last-child { border-bottom: none; }
.disc-card:hover { background: #fafafa; }

/* ── Vote column ── */
.disc-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    width: 30px;
    padding-top: 2px;
}

.disc-vote-btn {
    font-size: 14px;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.15s;
}

.disc-vote-btn:hover { color: #D4AF37; }
.disc-vote-btn.active { color: #D4AF37; }
.disc-vote-btn:disabled { cursor: default; opacity: 0.4; }

.disc-vote-count {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}

/* ── Content ── */
.disc-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.disc-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.disc-tag-show {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #9A7B0A;
    text-decoration: none;
}

.disc-tag-show:hover { color: #9A7B0A; text-decoration: underline; }

.disc-tag-page {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.disc-tag-general {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 3px 10px;
    border-radius: 20px;
}

.disc-tag-pinned {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #D4AF37;
}

.disc-card-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.65;
    margin: 0;
}

.disc-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.disc-card-author {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disc-card-author:hover { color: #B8960C; }

.disc-card-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.disc-card-avatar-initial {
    background: #f0f0f0;
    border: 1px solid #e8e8e8;
    color: #B8960C;
    font-family: 'Cormorant Garamond', serif;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.disc-card-dot {
    font-size: 10px;
    color: #ccc;
}

.disc-card-date {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #777;
}

.disc-card-replies {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
}

.disc-card-replies:hover { color: #333; }

.disc-card-read {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #9A7B0A;
    text-decoration: none;
    margin-left: auto;
}

.disc-card-read:hover { color: #9A7B0A; text-decoration: underline; }

/* ── Sidebar ── */
.disc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.disc-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e0d5;
    border-top: 3px solid #D4AF37;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.disc-sidebar-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.disc-sidebar-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 16px;
}

.disc-sidebar-cta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: #111;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    border-radius: 20px;
    transition: background 0.2s;
}

.disc-sidebar-cta:hover { background: #333; color: #fff; }

.disc-sidebar-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disc-sidebar-rules li {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ── Filtered-view banner ── */
.disc-filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.disc-filter-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #999;
}

.disc-filter-text strong { color: #111; }

.disc-filter-clear {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #B8960C;
    text-decoration: none;
}

.disc-filter-clear:hover { color: #B8960C; text-decoration: underline; }

/* ── Empty state ── */
.disc-empty {
    background: #fff;
    border-radius: 12px;
    padding: 70px 40px;
    text-align: center;
    border: 1px solid #e5e0d5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.disc-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 8px;
}

.disc-empty-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 20px;
}

.disc-empty-cta {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: #111;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 20px;
    display: inline-block;
    transition: background 0.2s;
}

.disc-empty-cta:hover { background: #333; color: #fff; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .disc-wrap { padding: 24px 16px 0; }
    .disc-title { font-size: 1.8rem; }
    .disc-body { grid-template-columns: 1fr; }
    .disc-sidebar { position: static; }
    .disc-header-row { flex-wrap: wrap; }
}

/* ── Start a Discussion — inline composer ────────────────────────────────── */
.disc-compose-search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
}
.disc-compose-search:focus {
    outline: none;
    border-color: #D4AF37;
}
.disc-compose-results {
    margin-top: 10px;
}
.disc-compose-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    cursor: pointer;
    border-radius: 6px;
}
.disc-compose-result-item:hover { background: #f2f2f2; }
.disc-compose-result-poster {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #ddd;
    flex-shrink: 0;
}
.disc-compose-result-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    flex: 1;
}
.disc-compose-result-tag {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}
.disc-compose-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f2f2f2;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
}
.disc-compose-chip-poster {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #ddd;
    flex-shrink: 0;
}
.disc-compose-chip-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}
.disc-compose-chip-change {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #D4AF37;
    cursor: pointer;
    background: none;
    border: none;
}
.disc-compose-chip-change:hover { text-decoration: underline; }
.disc-compose-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    resize: vertical;
    min-height: 90px;
    margin-top: 14px;
}
.disc-compose-textarea:focus {
    outline: none;
    border-color: #D4AF37;
}
.disc-compose-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.disc-compose-public-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #444;
}
.disc-compose-error {
    margin-top: 10px;
    font-size: 12px;
    color: #b3261e;
}
.disc-compose-post {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 2px;
    border: 1px solid #D4AF37;
    background: #D4AF37;
    color: #1a1a1a;
    cursor: pointer;
}
.disc-compose-post:hover { background: #e8c84a; border-color: #e8c84a; }
.disc-compose-post:disabled { opacity: 0.6; cursor: default; }

/* ── Delete own discussion ────────────────────────────────────────────────── */
.disc-card-delete {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #b3261e;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.disc-card-delete:hover { text-decoration: underline; }
.disc-card.disc-card-removing {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ── Card poster + RE:/CC: header ─────────────────────────────────────────── */
.disc-card-poster {
    width: 72px;
    height: 104px;
    object-fit: cover;
    border-radius: 4px;
    background: #ddd;
    flex-shrink: 0;
}
.disc-card-poster-empty {
    background: #e8e8e8;
}
.disc-card-re {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}
.disc-card-cc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.disc-tag-creator {
    color: #9A7B0A;
    text-decoration: none;
}
.disc-tag-creator:hover { color: #9A7B0A; text-decoration: underline; }

/* ── Search Discussions filter field ─────────────────────────────────────── */
.disc-filter-search-wrap {
    margin-bottom: 16px;
}
.disc-filter-search-label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A7B0A;
    margin-bottom: 6px;
}
.disc-filter-search-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
}
.disc-filter-search-input:focus {
    outline: none;
    border-color: #D4AF37;
}
.disc-filter-search-results {
    margin-top: 6px;
    background: #fff;
    border-radius: 6px;
}
.disc-filter-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.disc-filter-search-item:hover { background: #f2f2f2; }
.disc-filter-search-poster {
    width: 28px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    background: #ddd;
    flex-shrink: 0;
}
.disc-filter-search-label-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    flex: 1;
}
.disc-filter-search-type {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}
.disc-compose-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A7B0A;
    margin: 0 0 10px 0;
}

.disc-compose-title {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    margin-bottom: 10px;
}
.disc-compose-title:focus {
    outline: none;
    border-color: #D4AF37;
}

/* ── Discussion title ─────────────────────────────────────────────────────── */
.disc-card-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0 0 0;
}

/* ── Title link wrapper ──────────────────────────────────────────────────── */
.disc-card-title-link {
    text-decoration: none;
    display: block;
}
.disc-card-title-link:hover .disc-card-title {
    color: #9A7B0A;
}

/* ── Black hero band (matches the_room.css) ──────────────────────────────── */
.disc-hero {
    background: #1a1a1a;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 0;
}
.disc-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f0ece4;
    margin: 0 0 12px;
}
.disc-hero p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ── @mention links in post body ─────────────────────────────────────────── */
.disc-mention {
    color: #9A7B0A;
    font-weight: 700;
    text-decoration: none;
}
.disc-mention:hover { text-decoration: underline; }

/* ── @mention autocomplete dropdown ──────────────────────────────────────── */
.disc-mention-dropdown {
    position: relative;
    margin-top: -8px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}
.disc-mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.disc-mention-item:hover, .disc-mention-item.active { background: #f2f2f2; }
.disc-mention-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.disc-mention-avatar-initial {
    background: #D4AF37;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.disc-mention-username {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.disc-mention-display-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #999;
}

/* ── Help button + overlay ───────────────────────────────────────────────── */
.disc-hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.disc-help-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #444;
    color: #D4AF37;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.disc-help-btn:hover {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.1);
}
.disc-help-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    transition: background 0.3s;
}
.disc-help-overlay.visible {
    display: flex;
    background: rgba(0,0,0,0.65);
    pointer-events: all;
}
.disc-help-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #D4AF37;
    border-radius: 8px;
    padding: 36px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.disc-help-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9A7B0A;
    margin: 0 0 20px;
}
.disc-help-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}
.disc-help-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.disc-help-icon {
    font-size: 16px;
    font-weight: 700;
    color: #9A7B0A;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    margin-top: 2px;
}
.disc-help-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    letter-spacing: 0.3px;
}
.disc-help-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.disc-help-dismiss {
    width: 100%;
    padding: 12px;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.disc-help-dismiss:hover { background: #e8c84a; }

/* ── Discovery shelves (reading list / tribe) ────────────────────────────── */
.disc-shelf {
    padding: 16px 20px 0 20px;
    border-bottom: 1px solid #e5e0d5;
    margin-bottom: 8px;
}
.disc-shelf-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9A7B0A;
    margin: 0 0 4px 0;
}
.disc-shelf-feed .disc-card:last-child {
    border-bottom: none;
}

/* ── Shelf show-group headers ────────────────────────────────────────────── */
.disc-shelf-group {
    margin-bottom: 8px;
}
.disc-shelf-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}
.disc-shelf-group-poster {
    width: 20px;
    height: 28px;
    object-fit: cover;
    border-radius: 2px;
}
.disc-shelf-group-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

/* ── Show/creator pills (replaces RE:/CC: text pattern) ──────────────────── */
.disc-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.disc-show-pill {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1a1a1a;
    background: #D4AF37;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s;
}
.disc-show-pill:hover { background: #e8c84a; color: #1a1a1a; }
.disc-creator-pill {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.disc-creator-pill:hover { background: #e8e8e8; color: #333; }

/* ── Detail page poster (bigger than feed card poster) ───────────────────── */
.disc-detail-poster {
    width: 120px;
    height: 172px;
    object-fit: cover;
    border-radius: 6px;
    background: #ddd;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ── Feed section label ───────────────────────────────────────────────────── */
.disc-feed-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    padding: 16px 20px 0 20px;
    margin: 0;
}

/* ── Search card in sidebar (moved from top-of-page) ─────────────────────── */
.disc-sidebar-search-card .disc-filter-search-input {
    width: 100%;
    box-sizing: border-box;
}
.disc-sidebar-search-card .disc-filter-search-results {
    margin-top: 8px;
}

/* ── Join modal (copied from show_page.css so this page doesn't depend on it being loaded elsewhere) ── */
.show-join-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    transition: background 0.3s;
}

.show-join-modal.visible {
    background: rgba(0, 0, 0, 0.75);
    pointer-events: all;
}

.show-join-card {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-top: 2px solid #D4AF37;
    padding: 40px 48px 36px;
    width: 480px;
    max-width: calc(100vw - 48px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
}

.show-join-modal.visible .show-join-card {
    transform: translateY(0);
    opacity: 1;
}

.show-join-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
}

.show-join-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #f0ece4;
    line-height: 1.2;
    margin: 0;
}

/* FIX: covers both .show-join-body (HTML class) and .show-join-desc (old CSS name) */
.show-join-body,
.show-join-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #ccc;
    line-height: 1.7;
    border-top: 1px solid #242424;
    padding-top: 16px;
}

.show-join-actions {
    display: flex;
    gap: 12px;
    padding-top: 4px;
}

.show-join-signup {
    flex: 1;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    background: #D4AF37;
    color: #111;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    display: block;
}

.show-join-signup:hover { background: #e8c84a; color: #111; }

.show-join-login {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s, border-color 0.2s;
    display: block;
}

.show-join-login:hover { color: #f0ece4; border-color: #888; }

.show-join-close {
    position: absolute;
    top: 16px; right: 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}

.show-join-close:hover { color: #bbb; }


@media (max-width: 768px) {
    .show-join-modal {
        align-items: flex-end;
        padding: 0;
    }

    .show-join-card {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 28px 24px 48px;
        transform: translateY(100%);
        opacity: 1;
        gap: 14px;
    }

    .show-join-modal.visible .show-join-card {
        transform: translateY(0);
        opacity: 1;
    }

    .show-join-title { font-size: 1.5rem; }

    .show-join-body,
    .show-join-desc { font-size: 14px; color: #ccc; }

    .show-join-actions {
        flex-direction: column;
        gap: 10px;
    }

    .show-join-signup,
    .show-join-login {
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

    .show-join-close { color: #888; font-size: 16px; }

}
