/* Hub thread style (preview 2026-12-04). Source: runs/2026-12-04_hub_threads/hub-threads.css
   Ported from the bebetter sandbox layer runs/2026-11-17_bebetter_community_build/v2/forum/dist/forum.css
   section 1 (feed card kicker) and section 5 (crisp threads), plus the reply/composer rules of v2/head.html.
   Everything hangs off html.hbt, which hub-threads.js sets on hub pages outside the Knowledge Base, Help Center,
   Academy and admin. Colours come from the --bm-* tokens that #hub-colors sets for light and dark, so the same rules
   serve both themes. Jacob's taste rules (HANDOVER rounds 8, 9, 14): flat cards on a hairline, no coloured edges or
   top rules, no kicker dots, bold titles, text actions. */
html.hbt{
  --hbt-ink:var(--bm-color-content,#182342);
  --hbt-body:var(--bm-color-content-subdued,#464F6B);
  --hbt-line:var(--bm-color-line,#E6E0D5);
  --hbt-surface:var(--bm-color-surface,#FFFFFF);
  --hbt-rise:var(--bm-color-background-hovered,#F4F1EA);
  --hbt-hover-line:var(--bm-color-content,#182342);
  --hbt-reach:var(--bm-color-link,#4B6BC7);
  --hbt-focus:var(--bm-color-focused,#6384E3);
}
html.hbt.bb-hub-dark{--hbt-hover-line:var(--bm-color-content-muted,#ADB6CB)}

/* 1. Kicker: mono caps type label in Reach, then the reply count. Sits above the author line. */
html.hbt .hbt-k{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 -6px;
  font-size:13px;line-height:1.3;color:var(--hbt-body);min-width:0}
html.hbt .hbt-t{font-family:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:var(--hbt-reach)}
html.hbt .hbt-s{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--hbt-body)}
html.hbt .hbt-s svg{width:15px;height:15px;flex:none}
/* on the post page the kicker sits in a column, not a wrapping row */
html.hbt .block-single-post .hbt-k{margin:0 0 2px}

/* 2. Cards: flat white on a hairline, 20px corners, no shadow; the border turns ink on hover. */
html.hbt main .block-posts .border-card,
html.hbt main .block-single-post .border-card{border-color:var(--hbt-line)!important;box-shadow:none!important}
/* phones keep the hub's full-bleed square cards; the 20px corner starts where cards float (Tailwind sm, 640px) */
@media (min-width:640px){
html.hbt main .block-posts .border-card,
html.hbt main .block-single-post .border-card{border-radius:20px!important}}
html.hbt main .block-posts .border-card.hbt-card{transition:border-color .15s}
html.hbt main .block-posts .border-card.hbt-card:hover{border-color:var(--hbt-hover-line)!important}
html.hbt main .block-posts .border-card .shadow-card{box-shadow:none!important}

/* 3. Type: bold tight titles, 17px body in Signal 80. */
html.hbt main .block-single-post h1{font-size:30px!important;line-height:1.15!important;letter-spacing:-0.02em!important;
  font-weight:700!important;color:var(--hbt-ink)!important;text-wrap:balance}
@media (max-width:639.98px){html.hbt main .block-single-post h1{font-size:25px!important}}
html.hbt main .block-posts .border-card h2,
html.hbt main .block-posts .border-card h3{font-weight:700!important;letter-spacing:-0.015em!important;color:var(--hbt-ink)!important}
html.hbt main .block-single-post .prose,
html.hbt main .block-posts .border-card.hbt-card .prose{font-size:17px;line-height:1.62;color:var(--hbt-body);max-width:68ch}
html.hbt main .block-single-post .prose :is(p,li),
html.hbt main .block-posts .border-card.hbt-card .prose :is(p,li){color:var(--hbt-body)}
html.hbt main .block-single-post .prose :is(h1,h2,h3,h4,strong,b),
html.hbt main .block-posts .border-card.hbt-card .prose :is(h2,h3,h4,strong,b){color:var(--hbt-ink)}
/* compact list rows (Ask the Community, Intros): only the title weight and ink change */
html.hbt main .block-posts ul.divide-y>li h2,
html.hbt main .block-posts ul.divide-y>li h3{font-weight:700!important;letter-spacing:-0.01em!important;color:var(--hbt-ink)!important}

/* 4. Actions: text buttons under a hairline instead of three outlined buttons.
   .hbt-acts = the highest ancestor of the Share button that holds no title or body (set by hub-threads.js). */
html.hbt .hbt-acts{flex-basis:100%;width:100%;border-top:1px solid var(--hbt-line);padding-top:12px;margin-top:4px;gap:2px!important}
html.hbt main .hbt-acts .rounded-button,
html.hbt main .hbt-acts button,
html.hbt main .hbt-acts a.rounded-button{border:0!important;background:transparent!important;box-shadow:none!important;
  min-height:0!important;height:36px!important;width:auto!important;padding:0 10px!important;border-radius:8px!important;
  color:var(--hbt-body)!important;font-size:15px!important;font-weight:500!important;display:inline-flex!important;align-items:center;gap:8px}
html.hbt main .hbt-acts .rounded-button:hover,
html.hbt main .hbt-acts button:hover{background:var(--hbt-rise)!important;color:var(--hbt-ink)!important}
html.hbt main .hbt-acts .rounded-button:focus-visible,
html.hbt main .hbt-acts button:focus-visible{outline:2px solid var(--hbt-focus)!important;outline-offset:2px}
html.hbt main .hbt-acts [aria-pressed="true"]{color:var(--hbt-ink)!important}
/* the three flex-1 slots shrink to their text, left aligned */
html.hbt .hbt-acts .flex-1:has(> button),
html.hbt .hbt-acts .flex-1:has(> a.rounded-button),
html.hbt .hbt-acts .flex-1:has(> div > .rounded-button),
html.hbt .hbt-acts .flex-1:has(> div > div > .rounded-button){flex:0 0 auto!important}
html.hbt .hbt-acts .relative.inline-block.w-full,
html.hbt .hbt-acts .w-full:has(> .rounded-button){width:auto!important}
html.hbt .hbt-acts .flex:has(> .flex-1 > button),
html.hbt .hbt-acts .flex:has(> .flex-1 > div > .rounded-button){justify-content:flex-start!important;gap:4px!important}

/* 5. Replies: no bubble, one thread line under the avatar (any avatar size: hub-threads.js sets --hbt-av),
   continuing through nested replies to the next reply. The last reply of a branch draws no line (.hbt-line is off). */
html.hbt .hbt-reply{position:relative}
html.hbt .hbt-reply>:first-child{position:relative}
html.hbt .hbt-reply.hbt-line>:first-child::after{content:"";position:absolute;left:50%;top:calc(var(--hbt-av,40px) + 6px);bottom:0;width:1px;
  margin-left:-.5px;background:var(--hbt-line);pointer-events:none}
html.hbt .hbt-reply.hbt-more>:first-child::after{bottom:-24px}
html.hbt .hbt-reply .rounded-avatar{position:relative;z-index:1}
html.hbt .hbt-nest{position:relative}
html.hbt .hbt-nest::before{content:"";position:absolute;left:calc(var(--hbt-pav,48px) / 2 - .5px);top:-24px;bottom:0;width:1px;
  background:var(--hbt-line);pointer-events:none}
html.hbt .hbt-nest.hbt-more::before{bottom:-24px}

/* 6. Reply composer: a white pill on a hairline; the sticky bar loses its shadow for a hairline. */
html.hbt main .hbt-composer{background:var(--hbt-surface)!important;border:1px solid var(--hbt-line)!important;border-radius:9999px!important;
  padding-left:16px!important;transition:border-color .15s}
html.hbt main .hbt-composer:hover{border-color:var(--hbt-hover-line)!important}
html.hbt main .hbt-composer:focus-visible{outline:2px solid var(--hbt-focus)!important;outline-offset:2px}
html.hbt main .hbt-sticky{box-shadow:0 -1px 0 var(--hbt-line)!important}
