.bto-community {
  --bto-community-green: #2f6b3b;
  --bto-community-green-dark: #214d2b;
  --bto-community-lime: #dff0c9;
  --bto-community-ink: #17231b;
  --bto-community-muted: #5f6e63;
  --bto-community-line: #dbe3dc;
  --bto-community-paper: #fff;
  --bto-community-soft: #f5f8f3;
  color: var(--bto-community-ink);
  font-family: inherit;
  line-height: 1.55;
  overflow-x: hidden;
}

.bto-community * { box-sizing: border-box; }

.bto-community__hero {
  padding: 2.75rem 1rem 3rem;
  background: linear-gradient(145deg, #173d25 0%, #2f6b3b 60%, #4d844b 100%);
  color: #fff;
}

.bto-community__hero-inner,
.bto-community__section {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.bto-community .bto-community__eyebrow {
  margin: 0 0 0.7rem;
  color: #abd888;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.bto-community .bto-community__hero h1#bto-community-title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 6.2vw, 3.45rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.bto-community .bto-community__lead {
  max-width: 680px;
  margin: 0.9rem 0 0;
  color: #e9f3e9;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.6;
}

.bto-community__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bto-community a.bto-community__button,
.bto-community a.bto-community__button:link,
.bto-community a.bto-community__button:visited {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s, background-color 0.18s, border-color 0.18s, color 0.18s;
}

.bto-community a.bto-community__button--primary,
.bto-community a.bto-community__button--primary:link,
.bto-community a.bto-community__button--primary:visited {
  background-color: #fff;
  color: var(--bto-community-green-dark);
}

.bto-community a.bto-community__button--primary:hover,
.bto-community a.bto-community__button--primary:focus-visible {
  background-color: var(--bto-community-lime);
  color: #173d25;
  transform: translateY(-2px);
}

.bto-community a.bto-community__button--primary:active {
  background-color: #cce5ae;
  color: #173d25;
  transform: translateY(0);
}

.bto-community a.bto-community__button--secondary,
.bto-community a.bto-community__button--secondary:link,
.bto-community a.bto-community__button--secondary:visited {
  border-color: #b9d6bd;
  background-color: transparent;
  color: #fff;
}

.bto-community a.bto-community__button--secondary:hover,
.bto-community a.bto-community__button--secondary:focus-visible {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.bto-community a.bto-community__button--secondary:active {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(0);
}

.bto-community__section { padding: 2.75rem 1rem; }
.bto-community__section--conversations { padding-top: 1rem; }

.bto-community__discovery {
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--bto-community-line);
  background: var(--bto-community-soft);
}

.bto-community__discovery-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.bto-community__discovery .bto-community__heading { margin-bottom: 1rem; }
.bto-community__discovery .bto-community__heading h2 { font-size: clamp(1.45rem, 4vw, 2rem); }

.bto-community__search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  border: 1px solid #b9c5bb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 45, 30, 0.05);
}

.bto-community__search-icon { display: grid; color: var(--bto-community-green); }
.bto-community__search-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.bto-community__search input[type="search"] {
  min-width: 0;
  min-height: 46px;
  padding: 0.5rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bto-community-ink);
  font: inherit;
}

.bto-community__search button,
.bto-community__forum-filter button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--bto-community-green);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.bto-community__search:focus-within { outline: 3px solid #a9d184; outline-offset: 2px; }

.bto-community__discovery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.bto-community__discovery-tabs a {
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bto-community-green-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.bto-community__discovery-tabs a[aria-current="page"] {
  border-color: var(--bto-community-green);
  background: var(--bto-community-green);
  color: #fff;
}

.bto-community__forum-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.bto-community__forum-filter label { font-weight: 700; }
.bto-community__forum-filter select {
  min-height: 44px;
  min-width: min(100%, 260px);
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  border: 1px solid #b9c5bb;
  border-radius: 9px;
  background: #fff;
  color: var(--bto-community-ink);
}

.bto-community__results { margin-top: 1.5rem; }
.bto-community__results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.85rem; }
.bto-community__results-heading h3 { margin: 0; color: var(--bto-community-ink); font-size: 1.25rem; }
.bto-community__results-heading span { color: var(--bto-community-muted); font-size: 0.88rem; }
.bto-community__result-list { display: grid; gap: 0.8rem; }

.bto-community__result-card {
  padding: 1rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 13px;
  background: #fff;
}

.bto-community__result-card h4 { margin: 0.4rem 0; font-size: 1.12rem; }
.bto-community__result-card h4 a { color: var(--bto-community-ink); text-decoration: none; }
.bto-community__result-card h4 a:hover,
.bto-community__result-card h4 a:focus-visible { color: var(--bto-community-green); text-decoration: underline; }
.bto-community__result-card p { margin: 0.4rem 0 0.7rem; color: var(--bto-community-muted); }
.bto-community__result-card footer { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--bto-community-muted); font-size: 0.82rem; }

