/*
Theme Name: Forumly
Theme URI: https://example.com/forumly
Author: Arena Agent
Author URI: https://example.com
Description: A modern, Discourse-style community theme for WordPress. Works out of the box by turning your posts, categories and comments into topics, sections and replies — and automatically restyles bbPress for a full-blown forum.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forumly
Tags: blog, community, forum, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* =========================================================
   1. Tokens & base
   ========================================================= */
:root {
  --fl-accent: #4361ee;
  --fl-accent-hover: #3a53cc;
  --fl-accent-soft: #eef1fe;
  --fl-ring: rgba(67, 97, 238, 0.18);
  --fl-bg: #f4f6f8;
  --fl-card: #ffffff;
  --fl-border: #e5e9f0;
  --fl-border-soft: #f0f2f5;
  --fl-text: #1f2430;
  --fl-muted: #69718a;
  --fl-radius: 12px;
  --fl-radius-sm: 8px;
  --fl-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --fl-shadow-pop: 0 10px 30px rgba(16, 24, 40, 0.12);
  --fl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fl-bg);
  color: var(--fl-text);
  font-family: var(--fl-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fl-accent); text-decoration: none; }
a:hover { color: var(--fl-accent-hover); }

img { max-width: 100%; height: auto; }
img.avatar { border-radius: 50%; }

h1, h2, h3, h4, h5, h6 { color: var(--fl-text); line-height: 1.3; margin: 0; }
p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font-family: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

.fl-icon { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -2px; }
.fl-icon-xs { width: 12px; height: 12px; vertical-align: -1px; }

/* =========================================================
   2. Buttons, badges, forms
   ========================================================= */
.fl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--fl-radius-sm);
  font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fl-btn-primary { background: var(--fl-accent); color: #fff; }
.fl-btn-primary:hover { background: var(--fl-accent-hover); color: #fff; }
.fl-btn-ghost { background: #fff; border-color: var(--fl-border); color: var(--fl-text); }
.fl-btn-ghost:hover { background: #f6f8fa; color: var(--fl-text); border-color: #d3d9e3; }
.fl-btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }

.fl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.4; padding: 2px 9px; border-radius: 999px;
  background: #f1f3f6; color: var(--fl-muted); white-space: nowrap;
}
.fl-cat-badge:hover { opacity: 0.85; text-decoration: none; }
.fl-badge-new { background: var(--fl-accent-soft); color: var(--fl-accent); }
.fl-badge-closed { background: #f1f3f6; color: var(--fl-muted); }
.fl-badge-author { background: var(--fl-accent-soft); color: var(--fl-accent); }
.fl-badge-role { background: #f1f3f6; color: var(--fl-muted); font-weight: 600; }

input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
textarea, select {
  width: 100%; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm);
  padding: 10px 12px; font-size: 14.5px; color: var(--fl-text); background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--fl-accent); box-shadow: 0 0 0 3px var(--fl-ring);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.fl-search-form { display: flex; gap: 10px; margin: 16px 0 8px; }
.fl-search-form input { flex: 1; }
.fl-search-form .fl-btn { flex: 0 0 auto; }

.fl-form-note { font-size: 13px; color: var(--fl-muted); margin: 0 0 10px; }
.fl-form-field { margin: 0 0 14px; }
.fl-form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--fl-muted); margin-bottom: 5px; }

/* =========================================================
   3. Top bar
   ========================================================= */
.fl-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fl-border);
}
.fl-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  min-height: 58px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.fl-brand { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.fl-brand a.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 34px; width: auto; }
.fl-brand-name {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--fl-text); white-space: nowrap;
}
.fl-brand-name:hover { color: var(--fl-accent); }

