/* sd-forum-v3: jet black + sleek Dogood classicism */
/* Scoped palette — darker than site Courant parchment browns */
.sd-forum,.sd-courant.bbpress{
  --sd-paper:#070707;
  --sd-paper-2:#0a0a0a;
  --sd-paper-3:#050505;
  --sd-sheet:#0e0e0e;
  --sd-sheet-2:#121212;
  --sd-ink:#f0ebe3;
  --sd-ink-soft:#c8c0b4;
  --sd-muted:#8a8478;
  --sd-rule:#2a2a2a;
  --sd-rule-soft:#1a1a1a;
  --sd-brass:#9a8255;
  --sd-red:#b01f32;
  --sd-red-deep:#8e1c2b;
  --sd-link:#e07a68;
  --sd-on-red:#f7f1e8;
}

/* page panel sits on jet */
.sd-courant.bbpress .entry{padding:0!important;background:transparent!important;box-shadow:none!important}
.sd-courant.bbpress .entry article{
  background:var(--sd-sheet)!important;
  border:1px solid var(--sd-rule)!important;
  border-top:2px solid var(--sd-red)!important;
  border-radius:2px;
  padding:1.6em 6% 2em!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.6),0 18px 40px -20px rgba(0,0,0,.95)!important;
}
.sd-courant.bbpress .entry article:before{display:none!important}
@media (max-width:40em){ .sd-courant.bbpress .entry article{padding:1.25em 4% 1.6em!important} }

.sd-forum .post-content{max-width:none!important;text-align:left!important;font-size:1em}
.sd-forum .post-content p{text-align:left!important;-webkit-hyphens:manual;hyphens:manual}
.sd-forum .post-header .post-title{letter-spacing:.04em;font-weight:400}
.sd-forum-lede{color:var(--sd-ink-soft);font-style:italic;margin:0 0 1.35em!important;text-align:center!important;letter-spacing:.01em}

#bbpress-forums{font-family:var(--sd-serif);font-size:1rem;line-height:1.55;color:var(--sd-ink);background:transparent;margin:0 0 2em}
#bbpress-forums a,#bbpress-forums a:link,#bbpress-forums a:visited{color:var(--sd-link);text-decoration:none}
#bbpress-forums a:hover,#bbpress-forums a:focus{color:var(--sd-ink);text-decoration:underline;text-decoration-color:var(--sd-red);text-underline-offset:.15em}

/* notice bar — single sleek red rules, not double antique */
.sd-forum-bar{
  border:0;
  border-top:1px solid var(--sd-red);
  border-bottom:1px solid var(--sd-red);
  margin:0 0 1.4em;
  padding:.55em .15em;
  background:linear-gradient(180deg,rgba(176,31,50,.08),transparent 70%);
}
.sd-forum-bar p{display:flex;flex-wrap:wrap;gap:.3em 1.2em;justify-content:space-between;align-items:baseline;margin:0!important;font-size:.92em;color:var(--sd-ink-soft)}
.sd-forum-bar .sd-forum-what{font-style:italic}
.sd-forum-bar .sd-forum-links{font-variant:small-caps;letter-spacing:.14em}
.sd-forum-bar .sd-forum-signin{
  color:var(--sd-on-red)!important;background:var(--sd-red);padding:.18em .85em;
  border:1px solid var(--sd-red);letter-spacing:.12em;font-variant:small-caps;
}
.sd-forum-bar .sd-forum-signin:hover{background:var(--sd-red-deep);border-color:var(--sd-link);text-decoration:none!important}

/* breadcrumb + search */
#bbpress-forums div.bbp-breadcrumb{font-size:.8em;font-variant:small-caps;letter-spacing:.12em;color:var(--sd-muted);margin-bottom:.75em}
#bbpress-forums div.bbp-breadcrumb p{font-size:inherit}
#bbpress-forums .bbp-breadcrumb-sep{color:var(--sd-red);padding:0 .3em;opacity:.9}
#bbpress-forums .bbp-search-form{margin-bottom:.9em}

