/* Load after wpForo 2026 base and generated styles. Keep native controls and permissions. */
#wpforo #wpforo-wrap {
  background: #faf8f5;
  color: #181f1c;
  font: 1rem/1.6 "Public Sans", sans-serif;
  padding: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}

#wpforo #wpforo-wrap *,
#wpforo #wpforo-wrap *::before,
#wpforo #wpforo-wrap *::after { box-sizing: border-box; }

#wpforo #wpforo-wrap :is(h1, h2, h3, #wpforo-title) {
  font-family: "Newsreader", serif;
  color: #163829;
  line-height: 1.25;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
#wpforo #wpforo-wrap :is(h1, #wpforo-title) { font-size: 2rem; }
#wpforo #wpforo-wrap .wpf-head-bar-left #wpforo-title { font-size: 2rem; line-height: 1.25; }
#wpforo #wpforo-wrap h2 { font-size: 1.5rem; }
#wpforo #wpforo-wrap h3 { font-size: 1.25rem; }
#wpforo #wpforo-wrap p { font-size: 1em; line-height: 1.6; }

#wpforo #wpforo-wrap a { color: #163829; }
#wpforo #wpforo-wrap a:hover { text-decoration: underline; }
#wpforo #wpforo-wrap :is(.wpfcl-1, .wpforo-post-content) { color: #181f1c; }

#wpforo #wpforo-wrap :is(a, button, input, select, textarea, [tabindex], [contenteditable]):focus-visible {
  outline: 3px solid #b85b2b;
  outline-offset: 3px;
  scroll-margin-block: calc(var(--cd-header-offset, 0px) + 16px);
}

#wpforo #wpforo-wrap :is(button, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  font: inherit;
  min-height: 44px;
  max-width: 100%;
  border-radius: 6px;
}

#wpforo #wpforo-wrap :is(a, [role="button"], .wpf-button, .wpf-action, .topictoggle) {
  min-height: 44px;
  min-width: 44px;
}

#wpforo #wpforo-wrap :is(a, [role="button"], .topictoggle) {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-topic, .wpforo-forum, .wpforo-post) {
  padding: 16px;
  border: 1px solid #e4dfd7;
  border-radius: 6px;
  background: #faf8f5;
  box-shadow: none;
  min-width: 0;
}

#wpforo #wpforo-wrap :is(.topic-wrap, .post-wrap) { margin-block: 0 16px; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post > .wpf-left {
  float: none;
  width: auto;
  padding: 0 0 16px;
  text-align: start;
}
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post > .wpf-right { margin: 0; min-width: 0; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post .author-name { margin: 0; text-align: start; font-size: 1em; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post .author-title { align-items: start; }
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content {
  padding: 16px 0;
  min-height: 0;
  font-size: 1em;
  line-height: 1.6;
}
#wpforo #wpforo-wrap .wpforo-post .wpforo-post-content p { font-size: 1em; line-height: inherit; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post .wpforo-post-content-top {
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  text-align: start;
}
#wpforo #wpforo-wrap :is(.wpf-head-bar, .wpforo-post-content-top, .bright, .wpf-action-link) {
  height: auto;
  white-space: normal;
  max-width: 100%;
}
#wpforo #wpforo-wrap .wpfl-1 .wpforo-topic-title,
#wpforo #wpforo-wrap .wpfl-1 .wpforo-topic-title a {
  font-size: 1.125rem;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}
#wpforo #wpforo-wrap :is(.wpforo-topic-info, .wpforo-forum-info) { min-width: 0; }
#wpforo #wpforo-wrap :is(.wpforo-topic-start-info, .wpf-post-date, .author-joined, .author-posts) {
  color: #5a645f;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Remove reputation decoration, including screen-reader exposure; retain moderation status. */
#wpforo #wpforo-wrap :is(.author-rating, .author-rating-full, .author-rating-short, .author-rating-sep),
#wpforo #wpforo-wrap .wpforo-post .wpf-left :is(.author-rating, .author-rating-full, .author-rating-short, .author-rating-sep) { display: none; }
#wpforo #wpforo-wrap .cd-forum-owner {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #163829;
  color: #faf8f5;
  font: 600 0.875rem/1.5 "Public Sans", sans-serif;
  overflow-wrap: anywhere;
}
#wpforo #wpforo-wrap .cd-ad-wrapper { clear: both; margin-block: 24px; max-width: 100%; }
#wpforo #wpforo-wrap :is(img, iframe, video, textarea) { max-width: 100%; }
#wpforo #wpforo-wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#wpforo #wpforo-wrap label[for] { display: inline-flex; align-items: center; min-height: 44px; }
#wpforo #wpforo-wrap .topictoggle { justify-content: center; cursor: pointer; color: #163829; }

/* 2026 uses flex rows, combined statistics and fixed preview-author columns. */
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-topic, .wpforo-forum) { flex-wrap: wrap; gap: 8px; }
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-topic-info, .wpforo-forum-info) { flex: 1 1 12rem; width: auto; }
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-topic-stat-combined, .wpforo-topic-toggle, .wpforo-forum-topic-toggle) {
  min-width: 44px;
  width: auto;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
#wpforo #wpforo-wrap .wpfl-1 .wpforo-topic-stat-combined .stat-line { line-height: 1.6; }
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-last-posts-list li, .wpforo-last-topics-list li) { flex-wrap: wrap; gap: 8px; }
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-last-post-title, .wpforo-last-topic-title) { min-width: 0; flex: 1 1 12rem; font-size: 1rem; line-height: 1.6; }
#wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-last-post-user, .wpforo-last-topic-user) { width: auto; min-width: 0; font-size: 0.875rem; line-height: 1.6; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-forum-description { font-size: 1rem; line-height: 1.6; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post .wpf-right .wpforo-post-content-top { height: auto; min-height: 44px; margin: 0; padding: 0; text-align: start; }
#wpforo #wpforo-wrap .wpfl-1 .wpforo-post .wpf-action { min-height: 44px; min-width: 44px; white-space: normal; }
#wpforo #wpforo-wrap :is(#wpforo-stat-header, #wpforo-stat-header .wpf-footer-buttons) { flex-wrap: wrap; min-width: 0; }

@media (max-width: 640px) {
  /* The forum root and cards supply their own gutters inside Blocksy's page shell. */
  body.is_wpforo_page-1.wpf-theme-2026 #main .ct-container-full > article:has(#wpforo) {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }
  #wpforo #wpforo-wrap .wpfl-1 .wpforo-post .wpf-left:not(:has(> .author-avatar)) > .author-data {
    margin-inline-start: 0;
  }
  #wpforo #wpforo-wrap .wpfl-1 :is(.wpforo-topic-info, .wpforo-forum-info,
    .wpforo-topic-stat-views, .wpforo-topic-stat-posts, .wpforo-last-post-title,
    .wpforo-last-post-user, .wpforo-last-post-date, .wpforo-forum-last-post) {
    float: none;
    width: auto;
    margin-inline: 0;
    padding-inline: 0;
  }
  #wpforo #wpforo-wrap :is(#wpforo-menu, .wpf-head-bar, .wpf-action-link) { flex-wrap: wrap; }
  #wpforo #wpforo-wrap .wpfl-1 :is(.head-title, .head-stat-views, .head-stat-posts) {
    width: auto;
    float: none;
    height: auto;
  }
}