.fl-nav { display: flex; flex: 1; min-width: 0; }
.fl-menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.fl-menu li { position: relative; margin: 0; }
.fl-menu > li > a {
  display: block; padding: 7px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--fl-muted);
}
.fl-menu > li > a:hover,
.fl-menu > li.current-menu-item > a,
.fl-menu > li.current_page_item > a { background: #f1f3f6; color: var(--fl-text); }
.fl-menu .sub-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  display: none; min-width: 200px; padding: 6px; margin: 0;
  background: #fff; border: 1px solid var(--fl-border); border-radius: 10px;
  box-shadow: var(--fl-shadow-pop); list-style: none; flex-direction: column;
}
.fl-menu li:hover > .sub-menu, .fl-menu li:focus-within > .sub-menu { display: flex; }
.fl-menu .sub-menu a { display: block; padding: 7px 10px; border-radius: 7px; font-size: 14px; color: var(--fl-text); white-space: nowrap; }
.fl-menu .sub-menu a:hover { background: #f1f3f6; }
.fl-menu .sub-menu .sub-menu { top: -6px; left: calc(100% + 4px); }

.fl-search { position: relative; flex: 1 1 220px; max-width: 380px; margin-left: auto; }
.fl-search .fl-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--fl-muted); pointer-events: none;
}
.fl-search input {
  width: 100%; border: none; background: #f1f3f6;
  border-radius: 999px; padding: 8px 16px 8px 36px; font-size: 14px;
}
.fl-search input:focus { background: #fff; border-color: var(--fl-accent); box-shadow: 0 0 0 3px var(--fl-ring); }

.fl-topbar-actions { display: flex; align-items: center; gap: 10px; }
.fl-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--fl-border); background: #fff;
}
.fl-user-chip:hover { background: #f6f8fa; }
.fl-user-chip img { display: block; border-radius: 50%; }
.fl-user-name { font-size: 13.5px; font-weight: 600; color: var(--fl-text); }

/* =========================================================
   4. Layout
   ========================================================= */
.fl-site-main { padding: 24px 0 56px; }
.fl-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.fl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px; align-items: start;
}
.fl-content { min-width: 0; }

.fl-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 13px; color: var(--fl-muted); margin: 0 0 12px;
}
.fl-crumbs a { color: var(--fl-muted); }
.fl-crumbs a:hover { color: var(--fl-accent); }
.fl-crumb-sep { opacity: 0.6; }

.fl-page-head { margin: 0 0 16px; }
.fl-page-title { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.fl-page-desc { font-size: 14px; color: var(--fl-muted); margin-top: 5px; }

/* =========================================================
   5. Cards
   ========================================================= */
.fl-card {
  background: var(--fl-card); border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius); box-shadow: var(--fl-shadow);
  margin: 0 0 24px; overflow: hidden;
}
.fl-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--fl-border);
}
.fl-card-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--fl-muted);
}
.fl-card-head-link { font-size: 13px; font-weight: 600; color: var(--fl-muted); }
.fl-card-head-link:hover { color: var(--fl-accent); }
.fl-card-body { padding: 12px 20px 16px; }

.fl-empty { padding: 44px 24px; text-align: center; }
.fl-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.fl-empty-text { font-size: 14px; color: var(--fl-muted); margin: 0 auto 14px; max-width: 420px; }
.fl-404-code { font-size: 56px; font-weight: 800; color: var(--fl-accent); letter-spacing: -0.03em; margin-bottom: 6px; }

.fl-notice {
  margin: 0 20px 16px; padding: 11px 15px; border-radius: var(--fl-radius-sm);
  background: #f1f3f6; border: 1px solid var(--fl-border); color: var(--fl-muted); font-size: 13.5px;
}

/* =========================================================
   6. Hero
   ========================================================= */
.fl-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--fl-accent-soft) 0%, #fbfcff 65%);
  border: 1px solid var(--fl-border); border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow); padding: 28px; margin: 0 0 24px;
}
.fl-hero-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.fl-hero-text { font-size: 14.5px; color: var(--fl-muted); max-width: 560px; }
.fl-hero-stats { display: flex; flex-wrap: wrap; margin-top: 20px; }
.fl-hero-stat { padding: 0 22px; border-left: 1px solid rgba(31, 36, 48, 0.1); }
.fl-hero-stat:first-child { padding-left: 0; border-left: none; }
.fl-hero-stat b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-hero-stat span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fl-muted); margin-top: 3px; }
.fl-hero-actions { display: flex; align-items: center; gap: 10px; }

/* =========================================================
   7. Topic list
   ========================================================= */