.bto-community__heading {
  max-width: 670px;
  margin: 0 0 1.5rem;
}

.bto-community .bto-community__heading h2 {
  margin: 0;
  color: var(--bto-community-ink);
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.bto-community .bto-community__heading > p:last-child {
  margin: 0.7rem 0 0;
  color: var(--bto-community-muted);
}

#bto-community-topics,
#bto-community-publish { scroll-margin-top: 7rem; }

.bto-community .bto-community__heading > p.bto-community__publish-note {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--bto-community-green);
  border-radius: 0 8px 8px 0;
  background: var(--bto-community-soft);
  color: var(--bto-community-green-dark);
  font-size: 0.9rem;
  font-weight: 650;
}

.bto-community .bto-community__heading > p.bto-community__publish-note:target {
  outline: 3px solid #f0b83e;
  outline-offset: 3px;
}

.bto-community__forum-grid {
  display: grid;
  gap: 1rem;
}

.bto-community__forum-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 17px;
  background: var(--bto-community-paper);
  box-shadow: 0 8px 25px rgba(24, 45, 30, 0.055);
  transition: transform 0.2s, border-color 0.2s;
}

.bto-community__forum-card:hover {
  border-color: #96b99b;
  transform: translateY(-3px);
}

.bto-community__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--bto-community-lime);
  color: var(--bto-community-green-dark);
}

.bto-community__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bto-community .bto-community__forum-card h3,
.bto-community .bto-community__topic h3 {
  color: var(--bto-community-ink);
  font-weight: 750;
  line-height: 1.3;
}

.bto-community .bto-community__forum-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.bto-community .bto-community__forum-card h3 a,
.bto-community .bto-community__forum-card h3 a:link,
.bto-community .bto-community__forum-card h3 a:visited,
.bto-community .bto-community__topic h3 a,
.bto-community .bto-community__topic h3 a:link,
.bto-community .bto-community__topic h3 a:visited {
  color: var(--bto-community-ink);
  text-decoration: none;
}

