/* Motion runs whatever the device's reduced-motion setting: the owner's call, 15 Nov 2026 (Windows with
   Animation effects off showed a half-still site). What used to wait for no-preference is @media all. */
/* ==========================================================================
   help.css — HeartBeat App help centre
   Layered on top of the main site's base.css + site.css, so it inherits every
   design token, the header/footer chrome and light/dark theming for free.
   Only doc-specific layout and components live here.
   ========================================================================== */

/* ---------- Header tweaks for the docs chrome ---------- */
/* Below the desktop breakpoint the search sits on its own full-width row, so the
   header has to wrap; from 1080px up everything must stay on one line or the
   second row overlaps the page content. */
.site-header .header-inner {
  flex-wrap: wrap;
  gap: 14px;
}
@media (min-width: 1080px) {
  .site-header .header-inner {
    flex-wrap: nowrap;
  }
}
.brand-tag {
  white-space: nowrap;
}
.nav-help ul {
  gap: 4px;
}
/* The "back to the main site" button is the first thing to go when space is tight
   — it's still in the drawer and the footer. */
@media (max-width: 1279px) {
  .header-actions .btn-ghost {
    display: none;
  }
}

/* ---------- Search ---------- */
.hsearch {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  order: 10;
  width: 100%;
  margin-bottom: 4px;
}
@media (min-width: 1080px) {
  .hsearch {
    order: 0;
    width: auto;
    flex: 1 1 180px;
    max-width: 340px;
    margin: 0 4px;
  }
}
.hsearch-ico {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.hsearch-input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-flat);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.hsearch-input::placeholder {
  color: var(--dim);
}
.hsearch-input:focus {
  outline: none;
  border-color: var(--brand-400);
  background: var(--bg);
}
.hsearch-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.hsearch-kbd {
  position: absolute;
  right: 13px;
  font-stretch: 90%;
  font-size: 0.7rem;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 1px 6px;
  pointer-events: none;
}
.hsearch-input:focus ~ .hsearch-kbd {
  display: none;
}

.hsearch-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--menu-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 6px;
}
.hsearch-panel[hidden] {
  display: none;
}
/* Above 1080px the header's search box shrinks to sit beside the nav, and its results
   panel inherited that width — every hit wrapped over four or five lines. Let the panel
   keep a readable width of its own, growing inward from the box's right edge so it never
   runs off the left of the screen. Below that breakpoint the box is full width already. */