.fl-topics { list-style: none; margin: 0; padding: 0; }
.fl-topic-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--fl-border-soft);
}
.fl-topics > li:last-child, .fl-topics li:last-child { border-bottom: none; }
.fl-topic-row:hover { background: #fafbfd; }

.fl-topic-avatars { display: flex; flex: 0 0 68px; margin-top: 2px; }
.fl-topic-avatars img {
  width: 32px; height: 32px; border-radius: 50%; display: block;
  border: 2px solid #fff; background: #dfe4ec; object-fit: cover;
}
.fl-topic-avatars img + img { margin-left: -9px; }

.fl-topic-main { flex: 1; min-width: 0; }
.fl-topic-title { font-size: 15.5px; font-weight: 650; line-height: 1.35; margin: 0 0 5px; display: flex; align-items: flex-start; gap: 6px; }
.fl-topic-title a { color: var(--fl-text); }
.fl-topic-title a:hover { color: var(--fl-accent); }
.fl-pin { color: var(--fl-muted); display: inline-flex; margin-top: 1px; }
.fl-topic-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fl-topic-meta { font-size: 13px; color: var(--fl-muted); }
.fl-topic-meta a { color: var(--fl-muted); }
.fl-topic-meta a:hover { color: var(--fl-accent); }
.fl-topic-excerpt {
  font-size: 13px; color: var(--fl-muted); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.fl-topic-stats { display: flex; flex: 0 0 auto; margin-top: 1px; }
.fl-stat { display: block; width: 66px; text-align: center; padding: 0 4px; }
.fl-stat + .fl-stat { border-left: 1px solid var(--fl-border-soft); }
.fl-stat-num { display: block; font-size: 14.5px; font-weight: 700; color: var(--fl-text); }
.fl-stat-label {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--fl-muted); margin-top: 3px;
}
.fl-stat-activity .fl-stat-num { color: var(--fl-muted); font-weight: 650; }

.fl-replies-card nav.pagination { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--fl-border-soft); }

/* Category banner (category archive header) */
.fl-cat-banner {
  border-radius: var(--fl-radius); border: 1px solid var(--fl-border);
  padding: 24px; margin: 0 0 24px; box-shadow: var(--fl-shadow);
}
.fl-cat-banner-badge {
  display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.75); padding: 4px 12px; border-radius: 8px;
}
.fl-cat-banner-desc { font-size: 14px; color: var(--fl-text); opacity: 0.75; margin: 10px 0 0; max-width: 640px; }
.fl-cat-banner-count {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700;
  color: var(--fl-muted);
}

/* =========================================================
   8. Single topic (OP + replies)
   ========================================================= */
.fl-topic-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--fl-border); }
.fl-topic-h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 9px; }
.fl-topic-meta-line { font-size: 13px; color: var(--fl-muted); margin-top: 8px; }
.fl-topic-meta-line a { color: var(--fl-muted); }
.fl-topic-meta-line a:hover { color: var(--fl-accent); }

.fl-post { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--fl-border-soft); }
.fl-post:last-child { border-bottom: none; }
.fl-post-avatar { flex: 0 0 44px; }
.fl-post-avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; background: #dfe4ec; }
.fl-post-main { flex: 1; min-width: 0; }
.fl-post-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fl-post-name { font-size: 14.5px; font-weight: 700; }
.fl-post-name a { color: var(--fl-text); }
.fl-post-name a:hover { color: var(--fl-accent); }
.fl-post-time { font-size: 12.5px; color: var(--fl-muted); margin-left: auto; white-space: nowrap; }
.fl-post-content { font-size: 15px; line-height: 1.68; color: #252a36; }
.fl-post-actions { margin-top: 12px; display: flex; gap: 16px; font-size: 13px; font-weight: 600; }
.fl-post-actions a { color: var(--fl-muted); display: inline-flex; align-items: center; gap: 5px; }
.fl-post-actions a:hover { color: var(--fl-accent); }

/* Entry content typography */
.fl-post-content h2, .fl-post-content h3, .fl-post-content h4 { margin: 1.2em 0 0.5em; }
.fl-post-content p { margin: 0 0 1em; }
.fl-post-content p:last-child { margin-bottom: 0; }
.fl-post-content a { text-decoration: underline; text-underline-offset: 2px; }
.fl-post-content blockquote {
  margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--fl-accent);
  background: var(--fl-accent-soft); border-radius: 0 8px 8px 0; color: #3c4356;
}
.fl-post-content code {
  background: #f1f3f6; border-radius: 5px; padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.fl-post-content pre {
  background: #1e2430; color: #e6e9f0; padding: 16px 18px; border-radius: 10px;
  overflow: auto; margin: 1em 0; font-size: 13.5px; line-height: 1.6;
}
.fl-post-content pre code { background: none; color: inherit; padding: 0; }
.fl-post-content ul, .fl-post-content ol { margin: 1em 0; padding-left: 24px; }
.fl-post-content img { border-radius: 10px; }
.fl-post-content table { border-collapse: collapse; margin: 1em 0; width: 100%; font-size: 14px; }
.fl-post-content th, .fl-post-content td { border: 1px solid var(--fl-border); padding: 8px 12px; text-align: left; }
.fl-post-content th { background: #f8f9fb; }

.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px; }
.fl-tag {
  font-size: 12px; font-weight: 600; color: var(--fl-muted);
  background: #f1f3f6; padding: 3px 10px; border-radius: 999px;
}
.fl-tag:hover { background: var(--fl-accent-soft); color: var(--fl-accent); }