/* tables */
#bbpress-forums ul.bbp-lead-topic,#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-replies,#bbpress-forums ul.bbp-search-results{
  font-size:.95rem;
  border:1px solid var(--sd-rule);
  border-top:2px solid var(--sd-red);
  background:var(--sd-paper-2);
  margin-bottom:1.4em;
  border-radius:2px;
  overflow:hidden;
}
#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-footer{
  background:var(--sd-paper-3);
  border-top:1px solid var(--sd-rule-soft);
  color:var(--sd-muted);
  font-family:var(--sd-serif);font-weight:400;font-variant:small-caps;
  letter-spacing:.16em;font-size:.84em;padding:.6em 1em;
}
#bbpress-forums li.bbp-header{border-top:0;border-bottom:1px solid rgba(176,31,50,.55)}
#bbpress-forums li.bbp-footer{display:none}
#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{
  border-top:1px solid var(--sd-rule-soft);padding:.85em 1em!important;
  transition:background-color .15s ease;
}
#bbpress-forums li.bbp-body ul.forum:first-child,#bbpress-forums li.bbp-body ul.topic:first-child{border-top:0}
#bbpress-forums div.even,#bbpress-forums ul.even{background-color:var(--sd-paper-2)}
#bbpress-forums div.odd,#bbpress-forums ul.odd{background-color:var(--sd-sheet)}
#bbpress-forums li.bbp-body ul.forum:hover,#bbpress-forums li.bbp-body ul.topic:hover{background-color:rgba(176,31,50,.11)}
#bbpress-forums a.bbp-forum-title,#bbpress-forums .bbp-forum-title{
  font-family:var(--sd-display);font-size:1.16em;color:var(--sd-ink)!important;
  display:inline-block;margin-bottom:.12em;letter-spacing:.015em;
}
#bbpress-forums a.bbp-forum-title:hover{color:var(--sd-link)!important}
#bbpress-forums .bbp-forum-content{color:var(--sd-ink-soft);font-size:.93em;line-height:1.45;margin:.1em 0 0}
#bbpress-forums a.bbp-topic-permalink{font-family:var(--sd-display);font-size:1.05em;color:var(--sd-ink)!important;letter-spacing:.01em}
#bbpress-forums a.bbp-topic-permalink:hover{color:var(--sd-link)!important}
#bbpress-forums p.bbp-topic-meta,#bbpress-forums .bbp-topic-started-by,#bbpress-forums .bbp-topic-started-in{color:var(--sd-muted);font-size:.85em}
#bbpress-forums li.bbp-forum-topic-count,#bbpress-forums li.bbp-forum-reply-count,#bbpress-forums li.bbp-topic-voice-count,#bbpress-forums li.bbp-topic-reply-count{color:var(--sd-ink-soft);font-variant-numeric:tabular-nums}
#bbpress-forums li.bbp-forum-freshness,#bbpress-forums li.bbp-topic-freshness{font-size:.86em;color:var(--sd-muted)}
#bbpress-forums p.bbp-topic-meta img.avatar,#bbpress-forums .bbp-author-avatar img.avatar,#bbpress-forums img.avatar{
  border:1px solid var(--sd-rule);filter:grayscale(.7) brightness(.9);border-radius:1px;opacity:.92;
}
#bbpress-forums .bbp-forums-list{border-left:1px solid var(--sd-rule)}
#bbpress-forums ul.sticky,#bbpress-forums ul.super-sticky,.bbp-topics-front ul.super-sticky,.bbp-topics ul.super-sticky,.bbp-topics ul.sticky,.bbp-forum-content ul.sticky{
  background-color:rgba(176,31,50,.1)!important;box-shadow:inset 3px 0 0 var(--sd-red);
}
#bbpress-forums ul.sticky a.bbp-topic-permalink:before,#bbpress-forums ul.super-sticky a.bbp-topic-permalink:before{
  content:"Notice";font-family:var(--sd-serif);font-size:.62em;font-variant:small-caps;
  letter-spacing:.18em;color:var(--sd-on-red);background:var(--sd-red);
  padding:.08em .6em .14em;margin-right:.6em;vertical-align:.2em;
}
#bbpress-forums ul.status-closed,#bbpress-forums ul.status-closed a{color:var(--sd-muted)!important}