@media (min-width: 1080px) {
  .hsearch:not(.hsearch-hero) .hsearch-panel {
    left: auto;
    width: min(400px, calc(100vw - 32px));
  }
}
.hsearch-hit {
  display: block;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  transition: background 0.15s var(--ease);
}
.hsearch-hit:hover,
.hsearch-hit.is-active {
  background: var(--surface-hover);
}
.hsearch-hit-cat {
  display: block;
  font-stretch: 90%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 3px;
}
.hsearch-hit-t {
  display: block;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
}
/* Which part of the guide the hit lands on — the anchor the link carries. */
.hsearch-hit-sec {
  font-weight: 500;
  color: var(--muted);
}
.hsearch-hit-d {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}
.hsearch-hit mark {
  background: color-mix(in srgb, var(--ink2) 45%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.hsearch-empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* A bigger search box for the help home hero. */
.hsearch-hero {
  max-width: 620px;
  margin: 0 auto;
  flex: 0 1 auto;
  order: 0;
  width: 100%;
}
.hsearch-hero .hsearch-input {
  padding: 16px 44px 16px 46px;
  font-size: 1rem;
}
.hsearch-hero .hsearch-ico {
  left: 17px;
  width: 19px;
  height: 19px;
}

/* ---------- Page shell ---------- */
/* The header is sticky (in the flow), so the page only needs breathing room. */
.doc-wrap {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

/* Headings, in the site's type: heavy, tight, sentence case. */
.doc-main h1, .help-hero h1 { font-weight: 900; font-stretch: 80%; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.doc-main h2, .help-sec > h2 { font-weight: 850; font-stretch: 86%; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.doc-main h3 { font-weight: 800; font-stretch: 90%; letter-spacing: -0.015em; line-height: 1.2; }

/* Links that are whole controls carry no underline; links in prose do (below). */
.doc-nav a, .hb-card, .doc-pager a, .hsearch-hit, .crumbs a, .help-cat-list a { text-decoration: none; }
.crumbs a:hover, .doc-nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.doc-nav ul, .hb-cards, .help-cat-list { list-style: none; }
.doc-grid {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1000px) {
  .doc-grid {
    grid-template-columns: 262px minmax(0, 1fr);
  }
}
.doc-grid > * {
  min-width: 0;
}

/* ---------- Sidebar ---------- */
.doc-side {
  position: relative;
}
@media (min-width: 1000px) {
  .doc-side {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
  }
}
.doc-side-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-flat);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 0.9rem;
}
.doc-side-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.doc-side.is-open .doc-side-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}
@media (min-width: 1000px) {
  .doc-side-toggle {
    display: none;
  }
}
.doc-nav {
  display: none;
  margin-top: 12px;
}
.doc-side.is-open .doc-nav {
  display: block;
}
@media (min-width: 1000px) {
  .doc-nav {
    display: block;
    margin-top: 0;
  }
}
.doc-nav-sec + .doc-nav-sec {
  margin-top: 22px;
}
.doc-nav-sec > h4 {
  font-stretch: 90%;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--dim);
  margin: 0 0 8px;
  padding-left: 12px;
}
.doc-nav-cat > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.doc-nav-cat > a:hover {
  background: var(--surface-hover);
}
.doc-nav-cat.is-current > a {
  color: var(--brand-ink);
}
.doc-nav-cat + .doc-nav-cat {
  margin-top: 2px;
}
.doc-nav-cat ul {
  margin: 2px 0 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  margin-left: 20px;
}
.doc-nav-cat li a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.doc-nav-cat li a:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.doc-nav-cat li a[aria-current='page'] {
  background: var(--surface-1);
  color: var(--brand-ink);
  font-weight: 700;
}

/* ---------- Article ---------- */
.doc-main {
  max-width: 78ch;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--dim);
  margin-bottom: 18px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--brand-ink);
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-stretch: 90%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-ink2);
  background: var(--ink2);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.doc-main h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 0.2em;
}
/* Who a guide is for: a quiet line under the title, not a label above it. */
.doc-meta {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--brand-ink);
  margin: 0 0 1.1em;
}
/* Phone captures stay at phone size, instead of filling the article column. */
.hb-shot img[src*="/shots/app-"],
.hb-shot img[src*="/shots/web-"] {
  max-width: 360px;
}
.hb-shot:has(img[src*="/shots/app-"]) .hb-zoom,
.hb-shot:has(img[src*="/shots/web-"]) .hb-zoom {
  max-width: 360px;
}
.hb-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 1.6em;
}
.hb-lead strong {
  color: var(--text-strong);
}
.doc-main h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 2em;
  margin-bottom: 0.6em;
  scroll-margin-top: 120px;
}
.doc-main h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  scroll-margin-top: 120px;
}
.doc-main p,
.doc-main li {
  line-height: 1.72;
}
.doc-main a:not(.btn):not(.hb-card) {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brand-ink) 40%, transparent);
}
.doc-main a:not(.btn):not(.hb-card):hover {
  text-decoration-color: currentColor;
}

/* Lists */
.hb-list {
  list-style: none;
  margin: 0 0 1.3em;
  padding: 0;
}
.hb-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 0.6em;
}
.hb-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}
/* A drawn tick, not a glyph. */
.hb-list-check li::before {
  left: 2px;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-radius: 0;
  background: none;
  border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink);
  transform: rotate(-45deg);
}
.doc-main ol:not(.hb-steps) {
  padding-left: 1.3em;
  list-style: decimal;
  margin-bottom: 1.3em;
}
.doc-main ol:not(.hb-steps) li {
  margin-bottom: 0.5em;
}

