/* ============================================
   NSPRI RESEARCH BLOG — Main Stylesheet
   Palette: Forest Green + Sand + Amber
   ============================================ */

:root {
  --green-900: #0d2b1e;
  --green-800: #1B4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-100: #d8f3dc;
  --green-50: #f0faf3;
  --sand: #F5F0E8;
  --sand-dark: #ede7d9;
  --amber: #D97706;
  --amber-light: #fef3c7;
  --charcoal: #1C1C1E;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FAFAF9;
  --red: #dc2626;
  --blue: #1d4ed8;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-700); }
img { max-width: 100%; height: auto; display: block; }

/* ============ TOP BANNER ============ */
.top-banner {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 20px;
  letter-spacing: 0.3px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-icon {
  width: 36px; height: 36px; background: var(--green-800);
  color: white; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.brand-acronym { display: block; font-weight: 700; font-size: 1rem; color: var(--green-800); line-height: 1.1; }
.brand-sub { display: block; font-size: 0.67rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

.nav-search { flex: 1; max-width: 380px; }
.search-form { display: flex; position: relative; }
.search-input {
  width: 100%; padding: 8px 40px 8px 14px;
  border: 1.5px solid var(--gray-300); border-radius: 24px;
  font-size: 0.875rem; background: var(--gray-100);
  transition: all 0.2s;
}
.search-input:focus { outline: none; border-color: var(--green-600); background: white; box-shadow: 0 0 0 3px var(--green-100); }
.search-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-500); display: flex;
}
.search-btn:hover { color: var(--green-700); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.nav-link {
  padding: 6px 10px; border-radius: 6px; font-size: 0.875rem;
  color: var(--gray-700); transition: all 0.15s; display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { background: var(--green-50); color: var(--green-800); }
.nav-dashboard { font-weight: 500; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white; border-radius: 50%;
  width: 16px; height: 16px; font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-700); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem; overflow: hidden; cursor: pointer;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn-primary-sm {
  padding: 7px 16px; background: var(--green-800); color: white;
  border-radius: 20px; font-size: 0.875rem; font-weight: 500;
  transition: background 0.15s;
}
.btn-primary-sm:hover { background: var(--green-700); color: white; }

/* Category nav row */
.nav-categories {
  background: var(--green-800);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-categories .nav-container {
  height: 42px;
  gap: 0;
  padding: 0 24px;
  overflow: visible;
}
.nav-cat-link {
  padding: 0 14px;
  height: 42px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  flex-shrink: 0;
}
.nav-cat-link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--amber);
}

/* ============ MESSAGES ============ */
.messages-container { position: fixed; top: 70px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.message {
  padding: 12px 40px 12px 16px; border-radius: var(--radius);
  background: var(--charcoal); color: white;
  font-size: 0.875rem; box-shadow: var(--shadow-md);
  position: relative; min-width: 280px; max-width: 400px;
  animation: slideIn 0.2s ease;
}
.message-success { background: var(--green-800); }
.message-error { background: var(--red); }
.message-info { background: var(--blue); }
.msg-close {
  position: absolute; right: 10px; top: 10px;
  background: none; border: none; color: white; cursor: pointer; font-size: 1.1rem; opacity: 0.7;
}
.msg-close:hover { opacity: 1; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, #2d5a3d 100%);
  color: white; padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.hero-container { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title em { font-style: italic; color: #86efac; }
.hero-subtitle { font-size: 1.05rem; opacity: 0.85; max-width: 540px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 13px 28px; background: var(--amber); color: white;
  border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.btn-hero-primary:hover { background: #b45309; transform: translateY(-1px); color: white; }
.btn-hero-secondary {
  padding: 13px 28px; background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3); color: white;
  border-radius: 6px; font-weight: 500; font-size: 0.95rem; transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); color: white; }
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

/* ============ CONTAINER ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============ SECTION HEADERS ============ */
.section-header { margin-bottom: 28px; }
.section-eyebrow { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); margin-bottom: 6px; }
.section-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--green-900); }

/* ============ FEATURED SECTION ============ */
.featured-section { background: var(--sand); padding: 56px 0; }
.featured-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }

.featured-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s; }
.featured-card:hover { box-shadow: var(--shadow-md); }
.featured-card__img { aspect-ratio: 16/9; overflow: hidden; }
.featured-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 0.3s; }
.featured-card:hover .featured-card__img img { transform: scale(1.03); }
.featured-card__img--placeholder {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder-text { color: rgba(255,255,255,0.5); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.featured-card__body { padding: 20px; }
.post-cat {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.featured-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.featured-card--main .featured-card__title { font-size: 1.4rem; }
.featured-card__title a:hover { color: var(--green-700); }
.featured-card__excerpt { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 12px; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--gray-500); flex-wrap: wrap; }
.meta-dot { color: var(--gray-300); }
.meta-author { font-weight: 500; color: var(--gray-700); }

/* ============ MAIN LAYOUT ============ */
.main-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  padding-top: 40px; padding-bottom: 60px;
}
.posts-area {}
.sidebar {}

/* ============ FILTER BAR ============ */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--green-100);
}
.filter-label { font-size: 0.9rem; color: var(--gray-700); }
.filter-label strong { color: var(--green-800); }
.filter-clear { color: var(--red); font-weight: 700; margin-left: 4px; }
.filter-count { font-size: 0.82rem; color: var(--gray-500); font-family: var(--font-mono); }