.fl-topic-nav {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--fl-border);
  font-size: 13px; font-weight: 600;
}
.fl-topic-nav a { color: var(--fl-muted); }
.fl-topic-nav a:hover { color: var(--fl-accent); }

/* Reply list */
.fl-reply-list { list-style: none; margin: 0; padding: 0; }
.fl-reply { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--fl-border-soft); }
.fl-reply:last-child { border-bottom: none; }
.fl-reply > ul.children {
  list-style: none; margin: 12px 0 0 60px; padding: 0;
  flex-basis: 100%; border-top: 1px dashed var(--fl-border);
}
.fl-reply > ul.children > li { padding: 12px 0 0; border-bottom: none; }
.fl-reply-avatar { flex: 0 0 44px; }
.fl-reply-avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; background: #dfe4ec; }
.fl-reply-body { flex: 1; min-width: 0; }
.fl-reply-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.fl-reply-name { font-size: 14px; font-weight: 700; }
.fl-reply-name a { color: var(--fl-text); }
.fl-reply-name a:hover { color: var(--fl-accent); }
.fl-reply-time { font-size: 12.5px; color: var(--fl-muted); margin-left: auto; white-space: nowrap; }
.fl-reply-content { font-size: 15px; line-height: 1.68; color: #252a36; }
.fl-reply-content p { margin: 0 0 1em; }
.fl-reply-content p:last-child { margin-bottom: 0; }
.fl-reply-content blockquote {
  margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--fl-accent);
  background: var(--fl-accent-soft); border-radius: 0 8px 8px 0; color: #3c4356;
}
.fl-reply-actions { margin-top: 10px; display: flex; gap: 16px; font-size: 12.5px; font-weight: 600; }
.fl-reply-actions a { color: var(--fl-muted); }
.fl-reply-actions a:hover { color: var(--fl-accent); }

/* Reply form (comment_form) */
.comment-respond {
  background: #fff; border: 1px solid var(--fl-border); border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow); margin: 0 0 24px; overflow: hidden;
}
.comment-respond .fl-card-head { margin: 0; }
#reply-title { font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fl-muted); }
.comment-reply-form { padding: 16px 20px 20px; }
.comment-form p { margin: 0 0 14px; }
.comment-form p.form-submit { margin-bottom: 0; display: flex; align-items: center; gap: 14px; }
.comment-form p.comment-subscription-form { font-size: 13px; color: var(--fl-muted); }
#cancel-comment-reply-link { font-size: 12px; color: var(--fl-muted); }

/* =========================================================
   9. Sidebar
   ========================================================= */