/* Numbered steps */
.hb-steps {
  counter-reset: hbstep;
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
}
.hb-steps > li {
  counter-increment: hbstep;
  position: relative;
  padding: 0 0 0 52px;
  margin-bottom: 1.15em;
}
.hb-steps > li::before {
  content: counter(hbstep);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--on-purple);
  font-stretch: 90%;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Callouts */
.hb-note,
.hb-tip,
.hb-warn,
.hb-gap {
  position: relative;
  --tone: var(--purple);
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--tone) 7%, var(--sheet));
  padding: 16px 18px;
  margin: 1.5em 0;
  font-size: 0.97rem;
  line-height: 1.65;
}
.hb-note { --tone: var(--purple); }
.hb-tip { --tone: var(--lime); }
.hb-warn { --tone: #b4531d; }
.hb-gap { --tone: var(--cyan); }
:root[data-theme='dark'] .hb-warn { --tone: #ff9a6b; }
.hb-note::before,
.hb-tip::before,
.hb-warn::before,
.hb-gap::before {
  font-stretch: 90%;
  font-size: 0.85rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  color: color-mix(in srgb, var(--tone) 70%, var(--ink));
}
.hb-note::before { content: 'Note'; }
.hb-tip::before { content: 'Tip'; }
.hb-warn::before { content: 'Important'; }
.hb-gap::before { content: 'Coming later'; }
.hb-note > :last-child,
.hb-tip > :last-child,
.hb-warn > :last-child,
.hb-gap > :last-child {
  margin-bottom: 0;
}

/* UI path + keys, e.g. Dashboard → Media library → Hosts */
.hb-path,
.hb-kbd {
  display: inline-block;
  font-stretch: 90%;
  font-size: 0.84em;
  font-weight: 700;
  line-height: 1.5;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--text-strong);
  white-space: nowrap;
}
.doc-main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  word-break: break-word;
}
.doc-main pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line);
  margin: 1.4em 0;
}
.doc-main pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Spec / definition rows */
.hb-spec {
  margin: 1.5em 0;
  border-top: 1px solid var(--line);
}
.hb-spec > div {
  display: grid;
  gap: 4px 24px;
  grid-template-columns: 1fr;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .hb-spec > div {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
.hb-spec dt {
  font-stretch: 90%;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-strong);
}
.hb-spec dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Tables */
.doc-main .hb-table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
}
.doc-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.doc-main th,
.doc-main td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc-main th {
  font-stretch: 90%;
  font-size: 0.85rem;
  color: var(--text-strong);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}

/* Screenshot placeholder frame */
.hb-shot {
  margin: 1.8em 0;
}
.hb-shot-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(
      135deg,
      var(--surface-2) 0 12px,
      transparent 12px 24px
    ),
    var(--surface-flat);
  display: grid;
  place-items: center;
}
.hb-shot-frame::after {
  content: 'Screenshot';
  font-stretch: 90%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dim);
}
.hb-shot img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  width: 100%;
}
.hb-shot figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Zoomable screenshots
   ------------------------------------------------------------------
   The site's picture viewer (site.js imageViewer, styled in site.css) wraps
   every screenshot in a .hb-zoom button and opens it with zoom and drag.
   Only the help centre's own touches are here. */
/* Screenshots stay pasted flat: hover only darkens the edge. */
.hb-zoom:hover img {
  border-color: var(--rule-strong);
}
.hb-zoom:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 3px;
}

/* Card grids (next steps, category listings) */
/* auto-FILL, not auto-fit: a section with a single card should render a normal
   card, not one stretched across the full width. */
.hb-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  margin: 1.6em 0;
}
.hb-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-flat);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.hb-card:hover {
  border-color: var(--brand-400);
  background: var(--paper-2);
}
/* Articles still carry emoji in their cards; the system draws no icons, so they
   are hidden here rather than edited out of a hundred files. */