/* ============ POSTS GRID ============ */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-300); transition: all 0.2s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--green-100); }
.post-card__img-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
}
.post-card__body { padding: 18px; }
.post-card__meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.post-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.post-read-time { font-size: 0.75rem; color: var(--gray-500); font-family: var(--font-mono); }
.post-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.post-card__title a { color: var(--charcoal); }
.post-card__title a:hover { color: var(--green-700); }
.post-card__excerpt { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 14px; }
.post-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.post-card__author { display: flex; align-items: center; gap: 8px; }
.author-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-700); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.author-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.author-name-sm { display: block; font-size: 0.8rem; font-weight: 600; color: var(--charcoal); }
.post-date { display: block; font-size: 0.72rem; color: var(--gray-500); }
.post-card__stats { display: flex; gap: 8px; }
.stat-item { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; color: var(--gray-500); font-family: var(--font-mono); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--gray-300);
  font-size: 0.875rem; color: var(--gray-700); transition: all 0.15s;
}
.page-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.page-btn--active { background: var(--green-800); color: white; border-color: var(--green-800); }

/* ============ SIDEBAR WIDGETS ============ */
.sidebar-widget {
  background: white; border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px;
}
.widget-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-700); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green-100); }
.popular-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.popular-item:last-child { border-bottom: none; }
.popular-rank { width: 24px; height: 24px; background: var(--green-800); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.popular-info { flex: 1; }
.popular-title { display: block; font-size: 0.83rem; font-weight: 500; color: var(--charcoal); line-height: 1.35; margin-bottom: 2px; }
.popular-title:hover { color: var(--green-700); }
.popular-views { font-size: 0.72rem; color: var(--gray-500); font-family: var(--font-mono); }
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; font-size: 0.875rem; transition: background 0.15s; }
.cat-item:hover, .cat-item--active { background: var(--green-50); color: var(--green-800); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-count { margin-left: auto; font-size: 0.75rem; background: var(--gray-100); padding: 1px 7px; border-radius: 10px; color: var(--gray-500); font-family: var(--font-mono); }
.recent-comment { padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.recent-comment:last-child { border-bottom: none; }
.rc-author { font-size: 0.78rem; font-weight: 500; color: var(--gray-700); margin-bottom: 4px; }
.rc-author a { color: var(--green-700); font-weight: 600; }
.rc-text { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 4px; line-height: 1.4; }
.rc-time { font-size: 0.72rem; color: var(--gray-400); }
.empty-text { font-size: 0.85rem; color: var(--gray-500); }
.pulse-widget { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: white; border: none; }
.pulse-widget .widget-title { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.15); }
.pulse-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pulse-item { text-align: center; padding: 12px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.pulse-num { display: block; font-size: 1.8rem; font-weight: 700; font-family: var(--font-mono); }
.pulse-label { display: block; font-size: 0.72rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ EMPTY STATE ============ */
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); }

/* ============ POST DETAIL ============ */
.post-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.post-article { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-500); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green-700); }
.post-header { margin-bottom: 32px; }
.post-category-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; border: 1.5px solid; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.post-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.2; color: var(--green-900); margin-bottom: 16px; }
.post-excerpt { font-size: 1.1rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 24px; font-style: italic; }
.post-author-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.author-block { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-700); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { display: block; font-weight: 700; color: var(--charcoal); font-size: 0.95rem; }
.author-name:hover { color: var(--green-700); }
.author-designation { display: block; font-size: 0.8rem; color: var(--gray-500); }
.author-dept { display: block; font-size: 0.75rem; color: var(--amber); font-weight: 500; }
.post-header-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta-item { font-size: 0.82rem; color: var(--gray-500); }
.post-featured-img { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; }
.post-featured-img img { width: 100%; max-height: 500px; object-fit: cover; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-chip { padding: 4px 12px; background: var(--green-50); color: var(--green-800); border-radius: 20px; font-size: 0.78rem; font-weight: 500; border: 1px solid var(--green-100); }
.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--charcoal); }
.post-content p { margin-bottom: 20px; }
.post-content h2, .post-content h3 { font-family: var(--font-display); color: var(--green-900); margin: 32px 0 12px; }
.post-content blockquote { border-left: 4px solid var(--amber); padding-left: 16px; margin: 24px 0; color: var(--gray-700); font-style: italic; }

