/* =============================================================================
   forum.css — SHARED by every forum view (forum, forum_topic, forum_members,
   forum_member, forum_guidelines, forum_new). Each view owns a prefixed section;
   APPEND yours, never rewrite a section another view already defined.
   ============================================================================= */

/* ---------------------------------------------------------------- forum_new --
   "Start a topic" form. All classes are prefixed `fnew` so they cannot collide
   with a sibling forum view sharing this stylesheet.
   --------------------------------------------------------------------------- */
.fnew {
  background: #f1f4f8;
  color: #14160f;
  font-family: 'Inter Tight', system-ui, sans-serif;
}
.fnew__wrap { padding: 40px 32px 90px; }
.fnew__inner { max-width: 720px; margin: 0 auto; }

.fnew__crumbs {
  font-size: 13.5px;
  color: #8b8f82;
  font-weight: 500;
  margin-bottom: 14px;
}
.fnew__crumb { text-decoration: none; color: #8b8f82; }
.fnew__crumb:hover { color: #05a558; }
.fnew__crumb-sep { margin: 0 8px; color: #c2c6cc; }
.fnew__crumb-here { color: #05a558; font-weight: 600; }

.fnew__title {
  margin: 0 0 10px;
  font-size: 33px;
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #14160f;
  text-wrap: pretty;
}
.fnew__lede {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #6b6f63;
  max-width: 60ch;
}

.fnew__alert {
  background: rgba(229, 72, 77, .09);
  border: 1px solid rgba(229, 72, 77, .3);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #a01b1f;
}

.fnew__form {
  background: #fff;
  border: 1px solid rgba(20, 22, 15, .09);
  border-radius: 16px;
  padding: 24px;
}

.fnew__field { margin-bottom: 20px; }
.fnew__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #14160f;
  margin-bottom: 8px;
}

.fnew__input,
.fnew__select,
.fnew__textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #14160f;
  background: #fff;
  border: 1px solid rgba(20, 22, 15, .16);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}
.fnew__textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.6;
}
.fnew__input:focus,
.fnew__select:focus,
.fnew__textarea:focus {
  border-color: #00D677;
  box-shadow: 0 0 0 3px rgba(0, 214, 119, .16);
}
.fnew__input--error,
.fnew__select--error,
.fnew__textarea--error { border-color: rgba(229, 72, 77, .55); }

/* Native select, restyled: hide the OS arrow, draw our own chevron. */
.fnew__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8f82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.fnew__err {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #a01b1f;
}
.fnew__hintline {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: #8b8f82;
}

.fnew__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 22, 15, .08);
}
.fnew__note { font-size: 12.5px; color: #8b8f82; }
.fnew__note a { color: #05a558; text-decoration: none; font-weight: 600; }
.fnew__note a:hover { text-decoration: underline; }

.fnew__submit {
  border: none;
  cursor: pointer;
  background: #00D677;
  color: #05130c;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 11px;
}
.fnew__submit:hover { background: #00c76e; }

@media (max-width: 640px) {
  .fnew__wrap { padding: 28px 20px 70px; }
  .fnew__title { font-size: 27px; }
  .fnew__form { padding: 20px; }
  .fnew__actions { flex-direction: column; align-items: stretch; }
  .fnew__submit { width: 100%; }
}

/* ---------------------------------------------------------- forum_guidelines --
   Static community-guidelines prose + forum sub-nav bar. All classes prefixed
   `fg-` so they cannot collide with a sibling forum view sharing this sheet.
   --------------------------------------------------------------------------- */
.fg { color: var(--ink); background: var(--bg); overflow-x: hidden; }

/* hero */
.fg-hero { padding: 56px 32px 40px; }
.fg-hero__inner { max-width: 760px; margin: 0 auto; }
.fg-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fg-eyebrow__rule { width: 26px; height: 2px; background: #05a558; }
.fg-eyebrow__text {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #05a558; font-weight: 600;
}
.fg-hero h1 {
  margin: 0; font-size: 44px; line-height: 1.06; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink);
}
.fg-hero__lede { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #565a4f; text-wrap: pretty; }

/* rules list */
.fg-rules { padding: 8px 32px 90px; }
.fg-rules__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.fg-rule {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; gap: 18px;
}
.fg-rule__num { font-size: 15px; font-weight: 700; color: var(--accent-deep); flex: none; }
.fg-rule__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.fg-rule__desc { font-size: 15px; line-height: 1.6; color: #565a4f; margin-top: 5px; }
.fg-note { font-size: 13.5px; color: #8b8f82; margin: 8px 2px 0; }
.fg-note a { color: #05a558; }

@media (max-width: 640px) {
  .fg-hero, .fg-rules { padding-left: 20px; padding-right: 20px; }
  .fg-hero h1 { font-size: 36px; }
}

/* ---------------------------------------------------------- forum_members --
   Member directory grid. All classes prefixed `fmem-` so they cannot collide
   with a sibling forum view sharing this stylesheet.
   --------------------------------------------------------------------------- */
.fmem { color: var(--ink); background: var(--bg); overflow-x: hidden; }

.fmem-head { padding: 56px 32px 26px; }
.fmem-head__inner { max-width: 1120px; margin: 0 auto; }

.fmem-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fmem-eyebrow__rule { width: 26px; height: 2px; background: var(--accent-deep); }
.fmem-eyebrow__text {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600;
}

.fmem-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.fmem-head h1 {
  margin: 0; font-size: 46px; line-height: 1.05; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink);
}
.fmem-head__sub { margin: 14px 0 0; font-size: 17px; color: var(--ink-3); }
.fmem-head__sub strong { color: var(--ink); font-weight: 700; }

/* grid + cards */
.fmem-list { padding: 8px 32px 80px; }
.fmem-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.fmem-card {
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid rgba(20, 22, 15, .09); border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease;
}
.fmem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -26px rgba(18, 40, 28, .3);
}

.fmem-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .02em;
  text-transform: uppercase;
}

.fmem-card__name {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 17px; font-weight: 700; color: var(--ink); word-break: break-word;
}
.fmem-check { color: var(--accent-deep); flex: none; }
.fmem-card__handle { margin-top: 3px; font-size: 13.5px; color: var(--muted); word-break: break-word; }

.fmem-card__flair {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px;
}
.fmem-pill {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 100px;
  color: #6b6f63; background: #eef2f7; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fmem-pill--team { color: #05130c; background: var(--accent); }
.fmem-pill--staff { color: var(--accent-deep); background: rgba(0, 214, 119, .14); }
.fmem-pill--badge { background: #eef2f7; }

.fmem-card__stats { margin-top: 12px; font-size: 13px; color: var(--muted); }
.fmem-card__stats strong { color: var(--ink-3); font-weight: 700; }

/* empty state */
.fmem-empty {
  max-width: 1120px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px dashed rgba(20, 22, 15, .16); border-radius: 18px;
  padding: 60px 24px; color: var(--ink-3); font-size: 16px;
}

/* pagination */
.fmem-pager {
  max-width: 1120px; margin: 30px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.fmem-pager__btn {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 16px;
}
.fmem-pager__btn:hover { background: var(--bg); }
.fmem-pager__btn--off { color: var(--muted); opacity: .55; pointer-events: none; }
.fmem-pager__status { font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .fmem-grid { grid-template-columns: repeat(2, 1fr); }
  .fmem-head h1 { font-size: 40px; }
}
@media (max-width: 600px) {
  .fmem-grid { grid-template-columns: 1fr; }
  .fmem-head, .fmem-list { padding-left: 20px; padding-right: 20px; }
  .fmem-head h1 { font-size: 34px; }
}

/* ---------------------------------------------------------- forum_topic --
   A single discussion thread: posts + reply box. All classes prefixed `ft`
   so they cannot collide with a sibling forum view sharing this stylesheet.
   --------------------------------------------------------------------------- */
.ft { color: var(--ink); background: var(--bg); overflow-x: hidden; }
.ft__inner { max-width: 820px; margin: 0 auto; padding: 40px 32px 90px; }

/* breadcrumb */
.ft-crumb { font-size: 13.5px; color: #8b8f82; font-weight: 500; margin-bottom: 14px; }
.ft-crumb__link { text-decoration: none; color: #8b8f82; }
.ft-crumb__link:hover { color: #05a558; }
.ft-crumb__sep { margin: 0 8px; color: #c2c6cc; }
.ft-crumb__cur { color: #05a558; font-weight: 600; }

/* pinned / locked flags */
.ft-flags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 11px; border-radius: 100px;
}
.ft-badge--pin { color: #c2790b; background: rgba(194, 121, 11, .13); }
.ft-badge--lock { color: #6b6f63; background: #eef2f7; }

.ft-title {
  margin: 0 0 12px; font-size: 33px; line-height: 1.16; letter-spacing: -.02em;
  font-weight: 700; color: var(--ink); text-wrap: pretty; word-wrap: break-word;
}

.ft-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 13.5px; color: #8b8f82;
}
.ft-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: #c2c6cc; flex: none; }

.ft-flash {
  background: rgba(0, 214, 119, .12); border: 1px solid rgba(0, 214, 119, .35);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 14px; font-weight: 600; color: #05a558;
}

/* posts */
.ft-posts { display: flex; flex-direction: column; gap: 16px; }
.ft-empty {
  background: #fff; border: 1px dashed rgba(20, 22, 15, .16); border-radius: 16px;
  padding: 30px 24px; text-align: center; font-size: 14.5px; color: #8b8f82;
}
.ft-post {
  display: flex; gap: 16px; background: #fff;
  border: 1px solid rgba(20, 22, 15, .09); border-radius: 16px; padding: 24px;
}
.ft-post__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase;
  text-decoration: none;
}
.ft-post__main { flex: 1; min-width: 0; }
.ft-post__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.ft-post__author { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.ft-post__author:hover { color: #05a558; }
.ft-post__op {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 100px;
  color: #05a558; background: rgba(0, 214, 119, .14);
}
.ft-post__time { font-size: 12.5px; color: #8b8f82; }
.ft-post__body p {
  margin: 0 0 12px; font-size: 15.5px; line-height: 1.65; color: #3d4136;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.ft-post__body p:last-child { margin-bottom: 0; }

/* role pills */
.ft-role { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 100px; }
.ft-role--admin { color: #b3261e; background: rgba(179, 38, 30, .12); }
.ft-role--mod { color: #2a6fdb; background: rgba(42, 111, 219, .12); }
.ft-role--member { color: #6b6f63; background: #eef2f7; }

/* per-post report */
.ft-post__foot { margin-top: 14px; padding-top: 13px; border-top: 1px dashed rgba(20, 22, 15, .12); }
.ft-report { display: inline-flex; }
.ft-report__btn {
  cursor: pointer; border: 1px solid rgba(20, 22, 15, .14); background: #fff;
  color: #8b8f82; font-family: inherit; font-weight: 600; font-size: 12.5px;
  padding: 6px 12px; border-radius: 8px;
}
.ft-report__btn:hover { border-color: rgba(229, 72, 77, .4); color: #c0322f; }

/* locked notice */
.ft-locked {
  margin-top: 22px; background: #eef2f7; border: 1px solid rgba(20, 22, 15, .09);
  border-radius: 16px; padding: 22px 24px; text-align: center;
  font-size: 14.5px; color: #6b6f63; font-weight: 600;
}

/* reply box */
.ft-reply {
  margin-top: 22px; background: #fff; border: 1px solid rgba(20, 22, 15, .09);
  border-radius: 16px; padding: 24px;
}
.ft-reply__title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.ft-reply__err {
  background: rgba(229, 72, 77, .09); border: 1px solid rgba(229, 72, 77, .3);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 12px;
  font-size: 13.5px; font-weight: 600; color: #a01b1f;
}
.ft-reply__ta {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid rgba(20, 22, 15, .16); border-radius: 12px;
  padding: 14px; outline: none; resize: vertical; min-height: 110px; line-height: 1.6;
}
.ft-reply__ta:focus { border-color: #00D677; box-shadow: 0 0 0 3px rgba(0, 214, 119, .16); }
.ft-reply__ta--error { border-color: rgba(229, 72, 77, .55); }
.ft-reply__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.ft-reply__hint { font-size: 12.5px; color: #8b8f82; }
.ft-reply__hint a { color: #05a558; text-decoration: none; font-weight: 600; }
.ft-reply__hint a:hover { text-decoration: underline; }
.ft-reply__btn {
  border: none; cursor: pointer; background: #00D677; color: #05130c;
  font-family: inherit; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 11px;
}
.ft-reply__btn:hover { background: #00c76e; }

/* sign-in / confirm-email prompt */
.ft-prompt {
  margin-top: 22px; background: #fff; border: 1px solid rgba(20, 22, 15, .09);
  border-radius: 16px; padding: 26px 24px; text-align: center;
}
.ft-prompt__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.ft-prompt__text { margin: 8px 0 16px; font-size: 14.5px; color: #6b6f63; }
.ft-prompt__btns { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ft-prompt__btn {
  display: inline-block; text-decoration: none; background: #00D677; color: #05130c;
  font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 11px;
}
.ft-prompt__btn:hover { background: #00c76e; }
.ft-prompt__btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(20, 22, 15, .16); }
.ft-prompt__btn--ghost:hover { background: #eef2f7; }

@media (max-width: 640px) {
  .ft__inner { padding: 28px 20px 70px; }
  .ft-title { font-size: 27px; }
  .ft-post { padding: 20px; gap: 12px; }
  .ft-reply, .ft-prompt { padding: 20px; }
  .ft-reply__foot { flex-direction: column; align-items: stretch; }
  .ft-reply__btn { width: 100%; }
}

/* ---------------------------------------------------------- forum_member --
   A single member's profile: header, stats, badges, recent topics + posts.
   All classes prefixed `fmp-` (forum member profile) so they cannot collide
   with `.fmem-*` (the forum_members directory) sharing this stylesheet.
   --------------------------------------------------------------------------- */
.fmp { color: var(--ink); background: var(--bg); overflow-x: hidden; }
.fmp-wrap { max-width: 900px; margin: 0 auto; padding: 40px 32px 90px; }

/* breadcrumb */
.fmp-crumbs { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.fmp-crumbs a { text-decoration: none; color: var(--muted); }
.fmp-crumbs a:hover { color: var(--ink); }
.fmp-crumbs__sep { margin: 0 8px; color: var(--line-2); }
.fmp-crumbs__here { color: var(--ink); font-weight: 600; word-break: break-word; }

/* profile card */
.fmp-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: 0 30px 60px -44px rgba(18, 40, 28, .3);
}
.fmp-profile__top {
  display: flex; align-items: center; gap: 22px; justify-content: space-between;
}
.fmp-profile__id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.fmp-profile__who { min-width: 0; }

.fmp-avatar { flex: none; width: 72px; height: 72px; }
.fmp-avatar img,
.fmp-avatar__initials { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.fmp-avatar__initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase;
}

.fmp-profile__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fmp-name {
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); word-break: break-word;
}
.fmp-check { display: inline-flex; color: var(--accent-deep); flex: none; }

.fmp-role {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 11px; border-radius: 100px; color: #6b6f63; background: #eef2f7;
}
.fmp-role--owner     { color: #b3261e; background: rgba(179, 38, 30, .12); }
.fmp-role--admin     { color: #b3261e; background: rgba(179, 38, 30, .12); }
.fmp-role--moderator { color: #2a6fdb; background: rgba(42, 111, 219, .12); }

.fmp-profile__handle { font-size: 14px; color: var(--muted); margin-top: 5px; word-break: break-word; }
.fmp-profile__meta {
  font-size: 13.5px; color: var(--muted); margin-top: 10px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

.fmp-profile__actions { flex: none; }
.fmp-btn {
  display: inline-block; text-decoration: none; background: #fff;
  border: 1px solid var(--line-2); color: var(--ink);
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 11px;
}
.fmp-btn:hover { background: var(--bg); }

.fmp-bio {
  margin: 22px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3);
  text-wrap: pretty; overflow-wrap: anywhere;
}

/* stats */
.fmp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.fmp-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; text-align: center;
}
.fmp-stat__num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.fmp-stat__label { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* section blocks */
.fmp-block { margin-top: 30px; }
.fmp-block__label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 14px;
}

/* badges */
.fmp-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.fmp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px;
}
.fmp-badge__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* topic / post lists */
.fmp-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fmp-row {
  text-decoration: none; color: inherit; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.fmp-row:last-child { border-bottom: 0; }
.fmp-row:hover { background: #f7f9fc; }
.fmp-row__main { min-width: 0; }
.fmp-row__title { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.fmp-row__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fmp-row__board { color: var(--accent-deep); font-weight: 600; }
.fmp-row__excerpt {
  font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere;
}
.fmp-row__count { font-size: 12.5px; color: var(--muted); flex: none; white-space: nowrap; }

.fmp-empty {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px; font-size: 14px; color: var(--muted);
}

@media (max-width: 760px) {
  .fmp-profile__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .fmp-wrap { padding-left: 20px; padding-right: 20px; }
}

/* ---------------------------------------------------------- forum (board list) --
   Board directory + recent activity. All classes prefixed `fh-` so they cannot
   collide with a sibling forum view sharing this stylesheet.
   --------------------------------------------------------------------------- */
.fh-page { --fh-wrap: 1120px; }

.fh-inner { max-width: var(--fh-wrap); margin: 0 auto; padding: 0 32px; }

/* hero */
.fh-hero { padding: 68px 0 30px; }
.fh-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fh-eyebrow__rule { width: 26px; height: 2px; background: var(--accent-deep); }
.fh-eyebrow__text {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600;
}
.fh-hero__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.fh-hero__title {
  margin: 0; font-size: 50px; line-height: 1.04; letter-spacing: -.03em;
  font-weight: 700; color: var(--ink);
}
.fh-hero__lede { max-width: 560px; margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-3); }
.fh-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fh-newbtn {
  text-decoration: none; background: var(--accent); color: #05130c;
  font-weight: 700; font-size: 14.5px; padding: 12px 20px; border-radius: 11px;
  display: inline-flex; align-items: center; gap: 8px; transition: filter .14s ease;
}
.fh-newbtn:hover { filter: brightness(.95); }

.fh-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.fh-stat { font-size: 14px; color: var(--ink-3); }
.fh-stat__num { font-weight: 700; color: var(--ink); }

/* sections */
.fh-section { padding: 16px 0 20px; }
.fh-section--recent { padding: 30px 0 90px; }

/* categories */
.fh-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fh-cat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.fh-cat__icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 214, 119, .14);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.fh-cat__body { flex: 1; min-width: 0; }
.fh-cat__name { font-size: 17px; font-weight: 700; color: var(--ink); }
.fh-cat__desc { font-size: 14px; color: #6b6f63; margin-top: 4px; line-height: 1.45; }
.fh-cat__meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* recent activity */
.fh-recent__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.fh-recent__title {
  margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.fh-recent__all { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); white-space: nowrap; }
.fh-recent__all:hover { text-decoration: underline; }

.fh-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fh-list--empty { padding: 8px; }

.fh-row {
  text-decoration: none; color: inherit; display: flex; align-items: center;
  gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line);
  transition: background .14s ease;
}
.fh-row:last-child { border-bottom: 0; }
.fh-row:hover { background: #f7f9fc; }
.fh-row__avatar {
  width: 38px; height: 38px; border-radius: 50%; color: #fff;
  font-weight: 700; font-size: 13px; display: flex; align-items: center;
  justify-content: center; flex: none; letter-spacing: .01em;
}
.fh-row__main { flex: 1; min-width: 0; }
.fh-row__titleline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fh-tag { color: var(--muted); flex: none; }
.fh-tag--lock { color: var(--accent-deep); }
.fh-row__title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.fh-row__sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fh-row__board { color: var(--accent-deep); font-weight: 600; }
.fh-row__stats { display: flex; gap: 22px; align-items: center; flex: none; }
.fh-stat2 { text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.fh-stat2__num { font-size: 14px; font-weight: 700; color: var(--ink); }
.fh-stat2__label { font-size: 11px; color: var(--muted); }
.fh-row__time { font-size: 12.5px; color: var(--muted); width: 70px; text-align: right; }

.fh-empty { margin: 0; padding: 22px; font-size: 14.5px; color: var(--ink-3); }
.fh-empty a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.fh-empty a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 820px) {
  .fh-cats { grid-template-columns: 1fr; }
  .fh-row { flex-wrap: wrap; }
  .fh-row__stats { width: 100%; justify-content: flex-start; padding-left: 54px; }
  .fh-row__time { width: auto; text-align: left; margin-left: auto; }
}
@media (max-width: 640px) {
  .fh-inner { padding-left: 20px; padding-right: 20px; }
  .fh-hero { padding-top: 48px; }
  .fh-hero__title { font-size: 40px; }
}

/* fixes: neutral member role pill + display-name span */
.fmp-role--member { color: var(--ink-3); background: rgba(20,22,15,.08); }
.fmem-card__display { font-size: 16px; font-weight: 700; color: var(--ink); word-break: break-word; }

/* ---------------------------------------------------------- forum sub-nav --
   Shared strip (partials/forum_bar.php) on every forum surface: brand + nav +
   search. Prefixed `fbar-` so it replaces the old per-view `.fh-bar`/`.fg-bar`.
   --------------------------------------------------------------------------- */
.fbar { background: #fff; border-bottom: 1px solid var(--line); }
.fbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fbar__brand { display: flex; align-items: center; gap: 8px; flex: none; padding-right: 4px; }
.fbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fbar__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.fbar__nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.fbar__link {
  text-decoration: none; color: #565a4f; font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.fbar__link:hover { background: #eef2f7; }
.fbar__link--active { color: var(--accent-deep); background: rgba(0, 214, 119, .12); }
.fbar__search {
  flex: none; display: flex; align-items: center; gap: 9px;
  background: #f1f4f8; border: 1px solid rgba(20, 22, 15, .12);
  border-radius: 10px; padding: 8px 13px;
}
.fbar__search-icon { color: #8b8f82; flex: none; }
.fbar__search-input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--ink); width: 150px;
}
@media (max-width: 640px) {
  .fbar__inner { padding: 0 16px; gap: 10px; }
  .fbar__label { display: none; }
  .fbar__search { display: none; }
}

/* ------------------------------------------------------- forum home extras --
   Online indicator in the hero stats + Latest/Top/Unanswered activity tabs.
   --------------------------------------------------------------------------- */
.fh-stat--online { display: flex; align-items: center; gap: 7px; }
.fh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.fh-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.fh-tab {
  text-decoration: none; font-size: 13px; font-weight: 500; color: #3d4136;
  background: #fff; border: 1px solid rgba(20, 22, 15, .1);
  border-radius: 100px; padding: 6px 14px; white-space: nowrap;
}
.fh-tab:hover { background: var(--bg); }
.fh-tab--active { font-weight: 600; color: #05130c; background: var(--accent); border-color: transparent; }

/* ------------------------------------------------ forum topic — moderation --
   Removed-topic banner, dark moderator toolbar, per-post mod row, flair pills,
   forum-banned flag and the animator/artist role colours.
   --------------------------------------------------------------------------- */
.ft-deleted {
  background: rgba(229, 72, 77, .09); border: 1px solid rgba(229, 72, 77, .3);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 20px;
  font-size: 14px; color: #a01b1f; font-weight: 600;
}

.ft-mod {
  background: #0f1210; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ft-mod__badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #00D677;
}
.ft-mod__dot { width: 7px; height: 7px; border-radius: 50%; background: #00D677; }
.ft-mod__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-mod__btns form { margin: 0; }
.ft-mod__btn {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, .16); background: transparent;
  color: #e8ebe6; font-family: inherit; font-weight: 600; font-size: 13px;
  padding: 7px 13px; border-radius: 9px;
}
.ft-mod__btn:hover { background: rgba(255, 255, 255, .08); }
.ft-mod__btn--danger { border-color: rgba(229, 72, 77, .4); color: #ff8a8d; }
.ft-mod__btn--danger:hover { background: rgba(229, 72, 77, .14); }
.ft-mod__toggle {
  margin-left: auto; cursor: pointer; color: #8a9188; font-family: inherit;
  font-weight: 600; font-size: 12.5px; text-decoration: underline;
}
.ft-mod__previewing { font-size: 12.5px; color: #8a9188; font-weight: 600; }

.ft-flair {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; background: rgba(0, 0, 0, .04); padding: 3px 9px; border-radius: 100px;
}
.ft-flair__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.ft-banned {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #a01b1f;
  background: rgba(229, 72, 77, .12); padding: 3px 9px; border-radius: 100px;
}
.ft-role--animator { color: #00a15a; background: rgba(0, 214, 119, .14); }
.ft-role--artist   { color: #7a3fb0; background: rgba(122, 63, 176, .12); }

.ft-modrow {
  margin-top: 14px; padding-top: 13px; border-top: 1px dashed rgba(20, 22, 15, .12);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ft-modrow form { margin: 0; display: inline-flex; }
.ft-modrow__label {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a9adb8;
}
.ft-modrow__btn {
  cursor: pointer; border: 1px solid rgba(20, 22, 15, .14); background: #fff; color: #3d4136;
  font-family: inherit; font-weight: 600; font-size: 12.5px; padding: 6px 11px; border-radius: 8px;
}
.ft-modrow__btn:hover { background: #eef2f7; }
.ft-modrow__btn--danger { border-color: rgba(229, 72, 77, .3); color: #c0322f; }
.ft-modrow__btn--danger:hover { background: rgba(229, 72, 77, .08); }
.ft-modrow__badge { display: inline-flex; align-items: center; gap: 6px; }
.ft-modrow__select {
  font-family: inherit; font-size: 12.5px; color: #3d4136; background: #fff;
  border: 1px solid rgba(20, 22, 15, .14); border-radius: 8px; padding: 6px 9px; cursor: pointer;
}

/* ---------------------------------------------------- forum members extras --
   "Find a member" search box + Top/Newest/Most active/Staff filter pills.
   --------------------------------------------------------------------------- */
.fmem-search {
  display: flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid rgba(20, 22, 15, .12); border-radius: 11px; padding: 11px 14px;
}
.fmem-search__icon { color: #8b8f82; flex: none; }
.fmem-search__input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink); width: 170px; max-width: 100%;
}
.fmem-tabs { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.fmem-tab {
  text-decoration: none; font-size: 13px; font-weight: 500; color: #3d4136;
  background: #fff; border: 1px solid rgba(20, 22, 15, .1);
  border-radius: 100px; padding: 6px 14px; white-space: nowrap;
}
.fmem-tab:hover { background: var(--bg); }
.fmem-tab--active { font-weight: 600; color: #05130c; background: var(--accent); border-color: transparent; }