.hb-card-ico {
  display: none;
}
.hb-card-t {
  display: block;
  font-stretch: 90%;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 5px;
}
.hb-card-d {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Home / category hero + listings ---------- */
.help-hero {
  text-align: center;
  padding: 8px 0 clamp(14px, 2.4vw, 26px);
}
.help-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 0.4em;
}
.help-hero .lead {
  margin-inline: auto;
  margin-bottom: 26px;
}
.help-sec {
  margin-top: clamp(38px, 5vw, 62px);
}
.help-sec > h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.help-cat-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.help-cat-list li {
  border-bottom: 1px solid var(--line);
}
/* Listing rows are whole-row links, so they must opt out of the underlined
   in-article link styling set on .doc-main a. */
.doc-main .help-cat-list a:not(.btn) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 18px;
  align-items: baseline;
  padding: 13px 6px;
  transition: background 0.15s var(--ease), padding-left 0.2s var(--ease);
  border-radius: var(--r-sm);
  color: inherit;
  text-decoration: none;
}
@media (min-width: 700px) {
  .doc-main .help-cat-list a:not(.btn) {
    grid-template-columns: minmax(180px, 240px) 1fr;
  }
}
.doc-main .help-cat-list a:not(.btn):hover {
  background: var(--surface-hover);
  padding-left: 14px;
  text-decoration: none;
}
.help-cat-list b {
  font-stretch: 90%;
  color: var(--text-strong);
  font-weight: 700;
}
.help-cat-list span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Article footer: prev/next + feedback ---------- */
.doc-foot {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc-pager {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.doc-pager a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.doc-pager a:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
}
.doc-pager small {
  display: block;
  font-stretch: 90%;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--dim);
  margin-bottom: 3px;
}
.doc-pager b {
  font-stretch: 90%;
  color: var(--text-strong);
  line-height: 1.35;
}
.doc-pager .is-next {
  text-align: right;
}

.doc-help {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-flat);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.doc-help p {
  margin: 0;
  font-stretch: 90%;
  font-weight: 700;
  font-size: 0.95rem;
}
.doc-help-actions {
  display: flex;
  gap: 10px;
}
.doc-help button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 20px;
  font-stretch: 90%;
  font-weight: 700;
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.doc-help button:hover {
  border-color: var(--brand-400);
  background: var(--surface-hover);
}
.doc-help.is-done .doc-help-actions {
  display: none;
}

/* ---------- Per-client personalisation ---------- */
/* Written by help.js when a guide is opened as ?client=<public id>. The page ships with the
   generic wording, so everything here is about marking what has been swapped rather than
   about making the page work. */

/* Sections the article only shows to one side of the audience. [hidden] is honoured by the
   UA stylesheet, but these wrappers are also given display by the rules around them, so it
   is spelled out. */
.hb-if[hidden] {
  display: none !important;
}

/* A value that is genuinely this client's, rather than the example. Quiet on purpose - it
   should read as part of the sentence, not as a highlighted variable. */
.hb-var.is-personal {
  border-bottom: 1px dashed var(--brand-400);
}
/* Not under a heading: at display sizes the dash reads as a stray rule rather than a marker. */
.doc-main h1 .hb-var.is-personal,
.doc-main h2 .hb-var.is-personal,
.doc-main h3 .hb-var.is-personal {
  border-bottom: 0;
}
.doc-main code.hb-var.is-personal {
  border-color: var(--brand-400);
  border-bottom-style: solid;
  color: var(--text-strong);
}

/* Only ever shown for an id the portal doesn't recognise — personalisation itself is silent. */
.hb-client-bar {
  /* The header is sticky and in the flow now, so the bar sits straight under it. */
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-1);
}
/* The room the page reserves for the header is now taken by the bar. */
body.has-hb-client-bar .doc-wrap {
  padding-top: 28px;
}
.hb-client-bar[hidden] {
  display: none;
}
.hb-client-bar-in {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}
.hb-client-bar-in p {
  margin: 0;
}
.hb-client-bar-in b {
  color: var(--text-strong);
}
.hb-client-bar-in code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.hb-client-bar.is-unknown {
  border-bottom-color: var(--accent-2);
}
@media (max-width: 640px) {
  .hb-client-bar-in {
    padding: 9px var(--gutter);
  }
}

/* ---------- Footer ---------- */
.help-footer {
  margin-top: 0;
}

/* ---------- Motion ---------- */
