/* Community forum (community/*.php). Colours follow the theme tokens in style.css. */
.mj-cm{background:var(--cream);padding-bottom:60px}
.mj-cm-hero{background:linear-gradient(165deg,#fff9ee 0%,#fff2d4 70%,#ffad0a55 100%);border-bottom:1px solid #f0e6d2;padding:22px 0 26px}
.mj-cm-crumbs{display:flex;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--muted);margin-bottom:12px}
.mj-cm-crumbs a{color:#b55a14}
.mj-cm-hero-row{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.mj-cm-hero h1{font:800 30px/1.25 Poppins,sans-serif;margin:0 0 6px;word-break:break-word}
.mj-cm-hero p{margin:0;color:var(--muted);font-size:14px;max-width:720px}
.mj-cm-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mj-cm-me{display:flex;align-items:center;gap:8px;font:600 13px Poppins,sans-serif;background:#fff;border:1px solid #eadfce;border-radius:30px;padding:3px 12px 3px 3px}
.mj-cm-me img{border-radius:50%}

.mj-cm-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:10px 18px;font:600 14px Poppins,sans-serif;background:linear-gradient(90deg,#f16400,#ffad00);color:#fff;cursor:pointer}
.mj-cm-btn:hover{color:#fff;filter:brightness(.97)}
.mj-cm-btn.is-outline{background:#fff;color:#20180f;border-color:#30271e}
.mj-cm-btn.is-danger{background:#c62828}

.mj-cm-body{padding-top:24px}
.mj-cm-narrow{max-width:680px}
.mj-cm-section{margin-top:30px}
.mj-cm-section>h2,.mj-cm-toolbar h2{font:800 22px Poppins,sans-serif;border-left:5px solid var(--orange);padding-left:10px;margin:0 0 14px}
.mj-cm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.mj-cm-toolbar h2{margin:0}
.mj-cm-count{font-size:12px;color:var(--muted)}
.mj-cm-card{background:#fff;border:1px solid #eadfce;border-radius:16px;padding:20px}

.mj-cm-notice{border-radius:10px;padding:12px 16px;margin-bottom:16px;font-size:14px;border:1px solid}
.mj-cm-notice.is-ok{background:#ecf8ee;border-color:#9fd3a8;color:#23692f}
.mj-cm-notice.is-info{background:#fff6de;border-color:#f3cf7a;color:#6b4a00}
.mj-cm-notice.is-error{background:#fdecec;border-color:#f0a8a8;color:#9b1c1c}

.mj-cm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mj-cm-stats div{background:#fff;border:1px solid #eadfce;border-radius:14px;padding:14px;text-align:center}
.mj-cm-stats b{display:block;font:800 24px Poppins,sans-serif;color:#e66900}
.mj-cm-stats span{font-size:12px;color:var(--muted)}

.mj-cm-forums{display:grid;gap:10px}
.mj-cm-forum{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #eadfce;border-radius:14px;padding:14px 16px;transition:border-color .15s}
.mj-cm-forum:hover{border-color:var(--orange)}
.mj-cm-forum-copy{flex:1;min-width:0}
.mj-cm-forum-copy b{display:block;font:700 16px Poppins,sans-serif}
.mj-cm-forum-copy small{display:block;color:var(--muted);font-size:12px}
.mj-cm-forum-copy em{display:block;font-style:normal;font-size:12px;color:#b55a14;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mj-cm-forum-count{text-align:center;font-size:11px;color:var(--muted);min-width:60px}
.mj-cm-forum-count b{display:block;font-size:18px;color:#20180f}
.mj-cm-icon{flex:0 0 auto;width:42px;height:42px;border-radius:10px;background:#fff5dc;color:#e66900;display:grid;place-items:center;font-size:20px}

/* Thread table: Title / Thread Starter · Replies / Views · Last Post By */
.mj-cm-table{background:#fff;border:1px solid #eadfce;border-radius:14px;overflow:hidden}
.mj-cm-thead,.mj-cm-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 190px;gap:14px;align-items:center;padding:12px 16px}
.mj-cm-thead{background:var(--deep);color:#fff;font:700 13px Poppins,sans-serif}
.mj-cm-row{border-top:1px solid #f1e8dc}
.mj-cm-row:nth-child(odd){background:#fffcf6}
.mj-cm-row.is-sticky{background:#fff5dc}
.mj-cm-title{display:flex;gap:12px;align-items:flex-start;min-width:0}
.mj-cm-title>div{min-width:0}
.mj-cm-topic-link{font:600 15px/1.4 Poppins,sans-serif;color:#b3470b;word-break:break-word}
.mj-cm-topic-link:hover{color:#e16b18}
.mj-cm-title small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.mj-cm-title small a{color:#20180f}
.mj-cm-flag{margin-left:6px;color:var(--muted)}
.mj-cm-flag.is-yt{color:#d10710}
.mj-cm-minipages{margin-left:6px}
.mj-cm-minipages a{display:inline-block;border:1px solid #e3d5c2;border-radius:4px;padding:0 5px;margin:0 1px;font-size:11px}
.mj-cm-counts,.mj-cm-last{font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
/* Activity column: replies · views · likes as small pills in one row. */
.mj-cm-counts{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
.mj-cm-th-counts{text-align:center}
.mj-cm-count{display:inline-flex;align-items:center;gap:5px;min-width:46px;justify-content:center;padding:4px 9px;border:1px solid #efe4d4;border-radius:20px;background:#fffaf2;color:#73695d;font-size:12px;line-height:1.2}
.mj-cm-count .bi{font-size:13px;color:#c7813a}
.mj-cm-count b{color:#20180f;font-weight:700}
.mj-cm-count.is-likes .bi{color:#f43f5e}
.mj-cm-thead,.mj-cm-row{grid-template-columns:minmax(0,1fr) 220px 200px}
.mj-cm-last a{color:#b3470b;font-weight:600;font-size:13px}
.mj-cm-status{display:inline-block;background:#fff6de;color:#8a5a00;border:1px solid #f3cf7a;border-radius:20px;font-size:11px;padding:1px 9px;margin-left:6px}
.mj-cm-empty{background:#fff;border:1px dashed #e3d5c2;border-radius:14px;padding:26px;text-align:center;color:var(--muted)}

.mj-cm-pages{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:16px;font-size:13px}
.mj-cm-pages span{color:var(--muted);margin-right:6px}
.mj-cm-pages a{border:1px solid #e3d5c2;background:#fff;border-radius:6px;padding:4px 10px}
.mj-cm-pages a.is-current{background:var(--orange);border-color:var(--orange);font-weight:700}

.mj-cm-search{display:flex;background:#fff;border:1px solid #eadfce;border-radius:10px;overflow:hidden;min-width:240px}
.mj-cm-search input{flex:1;border:0;padding:9px 12px;font-size:13px;outline:0;min-width:0}
.mj-cm-search button{border:0;background:var(--orange);width:44px}
.mj-cm-sort{display:flex;align-items:center;gap:8px;font-size:13px}
.mj-cm-sort select{border:1px solid #eadfce;border-radius:8px;padding:6px 8px;background:#fff}

/* Posts */
.mj-cm-thread-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-bottom:14px}
.mj-cm-post{background:#fff;border:1px solid #eadfce;border-radius:16px;margin-bottom:14px;overflow:hidden}
.mj-cm-post.is-opening{border-color:#f3cf7a;box-shadow:0 5px 18px #2d1d0d12}
.mj-cm-post.is-pending{opacity:.75;border-style:dashed}
.mj-cm-post-author{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fffaf0;border-bottom:1px solid #f1e8dc}
.mj-cm-post-author img{border-radius:50%}
.mj-cm-post-author>div{flex:1;min-width:0}
.mj-cm-post-author b{font:700 14px Poppins,sans-serif;color:#20180f}
.mj-cm-post-author small{display:block;font-size:11px;color:var(--muted)}
.mj-cm-post-author time{font-size:11px;color:var(--muted);text-align:right}
.mj-cm-post-author time em{font-style:normal;font-weight:700;margin-left:4px}
.mj-cm-badge{display:inline-block;background:var(--orange);color:#21170d;border-radius:20px;font:700 10px Poppins,sans-serif;padding:1px 8px;margin-left:6px;vertical-align:middle}
.mj-cm-post-body{padding:16px;font-size:15px;line-height:1.75;word-break:break-word}
.mj-cm-post-body p{margin:0 0 12px}
.mj-cm-post-body a{color:#b3470b;text-decoration:underline}
.mj-cm-video{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;margin:12px 0;max-width:720px}
.mj-cm-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.mj-cm-linkcard{display:inline-flex!important;align-items:center;gap:12px;border:1px solid #eadfce;border-radius:12px;padding:10px 16px;text-decoration:none!important;margin:6px 0 12px;background:#fffaf0}
.mj-cm-linkcard i{font-size:20px;color:#e66900}
.mj-cm-linkcard small{display:block;font-size:11px;color:var(--muted)}
.mj-cm-linkcard b{color:#20180f}

/* Edit (author / team) sits next to Report; an open edit box takes the full width. */
.mj-cm-tools{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 18px;margin-top:6px}

.mj-cm-edit{font-size:12px;color:#b44c25}
.mj-cm-edit[open]{flex:1 0 100%;order:-1}
.mj-cm-edit summary{cursor:pointer;display:inline-block;font-weight:600}
.mj-cm-edit form{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:14px;border:1px solid #f0dcb8;border-radius:12px;background:#fffaf0}
.mj-cm-edit label{font-weight:600;color:#20180f;font-size:13px}
.mj-cm-edit input[type=text],.mj-cm-edit textarea{width:100%;border:1px solid #eadfce;border-radius:8px;padding:9px 12px;font:inherit;font-size:14px;color:#20180f;background:#fff}
.mj-cm-edit input[type=text]:focus,.mj-cm-edit textarea:focus{outline:2px solid #ffad0a;outline-offset:1px}
.mj-cm-edit .mj-cm-hint{margin:0}
.mj-cm-edit .mj-cm-btn{align-self:flex-start}
.mj-cm-edited{margin:8px 0 0;font-size:11px;color:var(--muted)}
/* Reply to a comment */
.mj-cm-reply-btn{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;color:#b3470b;font:600 12px Poppins,sans-serif;cursor:pointer;text-decoration:none}
.mj-cm-reply-btn:hover{color:#e16b18;text-decoration:underline}
.mj-cm-reply-btn:focus-visible{outline:2px solid #ffad0a;outline-offset:2px;border-radius:4px}
.mj-cm-quote{display:block;margin:0 0 12px;padding:9px 12px;border-left:3px solid #ffad0a;border-radius:0 10px 10px 0;background:#fff8ea;color:#4a4036!important;text-decoration:none!important;font-size:13px;line-height:1.5}
.mj-cm-quote:hover{background:#fff1d4}
.mj-cm-quote span{display:block;margin-bottom:2px;color:#b3470b;font-weight:600;font-size:12px}
.mj-cm-quote q{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;quotes:"“" "”"}
.mj-cm-replying{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 12px;border:1px solid #f3cf7a;border-radius:10px;background:#fff6de;color:#6b4a00;font-size:13px}
.mj-cm-replying[hidden]{display:none}
.mj-cm-replying>span{flex:1;min-width:0}
.mj-cm-replying button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:50%;background:#fff;color:#6b4a00;cursor:pointer}
.mj-cm-replying button:hover{background:#ffe7b8}
/* Deleted posts / comments (WhatsApp style) and the Delete button */
.mj-cm-deleted{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:10px 14px;border:1px dashed #d9cdbd;border-radius:12px;background:#f8f3eb;color:#8a7d70;font-size:14px;font-style:italic}
.mj-cm-post.is-deleted{background:#fdfbf7}
.mj-cm-delete{margin:0}
.mj-cm-delete button{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;color:#b91c1c;font:600 12px Poppins,sans-serif;cursor:pointer}
.mj-cm-delete button:hover{text-decoration:underline}
/* Action row under a post / comment: Reply · Edit · Delete … Report as equal pill buttons on one line. */
.mj-cm-tools{align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px dashed #efe3d1}
.mj-cm-tools:empty{display:none}
.mj-cm-tools .mj-cm-reply-btn,.mj-cm-tools .mj-cm-edit>summary,.mj-cm-tools .mj-cm-delete button,.mj-cm-tools .mj-cm-report-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px;border:1px solid #eadfce;border-radius:999px;background:#fff;font:600 12.5px/1 Poppins,sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.mj-cm-tools .mj-cm-edit>summary{list-style:none}
.mj-cm-tools .mj-cm-edit>summary::-webkit-details-marker{display:none}
.mj-cm-tools i{font-size:13px;line-height:1}
.mj-cm-tools .mj-cm-reply-btn{color:#b3470b;border-color:#f3d3ad;background:#fff8ee}
.mj-cm-tools .mj-cm-reply-btn:hover{background:#ffedd6;color:#b3470b;text-decoration:none}
.mj-cm-tools .mj-cm-edit>summary{color:#8a4b00}
.mj-cm-tools .mj-cm-edit>summary:hover,.mj-cm-tools .mj-cm-edit[open]>summary{background:#fff5dc;border-color:#f3cf7a}
.mj-cm-tools .mj-cm-delete button{color:#b91c1c}
.mj-cm-tools .mj-cm-delete button:hover{background:#fdecec;border-color:#f3b4b4;text-decoration:none}
.mj-cm-tools .mj-cm-report-btn{margin-left:auto;color:#8b7b68;border-color:transparent;background:none}
.mj-cm-tools .mj-cm-report-btn:hover{color:#c62828;background:#fdf1f1}
.mj-cm-tools :is(.mj-cm-reply-btn,.mj-cm-edit>summary,.mj-cm-delete button,.mj-cm-report-btn):focus-visible{outline:2px solid #ffad0a;outline-offset:2px}
.mj-cm-tools .mj-cm-edit{font-size:inherit}
.mj-cm-tools .mj-cm-edit[open]{order:10}
.mj-cm-post-body .mj-cm-edited{display:inline-flex;align-items:center;gap:5px;margin:4px 0 0;font-size:11.5px;color:var(--muted)}
@media(max-width:575.98px){.mj-cm-tools{gap:6px}.mj-cm-tools .mj-cm-reply-btn,.mj-cm-tools .mj-cm-edit>summary,.mj-cm-tools .mj-cm-delete button,.mj-cm-tools .mj-cm-report-btn{height:30px;padding:0 11px;font-size:12px}}
/* Photo picker on "New post": click, drag & drop or paste; previews with a remove button. */
.mj-cm-drop{display:flex;flex-direction:column;gap:10px}
.mj-cm-drop-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.mj-cm-drop-zone{display:flex!important;flex-direction:column;align-items:center;gap:4px;margin:0!important;padding:20px 16px;border:2px dashed #f3cf7a;border-radius:14px;background:#fffaf0;color:#6f645a;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.mj-cm-drop-zone i{font-size:28px;color:#e66900}
.mj-cm-drop-zone b{font:700 14px Poppins,sans-serif;color:#20180f}
.mj-cm-drop-zone span{font-size:12.5px;font-weight:400;line-height:1.5}
.mj-cm-drop-zone:hover,.mj-cm-drop-zone.is-over{background:#fff1d4;border-color:#f16400}
.mj-cm-drop-input:focus-visible+.mj-cm-drop-zone{outline:3px solid #ffad0a;outline-offset:2px}
.mj-cm-drop.is-full .mj-cm-drop-zone{display:none!important}
.mj-cm-drop-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.mj-cm-drop-list:empty{display:none}
.mj-cm-drop-list li{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid #eadfce;border-radius:12px;background:#fff5dc}
.mj-cm-drop-list img{width:100%;height:100%;object-fit:cover;display:block}
.mj-cm-drop-list button{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:50%;background:#20180fcc;color:#fff;font-size:11px;cursor:pointer}
.mj-cm-drop-list button:hover{background:#c62828}
.mj-cm-drop [data-mc-drop-error]{margin:0}
.mj-cm-drop [hidden]{display:none}
.mj-cm-post-author .mc-avatar-wrap img{border-radius:50%}
.mj-cm-post{scroll-margin-top:90px}
.mj-cm-post:target{box-shadow:0 0 0 3px #ffad0a88}

/* Forms */
.mj-cm-form{display:flex;flex-direction:column;gap:6px}
.mj-cm-form h2{font:800 20px Poppins,sans-serif;margin:0 0 8px}
.mj-cm-form h3{font:700 15px Poppins,sans-serif;margin:14px 0 2px}
.mj-cm-form label{font:600 13px Poppins,sans-serif;margin-top:8px}
.mj-cm-form input[type=text],.mj-cm-form input[type=email],.mj-cm-form input[type=url],.mj-cm-form input[type=password],.mj-cm-form input:not([type]),.mj-cm-form select,.mj-cm-form textarea{border:1px solid #e4d9cb;border-radius:9px;padding:11px 12px;font-size:14px;background:#fffdf8;width:100%}
.mj-cm-form input:focus,.mj-cm-form textarea:focus,.mj-cm-form select:focus{outline:2px solid #ffad0a66;border-color:var(--orange)}
.mj-cm-form .mj-cm-btn{margin-top:12px;align-self:flex-start}

.mj-cm-field-error{color:#c62828;font-size:12px;margin:0}
.mj-cm-hint{font-size:12px;color:var(--muted);margin:4px 0 0}

.mj-cm-reply-form{margin-top:24px}
.mj-cm-reply-form h2{font:800 20px Poppins,sans-serif}
.mj-cm-join-box{background:#fff;border:1px solid #eadfce;border-radius:16px;padding:22px;text-align:center}
.mj-cm-join-box b{font:800 18px Poppins,sans-serif}
.mj-cm-join-box p{color:var(--muted);font-size:14px}
.mj-cm-join-box .mj-cm-btn{margin:4px}
.mj-cm-rules{margin-top:34px;background:#fff;border:1px solid #eadfce;border-radius:16px;padding:18px 22px}
.mj-cm-rules h2{font:700 17px Poppins,sans-serif}
.mj-cm-rules ul{margin:0;padding-left:20px;font-size:13px;color:var(--muted);line-height:1.8}
.mj-cm-rules.is-compact{margin:10px 0 0;padding:12px 16px;background:#fffaf0}

.mj-cm-card.is-danger{border-color:#f0a8a8}
.mj-cm-card.is-danger p{font-size:13px;color:var(--muted)}

@media (max-width:767.98px){
	.mj-cm-hero h1{font-size:23px}
	.mj-cm-thead{display:none}
	.mj-cm-row{grid-template-columns:1fr;gap:6px;padding:12px}
	.mj-cm-counts{flex-direction:row;gap:6px;justify-content:flex-start;text-align:left;padding-left:54px}
	.mj-cm-last{flex-direction:row;gap:6px;align-items:baseline;padding-left:54px}
	
	.mj-cm-search{min-width:0;width:100%}
	.mj-cm-post-author{flex-wrap:wrap}
	.mj-cm-post-author time{width:100%;text-align:left}
	.mj-cm-forum-count{min-width:44px}
}
