
/* =========================================================
   AlbionTR bbPress ROOT FIX v10
   Scoped to .albiontr-forum-shell only.
   ========================================================= */

.albiontr-forum-shell{
  width:min(1500px, calc(100% - 40px));
  max-width:none;
  margin:28px auto 72px;
  padding:0;
  color:#e8e4dc;

  /* Critical: contain all legacy bbPress floats. */
  display:flow-root;
}

.albiontr-forum-shell::after,
.albiontr-forum-shell #bbpress-forums::after{
  content:"";
  display:block;
  clear:both;
}

.albiontr-forum-shell + .site-footer{
  clear:both;
}

.albiontr-forum-page-head{
  margin:0 0 18px;
  padding:26px 30px;
  border:1px solid rgba(215,171,79,.22);
  border-radius:14px;
  background:
    linear-gradient(90deg,rgba(7,10,14,.96),rgba(7,10,14,.72)),
    url('profile-cover.svg') center/cover no-repeat;
}
.albiontr-forum-page-head span{
  display:block;
  margin-bottom:7px;
  color:#d6aa54;
  font-size:11px;
  font-weight:900;
  letter-spacing:1.4px;
}
.albiontr-forum-page-head h1{
  margin:0;
  color:#f4ead5;
  font:900 38px/1.05 Georgia,serif;
}
.albiontr-forum-page-head p{
  margin:9px 0 0;
  color:#aeb6bf;
  line-height:1.55;
}

.albiontr-forum-shell #bbpress-forums{
  display:flow-root !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  color:#e8e4dc !important;
  font-size:14px !important;
}

/* Breadcrumb / search */
.albiontr-forum-shell #bbpress-forums .bbp-breadcrumb{
  margin:0 0 14px !important;
  color:#7f8a95 !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-breadcrumb a{
  color:#cfa74f !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-search-form{
  float:none !important;
  display:flex !important;
  justify-content:flex-end !important;
  gap:8px !important;
  margin:0 0 14px !important;
}

/* Main bbPress boxes */
.albiontr-forum-shell #bbpress-forums ul.bbp-forums,
.albiontr-forum-shell #bbpress-forums ul.bbp-topics,
.albiontr-forum-shell #bbpress-forums ul.bbp-replies{
  width:100% !important;
  margin:0 0 20px !important;
  padding:0 !important;
  border:1px solid #252d36 !important;
  border-radius:12px !important;
  overflow:hidden !important;
  background:#0b1117 !important;
  box-shadow:0 12px 30px rgba(0,0,0,.18) !important;
}

/* Header row: intentionally NORMAL height */
.albiontr-forum-shell #bbpress-forums li.bbp-header{
  padding:13px 18px !important;
  border:0 !important;
  border-bottom:1px solid #252d36 !important;
  background:#111820 !important;
  color:#d9b665 !important;
  text-transform:uppercase !important;
  letter-spacing:.6px !important;
  font-size:11px !important;
  font-weight:900 !important;
  min-height:0 !important;
}
.albiontr-forum-shell #bbpress-forums li.bbp-header .bbp-topic-author,
.albiontr-forum-shell #bbpress-forums li.bbp-header .bbp-reply-author,
.albiontr-forum-shell #bbpress-forums li.bbp-header .bbp-topic-content,
.albiontr-forum-shell #bbpress-forums li.bbp-header .bbp-reply-content{
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  color:#d9b665 !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-footer{
  display:none !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body,
.albiontr-forum-shell #bbpress-forums .even,
.albiontr-forum-shell #bbpress-forums .odd{
  background:#0b1117 !important;
}

/* Forum and topic listing rows */
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic{
  margin:0 !important;
  padding:17px 18px !important;
  background:#0b1117 !important;
  border:0 !important;
  border-top:1px solid #1f2730 !important;
  color:#cfd5da !important;
}
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum:hover,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic:hover{
  background:#101820 !important;
  box-shadow:inset 4px 0 0 #b98b3b !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-forum-title,
.albiontr-forum-shell #bbpress-forums .bbp-topic-permalink{
  color:#f1ece2 !important;
  font:800 18px/1.25 Georgia,serif !important;
  text-decoration:none !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-forum-title:hover,
.albiontr-forum-shell #bbpress-forums .bbp-topic-permalink:hover{
  color:#e1b65e !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-forum-content,
.albiontr-forum-shell #bbpress-forums .bbp-topic-meta{
  color:#83909b !important;
  font-size:12px !important;
}