/* topic + replies */
#bbpress-forums div.bbp-forum-header,#bbpress-forums div.bbp-topic-header,#bbpress-forums div.bbp-reply-header{
  background:var(--sd-paper-3);border-top:1px solid var(--sd-rule-soft);color:var(--sd-muted);font-size:.84em;padding:.45em 1em;
}
#bbpress-forums .bbp-reply-header a.bbp-reply-permalink,#bbpress-forums .bbp-topic-header a.bbp-topic-permalink{color:var(--sd-muted)!important;font-size:inherit;font-family:var(--sd-serif)}
#bbpress-forums div.bbp-reply-author,#bbpress-forums div.bbp-topic-author{color:var(--sd-ink-soft)}
#bbpress-forums div.bbp-reply-author a.bbp-author-name,#bbpress-forums div.bbp-topic-author a.bbp-author-name{
  font-family:var(--sd-display);font-size:1em;color:var(--sd-ink)!important;margin-top:.3em;
}
#bbpress-forums div.bbp-reply-author .bbp-author-role,#bbpress-forums div.bbp-topic-author .bbp-author-role{
  font-size:.72em;font-style:normal;font-variant:small-caps;letter-spacing:.14em;color:var(--sd-link);
}
#bbpress-forums div.bbp-reply-content,#bbpress-forums div.bbp-topic-content{color:var(--sd-ink);font-size:1.04em;line-height:1.65}
#bbpress-forums div.bbp-reply-content p,#bbpress-forums div.bbp-topic-content p{margin:0 0 .9em}
#bbpress-forums div.bbp-reply-content blockquote,#bbpress-forums div.bbp-topic-content blockquote{
  border-left:2px solid var(--sd-red);margin:.8em 0 .8em .2em;padding:.15em 0 .15em 1em;color:var(--sd-ink-soft);background:rgba(176,31,50,.05);
}
#bbpress-forums div.bbp-reply-content code,#bbpress-forums div.bbp-reply-content pre,#bbpress-forums div.bbp-topic-content code,#bbpress-forums div.bbp-topic-content pre{
  background:var(--sd-paper-3);border:1px solid var(--sd-rule);color:var(--sd-ink);
}
#bbpress-forums span.bbp-admin-links,#bbpress-forums span.bbp-admin-links a{color:var(--sd-muted)!important;font-size:.72em;letter-spacing:.08em}
#bbpress-forums span.bbp-admin-links a:hover{color:var(--sd-link)!important}
#bbpress-forums .bbp-topic-tags{color:var(--sd-muted);font-size:.85em}
#bbpress-forums div.bbp-reply-header .bbp-meta,#bbpress-forums .bbp-reply-post-date{color:var(--sd-muted)}

/* favorite / subscribe */
.bbp-row-actions #favorite-toggle a,.bbp-row-actions #subscription-toggle a,#bbpress-forums #subscription-toggle a,#bbpress-forums #favorite-toggle a{
  color:var(--sd-ink-soft)!important;background:transparent!important;border:1px solid var(--sd-rule)!important;
  font-variant:small-caps;letter-spacing:.1em;padding:.08em .6em .16em;font-size:.82em;border-radius:1px;
}
.bbp-row-actions #favorite-toggle a:hover,.bbp-row-actions #subscription-toggle a:hover,#bbpress-forums #subscription-toggle a:hover,#bbpress-forums #favorite-toggle a:hover{
  border-color:var(--sd-red)!important;color:var(--sd-ink)!important;text-decoration:none;
}
#bbpress-forums .is-subscribed a,#bbpress-forums .is-favorite a{border-color:var(--sd-red)!important;color:var(--sd-link)!important}