.bto-community .bto-community__forum-card h3 a:hover,
.bto-community .bto-community__forum-card h3 a:focus-visible,
.bto-community .bto-community__topic h3 a:hover,
.bto-community .bto-community__topic h3 a:focus-visible {
  color: var(--bto-community-green);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.bto-community .bto-community__forum-card p {
  margin: 0 0 0.7rem;
  color: var(--bto-community-muted);
  font-size: 0.94rem;
}

.bto-community__count {
  color: var(--bto-community-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.bto-community a.bto-community__start,
.bto-community a.bto-community__start:visited {
  margin-left: 0.7rem;
  color: var(--bto-community-green);
  font-size: 0.82rem;
  font-weight: 750;
}

.bto-community__topic-list { border-block: 1px solid var(--bto-community-line); }

.bto-community__topic {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.8rem;
  min-width: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--bto-community-line);
}

.bto-community__topic:last-child { border: 0; }

.bto-community__avatar img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
}

.bto-community__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--bto-community-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.bto-community__meta > * + *::before {
  content: "·";
  margin-right: 0.7rem;
}

.bto-community .bto-community__meta a,
.bto-community .bto-community__meta a:visited {
  color: var(--bto-community-green);
  text-decoration: none;
}

.bto-community .bto-community__topic h3 {
  margin: 0.28rem 0;
  font-size: 1.06rem;
}

.bto-community .bto-community__topic p {
  margin: 0.35rem 0 0;
  color: var(--bto-community-muted);
  font-size: 0.9rem;
}

.bto-community__replies {
  display: none;
  text-align: center;
}

.bto-community__replies strong,
.bto-community__replies span { display: block; }

.bto-community__replies span {
  color: var(--bto-community-muted);
  font-size: 0.72rem;
}

.bto-community__more { text-align: right; }

.bto-community .bto-community__more a,
.bto-community .bto-community__more a:visited {
  color: var(--bto-community-green);
  font-weight: 750;
}

.bto-community__empty {
  padding: 2rem;
  border: 1px dashed #aebcb0;
  border-radius: 16px;
  background: var(--bto-community-soft);
  text-align: center;
}

.bto-community .bto-community__empty h3 {
  margin: 0;
  color: var(--bto-community-ink);
}

.bto-community :focus-visible {
  outline: 3px solid #f0b83e;
  outline-offset: 3px;
}

@media (max-width: 479px) {
  .bto-community__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bto-community a.bto-community__button { width: 100%; }
}

@media (min-width: 700px) {
  .bto-community__hero { padding-block: 3.25rem 3.5rem; }
  .bto-community__section { padding-block: 3.25rem; }
  .bto-community__forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bto-community__topic { grid-template-columns: 48px minmax(0, 1fr) 70px; gap: 1rem; }
  .bto-community__avatar img { width: 48px; height: 48px; }
  .bto-community__replies { display: block; }
}

@media (max-width: 520px) {
  .bto-community__search { grid-template-columns: 22px minmax(0, 1fr); }
  .bto-community__search button { grid-column: 1 / -1; width: 100%; }
  .bto-community__forum-filter select,
  .bto-community__forum-filter button { width: 100%; }
}

@media (min-width: 1100px) {
  .bto-community__hero { padding-block: 3.5rem 3.75rem; }
  .bto-community__section { padding-block: 3.5rem; }
  .bto-community__section--conversations { padding-top: 1rem; }
  .bto-community__forum-card { padding: 1.5rem; }
}

/* Forum and topic reading experience. Native bbPress forms remain authoritative. */
.bto-community--forum,
.bto-community--topic {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.25rem) 4rem;
  overflow: visible;
}

.bto-community--forum > .bbp-search-form,
.bto-community--topic > .bbp-search-form { display: none; }

.bto-community__breadcrumb {
  margin-bottom: 1rem;
  color: var(--bto-community-muted);
  font-size: 0.82rem;
}

.bto-community__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bto-community__breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #9aa69c;
}

.bto-community .bto-community__breadcrumb a,
.bto-community .bto-community__breadcrumb a:visited {
  color: var(--bto-community-green);
  text-decoration: none;
}

.bto-community__internal-header {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f2f7ee, #fff);
}

.bto-community__topic-header .bto-community__meta { margin-top: 0.9rem; }
.bto-community__topic-header .bto-community__badges { margin-top: 0.75rem; }