/* ============ REACTIONS ============ */
.reactions-section { margin: 40px 0; padding: 28px; background: var(--sand); border-radius: var(--radius-lg); }
.reactions-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.reactions-hint { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 20px; }
.reactions-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.reaction-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 24px;
  border: 1.5px solid var(--gray-300); background: white;
  cursor: pointer; transition: all 0.18s; font-family: var(--font-body);
  font-size: 0.85rem; color: var(--gray-700);
}
.reaction-btn:hover { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); transform: translateY(-1px); }
.reaction-btn--active { background: var(--green-800); color: white; border-color: var(--green-800); }
.reaction-btn--active:hover { background: var(--green-700); border-color: var(--green-700); color: white; }
.reaction-emoji { font-size: 1.1rem; }
.reaction-label { font-weight: 500; }
.reaction-count { font-family: var(--font-mono); font-size: 0.8rem; background: rgba(0,0,0,0.08); padding: 1px 6px; border-radius: 10px; }
.reaction-btn--active .reaction-count { background: rgba(255,255,255,0.2); }
.reactions-login-hint { margin-top: 12px; font-size: 0.82rem; color: var(--gray-500); }
.reactions-login-hint a { color: var(--green-700); font-weight: 500; }

/* ============ COMMENTS ============ */
.comments-section { margin-top: 40px; }
.comments-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--green-100); }
.comments-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.comments-count-badge { background: var(--green-800); color: white; border-radius: 20px; padding: 2px 10px; font-size: 0.85rem; font-family: var(--font-mono); }
.btn-comment-toggle { padding: 8px 18px; background: var(--green-800); color: white; border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.btn-comment-toggle:hover { background: var(--green-700); }

.comment-form-box { background: white; border: 1.5px solid var(--green-200, #bbf7d0); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 28px; box-shadow: 0 2px 8px rgba(27,67,50,0.06); }
.form-author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-author-name { font-weight: 600; font-size: 0.9rem; }
.author-badge { background: var(--amber); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.comment-textarea, .reply-textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.9rem;
  resize: vertical; transition: border-color 0.2s; background: var(--gray-100);
}
.comment-textarea:focus, .reply-textarea:focus { outline: none; border-color: var(--green-600); background: white; box-shadow: 0 0 0 3px var(--green-100); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.btn-cancel { padding: 8px 16px; background: none; border: 1.5px solid var(--gray-300); border-radius: 6px; font-size: 0.875rem; cursor: pointer; color: var(--gray-600); }
.btn-cancel:hover { border-color: var(--gray-500); }
.btn-submit-comment { padding: 8px 20px; background: var(--green-800); color: white; border: none; border-radius: 6px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.btn-submit-comment:hover { background: var(--green-700); }

/* Comment threads */
.comment-thread { margin-bottom: 24px; }
.comment { display: flex; gap: 14px; }
.comment--author { background: var(--sand); border-radius: var(--radius); padding: 16px; margin: 0 -16px; }
.comment__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-700); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem; overflow: hidden;
}
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__avatar--sm { width: 32px; height: 32px; font-size: 0.75rem; }
.comment__body { flex: 1; min-width: 0; }
.comment__header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.comment__author { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.comment__author:hover { color: var(--green-700); }
.comment__designation { font-size: 0.75rem; color: var(--gray-500); }
.comment__time { font-size: 0.75rem; color: var(--gray-400); font-family: var(--font-mono); margin-left: auto; }
.edited-badge { font-size: 0.68rem; color: var(--gray-400); font-style: italic; }
.comment__content { font-size: 0.9rem; line-height: 1.6; color: var(--charcoal); }
.comment__content p { margin-bottom: 8px; }
.comment__actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.comment-reactions { display: flex; gap: 6px; }
.comment-react-btn { padding: 3px 9px; border: 1.5px solid var(--gray-300); border-radius: 16px; background: white; font-size: 0.75rem; cursor: pointer; transition: all 0.15s; }
.comment-react-btn:hover, .comment-react-btn.active { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }
.btn-reply-toggle { background: none; border: none; cursor: pointer; color: var(--green-700); font-size: 0.82rem; font-weight: 500; padding: 4px 0; }
.btn-reply-toggle:hover { color: var(--green-900); }
.reply-count { font-size: 0.78rem; color: var(--gray-400); font-family: var(--font-mono); }

.reply-form-box { margin-top: 12px; }
.reply-form-inner { display: flex; gap: 10px; }
.reply-input-group { flex: 1; }

/* Replies */
.replies-list { margin-top: 16px; margin-left: 28px; border-left: 2px solid var(--gray-200); padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.reply { display: flex; gap: 10px; }
.reply--author { background: rgba(217,119,6,0.06); border-radius: 8px; padding: 10px 12px; margin: 0 -12px; }
.no-comments { text-align: center; padding: 40px 20px; }
.no-comments-icon { font-size: 2.5rem; margin-bottom: 12px; }
.no-comments p { color: var(--gray-500); }
.no-comments a { color: var(--green-700); font-weight: 500; }

/* ============ POST SIDEBAR ============ */
.post-sidebar { position: sticky; top: 80px; }
.widget { background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.author-widget-inner { text-align: center; padding-top: 8px; }
.author-widget-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-700); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; margin: 0 auto 12px; overflow: hidden;
}
.author-widget-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-widget-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.author-widget-role { font-size: 0.8rem; color: var(--amber); font-weight: 500; margin-top: 2px; }
.author-widget-dept { font-size: 0.75rem; color: var(--gray-500); }
.author-widget-bio { font-size: 0.82rem; color: var(--gray-600); margin: 10px 0; line-height: 1.5; }
.orcid-link { display: inline-block; font-size: 0.75rem; color: #a6ce39; background: rgba(166,206,57,0.1); padding: 3px 10px; border-radius: 10px; margin-top: 6px; }
.btn-view-author { display: block; margin-top: 12px; padding: 8px; background: var(--green-800); color: white; border-radius: 6px; font-size: 0.85rem; font-weight: 500; text-align: center; }
.btn-view-author:hover { background: var(--green-700); color: white; }
.rs-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.rs-emoji { font-size: 1.1rem; }
.rs-label { flex: 1; font-size: 0.85rem; color: var(--gray-700); }
.rs-count { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--green-800); }
.related-post-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.related-post-item:last-child { border-bottom: none; }
.related-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); line-height: 1.35; margin-bottom: 3px; }
.related-title:hover { color: var(--green-700); }
.related-meta { font-size: 0.75rem; color: var(--gray-400); font-family: var(--font-mono); }

/* ============ DASHBOARD ============ */
.dashboard-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; flex-shrink: 0; background: var(--green-900); color: white;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dash-brand-icon { font-size: 1.5rem; }
.dash-brand-name { font-weight: 600; font-size: 0.9rem; }
.dash-brand-role { font-size: 0.72rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-nav { list-style: none; padding: 12px 0; flex: 1; }
.dash-nav li { }
.dash-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; color: rgba(255,255,255,0.75); font-size: 0.875rem;
  transition: all 0.15s; border-left: 3px solid transparent;
}
.dash-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.dash-nav-item--active { background: rgba(255,255,255,0.1); color: white; border-left-color: var(--amber); }
.dash-badge { background: var(--amber); color: white; padding: 1px 7px; border-radius: 10px; font-size: 0.7rem; margin-left: auto; }
.dash-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 12px 0; }
.dash-main { flex: 1; padding: 32px 36px; background: var(--gray-100); min-height: 100vh; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: var(--green-900); }
.dash-subtitle { font-size: 0.9rem; color: var(--gray-500); margin-top: 4px; }
.btn-new-post { padding: 10px 22px; background: var(--green-800); color: white; border-radius: 6px; font-size: 0.875rem; font-weight: 600; transition: background 0.15s; }
.btn-new-post:hover { background: var(--green-700); color: white; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -10px; top: -10px; width: 80px; height: 80px; border-radius: 50%; opacity: 0.08; }
.stat-card--green::after { background: var(--green-800); }
.stat-card--blue::after { background: var(--blue); }
.stat-card--amber::after { background: var(--amber); }
.stat-card--red::after { background: var(--red); }
.stat-icon { font-size: 1.4rem; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); color: var(--charcoal); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.stat-sub { font-size: 0.72rem; color: var(--gray-400); margin-top: 4px; }

.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.dash-panel { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 0; }
.dash-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-panel-header h2 { font-size: 1rem; font-weight: 700; color: var(--charcoal); }
.dash-panel-link { font-size: 0.82rem; color: var(--green-700); font-weight: 500; }

.post-list-table { display: flex; flex-direction: column; gap: 0; }
.plt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.plt-row:last-child { border-bottom: none; }
.plt-main { flex: 1; min-width: 0; }
.plt-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); margin-bottom: 4px; }
.plt-title:hover { color: var(--green-700); }
.plt-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--gray-500); }
.plt-actions { display: flex; gap: 6px; flex-shrink: 0; }
.plt-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; border: 1.5px solid var(--gray-300); color: var(--gray-600); background: none; cursor: pointer; transition: all 0.15s; }
.plt-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.plt-btn--green { border-color: var(--green-600); color: var(--green-700); }
.plt-btn--green:hover { background: var(--green-800); color: white; border-color: var(--green-800); }
.plt-empty { padding: 24px 0; text-align: center; color: var(--gray-500); font-size: 0.875rem; }
.plt-empty a { color: var(--green-700); font-weight: 500; }