/* pagination */
#bbpress-forums .bbp-pagination{color:var(--sd-muted);font-size:.85em}
#bbpress-forums .bbp-pagination-links a,#bbpress-forums .bbp-pagination-links span.current,#bbpress-forums .bbp-topic-pagination a{
  border:1px solid var(--sd-rule);background:transparent;color:var(--sd-ink-soft)!important;border-radius:1px;
}
#bbpress-forums .bbp-pagination-links a:hover,#bbpress-forums .bbp-pagination-links span.current,#bbpress-forums .bbp-topic-pagination a:hover{
  background:rgba(176,31,50,.16);border-color:var(--sd-red);opacity:1;color:var(--sd-ink)!important;
}

/* notices */
#bbpress-forums div.bbp-template-notice,div.bbp-template-notice{
  background:var(--sd-paper-2);border:1px solid var(--sd-rule);border-left:3px solid var(--sd-red);
  color:var(--sd-ink-soft);border-radius:1px;padding:.4em 1em;margin:.6em 0 1em;
}
#bbpress-forums div.bbp-template-notice p,#bbpress-forums div.bbp-template-notice li{font-size:.92em;margin:.25em 0!important;list-style:none;color:var(--sd-ink-soft)}
#bbpress-forums div.bbp-template-notice ul{margin:0;padding:0}
#bbpress-forums div.bbp-template-notice a{color:var(--sd-link)}
#bbpress-forums div.bbp-template-notice.info{border-left-color:var(--sd-red)}
#bbpress-forums div.bbp-template-notice.error,#bbpress-forums div.bbp-template-notice.warning,#bbpress-forums div.bbp-template-notice.important{
  border-left-color:var(--sd-red);background:rgba(176,31,50,.12);
}

/* forms */
#bbpress-forums fieldset.bbp-form{
  border:1px solid var(--sd-rule);border-top:2px solid var(--sd-red);background:var(--sd-paper-2);
  padding:1.05em 1.15em;margin:0 0 1.2em;border-radius:2px;
}
#bbpress-forums fieldset.bbp-form legend{font-family:var(--sd-display);color:var(--sd-ink);font-size:1.1em;padding:0 .4em;font-weight:400}
#bbpress-forums fieldset.bbp-form label{color:var(--sd-ink-soft);font-size:.92em}
#bbpress-forums input[type=text],#bbpress-forums input[type=password],#bbpress-forums input[type=email],#bbpress-forums input[type=url],#bbpress-forums textarea,#bbpress-forums select,#bbpress-forums #bbp-your-profile fieldset input,#bbpress-forums #bbp-your-profile fieldset textarea,#bbpress-forums #bbp-your-profile fieldset select{
  background:#050505!important;color:var(--sd-ink)!important;border:1px solid var(--sd-rule)!important;
  border-radius:1px;font-family:var(--sd-serif);font-size:1rem;padding:.4em .55em;box-shadow:none;
}
#bbpress-forums input:focus,#bbpress-forums textarea:focus,#bbpress-forums select:focus{
  border-color:var(--sd-red)!important;outline:1px solid rgba(176,31,50,.45);outline-offset:0;
}
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content{font-size:1rem;line-height:1.55;min-height:12em}
#bbpress-forums div.bbp-the-content-wrapper div.quicktags-toolbar{background:var(--sd-paper-3);border:1px solid var(--sd-rule);border-bottom:0}
#bbpress-forums div.bbp-the-content-wrapper input.ed_button,#bbpress-forums .quicktags-toolbar input.button{
  background:transparent!important;color:var(--sd-ink-soft)!important;border:1px solid var(--sd-rule)!important;
  border-radius:1px;font-family:var(--sd-serif)!important;font-size:.82em!important;padding:.1em .5em!important;min-height:0;line-height:1.4;
}
#bbpress-forums div.bbp-the-content-wrapper input.ed_button:hover{border-color:var(--sd-red)!important;color:var(--sd-ink)!important}
#bbpress-forums button,#bbpress-forums .button,#bbpress-forums input[type=submit],#bbpress-forums button.submit{
  background:var(--sd-red);color:var(--sd-on-red)!important;border:1px solid var(--sd-red);border-radius:1px;
  font-family:var(--sd-serif);font-variant:small-caps;letter-spacing:.14em;font-size:.95rem;padding:.42em 1.25em;
  cursor:pointer;box-shadow:none;text-shadow:none;
}
#bbpress-forums button:hover,#bbpress-forums button:focus,#bbpress-forums .button:hover,#bbpress-forums input[type=submit]:hover{
  background:var(--sd-red-deep);border-color:var(--sd-link);
}
#bbpress-forums .form-allowed-tags{display:none}
#bbpress-forums .bbp-login-form .bbp-username label,#bbpress-forums .bbp-login-form .bbp-password label{display:inline-block;width:7em}
#bbpress-forums .bbp-login-form{max-width:30em}