.bto-community .bto-community__internal-header h1 {
  margin: 0;
  color: var(--bto-community-ink);
  font-size: clamp(1.85rem, 7vw, 3.25rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.bto-community__internal-description {
  max-width: 720px;
  margin-top: 0.75rem;
  color: var(--bto-community-muted);
}

.bto-community .bto-community__internal-description p { margin: 0; }

.bto-community__internal-stats {
  margin: 0.75rem 0 0;
  color: var(--bto-community-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.bto-community a.bto-community__button--solid,
.bto-community a.bto-community__button--solid:link,
.bto-community a.bto-community__button--solid:visited {
  background: var(--bto-community-green);
  color: #fff;
}

.bto-community a.bto-community__button--solid:hover,
.bto-community a.bto-community__button--solid:focus-visible {
  background: var(--bto-community-green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.bto-community a.bto-community__button--solid:active {
  background: #173d25;
  color: #fff;
  transform: translateY(0);
}

.bto-community__internal-section { margin-top: 2.25rem; }

.bto-community .bto-community__internal-section > h2,
.bto-community .bto-community__section-title h2 {
  margin: 0 0 1rem;
  color: var(--bto-community-ink);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 750;
  line-height: 1.2;
}

.bto-community__discussion-list {
  overflow: hidden;
  border: 1px solid var(--bto-community-line);
  border-radius: 18px;
  background: var(--bto-community-paper);
}

.bto-community__discussion-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.85rem;
  min-width: 0;
  padding: 1.1rem;
  border-bottom: 1px solid var(--bto-community-line);
}

.bto-community__discussion-card:last-child { border-bottom: 0; }
.bto-community__discussion-card.is-sticky { background: #f7faef; }

.bto-community .bto-community__discussion-card h2 {
  margin: 0.25rem 0;
  color: var(--bto-community-ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}

.bto-community .bto-community__discussion-card h2 a,
.bto-community .bto-community__discussion-card h2 a:visited {
  color: var(--bto-community-ink);
  text-decoration: none;
}

.bto-community .bto-community__discussion-card h2 a:hover,
.bto-community .bto-community__discussion-card h2 a:focus-visible {
  color: var(--bto-community-green);
  text-decoration: underline;
}

.bto-community .bto-community__discussion-body > p {
  margin: 0.45rem 0 0;
  color: var(--bto-community-muted);
  font-size: 0.9rem;
}

.bto-community__discussion-count {
  display: none;
  align-self: center;
  color: var(--bto-community-muted);
  text-align: center;
}

.bto-community__discussion-count strong,
.bto-community__discussion-count span { display: block; }
.bto-community__discussion-count span { font-size: 0.72rem; }

.bto-community__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bto-community__badge {
  display: inline-flex;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: var(--bto-community-lime);
  color: var(--bto-community-green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bto-community__badge--muted {
  background: #e8ece9;
  color: #526057;
}

.bto-community__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  color: var(--bto-community-muted);
  font-size: 0.84rem;
}

.bto-community .bto-community__pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0.15rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 9px;
  color: var(--bto-community-green-dark);
  text-decoration: none;
}

.bto-community .bto-community__pagination .current {
  border-color: var(--bto-community-green);
  background: var(--bto-community-green);
  color: #fff;
}

.bto-community__topic-header { margin-bottom: 1rem; }
.bto-community__topic-header .bto-community__eyebrow a { color: var(--bto-community-green); }

.bto-community__topic-actions,
.bto-community__native-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bto-community__topic-actions { margin: 0 0 1rem; }

.bto-community__management {
  margin: 0 0 1.25rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 10px;
  background: var(--bto-community-soft);
}

.bto-community__management summary {
  padding: 0.65rem 0.8rem;
  color: var(--bto-community-green-dark);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.bto-community__management .bto-community__native-actions {
  margin: 0;
  padding: 0 0.8rem 0.8rem;
  border: 0;
}

.bto-community .bto-community__topic-actions a,
.bto-community .bto-community__topic-actions a:visited,
.bto-community .bto-community__native-actions a,
.bto-community .bto-community__native-actions a:visited {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bto-community-green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.bto-community .bto-community__topic-actions a:hover,
.bto-community .bto-community__topic-actions a:focus-visible,
.bto-community .bto-community__native-actions a:hover,
.bto-community .bto-community__native-actions a:focus-visible {
  border-color: var(--bto-community-green);
  background: var(--bto-community-soft);
  color: var(--bto-community-green-dark);
}

/* Keep native topic actions visually aligned despite bbp Style Pack button rules. */
.bto-community.bto-community--topic .bto-community__topic-actions a {
  min-height: 44px;
  height: 44px;
  line-height: 1.25;
}

/* bbp Style Pack adds .bsp_button1 and can otherwise make this link white on white. */
.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1,
.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:link,
.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:visited {
  border-color: var(--bto-community-line);
  background: #fff;
  color: var(--bto-community-green-dark);
}

.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:hover,
.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:focus-visible {
  border-color: var(--bto-community-green);
  background: var(--bto-community-soft);
  color: var(--bto-community-green-dark);
}

.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:focus-visible {
  outline: 3px solid rgba(47, 107, 59, 0.28);
  outline-offset: 2px;
}

.bto-community.bto-community--topic .bto-community__topic-actions a.subscription-toggle.bsp_button1:active {
  border-color: var(--bto-community-green-dark);
  background: var(--bto-community-green-dark);
  color: #fff;
}

.bto-community__post {
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 16px;
  background: var(--bto-community-paper);
  box-shadow: 0 7px 22px rgba(24, 45, 30, 0.045);
}

.bto-community__post--lead { border-top: 4px solid var(--bto-community-green); }

.bto-community__post-author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.bto-community__post-avatar img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
}

.bto-community .bto-community__post-author strong,
.bto-community .bto-community__post-author strong a,
.bto-community .bto-community__post-author strong a:visited {
  color: var(--bto-community-ink);
  font-weight: 750;
  text-decoration: none;
}

.bto-community .bto-community__post-date,
.bto-community .bto-community__post-date:visited {
  display: block;
  color: var(--bto-community-muted);
  font-size: 0.76rem;
  text-decoration: none;
}

.bto-community__post-content {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  color: var(--bto-community-ink);
  overflow-wrap: anywhere;
}

.bto-community__forum-card > div,
.bto-community__discussion-body { min-width: 0; }

.bto-community .bto-community__forum-card h3 {
  word-break: normal;
  overflow-wrap: normal;
}

.bto-community__count {
  display: inline-flex;
  white-space: nowrap;
}

.bto-community__post-content > :first-child { margin-top: 0; }
.bto-community__post-content > :last-child { margin-bottom: 0; }

.bto-community__post-content img,
.bto-community__post-content iframe,
.bto-community__post-content video {
  max-width: 100%;
  height: auto;
}

.bto-community__post-content pre {
  max-width: 100%;
  padding: 0.85rem;
  overflow-x: auto;
  border-radius: 10px;
  background: #18221b;
  color: #f7faf7;
}

.bto-community__native-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bto-community-line);
}

.bto-community__replies-list { margin-top: 1.5rem; }

.bto-community__native-form {
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid var(--bto-community-line);
  border-radius: 16px;
  background: var(--bto-community-soft);
}

.bto-community__native-form fieldset.bbp-form {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bto-community__native-form legend {
  color: var(--bto-community-ink);
  font-size: 1.2rem;
  font-weight: 750;
}

.bto-community__native-form input[type="text"],
.bto-community__native-form input[type="password"],
.bto-community__native-form input[type="email"],
.bto-community__native-form select,
.bto-community__native-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem;
  border: 1px solid #b9c5bb;
  border-radius: 8px;
  background: #fff;
  color: var(--bto-community-ink);
}

.bto-community__native-form .bbp-submit-wrapper button,
.bto-community__native-form .bbp-submit-wrapper input[type="submit"] {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 9px;
  background: var(--bto-community-green);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.bto-community__publishing {
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 38px rgba(24, 44, 30, 0.08);
}

.bto-community__publish-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--bto-community-line);
  background: linear-gradient(135deg, var(--bto-community-soft), #fff);
}

.bto-community__publish-header h2 {
  margin: 0.2rem 0 0.45rem;
  color: var(--bto-community-ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.1;
}

.bto-community__publish-header p:not(.bto-community__eyebrow) {
  max-width: 68ch;
  margin: 0 0 0.6rem;
  color: var(--bto-community-muted);
}

.bto-community__publish-return,
.bto-community__publish-cancel {
  color: var(--bto-community-green);
  font-weight: 700;
  text-decoration: none;
}

.bto-community__publishing > .bbp-topic-form,
.bto-community__publishing > .bbp-reply-form,
.bto-community__publishing > #bbpress-forums,
.bto-community__publishing > .bbpress-wrapper {
  padding: 1.25rem;
}

.bto-community__publishing fieldset.bbp-form > legend {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 1rem;
  overflow: visible;
  white-space: normal;
}

.bto-community__publishing .bbp-the-content-wrapper,
.bto-community__publishing .wp-editor-wrap {
  width: 100%;
  max-width: 100%;
}

.bto-community__publishing .wp-editor-container {
  overflow: hidden;
  border-color: #b9c5bb;
  border-radius: 8px;
}

.bto-community #new-post { scroll-margin-top: 7rem; }

.bto-community__publishing .wp-editor-tabs,
.bto-community__publishing .quicktags-toolbar,
.bto-community__publishing .mce-toolbar-grp {
  max-width: 100%;
}

body.bbpress #new-post .wp-editor-tools {
  min-height: 0;
  margin-bottom: 0.25rem;
}

body.bbpress #new-post .wp-editor-tabs {
  display: flex;
  float: right;
  gap: 0.2rem;
  align-items: flex-end;
  max-width: 100%;
}

body.bbpress #new-post .wp-editor-tabs > br { display: none; }

body.bbpress #new-post .wp-switch-editor {
  float: none;
  top: 0;
  min-height: 2rem;
  height: auto;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 6px 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

body.bbpress #new-post .tmce-active .switch-tmce,
body.bbpress #new-post .html-active .switch-html {
  border-color: #b9c5bb;
  border-bottom-color: #fff;
  background: #fff;
  color: var(--bto-community-green-dark);
  font-weight: 700;
}

.bto-community__publishing .quicktags-toolbar,
.bto-community__publishing .mce-toolbar-grp {
  overflow-x: auto;
}

.bto-community__publishing .quicktags-toolbar {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem;
  -webkit-overflow-scrolling: touch;
}

.bto-community__publishing .quicktags-toolbar .ed_button {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.bto-community__publishing textarea.bbp-the-content {
  min-height: 240px;
  resize: vertical;
}

.bto-community__publishing .bbp-submit-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bto-community-line);
  float: none;
}

.bto-community__publishing .bbp-submit-wrapper button,
.bto-community__publishing .bbp-submit-wrapper input[type="submit"] { order: 1; }
.bto-community__publishing .bbp-submit-wrapper .bto-community__publish-cancel { order: 2; }

.bto-community__publishing .bbp-template-notice,
.bto-community__publishing .bbp-template-notice.error,
.bto-community__publishing .bbp-template-notice.info {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d9b96e;
  border-radius: 9px;
  background: #fff9e8;
  color: var(--bto-community-ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bto-community__publishing .bbp-template-notice ul { margin: 0; }

.bto-community__publishing .bbp-form > p,
.bto-community__publishing .bbp-form > div > p {
  margin-block: 0.8rem;
}

.bto-community__publishing .bbp-form label {
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 479px) {
  .bto-community #new-post { scroll-margin-top: 6.25rem; }
  .bto-community__publishing .quicktags-toolbar { gap: 0.2rem; padding: 0.25rem; }
  .bto-community__publishing .quicktags-toolbar .ed_button { min-height: 1.9rem; padding: 0.18rem 0.38rem; font-size: 0.7rem; }
  body.bbpress #new-post .wp-editor-tabs { gap: 0.1rem; }
  body.bbpress #new-post .wp-switch-editor { min-height: 1.9rem; padding: 0.24rem 0.45rem; font-size: 0.75rem; }
  .bto-community__publishing .bbp-template-notice,
  .bto-community__publishing .bbp-template-notice.error,
  .bto-community__publishing .bbp-template-notice.info { padding: 0.65rem 0.75rem; font-size: 0.86rem; }
  .bto-community__publishing textarea.bbp-the-content { min-height: 13rem; }
}

@media (min-width: 700px) {
  .bto-community--forum,
  .bto-community--topic { padding-top: 2rem; }

  .bto-community__internal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 2rem;
  }

  .bto-community__discussion-card {
    grid-template-columns: 48px minmax(0, 1fr) 72px;
    padding: 1.25rem;
  }

  .bto-community__discussion-count { display: block; }
  .bto-community__post { padding: 1.5rem; }
  .bto-community__post-avatar img { width: 52px; height: 52px; }
  .bto-community__native-form { padding: 1.5rem; }
  .bto-community__publishing { padding: 0; }
  .bto-community__publish-header,
  .bto-community__publishing > .bbp-topic-form,
  .bto-community__publishing > .bbp-reply-form,
  .bto-community__publishing > #bbpress-forums,
  .bto-community__publishing > .bbpress-wrapper { padding: 1.5rem; }
  .bto-community__publishing textarea.bbp-the-content { min-height: 300px; }
}

@media (min-width: 760px) {
  .bto-community--forum .bto-community__forum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
