/* Shared student and admin forum: one feed, distinct cards and clear actions. */
.forum-space{max-width:900px;margin:0 auto}
.forum-space .page-head{align-items:center;margin-bottom:24px;gap:20px}
.forum-space .page-head h1{font-weight:700;letter-spacing:-.8px}
.forum-space .page-head p{color:#496052;font-size:14px;line-height:1.6}
.forum-space .page-head .eyebrow{color:#526849;letter-spacing:1.3px}
.forum-space .forum-new-button{background:#173b35;color:white;font-size:14px;min-height:50px;padding:14px 22px;border:1px solid #173b35;box-shadow:0 5px 0 #0d2823,0 9px 18px #173b3520;border-radius:12px}
.forum-space .forum-new-button:hover:not(:disabled){background:#28584b;box-shadow:0 3px 0 #0d2823,0 7px 16px #173b3520}
.forum-filter-panel{padding:16px;background:#e5ecdf;border:1px solid #c9d7c5;border-radius:16px;margin-bottom:28px}
.forum-space .forum-category-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;overflow:visible}
.forum-space .forum-category-tabs button{font-size:13px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;color:#395246;font-weight:600;background:transparent}
.forum-space .forum-category-tabs button:hover{background:#f9fbf4}
.forum-space .forum-category-tabs button.active{background:#173b35;border-color:#173b35;color:white;box-shadow:0 3px 7px #173b3526}
.forum-space .forum-search{grid-template-columns:minmax(0,1fr) auto auto;margin:0;gap:8px}
.forum-space .forum-search .input{min-width:0;background:white;border:1px solid #b4c6ae;font-size:14px}
.forum-space .forum-search .btn{border:1px solid #9eb29a;background:white;font-size:12px;min-height:46px;border-radius:10px;box-shadow:0 2px 0 #bfcdb6}
.forum-space .forum-visibility{margin:14px 0 0;padding-top:14px;border-top:1px solid #cad8c1;gap:10px}
.forum-space .forum-visibility label{font-size:12px}
.forum-space .forum-visibility select{font-size:12px;min-height:42px;padding:8px 12px;background:white}
.forum-space .discussion-list{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.forum-space .discussion-item.forum-feed-item{padding:0;background:#fff;border:1px solid #c7d3c4;border-top:5px solid #aa7841;border-radius:18px;box-shadow:0 4px 0 #dce4d5,0 10px 26px #284a3c0b;overflow:hidden;transition:box-shadow .18s,border-color .18s}
.forum-space .forum-feed-item.forum-question{border-top-color:#526a9c}
.forum-space .forum-feed-item.forum-pinned{box-shadow:0 4px 0 #cddcc2,0 10px 26px #284a3c12}
.forum-space .forum-feed-item:hover{border-right-color:#92aa8f;border-left-color:#92aa8f;box-shadow:0 4px 0 #cad8c3,0 12px 28px #284a3c18}
.forum-space .forum-feed-link{padding:24px 26px;color:#1e362b}
.forum-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.forum-card-top .forum-badges{margin:0}
.forum-space .forum-badges .pill,.forum-thread .forum-badges .pill{font-size:11px;font-weight:700;border-radius:7px;padding:5px 10px;background:#e7eee0;color:#35532c}
.forum-testimony .forum-badges .pill:first-child{background:#f7ebda;color:#7b4b17}
.forum-question .forum-badges .pill:first-child{background:#e7edf9;color:#365180}
.forum-closed-label{font-size:11px;color:#526254;white-space:nowrap}
.forum-space .forum-feed-item h2{font-size:23px;font-weight:700;line-height:1.4;letter-spacing:-.5px;margin:0 0 12px;color:#19382d}
.forum-space .forum-feed-link .forum-card-preview{font-size:14px;line-height:1.8;color:#405848;margin:0 0 22px;white-space:pre-wrap;overflow-wrap:anywhere}
.forum-feed-link .post-meta{gap:10px;align-items:center}
.forum-feed-link .post-meta b{font-size:13px;color:#213d30}
.forum-feed-link .post-meta small{display:block;font-size:11px;color:#5c6e5d;margin-top:2px}
.forum-feed-link .post-meta .avatar{width:38px;height:38px;font-size:12px;background:#e4eddc;border:1px solid #d0ddc7}
.forum-space .forum-feed-meta{border-top:1px solid #e4eadd;padding-top:17px;margin-top:20px;font-size:12px;color:#536a56}
.forum-space .forum-feed-meta>span{display:inline-flex;align-items:center;gap:7px}
.forum-space .forum-read-action{background:#edf3e6;color:#234532;padding:9px 13px;border:1px solid #c6d7bd;border-radius:9px;font-weight:700}
.forum-space .forum-quick-controls{margin:0!important;padding:15px 26px;background:#f0f4eb;border-top:1px solid #d5dfcd;display:flex!important;justify-content:flex-start!important;gap:10px;flex-wrap:wrap}
.forum-space .forum-quick-controls .btn{font-size:13px;min-height:44px;padding:10px 16px;border-radius:9px;border:1px solid #adbfa4;box-shadow:0 2px 0 #b8c9ad}
.forum-space .forum-quick-controls .forum-edit-button,.forum-space .forum-quick-controls .forum-restore-button{background:#284a3c;color:white;border-color:#284a3c;box-shadow:0 3px 0 #163024}
.forum-space .forum-quick-controls .forum-hide-button{background:#fff;color:#344d3c}
.forum-space .forum-quick-controls .forum-delete-button{background:#fff0ee;border-color:#dfa59f;color:#9b3429!important;box-shadow:0 2px 0 #edc5bf;margin-left:auto}
.forum-space .forum-quick-controls .btn:hover{filter:brightness(.95)}
.forum-space .forum-sheet-panel{margin:14px 0 0;padding:18px 20px;background:#f3f5ee;border:1px dashed #aabc9e;box-shadow:none;border-radius:12px}
.forum-sheet-panel summary{display:flex;align-items:center;gap:10px;font-size:13px;list-style:none}
.forum-sheet-panel summary::-webkit-details-marker{display:none}
.forum-sheet-panel summary:after{content:'+';margin-left:auto;font-size:23px;line-height:1}
.forum-sheet-panel[open] summary:after{content:'−'}
.forum-connection-status{font-size:10px;color:#536e4e;background:#e4ecd9;border-radius:5px;padding:4px 7px}
.forum-space .forum-sheet-panel p{font-size:12px;color:#52664c}
.forum-space .forum-sheet-panel p.fine{font-size:11px}
.post.forum-thread{background:white;border:1px solid #c7d3c4;border-top:5px solid #aa7841;border-radius:18px;box-shadow:0 4px 0 #dce4d5,0 10px 26px #284a3c0b;padding:28px}
.post.forum-thread.forum-question{border-top-color:#526a9c}
.forum-thread h1{font-weight:700;color:#19382d;overflow-wrap:anywhere}
.forum-thread .post-body{font-size:15px;color:#3c5545;line-height:1.85}
.forum-thread .post-actions{gap:9px;flex-wrap:wrap;border-top:1px solid #e0e7d9;padding-top:18px}
.forum-thread .post-actions button{min-height:44px;padding:10px 14px;border:1px solid #b9cab0;background:#eff4e9;color:#2b4c38;border-radius:9px;font-size:12px;font-weight:600;box-shadow:0 2px 0 #d4dfca}
.forum-thread .post-actions button[data-action=forum-edit],.forum-thread .post-actions button[data-action=forum-restore]{background:#284a3c;color:white;border-color:#284a3c;box-shadow:0 3px 0 #163024}
.forum-thread .post-actions .forum-delete-button{background:#fff0ee;border-color:#dfa59f;color:#9b3429!important;box-shadow:0 2px 0 #edc5bf}
.forum-thread .post-replies{border:0;padding:0;display:grid;gap:14px}
.forum-thread .reply{margin:0;padding:20px!important;background:#f0f4eb;border:1px solid #d0ddc7!important;border-left:4px solid #abc39d!important;border-radius:12px}
.forum-thread .reply .post-meta b{font-size:13px}
.forum-thread .reply .post-body{font-size:14px;margin-top:14px}
#forum-reply-form{margin-top:24px;background:#e9f0e2;border:1px solid #c3d4b7;border-radius:14px;padding:20px}
#forum-reply-form .field-label{font-size:14px;font-weight:700}
#forum-reply-form .btn{min-height:46px;margin-top:10px;box-shadow:0 3px 0 #163024}
#forum-post-form .field-label{margin-top:16px;font-size:13px}
.thread-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-bottom:18px;font-weight:600;color:#284a3c}
.thread-back svg{transform:rotate(180deg)}
@media(max-width:600px){
 .forum-space .page-head{align-items:flex-start;flex-direction:column;gap:15px}
 .forum-space .page-actions,.forum-space .forum-new-button{width:100%}
 .forum-space .forum-new-button{min-height:48px}
 .forum-filter-panel{padding:12px;margin-bottom:24px}
 .forum-space .forum-category-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .forum-space .forum-category-tabs button{padding:9px 7px;font-size:12px}
 .forum-space .forum-search{grid-template-columns:minmax(0,1fr) 48px}
 .forum-space .forum-search input{grid-column:span 2}
 .forum-space .forum-search button{width:100%}
 .forum-space .forum-feed-link{padding:21px 18px}
 .forum-space .forum-feed-item h2{font-size:21px}
 .forum-space .forum-quick-controls{padding:14px 18px;gap:8px}
 .forum-space .forum-quick-controls .btn{padding:10px 12px;font-size:12px;flex:1}
 .forum-space .forum-quick-controls .forum-delete-button{margin-left:0}
 .forum-space .forum-feed-meta{gap:8px}
 .forum-space .forum-read-action{font-size:11px;padding:9px 10px}
 .post.forum-thread{padding:22px 18px}
 .forum-thread .reply{padding:16px!important}
 .forum-thread .post-actions button{flex:1;white-space:nowrap}
 #forum-reply-form{padding:16px}
 .forum-connection-status{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.forum-space .forum-feed-item{transition:none}}
.testimony-share-link{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 23px;margin:20px 0;border:1px solid #d8cfb9;border-radius:12px;background:#faf4e6;color:#293463;text-decoration:none}.testimony-share-link b,.testimony-share-link small{display:block}.testimony-share-link b{font-size:17px}.testimony-share-link small{font-size:12px;color:#646354;margin-top:6px}.testimony-share-link>span:last-child{font-size:12px;font-weight:600}.testimony-share-link:focus-visible{outline:3px solid #293463;outline-offset:3px}@media(max-width:550px){.testimony-share-link{align-items:flex-start;flex-direction:column;gap:14px}}
.forum-category-tabs .forum-testimony-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid #b7c9d7;border-radius:8px;padding:11px 16px;background:#e6edf2;color:#293463;font-size:13px;font-weight:600;white-space:nowrap}.forum-category-tabs .forum-testimony-button:hover{background:#dce7ee}.forum-category-tabs .forum-testimony-button:focus-visible{outline:3px solid #293463;outline-offset:2px}
