/* Follow card + doodle wallpaper on every profile page (body.bf). Added by follow_pass.py.
   Desktop: the tall ID card scrolls away and a short card with the page's own buttons follows you.
   The background is the homepage hero's pet doodle pattern, cut into a 384 x 386 tile, used as a mask. */

/* ---------- doodle wallpaper ---------- */
.bf .biz-bg { display: none; }
.bf .biz-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(25, 42, 79, .075);
  -webkit-mask: url(/business/img/doodle.webp) 0 0 / 384px 386px repeat;
          mask: url(/business/img/doodle.webp) 0 0 / 384px 386px repeat;
}
@media (max-width: 720px) { .bf .biz-main::before { opacity: .6; } }

/* ---------- follow card ---------- */
.side-follow { display: none; }
@media (min-width: 1081px) {
  .bf .b-layout { align-items: stretch; }
  .bf .b-side { position: static; align-content: start; grid-template-rows: auto auto 1fr; }
  .bf .side-follow { position: sticky; top: 88px; align-self: start; display: grid; gap: 16px; }
}
.fol { padding: 16px; display: grid; gap: 14px; }
.fol-top { display: flex; align-items: center; gap: 12px; }
.fol-top img, .fol-ph { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.fol-ph { display: grid; place-items: center; background: linear-gradient(160deg, #EFF4F8 0%, #E6EEE9 100%); color: #9DB0C3; }
.fol-ph svg { width: 22px; height: 22px; }
.fol-top b { display: block; font-weight: 600; font-size: 16px; line-height: 20px; letter-spacing: -.3px; }
.fol-top span { font-size: 12px; color: var(--b-muted); }
.fol-mid { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--b-line); border-radius: 10px; }
.fol-mid .score::before { inset: 4px; }
.fol-mid .score b { font-size: 14px; color: var(--b-green); }
.fol-lbl { display: grid; gap: 2px; min-width: 0; }
.fol-lbl small { font-size: 11px; color: var(--b-muted); }
.fol-lbl strong { font-weight: 600; font-size: 14px; color: var(--b-green); }
.fol-rate { margin-left: auto; display: grid; justify-items: end; gap: 2px; }
.fol-rate span { display: inline-flex; align-items: center; gap: 4px; }
.fol-rate b { font-weight: 600; font-size: 16px; }
.fol-rate small { font-size: 11px; color: var(--b-muted); text-decoration: underline; text-underline-offset: 2px; }
.fol-mid.plain { background: var(--b-panel); border-color: transparent; }
.fol-mid.plain .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--b-line); color: var(--b-ink-2); flex: none; }
.fol-mid.plain .ic svg { width: 16px; height: 16px; }
.fol-mid.plain strong { color: var(--b-ink); }
.fol-mid.plain .bpill { margin-left: auto; flex: none; }

/* shown once the ID card's buttons have scrolled away, so the two never sit together */
@media (min-width: 1081px) {
  .bf .side-follow { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .bf .side-follow.on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .bf .side-follow, .bf .side-follow.on { transition: none; transform: none; } }