.fl-aside { position: sticky; top: 76px; }
.fl-aside .fl-card { margin-bottom: 20px; }
.fl-side-rows { padding: 6px 0 8px; }
.fl-side-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 14px; color: var(--fl-text);
}
a.fl-side-row:hover { background: #fafbfd; text-decoration: none; }
.fl-side-row > span:first-child { flex-shrink: 0; }
.fl-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
a.fl-side-row .fl-side-name { color: var(--fl-text); }
a.fl-side-row:hover .fl-side-name { color: var(--fl-accent); }
.fl-side-row b { font-size: 14px; font-weight: 700; }
.fl-side-count {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--fl-muted);
  background: #f1f3f6; border-radius: 999px; padding: 1px 9px;
}
.fl-cat-dot { width: 11px; height: 11px; border-radius: 3.5px; display: inline-block; }
.fl-side-about { padding: 14px 20px 18px; }
.fl-side-about-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.fl-side-about-text { font-size: 13.5px; color: var(--fl-muted); }
.fl-side-user img { width: 28px; height: 28px; border-radius: 50%; display: block; background: #dfe4ec; }

.fl-topic-info { margin: 8px 0 4px; }
.fl-topic-info > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--fl-border-soft); font-size: 13.5px;
}
.fl-topic-info > div:last-child { border-bottom: none; align-items: flex-start; }
.fl-topic-info dt { color: var(--fl-muted); }
.fl-topic-info dd { margin: 0; font-weight: 600; }
.fl-topic-participants { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.fl-topic-participants img { width: 26px; height: 26px; border-radius: 50%; display: block; border: 1.5px solid #fff; background: #dfe4ec; }

.fl-widget .tagcloud { padding: 12px 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.fl-widget .tagcloud a {
  font-size: 12.5px !important; padding: 3px 10px; border-radius: 999px;
  background: #f1f3f6; color: var(--fl-muted); text-decoration: none;
}
.fl-widget .tagcloud a:hover { background: var(--fl-accent-soft); color: var(--fl-accent); }
.fl-widget ul { list-style: none; padding: 6px 0 8px; }
.fl-widget ul li { padding: 8px 20px; font-size: 14px; border-bottom: 1px solid var(--fl-border-soft); }
.fl-widget ul li:last-child { border-bottom: none; }
.fl-widget ul li a { color: var(--fl-text); }
.fl-widget ul li a:hover { color: var(--fl-accent); }
.fl-widget .textwidget { padding: 12px 20px 16px; font-size: 14px; color: var(--fl-muted); }
.fl-widget .search-form-field { padding: 12px 20px 16px; }
.fl-widget .wp-block-search__inside-wrapper { padding: 12px 20px 16px; }

/* =========================================================
   10. Author / member profile
   ========================================================= */
.fl-profile { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; }
.fl-profile-avatar img { width: 84px; height: 84px; border-radius: 50%; display: block; background: #dfe4ec; }
.fl-profile-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.fl-profile-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fl-accent); margin-top: 2px; }
.fl-profile-bio { font-size: 14px; color: var(--fl-muted); margin-top: 8px; max-width: 560px; }
.fl-profile-stats { display: flex; gap: 0; margin-top: 14px; }
.fl-profile-stat { padding: 0 18px; border-left: 1px solid var(--fl-border); }
.fl-profile-stat:first-child { padding-left: 0; border-left: none; }
.fl-profile-stat b { display: block; font-size: 17px; font-weight: 800; }
.fl-profile-stat span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fl-muted); margin-top: 2px; }

/* =========================================================
   11. Pagination
   ========================================================= */
nav.pagination { margin: 0 0 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 8px; border: 1px solid var(--fl-border);
  background: #fff; color: var(--fl-muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
a.page-numbers:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
span.page-numbers.current { background: var(--fl-accent); border-color: var(--fl-accent); color: #fff; }
.page-numbers.dots { border: none; background: none; }
nav.pagination .screen-reader-text { display: none; }

/* =========================================================
   12. Footer
   ========================================================= */
.fl-footer { background: #fff; border-top: 1px solid var(--fl-border); padding: 26px 0; }
.fl-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--fl-muted);
}
.fl-footer-brand { font-weight: 600; }
.fl-footer-menu { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; }
.fl-footer-menu a { color: var(--fl-muted); }
.fl-footer-menu a:hover { color: var(--fl-accent); }

/* =========================================================
   13. bbPress overrides
   ========================================================= */
#bbpress-forums, #bbpress-forums button, #bbpress-forums input, #bbpress-forums select, #bbpress-forums textarea {
  font-family: var(--fl-font); font-size: 15px; color: var(--fl-text);
}
#bbpress-forums { background: transparent; font-size: 15px; overflow: inherit; }
#bbpress-forums hr { border: none; border-top: 1px solid var(--fl-border); }