/* bbPress list columns */
.albiontr-forum-shell #bbpress-forums ul.forum-titles,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 90px 90px 230px !important;
  align-items:center !important;
}
.albiontr-forum-shell #bbpress-forums ul.forum-titles > li,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum > li,
.albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic > li{
  float:none !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-forum-topic-count,
.albiontr-forum-shell #bbpress-forums .bbp-forum-reply-count,
.albiontr-forum-shell #bbpress-forums .bbp-topic-voice-count,
.albiontr-forum-shell #bbpress-forums .bbp-topic-reply-count{
  text-align:center !important;
  color:#d2aa58 !important;
  font-weight:800 !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-forum-freshness,
.albiontr-forum-shell #bbpress-forums .bbp-topic-freshness{
  float:none !important;
  width:auto !important;
  text-align:right !important;
  color:#7f8994 !important;
}

/* Topic/reply post cards — responsive rebuild v20.8 */

/* The Author / Posts label row is redundant on a single discussion page. */
.albiontr-forum-shell #bbpress-forums ul.bbp-replies > li.bbp-header{
  display:none !important;
}

/* Date / post number / moderator controls. */
.albiontr-forum-shell #bbpress-forums div.bbp-topic-header,
.albiontr-forum-shell #bbpress-forums div.bbp-reply-header{
  clear:both !important;
  float:none !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:14px 0 0 !important;
  padding:9px 14px !important;
  background:#111820 !important;
  color:#83909b !important;
  border:1px solid #252d36 !important;
  border-bottom:0 !important;
}

.albiontr-forum-shell #bbpress-forums div.bbp-topic-header .bbp-meta,
.albiontr-forum-shell #bbpress-forums div.bbp-reply-header .bbp-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px 10px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}

.albiontr-forum-shell #bbpress-forums .bbp-admin-links{
  float:none !important;
  margin-left:auto !important;
  white-space:normal !important;
  text-align:right !important;
  line-height:1.6 !important;
}

/*
 * IMPORTANT: use a vertical post card instead of bbPress's legacy author float.
 * This removes the giant empty side-column on short posts and is naturally responsive.
 */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  clear:both !important;
  float:none !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
  background:#0d1319 !important;
  border:1px solid #252d36 !important;
  border-top:0 !important;
}

/* Actual author strip only. Never style .bbp-author-* inside post content. */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
  display:grid !important;
  grid-template-columns:96px minmax(0,1fr) !important;
  grid-template-rows:auto auto auto !important;
  column-gap:16px !important;
  align-items:center !important;
  float:none !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:16px 20px !important;
  box-sizing:border-box !important;
  background:linear-gradient(90deg,#0a0f14,#0d141b) !important;
  border:0 !important;
  border-bottom:1px solid #202831 !important;
  color:#d5dade !important;
  text-align:left !important;
}

/* Avatar — scoped ONLY to the real author strip. */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
  grid-column:1 !important;
  grid-row:1 / 4 !important;
  align-self:center !important;
  float:none !important;
  display:block !important;
  width:88px !important;
  height:88px !important;
  margin:0 !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
  display:block !important;
  width:88px !important;
  height:88px !important;
  max-width:88px !important;
  object-fit:cover !important;
  border-radius:50% !important;
  border:3px solid #d2a245 !important;
  box-shadow:0 0 0 3px rgba(210,162,69,.11),0 10px 24px rgba(0,0,0,.28) !important;
}