.status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.status-published { background: #d1fae5; color: #065f46; }
.status-draft { background: var(--gray-100); color: var(--gray-600); }
.status-review { background: #fef3c7; color: #92400e; }
.status-archived { background: #f3f4f6; color: #6b7280; }

.dash-comment-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.dash-comment-item:last-child { border-bottom: none; }
.dci-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-700); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.dci-body { flex: 1; min-width: 0; }
.dci-header { font-size: 0.82rem; color: var(--gray-700); margin-bottom: 4px; }
.dci-header strong { color: var(--charcoal); }
.dci-header a { color: var(--green-700); }
.dci-text { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 4px; line-height: 1.4; }
.dci-time { font-size: 0.72rem; color: var(--gray-400); font-family: var(--font-mono); }

.top-posts-list { display: flex; flex-direction: column; gap: 12px; }
.top-post-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.tp-rank { width: 28px; height: 28px; background: var(--amber); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.tp-body { flex: 1; min-width: 0; }
.tp-title { display: block; font-size: 0.875rem; font-weight: 500; color: var(--charcoal); margin-bottom: 3px; }
.tp-title:hover { color: var(--green-700); }
.tp-meta { font-size: 0.75rem; color: var(--gray-500); display: flex; gap: 10px; font-family: var(--font-mono); }
.tp-edit { font-size: 0.78rem; color: var(--green-700); font-weight: 500; flex-shrink: 0; }

/* Editor */
.post-editor-form { }
.editor-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 20px; }
.editor-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.editor-panel { background: white; border-radius: var(--radius); border: 1px solid var(--gray-300); padding: 16px; }
.editor-panel-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }
.editor-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.btn-save-draft { padding: 9px; background: none; border: 1.5px solid var(--gray-300); border-radius: 6px; font-size: 0.875rem; cursor: pointer; font-weight: 500; color: var(--gray-700); }
.btn-publish { padding: 9px; background: var(--green-800); color: white; border: none; border-radius: 6px; font-size: 0.875rem; cursor: pointer; font-weight: 600; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; margin: 6px 0; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-700); }

