/* ==========================================
   TheKetogenicDietPlan.com — Forum Styles
   ========================================== */

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

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #e8f5e9;
  --accent: #ff6f00;
  --text: #212121;
  --text-muted: #757575;
  --border: #e0e0e0;
  --bg: #f5f5f5;
  --white: #ffffff;
  --cat-bg: #1b5e20;
  --header-bg: #1a1a1a;
  --post-odd: #fafafa;
  --post-even: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.12);
}

body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── HEADER ── */
#site-header { background: var(--header-bg); color: #fff; padding: 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 3px solid var(--primary); }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo img { height: 44px; width: auto; border-radius: 4px; }
.site-logo .logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-sub { font-size: 11px; color: #aaa; letter-spacing: 0.5px; }
.header-stats { display: flex; gap: 20px; font-size: 12px; color: #ccc; }
.header-stats span strong { color: #fff; }

/* ── NAV ── */
#site-nav { background: var(--primary); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 20px; }
.nav-inner a { color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 500; display: block; transition: background 0.2s; }
.nav-inner a:hover, .nav-inner a.active { background: rgba(0,0,0,0.2); text-decoration: none; }

/* ── WRAPPER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.container.full { grid-template-columns: 1fr; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: #bbb; }

/* ── CATEGORY BLOCKS (homepage) ── */
.forum-section { background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.forum-section-header { background: var(--cat-bg); color: #fff; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.forum-section-header h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }
.forum-section-header .cat-stats { font-size: 11px; color: rgba(255,255,255,0.7); }
.forum-row { display: grid; grid-template-columns: 40px 1fr 80px 80px 220px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); gap: 10px; transition: background 0.15s; }
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--primary-light); }
.cat-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 18px; height: 18px; fill: var(--primary); }
.forum-info .forum-name { font-weight: 600; font-size: 14px; color: var(--text); }
.forum-info .forum-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.forum-num { text-align: center; font-size: 13px; color: var(--text-muted); }
.forum-num strong { display: block; font-size: 16px; color: var(--text); }
.forum-last { font-size: 11px; color: var(--text-muted); }
.forum-last a { font-weight: 600; font-size: 12px; display: block; margin-bottom: 2px; }

/* ── THREAD LIST ── */
.thread-list-header { background: #455a64; color: #fff; display: grid; grid-template-columns: 1fr 70px 70px 180px; gap: 10px; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; border-radius: 6px 6px 0 0; }
.thread-item { background: var(--white); border: 1px solid var(--border); border-top: none; display: grid; grid-template-columns: 1fr 70px 70px 180px; gap: 10px; padding: 12px 16px; align-items: center; transition: background 0.15s; }
.thread-item:hover { background: var(--primary-light); }
.thread-item:last-child { border-radius: 0 0 6px 6px; }
.thread-title-col .t-title { font-weight: 600; font-size: 14px; color: var(--text); display: block; }
.thread-title-col .t-title:hover { color: var(--primary); }
.thread-title-col .t-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.thread-title-col .t-meta a { color: var(--primary); }
.thread-num { text-align: center; font-size: 13px; color: var(--text-muted); }
.thread-last { font-size: 11px; color: var(--text-muted); }
.thread-last a { color: var(--primary); font-weight: 500; }
.badge-hot { background: var(--accent); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }
.badge-new { background: var(--primary); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }

/* ── THREAD VIEW ── */
.thread-header-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.thread-header-box h1 { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.thread-header-box .t-info { font-size: 12px; color: var(--text-muted); margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.thread-header-box .t-info span strong { color: var(--text); }

.post-wrap { margin-bottom: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.post-wrap:nth-child(even) { background: var(--post-odd); }
.post-inner { display: grid; grid-template-columns: 160px 1fr; }
.post-user { background: #f0f0f0; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid var(--border); gap: 6px; }
.post-user .u-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; border: 2px solid var(--border); flex-shrink: 0; }
.post-user .u-name { font-weight: 700; font-size: 13px; color: var(--primary-dark); }
.post-user .u-role { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.post-user .u-stats { font-size: 11px; color: var(--text-muted); line-height: 1.8; }
.post-user .u-joined { font-size: 10px; color: #aaa; }
.post-content { padding: 16px 20px; }
.post-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.post-number { font-weight: 600; color: var(--primary); }
.post-body { font-size: 14px; line-height: 1.75; color: #333; }
.post-body p { margin-bottom: 12px; }
.post-body p:last-child { margin-bottom: 0; }
.post-footer { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; gap: 16px; align-items: center; }
.btn-like { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; font-size: 12px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.btn-like:hover { border-color: var(--primary); color: var(--primary); }
.btn-quote { background: none; border: none; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.btn-quote:hover { color: var(--primary); }

/* ── OP post highlight ── */
.post-wrap.is-op .post-user { background: var(--primary-light); }
.post-wrap.is-op { border-color: var(--primary); border-left: 3px solid var(--primary); }

/* ── REPLY FORM ── */
.reply-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-top: 20px; box-shadow: var(--shadow); }
.reply-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.reply-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 10px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 100px; color: var(--text); }
.reply-box textarea:focus { outline: none; border-color: var(--primary); }
.reply-box .form-row { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.reply-box input[type="text"] { flex: 1; border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; font-size: 13px; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.widget-title { background: var(--cat-bg); color: #fff; padding: 9px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.widget-body { padding: 14px; }
.widget-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.widget-body ul li { font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.widget-body ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-body ul li a { font-weight: 600; color: var(--text); font-size: 13px; display: block; margin-bottom: 2px; line-height: 1.3; }
.widget-body ul li a:hover { color: var(--primary); }
.widget-body ul li .w-meta { color: var(--text-muted); font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item { text-align: center; padding: 10px; background: var(--bg); border-radius: 4px; }
.stat-item .stat-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-item .stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.member-list { display: flex; flex-wrap: wrap; gap: 6px; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.member-avatar-ph { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }

/* ── FOOTER ── */
#site-footer { background: var(--header-bg); color: #aaa; font-size: 12px; padding: 24px 20px; margin-top: 30px; text-align: center; }
#site-footer a { color: #ccc; }
#site-footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
#site-footer .footer-copy { color: #666; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 20px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--text); background: var(--white); }
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── RELATED THREADS ── */
.related-threads { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin-top: 20px; box-shadow: var(--shadow); }
.related-threads h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.related-threads ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-threads ul li { display: flex; align-items: baseline; gap: 8px; }
.related-threads ul li::before { content: "›"; color: var(--primary); font-size: 16px; flex-shrink: 0; }
.related-threads ul li a { font-size: 13px; color: var(--text); }
.related-threads ul li a:hover { color: var(--primary); }
.related-threads ul li .r-meta { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ── HERO BANNER ── */
.hero-banner { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%); color: #fff; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: url('../img/header.jpg') center/cover; opacity: 0.15; }
.hero-banner .hero-content { position: relative; z-index: 1; }
.hero-banner h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.hero-banner p { font-size: 15px; opacity: 0.9; max-width: 600px; margin: 0 auto 16px; }
.hero-search { display: flex; max-width: 500px; margin: 0 auto; border-radius: 6px; overflow: hidden; }
.hero-search input { flex: 1; padding: 12px 16px; border: none; font-size: 14px; font-family: inherit; }
.hero-search button { background: var(--accent); color: #fff; border: none; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ── NOTICE BOX ── */
.notice { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 12px 16px; font-size: 13px; color: #795548; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.notice::before { content: "ⓘ"; font-size: 16px; flex-shrink: 0; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; padding: 12px; }
  .sidebar { display: none; }
  .forum-row { grid-template-columns: 36px 1fr; }
  .forum-row .forum-num, .forum-row .forum-last { display: none; }
  .thread-list-header { grid-template-columns: 1fr 60px; }
  .thread-list-header .th-replies, .thread-list-header .th-last { display: none; }
  .thread-item { grid-template-columns: 1fr 60px; }
  .thread-item .thread-last { display: none; }
  .post-inner { grid-template-columns: 1fr; }
  .post-user { flex-direction: row; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); gap: 10px; text-align: left; }
  .post-user .u-stats, .post-user .u-joined { display: none; }
  .header-stats { display: none; }
  .hero-banner h1 { font-size: 20px; }
  .thread-header-box h1 { font-size: 17px; }
  .logo-title { font-size: 16px; }
}

@media (max-width: 480px) {
  .nav-inner a { padding: 9px 10px; font-size: 12px; }
  .post-content { padding: 12px; }
  .thread-header-box { padding: 12px 14px; }
}

/* ── HERO BANNER (template classes) ── */
.hero-banner { position: relative; overflow: hidden; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: relative; z-index: 1; background: rgba(27,94,32,0.78); padding: 32px 24px; text-align: center; width: 100%; }
.hero-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }

/* ── SECTION BLOCKS ── */
.section-block { margin-bottom: 24px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 14px; }

/* ── CATEGORY GRID (index.php) ── */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.cat-card-header { padding: 14px 16px 10px; display: flex; align-items: flex-start; gap: 12px; }
.cat-info { flex: 1; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin-bottom: 3px; }
.cat-name:hover { color: var(--primary); }
.cat-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.cat-card-footer { border-top: 1px solid var(--border); padding: 8px 16px; font-size: 11px; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--bg); }
.cat-count { font-size: 12px; }
.cat-last { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.cat-icon-star::before { content: "★"; font-size: 20px; color: var(--primary); }
.cat-icon-wrench::before { content: "⚙"; font-size: 20px; color: #607d8b; }
.cat-icon-trophy::before { content: "🏆"; font-size: 18px; }
.cat-icon-food::before { content: "🍳"; font-size: 18px; }
.cat-icon-pill::before { content: "💊"; font-size: 18px; }
.cat-icon-heart::before { content: "❤"; font-size: 20px; color: #e53935; }

/* ── FORUM TABLE (index + category) ── */
.forum-table { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.forum-table-header { display: grid; grid-template-columns: 1fr 120px 70px 70px 90px; gap: 8px; padding: 9px 16px; background: #455a64; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
.forum-table .forum-row { display: grid; grid-template-columns: 1fr 120px 70px 70px 90px; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); border-radius: 0; align-items: center; }
.forum-table .forum-row:last-child { border-bottom: none; }
.col-title { overflow: hidden; }
.col-cat { font-size: 11px; }
.col-replies, .col-views { text-align: center; font-size: 13px; color: var(--text-muted); }
.col-last { font-size: 11px; color: var(--text-muted); }
.row-subject { display: flex; align-items: center; gap: 10px; }
.row-subject-text { overflow: hidden; }
.row-title-link { font-weight: 600; font-size: 13px; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title-link:hover { color: var(--primary); }
.row-author { font-size: 11px; color: var(--text-muted); display: block; }
.last-post-date { display: block; }
.last-post-by { color: #aaa; display: block; }
.view-all-wrap { padding: 12px 16px; text-align: right; border-top: 1px solid var(--border); background: var(--bg); }
.btn-secondary { background: none; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-secondary:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ── CATEGORY BADGES ── */
.cat-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; white-space: nowrap; }
.cat-beginners { background: #1976d2; }
.cat-troubleshooting { background: #c62828; }
.cat-results { background: #2e7d32; }
.cat-recipes { background: #f57f17; }
.cat-supplements { background: #7b1fa2; }
.cat-medical { background: #00695c; }

/* ── SIDEBAR WIDGETS ── */
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.widget-highlight { border-color: var(--primary); }
.widget-title { background: var(--cat-bg); color: #fff; padding: 9px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.widget-list { list-style: none; padding: 10px 14px; display: flex; flex-direction: column; gap: 0; }
.widget-list li { font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--text); font-size: 12px; }
.widget-list li a:hover { color: var(--primary); }
.stats-list li { font-size: 12px; color: var(--text-muted); }
.stats-list li span:first-child { color: var(--text-muted); }
.stats-list li strong, .stats-list li span:last-child { font-weight: 600; color: var(--text); }
.thread-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
.thread-list li a { font-weight: 600; font-size: 12px; line-height: 1.3; }
.thread-list-meta { font-size: 10px; color: var(--text-muted); }
.widget-text { padding: 12px 14px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.active-cat { font-weight: 700; }
.cat-thread-count { font-size: 11px; color: var(--text-muted); }

/* ── THREAD VIEW (template classes) ── */
.thread-header { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.thread-cat-badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; color: #fff; margin-bottom: 8px; text-transform: uppercase; }
.thread-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.thread-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.thread-meta strong { color: var(--text); }

/* ── POST STRUCTURE (template classes map to existing) ── */
.post-author-col { background: #f0f0f0; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid var(--border); gap: 6px; min-width: 120px; }
.post-author-info { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.author-name { font-weight: 700; font-size: 13px; color: var(--primary-dark); display: block; }
.author-role { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.author-posts { font-size: 11px; color: var(--text-muted); }
.author-joined { font-size: 10px; color: #aaa; }
.post-body { padding: 16px 20px; min-width: 0; }
.post-date { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-actions { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-num { font-size: 11px; color: #bbb; }
.replies-heading { font-size: 16px; font-weight: 700; color: var(--text); margin: 20px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.op-post .post-author-col { background: var(--primary-light); }
.op-post { border-color: var(--primary); border-left: 3px solid var(--primary); }

/* ── CATEGORY PAGE HEADER ── */
.cat-page-header { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.cat-page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.cat-page-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.cat-page-count { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }

/* ── STATIC PAGES ── */
.container-narrow { max-width: 800px; }
.full-width { grid-column: 1 / -1; }
.static-page { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 28px 32px; box-shadow: var(--shadow); line-height: 1.75; }
.static-page h1 { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.static-page h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 22px 0 8px; }
.static-page p { font-size: 14px; color: #333; margin-bottom: 12px; }
.static-page ul { margin: 0 0 12px 20px; font-size: 14px; color: #333; }
.static-page ul li { margin-bottom: 5px; }
.static-updated { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.disclaimer-box { background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; padding: 14px 18px; font-size: 14px; color: #856404; margin-bottom: 20px; line-height: 1.6; }
.not-found { padding: 40px; text-align: center; font-size: 16px; color: var(--text-muted); }

/* ── bc-sep ── */
.bc-sep { color: #ccc; font-size: 14px; }

/* ── MOBILE ADDITIONS ── */
@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; }
  .forum-table-header { grid-template-columns: 1fr 60px 60px; }
  .forum-table-header .col-cat, .forum-table-header .col-last { display: none; }
  .forum-table .forum-row { grid-template-columns: 1fr 60px 60px; }
  .forum-table .forum-row .col-cat, .forum-table .forum-row .col-last { display: none; }
  .post-inner { grid-template-columns: 1fr; }
  .post-author-col { flex-direction: row; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); gap: 10px; text-align: left; min-width: unset; }
  .post-author-info { align-items: flex-start; }
  .author-posts, .author-joined { display: none; }
  .hero-title { font-size: 20px; }
  .thread-title { font-size: 18px; }
  .static-page { padding: 16px; }
}
