/*
 * ZT bbPress UI
 * Scoped presentation layer for public bbPress pages.
 */

/* 1. Tokens and page surface. */
body.zt-bbpress-ui-active {
  --zt-bbp-wide: 1120px;
  --zt-bbp-content: 1000px;
  --zt-bbp-shell: 960px;
  --zt-bbp-reading: 760px;
  --zt-bbp-gutter: clamp(32px, 7.8vw, 56px);
  --zt-bbp-content-gap: clamp(32px, 4vw, 48px);
  --zt-bbp-page-end: clamp(28px, 3vw, 40px);
  --zt-bbp-ink: #0b1f3a;
  --zt-bbp-copy: #2f4256;
  --zt-bbp-muted: #586b7e;
  --zt-bbp-line: #d4e3ec;
  --zt-bbp-mist: #eef6fa;
  --zt-bbp-paper: #fbfdfe;
  --zt-bbp-gold: #b8872f;
  --zt-bbp-gold-text: #8a6422;
  --zt-bbp-action: #1e5aa8;
  --zt-bbp-success: #0f766e;
  --zt-bbp-error: #b95049;
  --zt-bbp-shadow: 0 16px 40px rgba(20, 58, 86, .07);
  --zt-bbp-card-shadow: 0 8px 24px rgba(20, 58, 86, .045);
  background:
    radial-gradient(circle at 10% 12%, rgba(212, 227, 236, .72), transparent 32rem),
    linear-gradient(180deg, #f8fbfd 0, var(--zt-bbp-mist) 100%);
  color: var(--zt-bbp-copy);
}

body.zt-bbpress-ui-active main {
  box-sizing: border-box;
  min-width: 0;
  margin-top: 0 !important;
  padding-inline: 0 !important;
  padding-bottom: var(--zt-bbp-page-end);
}

body.zt-bbpress-ui-active main * {
  box-sizing: border-box;
}

body.zt-bbpress-ui-active main a {
  color: var(--zt-bbp-action);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

body.zt-bbpress-ui-active main img {
  max-width: 100%;
  height: auto;
}

body.zt-bbpress-ui-active main p,
body.zt-bbpress-ui-active main li,
body.zt-bbpress-ui-active main a,
body.zt-bbpress-ui-active main td,
body.zt-bbpress-ui-active main th {
  overflow-wrap: anywhere;
}

body.zt-bbpress-ui-active #bbpress-forums {
  width: min(var(--zt-bbp-content), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-content);
  margin: var(--zt-bbp-content-gap) auto 0;
  color: var(--zt-bbp-copy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
}

body.zt-bbpress-ui-active.zt-bbp-ui-forum-archive #bbpress-forums,
body.zt-bbpress-ui-active.zt-bbp-ui-topic-archive #bbpress-forums,
body.zt-bbpress-ui-active.zt-bbp-ui-single-forum #bbpress-forums {
  width: min(var(--zt-bbp-wide), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-wide);
}

body.zt-bbpress-ui-active #bbpress-forums > :last-child {
  margin-bottom: 0;
}