/* Status tabs */
.status-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); }
.status-tab { padding: 8px 16px; font-size: 0.875rem; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.status-tab:hover { color: var(--green-700); }
.status-tab--active { color: var(--green-800); border-bottom-color: var(--green-800); font-weight: 600; }

/* Posts table */
.posts-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.posts-table th { padding: 10px 12px; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); }
.posts-table td { padding: 12px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.posts-table tr:hover td { background: var(--gray-50, #f9fafb); }
.table-post-title { font-weight: 500; color: var(--charcoal); }
.table-post-title:hover { color: var(--green-700); }
.table-actions { display: flex; gap: 6px; }
.tbl-btn { padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; border: 1.5px solid var(--gray-300); color: var(--gray-600); background: none; cursor: pointer; transition: all 0.15s; }
.tbl-btn:hover { border-color: var(--green-600); color: var(--green-700); }
.tbl-btn--green { border-color: var(--green-600); color: var(--green-700); background: none; }
.tbl-btn--green:hover { background: var(--green-800); color: white; border-color: var(--green-800); }
.tbl-btn--orange { border-color: var(--amber); color: var(--amber); background: none; }
.tbl-btn--red { border-color: var(--red); color: var(--red); background: none; }
.tbl-btn--red:hover { background: var(--red); color: white; }
.table-empty { text-align: center; padding: 32px; color: var(--gray-500); }
.table-empty a { color: var(--green-700); font-weight: 500; }

/* Dashboard comment full */
.dash-comment-full { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.dcf-header { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; flex-wrap: wrap; margin-bottom: 8px; }
.dcf-text { font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; }
.dcf-replies { margin-top: 12px; margin-left: 20px; border-left: 2px solid var(--gray-200); padding-left: 14px; }
.dcf-reply { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.85rem; }

/* Analytics */
.rb-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.rb-label { min-width: 80px; font-size: 0.82rem; }
.rb-bar-wrap { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.rb-bar { height: 100%; background: linear-gradient(90deg, var(--green-700), var(--amber)); border-radius: 4px; transition: width 0.8s; }
.rb-count { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; min-width: 30px; text-align: right; }

/* Auth pages */
.auth-page { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--sand); }
.auth-card { background: white; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-card--wide { max-width: 640px; }
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--green-800); margin-bottom: 8px; }
.auth-brand h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.auth-brand p { font-size: 0.875rem; color: var(--gray-500); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg-half { }
.btn-auth-submit { grid-column: 1/-1; padding: 12px; background: var(--green-800); color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.btn-auth-submit:hover { background: var(--green-700); }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--gray-600); margin-top: 20px; }
.auth-switch a { color: var(--green-700); font-weight: 500; }

/* Form styles */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); }
.form-hint { font-size: 0.75rem; color: var(--gray-400); }
.form-error { font-size: 0.78rem; color: var(--red); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  padding: 9px 12px; border: 1.5px solid var(--gray-300); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.2s;
  background: var(--gray-100); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-600); background: white;
  box-shadow: 0 0 0 3px var(--green-100);
}
#id_content { font-family: var(--font-body); }