/* Username — scoped ONLY to the author strip, so edit-log author names stay normal. */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
  grid-column:2 !important;
  grid-row:1 !important;
  display:block !important;
  min-width:0 !important;
  margin:0 !important;
  color:#fff1d2 !important;
  font:900 22px/1.08 Georgia,serif !important;
  text-decoration:none !important;
  overflow-wrap:anywhere !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-role,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-role{
  grid-column:2 !important;
  grid-row:2 !important;
  justify-self:start !important;
  display:inline-flex !important;
  width:auto !important;
  max-width:100% !important;
  margin:6px 0 0 !important;
  padding:5px 9px !important;
  border:1px solid rgba(210,162,69,.35) !important;
  border-radius:999px !important;
  background:rgba(210,162,69,.07) !important;
  color:#e1b45b !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  text-align:center !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
  grid-column:2 !important;
  grid-row:3 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  min-width:0 !important;
  margin:10px 0 0 !important;
  padding:0 !important;
  border:0 !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip{
  display:flex !important;
  align-items:baseline !important;
  gap:6px !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:6px 9px !important;
  border:1px solid #27313a !important;
  border-radius:8px !important;
  background:#0a1015 !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip small{
  flex:0 0 auto !important;
  color:#798590 !important;
  font-size:8px !important;
  font-weight:900 !important;
  letter-spacing:.05em !important;
  text-transform:uppercase !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip strong{
  min-width:0 !important;
  color:#e9e2d5 !important;
  font-size:11px !important;
  font-weight:900 !important;
  overflow-wrap:anywhere !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip strong.is-muted{
  color:#9aa4ad !important;
}

/* Hide public IP / author rating clutter. */
.albiontr-forum-shell #bbpress-forums .bbp-reply-ip,
.albiontr-forum-shell #bbpress-forums .bbp-topic-ip,
.albiontr-forum-shell #bbpress-forums .bbp-author-ip,
.albiontr-forum-shell #bbpress-forums .bbp-author-post-rating{
  display:none !important;
}

/* Content is always full width and has NO legacy bbPress left offset. */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-content,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-content{
  display:block !important;
  float:none !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 !important;
  margin-left:0 !important;
  padding:22px 24px !important;
  box-sizing:border-box !important;
  background:#0d1319 !important;
  color:#dde0e2 !important;
  font-size:14px !important;
  line-height:1.72 !important;
  text-align:left !important;
  overflow-wrap:anywhere !important;
}

/* Reset ONLY author-like elements that appear inside the message body/edit log. */
.albiontr-forum-shell #bbpress-forums .bbp-topic-content .bbp-author-name,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content .bbp-author-name{
  display:inline !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:#d9b665 !important;
  font:inherit !important;
  font-weight:800 !important;
  text-shadow:none !important;
}

.albiontr-forum-shell #bbpress-forums .bbp-topic-content .bbp-author-avatar,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content .bbp-author-avatar{
  display:inline-block !important;
  float:none !important;
  width:auto !important;
  height:auto !important;
  margin:0 4px 0 0 !important;
  vertical-align:middle !important;
}

.albiontr-forum-shell #bbpress-forums .bbp-topic-content .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content .bbp-author-avatar img{
  width:20px !important;
  height:20px !important;
  max-width:20px !important;
  border:2px solid #a77b2c !important;
  border-radius:50% !important;
  box-shadow:none !important;
  vertical-align:middle !important;
}

/* Keep user content from breaking the layout on narrow screens. */
.albiontr-forum-shell #bbpress-forums .bbp-topic-content img,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content img,
.albiontr-forum-shell #bbpress-forums .bbp-topic-content video,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content video,
.albiontr-forum-shell #bbpress-forums .bbp-topic-content iframe,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content iframe{
  max-width:100% !important;
  height:auto;
}

.albiontr-forum-shell #bbpress-forums .bbp-topic-content pre,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content pre{
  max-width:100% !important;
  overflow:auto !important;
  white-space:pre-wrap !important;
}

.albiontr-forum-shell #bbpress-forums .bbp-topic-content table,
.albiontr-forum-shell #bbpress-forums .bbp-reply-content table{
  display:block !important;
  max-width:100% !important;
  overflow-x:auto !important;
}

/* Notices */
.albiontr-forum-shell #bbpress-forums .bbp-template-notice,
.albiontr-forum-shell #bbpress-forums div.bbp-template-notice,
.albiontr-forum-shell #bbpress-forums .indicator-hint{
  background:#121922 !important;
  color:#d7dde3 !important;
  border:1px solid #2a333d !important;
}
.albiontr-forum-shell #bbpress-forums .bbp-template-notice p{
  color:#d7dde3 !important;
}

