/* ============================================================
   PA NOTARY COMMUNITY  —  Accessibility-first sizing
   Base font: 16px post content, 15px meta, 14px min anywhere
   Avatars: 48px list / 56px post — readable at arm's length
   ============================================================ */

/* ── Wrapper ── */
.panc-wrap {
    max-width: 980px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
}

/* ════════════════════════════
   COMMUNITY HUB — section cards
════════════════════════════ */

.panc-hub-header { margin-bottom: 28px; }
.panc-hub-header h2 { font-size: 22px; color: #1A1A1A; margin: 0 0 6px; font-weight: 700; }
.panc-hub-header p  { color: #555; font-size: 15px; margin: 0; }

.panc-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.panc-section-card {
    display: flex; align-items: center; gap: 18px;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    padding: 20px 22px; text-decoration: none !important;
    transition: border-color 0.15s, transform 0.15s;
}
.panc-section-card:hover { border-color: #CC0000; transform: translateY(-1px); }

.panc-section-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.panc-section-label { font-size: 16px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panc-section-desc  { font-size: 14px; color: #666; line-height: 1.45; }
.panc-section-count { font-size: 13px; color: #999; margin-top: 5px; }
.panc-lock-badge    { font-size: 11px; background: #EEEDFE; color: #3C3489; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* ════════════════════════════
   SECTION VIEW — thread list
════════════════════════════ */

.panc-section-header { margin-bottom: 22px; }
.panc-section-header h2 { font-size: 20px; color: #1A1A1A; margin: 4px 0 4px; font-weight: 700; }
.panc-section-header p  { color: #555; font-size: 15px; margin: 0; }
.panc-back-link { font-size: 14px; color: #888; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.panc-back-link:hover { color: #CC0000; }

.panc-section-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panc-thread-count    { font-size: 14px; color: #888; }

/* Thread rows */
.panc-thread-list  { display: flex; flex-direction: column; gap: 3px; }

.panc-thread-row {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    padding: 16px 18px; text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s;
}
.panc-thread-row:hover { border-color: #CC0000; background: #fffafa; }
.panc-thread-row.panc-pinned { border-left: 3px solid #EF9F27; }

/* Thread list avatar — LARGER */
.panc-thread-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: #CC0000; color: #fff;
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.panc-thread-info { flex: 1; min-width: 0; }
.panc-thread-title {
    font-size: 15px; font-weight: 600; color: #1A1A1A;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}
.panc-thread-meta  {
    font-size: 13px; color: #888; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.panc-thread-stats { display: flex; gap: 16px; flex-shrink: 0; }
.panc-stat         { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #888; }

/* Badges on thread list */
.panc-tier           { font-size: 11px; background: #EEEDFE; color: #3C3489; padding: 2px 7px; border-radius: 8px; font-weight: 600; }
.panc-pin-badge      { font-size: 11px; background: #FAEEDA; color: #854F0B; padding: 2px 7px; border-radius: 8px; font-weight: 600; }
.panc-answered-badge { font-size: 11px; background: #E1F5EE; color: #0F6E56; padding: 2px 7px; border-radius: 8px; font-weight: 600; }
.panc-new-badge-pill { font-size: 11px; background: #fff5f5; color: #CC0000; border: 1px solid #ffcccc; padding: 2px 7px; border-radius: 8px; font-weight: 600; }

/* ════════════════════════════
   THREAD VIEW — post + replies
════════════════════════════ */

.panc-breadcrumb { font-size: 14px; color: #888; margin-bottom: 18px; }
.panc-breadcrumb a { color: #888; text-decoration: none; }
.panc-breadcrumb a:hover { color: #CC0000; }

.panc-thread-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
.panc-thread-title-full {
    font-size: 24px; font-weight: 800; color: #1A1A1A;
    margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    line-height: 1.3;
}
.panc-thread-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Post block */
.panc-post {
    display: flex; gap: 22px;
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 24px 26px; margin-bottom: 16px;
}
.panc-post-op     { border-left: 4px solid #CC0000; }
.panc-post-answer {
    border-left: 4px solid #2e8b57;
    background: #f8fff9;
    /* Banner wraps to its own full-width row above avatar + body */
    flex-wrap: wrap;
    align-content: flex-start;
}

.panc-answer-banner {
    background: #E1F5EE; color: #0F6E56; font-size: 14px; font-weight: 700;
    padding: 8px 14px; border-radius: 5px; margin-bottom: 6px;
    display: flex; align-items: center; gap: 7px;
    /* Full-width flex item — pushes sidebar and body to the next row */
    flex: 0 0 100%;
}

/* Post sidebar — member profile */
.panc-post-sidebar {
    width: 90px; flex-shrink: 0; text-align: center;
}

/* Post avatar — BIGGER */
.panc-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: #CC0000; color: #fff;
    font-size: 17px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
}
.panc-avatar-lg { width: 64px; height: 64px; font-size: 20px; }

/* Poster name — was 11px, now readable */
.panc-poster-name {
    font-size: 14px; font-weight: 700; color: #1A1A1A;
    line-height: 1.3; word-break: break-word;
}

/* Tier badge under name */
.panc-poster-tier {
    font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 8px;
    display: inline-block; margin-top: 5px;
}
.panc-tier-powerhouse   { background: #EEEDFE; color: #3C3489; }
.panc-tier-professional { background: #FAEEDA; color: #633806; }
.panc-tier-premier      { background: #E6F1FB; color: #0C447C; }
.panc-tier-lite         { background: #EAF3DE; color: #27500A; }
.panc-tier-admin        { background: #1A1A1A; color: #fff; }
.panc-tier-default      { background: #EEEDFE; color: #3C3489; }

/* Post body */
.panc-post-body { flex: 1; min-width: 0; }

/* Post content — comfortable reading size */
.panc-post-content {
    font-size: 16px; color: #222; line-height: 1.75;
}
.panc-post-content p  { margin: 0 0 14px; }
.panc-post-content p:last-child { margin-bottom: 0; }
.panc-post-content ul,
.panc-post-content ol { margin: 0 0 14px; padding-left: 24px; }
.panc-post-content li { margin-bottom: 6px; }
.panc-post-content strong { font-weight: 700; color: #1A1A1A; }
.panc-post-content a  { color: #CC0000; }

/* Post footer */
.panc-post-footer {
    display: flex; align-items: center; gap: 16px;
    margin-top: 16px; flex-wrap: wrap;
}
.panc-timestamp { font-size: 13px; color: #bbb; }

/* Replies header */
.panc-replies-header {
    font-size: 15px; font-weight: 700; color: #555;
    margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0;
}

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.panc-btn-primary {
    background: #CC0000; color: #fff !important; border: none;
    padding: 12px 24px; border-radius: 6px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    text-decoration: none !important; display: inline-block;
    transition: background 0.15s; font-family: inherit;
}
.panc-btn-primary:hover { background: #aa0000; }

.panc-btn-ghost {
    background: transparent; color: #555; border: 1px solid #ddd;
    padding: 11px 20px; border-radius: 6px;
    font-size: 15px; cursor: pointer; font-family: inherit;
    text-decoration: none; transition: border-color 0.15s; display: inline-block;
}
.panc-btn-ghost:hover { border-color: #CC0000; color: #CC0000; }

.panc-btn-lg { padding: 14px 30px; font-size: 16px; }

/* Like / follow / mark buttons */
.panc-like-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #e0e0e0; border-radius: 20px;
    padding: 6px 14px; font-size: 14px; color: #888; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.panc-like-btn:hover, .panc-like-btn.liked { border-color: #CC0000; color: #CC0000; }

.panc-follow-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #ddd; border-radius: 6px;
    padding: 8px 16px; font-size: 14px; color: #555; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.panc-follow-btn:hover { border-color: #1D9E75; color: #1D9E75; }

.panc-mark-answer-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid #1D9E75; border-radius: 20px;
    padding: 6px 14px; font-size: 14px; color: #1D9E75; cursor: pointer;
    font-family: inherit;
}

.panc-delete-btn {
    background: none; border: none; color: #ddd; font-size: 14px;
    cursor: pointer; padding: 0; font-family: inherit;
}
.panc-delete-btn:hover { color: #CC0000; }

/* ════════════════════════════
   NEW THREAD FORM
════════════════════════════ */
.panc-new-thread-form { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 28px; }
.panc-field { margin-bottom: 20px; }
.panc-field label { display: block; font-size: 15px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.panc-input {
    width: 100%; border: 1px solid #ddd; border-radius: 7px;
    padding: 12px 16px; font-size: 15px; color: #222;
    font-family: inherit; transition: border-color 0.15s; outline: none;
}
.panc-input:focus { border-color: #CC0000; }
.panc-textarea { min-height: 160px; resize: vertical; }

/* Reply textarea */
.panc-reply-textarea {
    width: 100%; border: 1px solid #ddd; border-radius: 7px;
    padding: 14px 16px; font-size: 15px; color: #222;
    font-family: inherit; min-height: 120px; resize: vertical;
    transition: border-color 0.15s; outline: none;
}
.panc-reply-textarea:focus { border-color: #CC0000; }

.panc-notice-box {
    background: #fff8e6; border: 1px solid #f0c040; border-radius: 8px;
    padding: 14px 18px; font-size: 14px; color: #5a3c00; margin-bottom: 20px;
}
.panc-form-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Mention dropdown */
.panc-mention-dropdown {
    background: #fff; border: 1px solid #ddd; border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1); max-height: 220px; overflow-y: auto;
}
.panc-mention-item { padding: 11px 16px; cursor: pointer; font-size: 15px; color: #333; }
.panc-mention-item:hover { background: #fff5f5; color: #CC0000; }

/* Reply form */
.panc-reply-form-wrap {
    margin-top: 44px;
    padding-top: 0;
    border-top: none;
}
.panc-reply-form-label {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em;
    color: #999; margin-bottom: 14px;
    font-family: 'Courier New', 'Roboto Mono', monospace;
}
.panc-reply-card {
    background: #fff;
    border: 1.5px solid #e8e5e0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.panc-reply-card:focus-within {
    border-color: #2f5bbd;
    box-shadow: 0 0 0 3px rgba(47,91,189,0.10);
}
.panc-reply-card-top {
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.panc-reply-card-avatar {
    padding: 16px 0 16px 16px;
    flex-shrink: 0;
}
.panc-reply-input-area {
    flex: 1;
    padding: 16px;
}
.panc-reply-textarea-new {
    width: 100%; box-sizing: border-box;
    border: none; outline: none; resize: none;
    font-family: inherit; font-size: 15px;
    color: #1A1A1A; line-height: 1.65;
    min-height: 110px;
    background: transparent;
    padding: 0;
}
.panc-reply-textarea-new::placeholder { color: #b0aaa0; }
.panc-reply-card-toolbar {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid #f2f0ed;
    background: #fafaf9;
}
.panc-reply-char-count {
    font-size: 12px; color: #bbb;
    font-family: 'Courier New', monospace;
}
.panc-reply-char-count.near-limit { color: #CC0000; }
.panc-reply-submit {
    padding: 10px 24px;
    background: #CC0000; color: #fff;
    border: none; border-radius: 8px;
    font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.panc-reply-submit:hover { background: #aa0000; }
.panc-reply-submit:disabled { opacity: .45; cursor: not-allowed; }
.panc-reply-form-footer { display: none; }

/* ════════════════════════════
   GATE (locked section)
════════════════════════════ */
.panc-gate { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; border: 1px solid #eee; }
.panc-gate h3 { font-size: 20px; font-weight: 700; color: #1A1A1A; margin-bottom: 10px; }
.panc-gate p  { font-size: 16px; color: #666; margin-bottom: 24px; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 640px) {
    .panc-section-grid { grid-template-columns: 1fr; }
    .panc-post { flex-direction: column; gap: 14px; }
    .panc-post-sidebar { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; }
    .panc-avatar { margin: 0; }
    .panc-thread-stats { display: none; }
    .panc-thread-title { font-size: 15px; white-space: normal; }
    .panc-thread-header { flex-direction: column; }
    .panc-thread-title-full { font-size: 19px; }
}

@media (max-width: 420px) {
    .panc-post { padding: 16px; }
    .panc-post-content { font-size: 15px; }
    .panc-btn-primary, .panc-btn-ghost { width: 100%; text-align: center; }
}

/* ── Topic filters ── */
.panc-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--color-background-secondary);
    border-radius: 10px;
    align-items: center;
}
.panc-topic-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border-tertiary);
    color: var(--color-text-secondary);
    background: var(--color-background-primary);
    text-decoration: none !important;
    transition: all .12s;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.panc-topic-pill:hover { border-color:#CC0000; color:#CC0000; }
.panc-topic-active { background:#CC0000 !important; color:#fff !important; border-color:#CC0000 !important; }

/* Topic tag on thread row */
.panc-topic-tag { font-size:10px;font-weight:700;padding:2px 7px;border-radius:8px;background:#E6F1FB;color:#0C447C;flex-shrink:0; }

/* Field hint */
.panc-field-hint { font-size:13px;color:#888;margin-bottom:8px;line-height:1.5; }
.panc-req { color:#CC0000; }

/* ── My Activity ── */
.panc-activity-header { margin-bottom:22px; }
.panc-activity-header h2 { font-size:22px;font-weight:700;color:#1A1A1A;margin:4px 0 0; }

.panc-activity-tabs { display:flex;gap:3px;margin-bottom:20px;border-bottom:2px solid #f0f0f0; }
.panc-activity-tab { display:inline-flex;align-items:center;gap:8px;padding:10px 20px;font-size:15px;font-weight:600;color:#888;text-decoration:none !important;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .12s,border-color .12s; }
.panc-activity-tab:hover { color:#1A1A1A; }
.panc-tab-active { color:#CC0000 !important;border-bottom-color:#CC0000; }
.panc-tab-count { font-size:11px;font-weight:700;background:#f0f0f0;color:#888;padding:2px 8px;border-radius:10px; }
.panc-tab-unread { background:#CC0000 !important;color:#fff !important; }

.panc-activity-group-label { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#aaa;margin-bottom:10px; }

.panc-activity-list { display:flex;flex-direction:column;gap:3px; }
.panc-activity-item { display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:1px solid #eee;border-radius:10px;text-decoration:none !important;transition:border-color .13s; }
.panc-activity-item:hover { border-color:#CC0000; }
.panc-notif-unread { background:#fffafa;border-color:#ffcccc; }

.panc-activity-icon { width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff; }
.panc-ai-thread { background:#185FA5; }
.panc-ai-reply  { background:#1D9E75; }
.panc-ai-notif  { background:#CC0000; }

.panc-activity-info { flex:1;min-width:0; }
.panc-activity-title { font-size:14px;font-weight:600;color:#1A1A1A;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.panc-activity-excerpt { font-size:12px;color:#888;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.panc-activity-meta { font-size:12px;color:#bbb; }
.panc-activity-section { font-weight:600;color:#888; }

.panc-notif-dot { width:9px;height:9px;border-radius:50%;background:#CC0000;flex-shrink:0; }

.panc-empty { text-align:center;padding:40px 20px;background:#fff;border-radius:10px;border:1px solid #eee; }
.panc-empty p { font-size:17px;color:#aaa; }

/* ══════════════════════════════════════════════════════
   COMMUNITY BOARD — futuristic accent design
   Dark header · Red active states · Tech typography
   Thread content stays on white for readability
══════════════════════════════════════════════════════ */

/* ── Board hero header (dark card, exam-prep style) ── */
.panc-board-header {
    background: #1A1A1A;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
/* Subtle red glow bottom-left — like the exam prep card */
.panc-board-header::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(204,0,0,.18) 0%, transparent 70%);
    pointer-events: none;
}

.panc-board-eyebrow {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #CC0000;
    margin-bottom: 8px;
    font-family: 'Courier New', 'Roboto Mono', monospace;
}
.panc-board-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}
/* Red underline accent — matches exam prep */
.panc-board-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #CC0000;
    margin-top: 8px;
    border-radius: 2px;
}
.panc-board-sub {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    margin: 0;
    line-height: 1.6;
}
.panc-board-header-cta { flex-shrink: 0; }

/* ── Section nav bar — dark, with red active ── */
.panc-board-filters {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 12px;
}
.panc-filter-pill {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 7px;
    border: none;
    color: rgba(255,255,255,.8);
    background: transparent;
    text-decoration: none !important;
    transition: all .15s;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
}
.panc-filter-pill:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
/* RED active state — the key futuristic change */
.panc-pill-active {
    background: #CC0000 !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(204,0,0,.35), 0 2px 8px rgba(204,0,0,.2);
}
.panc-pill-active:hover { color: #fff !important; }
.panc-pill-locked { opacity: .3; cursor: default; }
.panc-pill-lock   { font-size: 10px; }

/* Color dots — brighter on dark bg */
.panc-pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.panc-dot-amber  { background: #EF9F27; }
.panc-dot-teal   { background: #1D9E75; }
.panc-dot-purple { background: #A89CF7; }
.panc-dot-coral  { background: #FF7A57; }

/* ── Topic sub-filter row ── */
.panc-board-topics {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #1A1A1A;
    border-radius: 8px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.05);
}
.panc-board-topics-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.6);
    margin-right: 6px;
    flex-shrink: 0;
    font-family: 'Courier New', 'Roboto Mono', monospace;
}
.panc-topic-chip {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    background: transparent;
    text-decoration: none !important;
    transition: all .13s;
    white-space: nowrap;
    text-transform: uppercase;
}
.panc-topic-chip:hover {
    border-color: #CC0000;
    color: #CC0000;
}
.panc-topic-chip-active {
    background: #CC0000 !important;
    color: #fff !important;
    border-color: #CC0000 !important;
    box-shadow: 0 0 10px rgba(204,0,0,.3);
}

.panc-board-toolbar { margin-bottom:10px; }
.panc-board-count {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-secondary);
    font-family: 'Courier New', 'Roboto Mono', monospace;
}

/* ── Thread rows — white cards, red on hover/active ── */
.panc-board-list { display:flex;flex-direction:column;gap:4px; }

/* Anchor is just the click target — inner div carries the layout */
.panc-board-row {
    display: block !important;
    background: var(--color-background-primary);
    border: 1px solid var(--color-border-tertiary);
    border-left: 3px solid transparent;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color .13s, border-left-color .13s, background .13s;
    overflow: hidden;
}
.panc-board-row:hover {
    border-color: #e0e0e0;
    border-left-color: #CC0000;
    background: #fffafa;
}
.panc-board-pinned { border-left: 3px solid #EF9F27 !important; }
.panc-board-pinned:hover { border-left-color: #EF9F27 !important; }

/* Inner wrapper carries the actual flex layout */
.panc-board-row-inner {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
    padding: 15px 18px;
    width: 100%;
    box-sizing: border-box;
}

.panc-board-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

/* Admin branded avatar — red with shield */
.panc-avatar-admin {
    background: #CC0000 !important;
    box-shadow: 0 0 0 2px rgba(204,0,0,.25);
}
.panc-board-main { flex:1;min-width:0; }
.panc-board-row-title {
    font-size: 17px; font-weight: 700; color: var(--color-text-primary);
    margin-bottom: 6px; line-height: 1.35;
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.panc-board-row-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--color-text-secondary);
    flex-wrap: wrap;
}
.panc-board-row-meta strong { color: var(--color-text-primary); font-weight: 700; }
.panc-board-time { color: var(--color-text-secondary); }

/* Section badge — techy uppercase mono style */
.panc-board-section-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .07em;
    flex-shrink: 0;
    font-family: 'Courier New', 'Roboto Mono', monospace;
}
.panc-section-color-amber  { background: #FFF3CD; color: #7A4500; }
.panc-section-color-teal   { background: #D4F5E9; color: #085041; }
.panc-section-color-purple { background: #EEEDFE; color: #3C3489; }
.panc-section-color-coral  { background: #FFEBE4; color: #8B2500; }

.panc-tier-sm {
    font-size: 11px; font-weight: 700; padding: 2px 7px;
    border-radius: 3px; background: #F0EFFE; color: #3C3489;
    letter-spacing: .04em; text-transform: uppercase;
}

/* Stats */
.panc-board-stats { display:flex;flex-direction:column;gap:5px;flex-shrink:0;align-items:flex-end; }
.panc-board-stat  { display:flex;align-items:center;gap:4px;font-size:12px;color:var(--color-text-secondary); }

/* Badges on title row */
.panc-badge-sm {
    font-size: 11px; font-weight: 700; padding: 3px 8px;
    border-radius: 3px; flex-shrink: 0;
    letter-spacing: .04em; text-transform: uppercase;
    font-family: 'Courier New', 'Roboto Mono', monospace;
}
.panc-badge-pin { background: #FFF3CD; color: #7A4500; }
.panc-badge-ans { background: #D4F5E9; color: #085041; }

.panc-empty-board {
    text-align: center; padding: 48px 24px;
    background: var(--color-background-primary);
    border-radius: 12px; border: 1px solid var(--color-border-tertiary);
}
.panc-empty-icon  { font-size:32px;margin-bottom:12px; }
.panc-empty-board p { font-size:17px;color:var(--color-text-secondary); }

@media(max-width:640px){
    .panc-board-row { padding:12px 14px;gap:10px; }
    .panc-board-stats { display:none; }
    .panc-board-row-title { font-size:14px; }
}

/* ── Directory profile link on poster name ──────────────────── */
.panc-poster-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; font-weight: 700; color: #CC0000;
    text-decoration: none; line-height: 1.3;
    transition: color .15s;
    word-break: break-word;
}
.panc-poster-link:hover { color: #a80000; text-decoration: underline; }
.panc-poster-link-icon {
    font-size: 10px; opacity: .65;
    flex-shrink: 0;
    transition: opacity .15s;
}
.panc-poster-link:hover .panc-poster-link-icon { opacity: 1; }

/* ── Reply card avatar size match ───────────────────────────── */
.panc-reply-card-avatar .panc-avatar {
    width: 44px; height: 44px; font-size: 15px;
    margin: 0;
}