#bbpress-forums div.bbp-breadcrumb, #bbpress-forums div.bbp-breadcrumb p,
#bbpress-forums div.bbp-breadcrumb a { font-size: 12.5px; color: var(--fl-muted); }
#bbpress-forums div.bbp-breadcrumb a:hover { color: var(--fl-accent); }
#bbpress-forums div.bbp-breadcrumb { margin: 0 0 16px; }

#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
  background: #fff; border: 1px solid var(--fl-border); border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow); overflow: hidden; margin: 0 0 20px;
}
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
  background: #fafbfd; border: none !important;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fl-muted) !important;
}
#bbpress-forums li.bbp-header { border-bottom: 1px solid var(--fl-border) !important; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic {
  border-top: 1px solid var(--fl-border-soft); background: #fff;
}
#bbpress-forums li.bbp-body ul.forum:first-child, #bbpress-forums li.bbp-body ul.topic:first-child { border-top: none; }
#bbpress-forums li.bbp-body ul.forum:hover, #bbpress-forums li.bbp-body ul.topic:hover { background: #fafbfd; }
#bbpress-forums li.bbp-body div.hentry { padding: 14px 16px; }

#bbpress-forums a.bbp-forum-title, #bbpress-forums a.bbp-topic-permalink {
  font-weight: 650; font-size: 15.5px; color: var(--fl-text); text-decoration: none; line-height: 1.35;
}
#bbpress-forums a.bbp-forum-title:hover, #bbpress-forums a.bbp-topic-permalink:hover { color: var(--fl-accent); }
#bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-forum-content,
#bbpress-forums div.bbp-forum-content { font-size: 13px; color: var(--fl-muted); }
#bbpress-forums .bbp-topic-freshness, #bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness a, #bbpress-forums .bbp-forum-freshness a { font-size: 13px; color: var(--fl-muted); }
#bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar { border-radius: 50%; }
#bbpress-forums .bbp-author-role { font-size: 10.5px; font-weight: 700; background: #f1f3f6; border-radius: 4px; padding: 1px 6px; color: var(--fl-muted); display: inline-block; margin-top: 3px; }
#bbpress-forums .bbp-reply-content a, #bbpress-forums .bbp-topic-content a { color: var(--fl-accent); }
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { font-size: 15px; line-height: 1.68; }
#bbpress-forums div.bbp-reply-content code, #bbpress-forums div.bbp-topic-content code {
  background: #f1f3f6; border-radius: 5px; padding: 2px 6px; font-size: 13px;
}
#bbpress-forums div.bbp-reply-content blockquote, #bbpress-forums div.bbp-topic-content blockquote {
  margin: 0.8em 0; padding: 10px 16px; border-left: 3px solid var(--fl-accent);
  background: var(--fl-accent-soft); border-radius: 0 8px 8px 0; color: #3c4356;
}

#bbpress-forums fieldset.bbp-form {
  background: #fff; border: 1px solid var(--fl-border); border-radius: var(--fl-radius);
  box-shadow: var(--fl-shadow); padding: 20px; margin: 0 0 20px;
}
#bbpress-forums fieldset.bbp-form legend { font-weight: 800; padding: 0 6px; letter-spacing: -0.01em; }
#bbpress-forums fieldset.bbp-form label { color: var(--fl-muted); font-size: 13.5px; }
#bbpress-forums fieldset.bbp-form p { font-size: 13.5px; color: var(--fl-muted); }
#bbpress-forums #bbp_topic_title, #bbpress-forums #bbp_topic_tags,
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"],
#bbpress-forums input[type="password"], #bbpress-forums select, #bbpress-forums textarea {
  border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm);
  padding: 10px 12px; background: #fff; color: var(--fl-text); font-size: 14.5px; width: auto; box-shadow: none;
}
#bbpress-forums .wp-editor-container { border-radius: var(--fl-radius-sm); overflow: hidden; }