/* Forms */
.albiontr-forum-shell #bbpress-forums fieldset.bbp-form{
  margin:20px 0 !important;
  padding:20px !important;
  border:1px solid #252d36 !important;
  border-radius:12px !important;
  background:#0b1117 !important;
  clear:both !important;
}
.albiontr-forum-shell #bbpress-forums fieldset.bbp-form legend{
  color:#d9b665 !important;
  font-weight:800 !important;
}
.albiontr-forum-shell #bbpress-forums input[type=text],
.albiontr-forum-shell #bbpress-forums input[type=password],
.albiontr-forum-shell #bbpress-forums textarea,
.albiontr-forum-shell #bbpress-forums select{
  color:#e9ebed !important;
  background:#080c10 !important;
  border:1px solid #2a333d !important;
  border-radius:7px !important;
  padding:10px 11px !important;
}
.albiontr-forum-shell #bbpress-forums textarea{
  min-height:180px !important;
}
.albiontr-forum-shell #bbpress-forums input[type=submit],
.albiontr-forum-shell #bbpress-forums button{
  color:#fff2d2 !important;
  background:linear-gradient(180deg,#9f7229,#654313) !important;
  border:1px solid #c99a45 !important;
  border-radius:7px !important;
  padding:10px 15px !important;
  font-weight:800 !important;
}

@media(max-width:900px){
  .albiontr-forum-shell{
    width:calc(100% - 20px);
  }

  .albiontr-forum-shell #bbpress-forums ul.forum-titles,
  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum,
  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic{
    grid-template-columns:minmax(0,1fr) 70px 70px 170px !important;
  }

  .albiontr-forum-page-head{
    padding:22px 24px;
  }

  .albiontr-forum-page-head h1{
    font-size:32px;
  }
}

@media(max-width:700px){
  .albiontr-forum-shell{
    width:calc(100% - 12px);
    margin:12px auto 36px;
  }

  .albiontr-forum-page-head{
    margin-bottom:12px;
    padding:18px 16px;
    border-radius:10px;
  }

  .albiontr-forum-page-head h1{
    font-size:26px;
    overflow-wrap:anywhere;
  }

  .albiontr-forum-page-head p{
    font-size:12px;
  }

  .albiontr-forum-shell #bbpress-forums ul.forum-titles{
    display:none !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum,
  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic{
    display:block !important;
    padding:14px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.forum > li,
  .albiontr-forum-shell #bbpress-forums li.bbp-body ul.topic > li{
    width:100% !important;
    text-align:left !important;
    padding:3px 0 !important;
  }

  .albiontr-forum-shell #bbpress-forums div.bbp-topic-header,
  .albiontr-forum-shell #bbpress-forums div.bbp-reply-header{
    padding:9px 10px !important;
  }

  .albiontr-forum-shell #bbpress-forums div.bbp-topic-header .bbp-meta,
  .albiontr-forum-shell #bbpress-forums div.bbp-reply-header .bbp-meta{
    gap:5px 8px !important;
    font-size:10px !important;
  }

  .albiontr-forum-shell #bbpress-forums .bbp-admin-links{
    width:100% !important;
    margin-left:0 !important;
    text-align:left !important;
    font-size:9px !important;
    overflow-wrap:anywhere !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    grid-template-columns:66px minmax(0,1fr) !important;
    column-gap:12px !important;
    padding:13px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
    width:62px !important;
    height:62px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:62px !important;
    height:62px !important;
    max-width:62px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    font-size:18px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-role,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-role{
    margin-top:4px !important;
    padding:4px 7px !important;
    font-size:9px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
    gap:5px !important;
    margin-top:7px !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip{
    padding:5px 7px !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip small{
    font-size:7px !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip strong{
    font-size:10px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-content,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-content{
    padding:16px 14px !important;
    font-size:13px !important;
    line-height:1.65 !important;
  }

  .albiontr-forum-shell #bbpress-forums fieldset.bbp-form{
    margin:14px 0 !important;
    padding:14px !important;
  }

  .albiontr-forum-shell #bbpress-forums input[type=text],
  .albiontr-forum-shell #bbpress-forums input[type=password],
  .albiontr-forum-shell #bbpress-forums textarea,
  .albiontr-forum-shell #bbpress-forums select{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .albiontr-forum-shell #bbpress-forums .bbp-search-form{
    justify-content:stretch !important;
  }

  .albiontr-forum-shell #bbpress-forums .bbp-search-form form,
  .albiontr-forum-shell #bbpress-forums .bbp-search-form input[type=text]{
    width:100% !important;
  }
}

@media(max-width:420px){
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    grid-template-columns:54px minmax(0,1fr) !important;
    column-gap:10px !important;
    padding:11px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:50px !important;
    height:50px !important;
    max-width:50px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    font-size:16px !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip{
    flex:1 1 100% !important;
  }
}