body.zt-bbpress-ui-active main > .wp-block-group.alignfull,
body.zt-bbpress-ui-active main > .wp-block-query.alignfull > .wp-block-post-template > li > .wp-block-group.alignfull,
body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.zt-bbpress-ui-active main > .wp-block-query,
body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-post-template,
body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-post-template > li {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.zt-bbpress-ui-active main .entry-content.alignfull {
  width: 100%;
  max-width: none !important;
  margin-block-start: 0 !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body.zt-bbpress-ui-active footer.wp-block-template-part {
  margin-top: 0 !important;
}

body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-post-template + .wp-block-group.has-global-padding:not(.alignwide):not(:has(*)),
body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-post-template + .wp-block-group.alignwide.has-global-padding:not(:has(*)),
body.zt-bbpress-ui-active main > .wp-block-query > .wp-block-group.alignwide:has(> .wp-block-query-pagination) {
  display: none;
}

body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull + .wp-block-group.has-global-padding:not(.alignwide):not(:has(*)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull + .wp-block-group.has-global-padding:not(.alignwide):not(:has(*)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull + .wp-block-group.has-global-padding:not(.alignwide):not(:has(*)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull ~ .wp-block-group.alignwide.is-layout-flow:has(> nav.wp-block-group.alignwide.is-nowrap):not(:has(> nav.wp-block-group.alignwide.is-nowrap > *)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull ~ .wp-block-group.alignwide.is-layout-flow:has(> nav.wp-block-group.alignwide.is-nowrap):not(:has(> nav.wp-block-group.alignwide.is-nowrap > *)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-group.alignfull.has-global-padding > .entry-content.alignfull ~ .wp-block-group.alignwide.is-layout-flow:has(> nav.wp-block-group.alignwide.is-nowrap):not(:has(> nav.wp-block-group.alignwide.is-nowrap > *)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull.has-global-padding + .wp-block-group.alignwide.has-global-padding:not(:has(*)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-group.alignfull.has-global-padding + .wp-block-group.alignwide.has-global-padding:not(:has(*)),
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-group.alignfull.has-global-padding + .wp-block-group.alignwide.has-global-padding:not(:has(*)) {
  display: none;
}

body.zt-bbpress-ui-active.zt-bbp-ui-single-topic #bbpress-forums,
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply #bbpress-forums {
  width: min(var(--zt-bbp-shell), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-shell);
}

/* 2. Hero and content tracks. */
body.zt-bbpress-ui-active.zt-bbp-ui-forum-archive main > .wp-block-query-title,
body.zt-bbpress-ui-active.zt-bbp-ui-topic-archive main > .wp-block-query-title {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: min(var(--zt-bbp-wide), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-wide);
  min-height: 280px;
  margin: clamp(112px, 12vw, 152px) auto 0;
  padding: clamp(34px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 4px solid var(--zt-bbp-gold);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(11, 31, 58, .94), rgba(11, 31, 58, .68) 62%, rgba(11, 31, 58, .44)),
    url("https://zhitan.net/wp-content/uploads/2026/06/zt-home-card-community-realistic-20260624-v01.jpg") center 44% / cover no-repeat;
  box-shadow: var(--zt-bbp-shadow);
  color: #fff;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(48px, 6.4vw, 70px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.zt-bbpress-ui-active.zt-bbp-ui-forum-archive main > .wp-block-query-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-topic-archive main > .wp-block-query-title::before {
  content: "知探社区 · 审核问答";
  position: absolute;
  top: clamp(32px, 5vw, 52px);
  left: clamp(34px, 6vw, 64px);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-post-title {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: min(var(--zt-bbp-wide), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-wide);
  min-height: clamp(220px, 24vw, 280px);
  margin: clamp(112px, 12vw, 152px) auto 0;
  padding: clamp(34px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 4px solid var(--zt-bbp-gold);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(11, 31, 58, .96), rgba(11, 31, 58, .72) 62%, rgba(11, 31, 58, .48)),
    url("https://zhitan.net/wp-content/uploads/2026/06/zt-home-card-community-realistic-20260624-v01.jpg") center 44% / cover no-repeat;
  box-shadow: var(--zt-bbp-shadow);
  color: #fff;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(42px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull > .wp-block-post-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-post-title::before {
  content: "知探社区 · 主题论坛";
  position: absolute;
  top: clamp(32px, 5vw, 52px);
  left: clamp(34px, 6vw, 64px);
  color: rgba(255, 255, 255, .82);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

body.zt-bbpress-ui-active.zt-bbp-ui-search main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-view main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-user main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-form main > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-generic main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: min(var(--zt-bbp-wide), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-wide);
  min-height: clamp(128px, 16vw, 176px);
  margin: clamp(112px, 12vw, 152px) auto 0 !important;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 4px solid var(--zt-bbp-gold);
  border-radius: 14px;
  background:
    linear-gradient(110deg, rgba(11, 31, 58, .99), rgba(20, 58, 86, .94)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .045) 79px 80px);
  box-shadow: var(--zt-bbp-shadow);
  color: #fff;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.zt-bbpress-ui-active.zt-bbp-ui-search main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title > a,
body.zt-bbpress-ui-active.zt-bbp-ui-view main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title > a,
body.zt-bbpress-ui-active.zt-bbp-ui-user main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title > a,
body.zt-bbpress-ui-active.zt-bbp-ui-generic main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title > a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

body.zt-bbpress-ui-active.zt-bbp-ui-search main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-view main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-user main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-form main > .wp-block-group.alignfull > .wp-block-post-title::before,
body.zt-bbpress-ui-active.zt-bbp-ui-generic main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before {
  align-self: flex-start;
  margin-bottom: 12px;
  padding-left: 38px;
  background: linear-gradient(var(--zt-bbp-gold), var(--zt-bbp-gold)) left center / 26px 2px no-repeat;
  color: rgba(255, 255, 255, .76);
  content: "知探讨论索引";
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
}

body.zt-bbpress-ui-active.zt-bbp-ui-search main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before { content: "讨论检索"; }
body.zt-bbpress-ui-active.zt-bbp-ui-view main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before { content: "讨论视图"; }
body.zt-bbpress-ui-active.zt-bbp-ui-user main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title::before { content: "参与者档案"; }
body.zt-bbpress-ui-active.zt-bbp-ui-form main > .wp-block-group.alignfull > .wp-block-post-title::before { content: "内容提交"; }

body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-group.alignfull > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-post-title,
body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-post-title {
  width: min(var(--zt-bbp-shell), calc(100% - var(--zt-bbp-gutter)));
  max-width: var(--zt-bbp-shell);
  margin: clamp(112px, 12vw, 152px) auto 0;
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid var(--zt-bbp-line);
  border-left: 3px solid var(--zt-bbp-gold);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
  color: var(--zt-bbp-ink);
  font-size: clamp(34px, 5vw, 56px);
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

/* 3. Breadcrumb, search and action areas. */
body.zt-bbpress-ui-active #bbpress-forums .bbp-breadcrumb {
  float: none;
  width: 100%;
  margin: 0 0 18px;
  color: var(--zt-bbp-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-breadcrumb p {
  margin: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-breadcrumb a {
  color: var(--zt-bbp-copy);
  font-weight: 700;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-breadcrumb-sep {
  margin-inline: .45em;
  color: var(--zt-bbp-gold);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form {
  float: none;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0 0 20px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form form {
  width: 100%;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form > div,
body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form form > div {
  display: flex;
  width: min(100%, 520px);
  gap: 10px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-tags {
  float: none;
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--zt-bbp-muted);
  font-size: 14px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 2px;
  padding: 3px 10px;
  border: 1px solid rgba(30, 90, 168, .18);
  border-radius: 999px;
  background: rgba(30, 90, 168, .07);
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-revision-log,
body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-revision-log {
  margin: 18px 0 0;
  padding: 14px 18px 14px 38px;
  border-left: 3px solid var(--zt-bbp-gold);
  background: rgba(184, 135, 47, .07);
  color: var(--zt-bbp-muted);
  font-size: 14px;
}

/* 4. Forum and topic lists. */
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-forums,
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-topics {
  counter-reset: zt-bbp-index;
  width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
  font-size: 15px;
}

body.zt-bbpress-ui-active #bbpress-forums ul.bbp-forums,
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-topics,
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-replies,
body.zt-bbpress-ui-active #bbpress-forums ul.forum-titles,
body.zt-bbpress-ui-active #bbpress-forums ul.topic-titles,
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-body,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
  padding-left: 0;
  list-style: none;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-header,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-footer {
  border: 0;
  background: rgba(11, 31, 58, .96);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-header {
  border-top: 2px solid var(--zt-bbp-gold);
  background: #e6f0f5;
  color: var(--zt-bbp-ink);
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-footer {
  min-height: 14px;
  padding: 0;
  background: rgba(11, 31, 58, .045);
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-header > ul,
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-body > li > ul,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 86px minmax(190px, 230px);
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-header > ul {
  min-height: 52px;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-header > ul > li {
  color: var(--zt-bbp-ink);
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
  counter-increment: zt-bbp-index;
  min-height: 104px;
  border: 0;
  border-bottom: 1px solid var(--zt-bbp-line);
  background: transparent;
  transition: background-color .18s ease;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum:last-child,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic:last-child {
  border-bottom: 0;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-info,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-title,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-topic-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-reply-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-voice-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-reply-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-freshness,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-freshness {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 18px 16px;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-info,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-title {
  position: relative;
  padding-left: 24px;
  text-align: left;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul .bbp-forum-info::before,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul .bbp-topic-title::before {
  display: block;
  margin-bottom: 7px;
  color: var(--zt-bbp-gold-text);
  content: counter(zt-bbp-index, decimal-leading-zero);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: .12em;
}

@media (hover: hover) {
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum:hover,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic:hover {
    background: rgba(238, 246, 250, .86);
  }
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-topic-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-reply-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-voice-count,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-reply-count {
  color: var(--zt-bbp-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: center;
}

body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-freshness,
body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-freshness {
  color: var(--zt-bbp-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

body.zt-bbpress-ui-active #bbpress-forums a.bbp-forum-title,
body.zt-bbpress-ui-active #bbpress-forums a.bbp-topic-permalink {
  color: var(--zt-bbp-ink);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums a.bbp-forum-title:hover,
body.zt-bbpress-ui-active #bbpress-forums a.bbp-topic-permalink:hover {
  color: var(--zt-bbp-action);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-forum-content,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-meta {
  margin-top: 8px;
  color: var(--zt-bbp-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-started-by,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-freshness-author {
  color: var(--zt-bbp-muted);
  font-size: 13px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-pagination a {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  padding: 2px 7px;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-forums-list {
  margin: 10px 0 0;
  padding-left: 16px;
  border-left: 2px solid rgba(184, 135, 47, .34);
  color: var(--zt-bbp-muted);
  font-size: 14px;
}

/* 5. Single-topic replies. */
body.zt-bbpress-ui-active #bbpress-forums ul.bbp-replies {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
}

body.zt-bbpress-ui-active #bbpress-forums div.bbp-reply-header,
body.zt-bbpress-ui-active #bbpress-forums div.bbp-topic-header {
  min-height: 48px;
  padding: 12px 18px;
  border-top: 0;
  border-bottom: 1px solid var(--zt-bbp-line);
  background: rgba(11, 31, 58, .045);
  color: var(--zt-bbp-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.zt-bbpress-ui-active #bbpress-forums div.topic,
body.zt-bbpress-ui-active #bbpress-forums div.reply {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--zt-bbp-line);
  background: #fff;
}

body.zt-bbpress-ui-active #bbpress-forums div.topic:last-child,
body.zt-bbpress-ui-active #bbpress-forums div.reply:last-child {
  border-bottom: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-author,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-author {
  float: none;
  width: auto;
  min-width: 0;
  padding: 24px 18px;
  border-right: 1px solid var(--zt-bbp-line);
  background: rgba(238, 246, 250, .68);
  color: var(--zt-bbp-copy);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-author .avatar,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-author .avatar {
  float: none;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(20, 58, 86, .12);
  object-fit: cover;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-author-name {
  color: var(--zt-bbp-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-author-role,
body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-ip {
  display: block;
  margin-top: 6px;
  color: var(--zt-bbp-muted);
  font-size: 12px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content {
  min-width: 0;
  min-height: 156px;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  color: var(--zt-bbp-copy);
  font-size: 17px;
  line-height: 1.85;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content > :first-child,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content > :first-child {
  margin-top: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content > :last-child,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content > :last-child {
  margin-bottom: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content blockquote,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--zt-bbp-gold);
  background: var(--zt-bbp-mist);
  color: var(--zt-bbp-copy);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content pre,
body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content pre {
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--zt-bbp-ink);
  color: #f7fbff;
  font-size: 14px;
  line-height: 1.65;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-admin-links {
  color: var(--zt-bbp-muted);
  font-size: 12px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-admin-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 6px;
  color: var(--zt-bbp-copy);
}

/* 6. Search, views, user pages and pagination. */
body.zt-bbpress-ui-active.zt-bbp-ui-search #bbpress-forums,
body.zt-bbpress-ui-active.zt-bbp-ui-view #bbpress-forums,
body.zt-bbpress-ui-active.zt-bbp-ui-user #bbpress-forums {
  width: min(var(--zt-bbp-content), calc(100% - var(--zt-bbp-gutter)));
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-search-results,
body.zt-bbpress-ui-active #bbpress-forums .bbp-user-section {
  min-width: 0;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--zt-bbp-line);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-wrapper {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  margin: 0;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-single-user-details {
  float: none;
  width: auto;
  margin: 0;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-avatar,
body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation {
  overflow: hidden;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-avatar {
  margin-bottom: 14px;
  padding: 22px;
  text-align: center;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-avatar img.avatar {
  width: 112px;
  height: 112px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(20, 58, 86, .13);
  object-fit: cover;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation ul {
  margin: 0;
  padding: 8px;
  list-style: none;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation li {
  margin: 0;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--zt-bbp-copy);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation li.current a,
body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation a:hover {
  background: var(--zt-bbp-mist);
  color: var(--zt-bbp-action);
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-body {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.zt-bbpress-ui-active.zt-bbp-ui-user.zt-bbp-ui-form #bbpress-forums #bbp-user-body,
body.zt-bbpress-ui-active.zt-bbp-ui-user.zt-bbp-ui-form #bbpress-forums #bbp-your-profile,
body.zt-bbpress-ui-active.zt-bbp-ui-user.zt-bbp-ui-form #bbpress-forums #bbp-your-profile-form,
body.zt-bbpress-ui-active.zt-bbp-ui-user.zt-bbp-ui-form #bbpress-forums #bbp-your-profile-form > fieldset.bbp-form {
  width: 100%;
  max-width: none;
}

body.zt-bbpress-ui-active #bbpress-forums #bbp-user-body h2,
body.zt-bbpress-ui-active #bbpress-forums #bbp-user-body h3 {
  color: var(--zt-bbp-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.22;
  text-wrap: balance;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination {
  float: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 22px 0;
  color: var(--zt-bbp-muted);
  font-size: 14px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-count,
body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links {
  float: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links a,
body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links span.current {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--zt-bbp-copy);
  font-weight: 750;
  text-decoration: none;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links span.current,
body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links a:hover {
  border-color: var(--zt-bbp-action);
  background: var(--zt-bbp-action);
  color: #fff;
}

/* 7. Forms, editors, notices, errors and empty states. */
body.zt-bbpress-ui-active #bbpress-forums fieldset.bbp-form {
  min-width: 0;
  margin: 28px 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--zt-bbp-line);
  border-radius: 10px;
  background: var(--zt-bbp-paper);
  box-shadow: none;
}

body.zt-bbpress-ui-active #bbpress-forums fieldset.bbp-form legend {
  max-width: 100%;
  padding: 0 10px;
  color: var(--zt-bbp-ink);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 850;
  line-height: 1.3;
}

body.zt-bbpress-ui-active #bbpress-forums fieldset.bbp-form label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--zt-bbp-copy);
  font-size: 14px;
  font-weight: 750;
}

body.zt-bbpress-ui-active #bbpress-forums input[type="text"],
body.zt-bbpress-ui-active #bbpress-forums input[type="email"],
body.zt-bbpress-ui-active #bbpress-forums input[type="url"],
body.zt-bbpress-ui-active #bbpress-forums input[type="password"],
body.zt-bbpress-ui-active #bbpress-forums input[type="search"],
body.zt-bbpress-ui-active #bbpress-forums select,
body.zt-bbpress-ui-active #bbpress-forums textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--zt-bbp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--zt-bbp-ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
}

body.zt-bbpress-ui-active #bbpress-forums textarea {
  min-height: 180px;
  resize: vertical;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-the-content-wrapper {
  width: 100%;
  margin: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-the-content-wrapper .quicktags-toolbar,
body.zt-bbpress-ui-active #bbpress-forums .bbp-the-content-wrapper div.mce-toolbar-grp {
  border: 1px solid var(--zt-bbp-line);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: var(--zt-bbp-mist);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-the-content-wrapper textarea.bbp-the-content {
  border-radius: 0 0 11px 11px;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-form p,
body.zt-bbpress-ui-active #bbpress-forums .bbp-form div {
  max-width: 100%;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-submit-wrapper {
  float: none;
  display: flex;
  justify-content: flex-end;
  margin: 22px 0 0;
}

body.zt-bbpress-ui-active #bbpress-forums button,
body.zt-bbpress-ui-active #bbpress-forums input[type="submit"],
body.zt-bbpress-ui-active #bbpress-forums .button,
body.zt-bbpress-ui-active #bbpress-forums a.bbp-topic-reply-link,
body.zt-bbpress-ui-active #bbpress-forums a.bbp-reply-to-link,
body.zt-bbpress-ui-active #bbpress-forums a.bbp-new-topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--zt-bbp-action);
  border-radius: 11px;
  background: var(--zt-bbp-action);
  box-shadow: 0 8px 20px rgba(30, 90, 168, .16);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .16s ease, background-color .16s ease;
}

@media (hover: hover) {
  body.zt-bbpress-ui-active #bbpress-forums button:hover,
  body.zt-bbpress-ui-active #bbpress-forums input[type="submit"]:hover,
  body.zt-bbpress-ui-active #bbpress-forums .button:hover,
  body.zt-bbpress-ui-active #bbpress-forums a.bbp-topic-reply-link:hover,
  body.zt-bbpress-ui-active #bbpress-forums a.bbp-reply-to-link:hover,
  body.zt-bbpress-ui-active #bbpress-forums a.bbp-new-topic-link:hover {
    background: var(--zt-bbp-ink);
    box-shadow: 0 10px 22px rgba(11, 31, 58, .16);
    color: #fff;
  }
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice {
  clear: both;
  width: 100%;
  margin: 20px 0;
  padding: 15px 18px;
  border: 1px solid rgba(30, 90, 168, .22);
  border-left: 4px solid var(--zt-bbp-action);
  border-radius: 12px;
  background: rgba(30, 90, 168, .07);
  color: var(--zt-bbp-copy);
  font-size: 14px;
  line-height: 1.65;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice.info,
body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice.important {
  border-left-color: var(--zt-bbp-gold);
  background: rgba(184, 135, 47, .08);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice.error,
body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice.warning {
  border-color: rgba(185, 80, 73, .25);
  border-left-color: var(--zt-bbp-error);
  background: rgba(185, 80, 73, .07);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice.updated {
  border-color: rgba(15, 118, 110, .24);
  border-left-color: var(--zt-bbp-success);
  background: rgba(15, 118, 110, .07);
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice p {
  margin: 0;
  padding: 0;
}

body.zt-bbpress-ui-active #bbpress-forums .bbp-no-topic,
body.zt-bbpress-ui-active #bbpress-forums .bbp-no-reply,
body.zt-bbpress-ui-active #bbpress-forums .bbp-search-no-results {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin: 24px 0;
  padding: 32px;
  border: 1px dashed rgba(107, 123, 140, .48);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  color: var(--zt-bbp-muted);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

body.zt-bbpress-ui-active #bbpress-forums input[type="text"]:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums input[type="email"]:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums input[type="url"]:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums input[type="password"]:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums input[type="search"]:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums select:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums textarea:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums button:focus-visible,
body.zt-bbpress-ui-active #bbpress-forums a:focus-visible {
  outline: 3px solid var(--zt-bbp-action);
  outline-offset: 3px;
  border-color: var(--zt-bbp-action);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .96);
}

/* 8. Responsive layout. */
@media (max-width: 900px) {
  body.zt-bbpress-ui-active {
    --zt-bbp-gutter: 32px;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-header > ul,
  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-body > li > ul,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
    grid-template-columns: minmax(0, 1fr) 70px 70px minmax(160px, 190px);
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-info,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-title,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-topic-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-reply-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-voice-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-reply-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-freshness,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-freshness {
    padding: 16px 12px;
  }

  body.zt-bbpress-ui-active #bbpress-forums #bbp-user-wrapper {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }

  body.zt-bbpress-ui-active #bbpress-forums div.topic,
  body.zt-bbpress-ui-active #bbpress-forums div.reply {
    grid-template-columns: 144px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.zt-bbpress-ui-active {
    --zt-bbp-gutter: 32px;
    --zt-bbp-content-gap: clamp(20px, 6vw, 32px);
    --zt-bbp-page-end: clamp(28px, 7vw, 36px);
  }

  body.zt-bbpress-ui-active #bbpress-forums {
    font-size: 15px;
  }

  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-forums,
  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-topics {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-header,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-footer {
    display: none;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body {
    display: grid;
    gap: 10px;
    padding: 0;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--zt-bbp-line);
    border-radius: 10px;
    background: #fff;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-info,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-title {
    flex: 0 0 100%;
    padding: 0 0 10px;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-topic-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-reply-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-voice-count,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-reply-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid rgba(30, 90, 168, .14);
    border-radius: 999px;
    background: rgba(30, 90, 168, .06);
    color: var(--zt-bbp-copy);
    font-size: 12px;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-topic-count::before,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-voice-count::before {
    content: "话题 ";
    margin-right: 3px;
    color: var(--zt-bbp-muted);
    font-weight: 650;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-reply-count::before,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-reply-count::before {
    content: "回复 ";
    margin-right: 3px;
    color: var(--zt-bbp-muted);
    font-weight: 650;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-forum-freshness,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-topic-freshness {
    flex: 0 0 100%;
    padding: 10px 0 0;
    border-top: 1px solid var(--zt-bbp-line);
  }

  body.zt-bbpress-ui-active #bbpress-forums div.topic,
  body.zt-bbpress-ui-active #bbpress-forums div.reply {
    grid-template-columns: minmax(0, 1fr);
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-author,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-author {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--zt-bbp-line);
    text-align: left;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-author .avatar,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-author .avatar {
    grid-row: 1 / span 4;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-reply-content,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-topic-content {
    min-height: 0;
    padding: 22px 20px 28px;
    font-size: 16px;
  }

  body.zt-bbpress-ui-active #bbpress-forums #bbp-user-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  body.zt-bbpress-ui-active #bbpress-forums #bbp-user-navigation li {
    flex: 1 1 128px;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-pagination-links {
    justify-content: flex-start;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form > div,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-search-form form > div {
    align-items: stretch;
    flex-direction: column;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-submit-wrapper {
    justify-content: stretch;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-submit-wrapper button,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-submit-wrapper input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 390px) {
  body.zt-bbpress-ui-active {
    --zt-bbp-gutter: 32px;
    --zt-bbp-content-gap: 24px;
    --zt-bbp-page-end: 28px;
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-forum-archive main > .wp-block-query-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-topic-archive main > .wp-block-query-title {
    min-height: 220px;
    margin-top: 94px;
    padding: 30px 24px;
    border-radius: 16px;
    font-size: clamp(38px, 12vw, 48px);
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-forum-archive main > .wp-block-query-title::before,
  body.zt-bbpress-ui-active.zt-bbp-ui-topic-archive main > .wp-block-query-title::before {
    top: 28px;
    left: 24px;
    font-size: 11px;
    letter-spacing: .13em;
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-post-title {
    min-height: 220px;
    margin-top: 94px;
    padding: 30px 24px;
    border-radius: 16px;
    font-size: clamp(38px, 12vw, 48px);
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-group.alignfull > .wp-block-post-title::before,
  body.zt-bbpress-ui-active.zt-bbp-ui-single-forum main > .wp-block-post-title::before {
    top: 28px;
    left: 24px;
    font-size: 11px;
    letter-spacing: .13em;
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-search main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-view main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-user main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-form main > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-generic main > .wp-block-query > .wp-block-post-template > li > .wp-block-group.alignfull > .wp-block-post-title {
    min-height: 148px;
    margin-top: 94px;
    padding: 28px 24px;
    border-radius: 16px;
    font-size: 34px;
  }

  body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-group.alignfull > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-single-topic main > .wp-block-post-title,
  body.zt-bbpress-ui-active.zt-bbp-ui-single-reply main > .wp-block-post-title {
    margin-top: 94px;
    padding: 26px 22px;
    border-radius: 15px;
    font-size: 36px;
  }

  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-forums,
  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-topics,
  body.zt-bbpress-ui-active #bbpress-forums ul.bbp-replies,
  body.zt-bbpress-ui-active #bbpress-forums fieldset.bbp-form,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-user-section {
    border-radius: 10px;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body { padding: 0; }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic {
    padding: 16px 14px;
  }

  body.zt-bbpress-ui-active #bbpress-forums .bbp-template-notice,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-no-topic,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-no-reply,
  body.zt-bbpress-ui-active #bbpress-forums .bbp-search-no-results {
    padding: 16px;
  }
}

/* 9. Reduced motion. */
@media (prefers-reduced-motion: reduce) {
  body.zt-bbpress-ui-active #bbpress-forums *,
  body.zt-bbpress-ui-active #bbpress-forums *::before,
  body.zt-bbpress-ui-active #bbpress-forums *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.forum:hover,
  body.zt-bbpress-ui-active #bbpress-forums li.bbp-body > ul.topic:hover,
  body.zt-bbpress-ui-active #bbpress-forums button:hover,
  body.zt-bbpress-ui-active #bbpress-forums input[type="submit"]:hover,
  body.zt-bbpress-ui-active #bbpress-forums .button:hover {
    transform: none;
  }
}