#bbpress-forums button, #bbpress-forums .button, #bbpress-forums input[type="submit"] {
  background: var(--fl-accent) !important; border: 1px solid var(--fl-accent) !important;
  color: #fff !important; border-radius: 8px !important; padding: 9px 16px !important;
  font-weight: 600 !important; font-size: 14px !important; cursor: pointer; text-decoration: none;
  display: inline-block; line-height: 1.2; box-shadow: none;
}
#bbpress-forums button:hover, #bbpress-forums .button:hover, #bbpress-forums input[type="submit"]:hover {
  background: var(--fl-accent-hover) !important; border-color: var(--fl-accent-hover) !important;
}
#bbpress-forums .bbp-submit-wrapper { margin-top: 14px; }
#bbpress-forums div.bbp-template-notice, #bbpress-forums div.indicator-hint {
  background: var(--fl-accent-soft); border: none; border-radius: 8px;
  color: var(--fl-text); padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px;
}
#bbpress-forums div.bbp-template-notice.error, #bbpress-forums div.bbp-template-notice.warning {
  background: #fdf2f2; color: #a03434;
}
#bbpress-forums div.bbp-template-notice a { color: var(--fl-accent); }

#bbpress-forums div.bbp-pagination {
  background: transparent; border: none; color: var(--fl-muted); font-size: 13px; box-shadow: none;
}
#bbpress-forums .bbp-pagination-count { border: none; }
#bbpress-forums .bbp-pagination-links a.page-numbers {
  min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border: 1px solid var(--fl-border); border-radius: 7px; background: #fff;
  color: var(--fl-muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
#bbpress-forums .bbp-pagination-links a.page-numbers:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
#bbpress-forums .bbp-pagination-links span.page-numbers {
  min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 600; border: none;
}
#bbpress-forums .bbp-pagination-links span.page-numbers.current { background: var(--fl-accent); color: #fff; }

.bbp-login-form fieldset, .bbp-lost-pass-form fieldset,
.widget_display_views ul, .widget_display_topics ul, .widget_display_replies ul,
.widget_display_forums ul { list-style: none; padding-left: 0; }

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .fl-grid { grid-template-columns: 1fr; }
  .fl-aside { position: static; }
}
@media (max-width: 899px) {
  .fl-nav { order: 5; flex-basis: 100%; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; }
  .fl-menu { flex-wrap: nowrap; }
  .fl-search { max-width: none; }
  .fl-hero-stat b { font-size: 18px; }
}
@media (max-width: 639px) {
  .fl-topic-row { flex-wrap: wrap; }
  .fl-topic-avatars { flex: 0 0 36px; }
  .fl-topic-avatars img { width: 36px; height: 36px; }
  .fl-topic-avatars img + img { display: none; }
  .fl-topic-stats {
    width: 100%; justify-content: flex-start; gap: 0;
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--fl-border);
  }
  .fl-stat { width: auto; text-align: left; margin-right: 18px; }
  .fl-stat + .fl-stat { border-left: none; }
  .fl-user-name { display: none; }
  .fl-user-chip { padding: 3px; border: none; }
  .fl-hero { padding: 20px; }
  .fl-hero-stat { padding: 0 14px; }
  .fl-hero-stat b { max-width: 110px; }
  .fl-topic-h1 { font-size: 19px; }
  .fl-post { padding: 16px; }
  .fl-reply { padding: 15px 16px; }
  .fl-reply ul.children { margin-left: 20px; }
  .fl-aside { word-break: break-word; }
}

/* =========================================================
   15. WP core bits
   ========================================================= */
.alignleft { float: left; margin: 6px 18px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 18px; }
.aligncenter { display: block; margin: 6px auto 12px; }
.wp-caption { max-width: 100%; }
.sticky { position: static; }
.bypostauthor { position: static; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-item { margin: 0; }
.gallery-columns-2 .gallery-item { width: calc(50% - 5px); }
.gallery-columns-3 .gallery-item { width: calc(33.33% - 7px); }
.gallery-caption { font-size: 12.5px; color: var(--fl-muted); }
.post-password-form input[type="password"] { max-width: 260px; }