/* profiles */
#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a{background:rgba(176,31,50,.2);color:var(--sd-ink)!important;opacity:1}
#bbpress-forums #bbp-single-user-details #bbp-user-navigation a{color:var(--sd-ink-soft)!important;padding:.2em .6em}
#bbpress-forums #bbp-user-wrapper h2.entry-title{font-family:var(--sd-display);color:var(--sd-ink);font-size:1.25em;text-transform:none;letter-spacing:0;text-align:left;border-bottom:1px solid var(--sd-rule)}
#bbpress-forums #bbp-user-body,#bbpress-forums .bbp-user-section p{color:var(--sd-ink-soft)}
#bbpress-forums #bbp-your-profile fieldset span.description{background:var(--sd-sheet);border:1px solid var(--sd-rule);color:var(--sd-muted)}

/* Author archive rule kill + row spacing */
.sd-forum .post-content p:last-child{padding-top:0!important;border-top:0!important}
#bbpress-forums div.bbp-reply-content p:last-child,#bbpress-forums div.bbp-topic-content p:last-child{margin-bottom:0}
#bbpress-forums li.bbp-header{padding:.6em 1em!important}
#bbpress-forums li.bbp-header li{font-size:.92em;letter-spacing:.08em}
#bbpress-forums li.bbp-forum-info,#bbpress-forums li.bbp-topic-title{padding-right:1em}
#bbpress-forums li.bbp-forum-freshness p.bbp-topic-meta,#bbpress-forums li.bbp-topic-freshness p.bbp-topic-meta{margin:.15em 0 0}

/* compact search */
#bbpress-forums .bbp-search-form{float:right;margin:0 0 .6em .8em}
#bbpress-forums .bbp-search-form form>div{display:flex;gap:0}
#bbpress-forums .bbp-search-form input[type=text]{width:11em;height:auto;padding:.3em .55em!important;font-size:.9rem}
#bbpress-forums .bbp-search-form input[type=submit],#bbpress-forums .bbp-search-form button{padding:.3em .85em;font-size:.82rem;margin:0;border-radius:0 1px 1px 0}
#bbpress-forums div.bbp-breadcrumb{padding-top:.35em}
.sd-forum-bar{clear:both}
.sd-forum-bar .sd-forum-links{white-space:nowrap}
@media (max-width:40em){
  .sd-forum-bar p{flex-direction:column;gap:.25em}
  #bbpress-forums .bbp-search-form{float:none;margin:0 0 .6em}
  #bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{padding:.7em .7em!important}
}