/* Notifications */
.notif-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.notif-item--unread { background: var(--green-50); border-radius: 8px; padding: 16px; margin: 0 -16px 8px; }
.notif-icon { font-size: 1.3rem; flex-shrink: 0; }
.notif-body { flex: 1; font-size: 0.875rem; }
.notif-body a { color: var(--green-700); font-weight: 500; }
.notif-time { font-size: 0.75rem; color: var(--gray-400); font-family: var(--font-mono); white-space: nowrap; }

/* Author profile card */
.author-profile-card { display: flex; gap: 28px; background: white; border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px; border: 1px solid var(--gray-300); }
.apc-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--green-700); color: white; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.apc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.apc-info h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.apc-role { font-size: 0.9rem; color: var(--amber); font-weight: 500; }
.apc-dept { font-size: 0.85rem; color: var(--gray-500); }
.apc-bio { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin-top: 8px; }

/* Footer */
.footer { background: var(--green-900); color: rgba(255,255,255,0.8); }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 1.75rem; font-weight: 900; color: white; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; opacity: 0.7; }
.footer-links h4, .footer-contact h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: white; margin-bottom: 14px; }
.footer-links a, .footer-contact a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact p { font-size: 0.85rem; opacity: 0.7; line-height: 1.6; margin-bottom: 8px; }
.footer-bottom { text-align: center; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-detail-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .dash-two-col { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .dashboard-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: relative; }
  .dash-main { padding: 20px; }
  .hero { padding: 48px 20px; }
  .auth-form--grid { grid-template-columns: 1fr; }
  .author-profile-card { flex-direction: column; }
}


/* ===== @MENTION DROPDOWN ===== */
.mention-dropdown {
    background: white;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.mention-item:hover,
.mention-item.active {
    background: #f0faf3;
}

.mention-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1B4332;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.mention-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mention-name {
    font-size: 12px;
    font-weight: 600;
    color: #1C1C1E;
}

.mention-role {
    font-size: 10px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== @MENTION CHIP (rendered in comment content) ===== */
.mention-chip {
    display: inline-block;
    background: #d8f3dc;
    color: #1B4332;
    font-weight: 600;
    font-size: 0.88em;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: default;
}

/* ===== REPLY REACTION BUTTONS ===== */
.reply .comment-reactions {
    margin-top: 6px;
}

.reply .comment-react-btn {
    padding: 2px 8px;
    border: 1.5px solid #D1D5DB;
    border-radius: 14px;
    background: white;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
}

.reply .comment-react-btn:hover,
.reply .comment-react-btn.active {
    border-color: #2d6a4f;
    background: #f0faf3;
    color: #1B4332;
}