/* =========================================================
   v20.8.1 AUTHOR CARD POLISH — only the mini author block
   ========================================================= */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
  position:relative !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 16% 22%, rgba(212,166,70,.14), transparent 26%),
    linear-gradient(135deg, rgba(10,16,21,.98), rgba(14,23,31,.98)) !important;
  border:1px solid rgba(214,171,82,.15) !important;
  border-radius:16px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 12px 28px rgba(0,0,0,.22) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author::after,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author::after{
  content:"";
  position:absolute;
  inset:auto -32px -34px auto;
  width:110px;
  height:110px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(212,166,70,.12) 0%, rgba(212,166,70,0) 68%);
  pointer-events:none;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
  position:relative !important;
  width:92px !important;
  height:92px !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::before,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::before{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:50%;
  background:conic-gradient(from 210deg, #6e4b10, #f2d287, #a77421, #f6d781, #6e4b10);
  box-shadow:0 0 0 1px rgba(255,235,186,.24), 0 0 22px rgba(214,171,82,.18);
  z-index:0;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::after,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:50%;
  border:1px solid rgba(255,240,204,.42);
  z-index:1;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
  position:relative !important;
  z-index:2 !important;
  width:92px !important;
  height:92px !important;
  max-width:92px !important;
  border:3px solid #171c22 !important;
  box-shadow:0 0 0 1px rgba(255,222,145,.35), 0 16px 30px rgba(0,0,0,.32) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
  color:#fff2cf !important;
  font:900 23px/1.05 Georgia,serif !important;
  text-shadow:0 1px 0 rgba(0,0,0,.48), 0 0 14px rgba(209,167,79,.08) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-role,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-role{
  margin-top:7px !important;
  padding:6px 11px !important;
  border:1px solid rgba(214,171,82,.34) !important;
  background:linear-gradient(180deg, rgba(214,171,82,.12), rgba(214,171,82,.04)) !important;
  color:#f1c96e !important;
  font-size:10px !important;
  box-shadow:inset 0 1px 0 rgba(255,245,221,.08) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
  gap:8px !important;
  margin-top:11px !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip{
  position:relative !important;
  align-items:center !important;
  gap:7px !important;
  padding:8px 10px !important;
  border:1px solid rgba(60,74,87,.88) !important;
  border-radius:10px !important;
  background:linear-gradient(180deg, rgba(18,27,35,.96), rgba(11,17,22,.98)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  flex:0 0 auto;
  background:radial-gradient(circle, #ffdb8a 0%, #c99735 72%);
  box-shadow:0 0 10px rgba(214,171,82,.38);
}

.albiontr-forum-shell .albiontr-bbp-author-chip small{
  color:#83909b !important;
  font-size:8px !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip strong{
  color:#f1e5d0 !important;
  font-size:12px !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip strong.is-muted{
  color:#aab3ba !important;
}

@media(max-width:700px){
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    border-radius:14px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
    width:84px !important;
    height:84px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:84px !important;
    height:84px !important;
    max-width:84px !important;
  }
}

@media(max-width:420px){
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
    width:76px !important;
    height:76px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:76px !important;
    height:76px !important;
    max-width:76px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    font-size:21px !important;
  }
}


/* =========================================================
   v20.8.2 AUTHOR MINI-CARD FINAL POLISH
   Only the small author area
   ========================================================= */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:156px !important;
  min-width:156px !important;
  max-width:156px !important;
  padding:16px 12px !important;
  gap:8px !important;
  text-align:center !important;
  background:linear-gradient(180deg, rgba(10,16,21,.98), rgba(13,21,29,.98)) !important;
  border:1px solid rgba(212,166,70,.22) !important;
  border-radius:16px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.24) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
  width:96px !important;
  height:96px !important;
  margin:0 auto 2px !important;
  position:relative !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::before,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  background:conic-gradient(from 180deg, #7d5515, #e9c36a, #9e6d1f, #f7de97, #7d5515);
  z-index:0;
  box-shadow:0 0 0 1px rgba(255,227,156,.30), 0 0 18px rgba(212,166,70,.22);
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::after,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:50%;
  border:1px solid rgba(255,243,210,.42);
  z-index:1;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
  position:relative !important;
  z-index:2 !important;
  width:96px !important;
  height:96px !important;
  max-width:96px !important;
  border-radius:50% !important;
  border:3px solid #14191f !important;
  box-shadow:0 0 0 3px #c89a43, 0 0 0 6px rgba(255,226,149,.10), 0 14px 28px rgba(0,0,0,.36) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
  grid-column:auto !important;
  grid-row:auto !important;
  width:100% !important;
  margin:0 !important;
  text-align:center !important;
  font:900 17px/1.15 Georgia,serif !important;
  color:#fff1d1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  text-shadow:0 1px 0 rgba(0,0,0,.45) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-role,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-role{
  grid-column:auto !important;
  grid-row:auto !important;
  justify-self:center !important;
  align-self:center !important;
  margin:0 !important;
  padding:6px 12px !important;
  font-size:10px !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
  grid-column:auto !important;
  grid-row:auto !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  margin:6px 0 0 !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:4px !important;
  width:100% !important;
  padding:10px 11px !important;
  border-radius:12px !important;
  background:linear-gradient(180deg, rgba(17,26,34,.98), rgba(10,16,22,.98)) !important;
  border:1px solid rgba(61,75,87,.92) !important;
  text-align:left !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip::before{
  display:none !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip small{
  display:block !important;
  font-size:10px !important;
  line-height:1 !important;
  letter-spacing:.08em !important;
  color:#9c8a56 !important;
}

.albiontr-forum-shell .albiontr-bbp-author-chip strong,
.albiontr-forum-shell .albiontr-bbp-author-chip strong.is-muted{
  display:block !important;
  width:100% !important;
  font-size:13px !important;
  line-height:1.2 !important;
  color:#f0e2c8 !important;
  white-space:normal !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
}

@media(max-width:700px){
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    width:148px !important;
    min-width:148px !important;
    max-width:148px !important;
    padding:14px 10px !important;
  }
}

@media(max-width:420px){
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:88px !important;
    height:88px !important;
    max-width:88px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    font-size:16px !important;
  }
}


/* =========================================================
   v20.8.3 GUARANTEED FANCY AVATAR RING
   Directly on the avatar image so it cannot disappear
   ========================================================= */
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
  overflow:visible !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
  display:block !important;
  position:relative !important;
  z-index:3 !important;
  border-radius:50% !important;
  border:3px solid #151a20 !important;
  background:#0d1117 !important;
  box-shadow:
    0 0 0 2px #f5de9d,
    0 0 0 5px #b98127,
    0 0 0 8px #261a08,
    0 0 0 10px rgba(255,221,144,.42),
    0 0 18px rgba(214,171,82,.42),
    0 0 34px rgba(214,171,82,.20),
    0 12px 28px rgba(0,0,0,.38) !important;
  filter:saturate(1.05) contrast(1.02) !important;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::before,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::before{
  content:"";
  position:absolute;
  inset:-12px;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  background:conic-gradient(
    from 0deg,
    rgba(102,67,15,.0) 0deg,
    rgba(232,200,112,.95) 40deg,
    rgba(130,83,18,.95) 78deg,
    rgba(255,232,170,.98) 118deg,
    rgba(146,95,23,.95) 172deg,
    rgba(245,210,126,.95) 228deg,
    rgba(122,78,17,.95) 282deg,
    rgba(255,238,188,.95) 326deg,
    rgba(102,67,15,.0) 360deg
  );
  -webkit-mask:radial-gradient(circle, transparent 58%, #000 64%, #000 71%, transparent 78%);
  mask:radial-gradient(circle, transparent 58%, #000 64%, #000 71%, transparent 78%);
  opacity:.95;
}

.albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar::after,
.albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar::after{
  content:"";
  position:absolute;
  inset:-17px;
  border-radius:50%;
  pointer-events:none;
  z-index:0;
  background:radial-gradient(circle, rgba(255,219,138,.16) 0%, rgba(214,171,82,.08) 38%, rgba(214,171,82,0) 70%);
  filter:blur(2px);
}


/* =========================================================
   v20.8.4 MOBILE FORUM HARD FIX
   Embedded into theme; no Additional CSS needed
   ========================================================= */
@media (max-width: 768px) {

  .albiontr-forum-shell,
  .albiontr-forum-shell #bbpress-forums{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
  }

  /* Each topic/reply becomes a clean single-column card */
  .albiontr-forum-shell #bbpress-forums li.bbp-body > div[id^="post-"],
  .albiontr-forum-shell #bbpress-forums li.bbp-body > div.topic,
  .albiontr-forum-shell #bbpress-forums li.bbp-body > div.reply{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 18px !important;
    padding:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Author area goes full width above content */
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    display:grid !important;
    grid-template-columns:86px minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    column-gap:14px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:16px !important;
    box-sizing:border-box !important;
    border-radius:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-top:0 !important;
    border-bottom:1px solid #24313b !important;
    text-align:left !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar{
    grid-column:1 !important;
    grid-row:1 / 4 !important;
    width:82px !important;
    height:82px !important;
    margin:0 !important;
    overflow:visible !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:82px !important;
    height:82px !important;
    max-width:82px !important;
    border-radius:50% !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:20px !important;
    line-height:1.15 !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
    text-align:left !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-role,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-role{
    grid-column:2 !important;
    grid-row:2 !important;
    justify-self:start !important;
    margin:5px 0 0 !important;
    text-align:left !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
    grid-column:2 !important;
    grid-row:3 !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
    margin:9px 0 0 !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip,
  .albiontr-forum-shell .albiontr-bbp-author-item{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:8px 9px !important;
  }

  .albiontr-forum-shell .albiontr-bbp-author-chip strong,
  .albiontr-forum-shell .albiontr-bbp-author-item strong,
  .albiontr-forum-shell .albiontr-bbp-author-value{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    font-size:11px !important;
    line-height:1.25 !important;
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
  }

  /* Message content always fills the phone width */
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-content,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-content{
    display:block !important;
    float:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    margin-left:0 !important;
    padding:16px !important;
    box-sizing:border-box !important;
    font-size:14px !important;
    line-height:1.65 !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }

  .albiontr-forum-shell #bbpress-forums .bbp-topic-content img,
  .albiontr-forum-shell #bbpress-forums .bbp-reply-content img,
  .albiontr-forum-shell #bbpress-forums .bbp-topic-content video,
  .albiontr-forum-shell #bbpress-forums .bbp-reply-content video,
  .albiontr-forum-shell #bbpress-forums .bbp-topic-content iframe,
  .albiontr-forum-shell #bbpress-forums .bbp-reply-content iframe{
    max-width:100% !important;
    height:auto !important;
  }

  /* Metadata / moderation links wrap instead of overflowing */
  .albiontr-forum-shell #bbpress-forums div.bbp-topic-header .bbp-meta,
  .albiontr-forum-shell #bbpress-forums div.bbp-reply-header .bbp-meta{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:6px 10px !important;
    width:100% !important;
    min-width:0 !important;
  }

  .albiontr-forum-shell #bbpress-forums .bbp-admin-links{
    float:none !important;
    width:100% !important;
    margin:6px 0 0 !important;
    white-space:normal !important;
    text-align:left !important;
    overflow-wrap:anywhere !important;
  }

  /* Forms */
  .albiontr-forum-shell #bbpress-forums fieldset.bbp-form,
  .albiontr-forum-shell #bbpress-forums form,
  .albiontr-forum-shell #bbpress-forums textarea,
  .albiontr-forum-shell #bbpress-forums input[type="text"],
  .albiontr-forum-shell #bbpress-forums input[type="email"],
  .albiontr-forum-shell #bbpress-forums input[type="password"],
  .albiontr-forum-shell #bbpress-forums select{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Forum footer / theme footer must stack beneath content */
  .site-footer,
  footer,
  .albiontr-footer{
    position:relative !important;
    clear:both !important;
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .site-footer .container,
  footer .container,
  .albiontr-footer .container{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box !important;
  }

  .site-footer .footer-grid,
  footer .footer-grid,
  .albiontr-footer .footer-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  .site-footer .footer-col,
  footer .footer-col,
  .albiontr-footer .footer-col{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
}

@media (max-width: 430px) {
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author{
    grid-template-columns:74px minmax(0,1fr) !important;
    column-gap:12px !important;
    padding:14px 12px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar img,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-avatar .albiontr-forum-avatar,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-avatar .albiontr-forum-avatar{
    width:70px !important;
    height:70px !important;
    max-width:70px !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .albiontr-bbp-author-meta,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .albiontr-bbp-author-meta{
    grid-template-columns:1fr !important;
  }

  .albiontr-forum-shell #bbpress-forums li.bbp-body div.topic > .bbp-topic-author > .bbp-author-name,
  .albiontr-forum-shell #bbpress-forums li.bbp-body div.reply > .bbp-reply-author > .bbp-author-name{
    font-size:18px !important;
  }
}


/* =========================================================
   v20.8.5 MOBILE SITE SHELL FIX — forum pages
   Fixes horizontal shift, header/footer overlap and stale layout.
   ========================================================= */
@media (max-width: 768px) {

  html,
  body{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    overflow-x:hidden !important;
  }

  body{
    position:relative !important;
  }

  /* Header must remain a normal full-width top bar. */
  body .site-header{
    position:sticky !important;
    top:0 !important;
    left:0 !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    transform:none !important;
    clear:both !important;
    float:none !important;
    z-index:100 !important;
  }

  body .site-header .header-inner{
    position:relative !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:68px !important;
    margin:0 !important;
    padding:7px 12px !important;
    gap:8px !important;
    box-sizing:border-box !important;
    transform:none !important;
  }

  body .site-header .brand{
    display:flex !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
  }

  body .site-header .brand-mark{
    flex:0 0 42px !important;
    width:42px !important;
    height:50px !important;
  }

  body .site-header .brand-title{
    font-size:19px !important;
    white-space:nowrap !important;
  }

  body .site-header .brand-sub{
    font-size:6.5px !important;
    white-space:nowrap !important;
  }

  body .site-header .mobile-toggle,
  body .site-header .header-actions{
    position:static !important;
    transform:none !important;
    float:none !important;
    margin:0 !important;
  }

  body .site-header .mobile-toggle{
    display:grid !important;
    flex:0 0 38px !important;
  }

  body .site-header .header-actions{
    display:flex !important;
    flex:0 0 auto !important;
    gap:6px !important;
  }

  body .site-header .header-actions .btn{
    display:none !important;
  }

  body .site-header .main-nav{
    position:absolute !important;
    top:68px !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    transform:none !important;
    box-sizing:border-box !important;
  }

  /* Footer must start at the viewport left edge, never beside forum content. */
  body .site-footer{
    position:relative !important;
    display:block !important;
    clear:both !important;
    float:none !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:40px 0 0 !important;
    padding:0 !important;
    transform:none !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    z-index:1 !important;
  }

  body .site-footer .footer-inner{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:26px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:30px 18px !important;
    transform:none !important;
    box-sizing:border-box !important;
  }

  body .site-footer .footer-inner > div{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    transform:none !important;
    box-sizing:border-box !important;
  }

  body .site-footer .footer-title{
    font-size:26px !important;
    line-height:1.1 !important;
    margin:0 0 12px !important;
  }

  body .site-footer h4{
    margin:0 0 10px !important;
    font-size:12px !important;
  }

  body .site-footer p,
  body .site-footer li,
  body .site-footer a{
    max-width:100% !important;
    font-size:13px !important;
    line-height:1.6 !important;
    overflow-wrap:anywhere !important;
  }

  body .site-footer ul{
    display:grid !important;
    gap:7px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
  }

  body .site-footer .footer-bottom{
    position:relative !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:16px 18px 22px !important;
    transform:none !important;
    box-sizing:border-box !important;
    text-align:left !important;
  }

  body .site-footer .footer-bottom span{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  /* Clear any forum floats before footer. */
  .albiontr-forum-shell::after,
  #bbpress-forums::after{
    content:"" !important;
    display:block !important;
    clear:both !important;
  }
}


/* v20.8.6 — keep mobile auth buttons visible on forum pages too */
@media(max-width:800px){
  body .site-header .header-inner{
    flex-wrap:wrap !important;
    min-height:0 !important;
  }

  body .site-header .brand{
    order:1 !important;
    flex:1 1 calc(100% - 50px) !important;
  }

  body .site-header .mobile-toggle{
    order:2 !important;
    display:grid !important;
  }

  body .site-header .header-actions{
    order:3 !important;
    display:grid !important;
    grid-template-columns:38px repeat(3,minmax(0,1fr)) !important;
    flex:1 0 100% !important;
    width:100% !important;
    gap:7px !important;
  }

  body .site-header .header-actions .btn{
    display:inline-flex !important;
    width:100% !important;
    min-width:0 !important;
    min-height:36px !important;
    padding:8px 7px !important;
    font-size:9px !important;
    white-space:nowrap !important;
  }

  body .site-header .header-actions:has(> :nth-child(3):last-child){
    grid-template-columns:38px minmax(0,1fr) minmax(0,1fr) !important;
  }

  body .site-header .main-nav{
    order:4 !important;
    top:100% !important;
  }
}
