/* =====================================================================
   BumpBuddy shared style layer (added 17 Nov 2026)
   ---------------------------------------------------------------------
   The hand-drawn look that matches the Instagram template bank:
   chunky Nunito headlines, the site palette plus lavender, blush and
   apricot tints, torn paper edges, taped notes, brush strokes and
   sparkles.

   How it works: every page keeps its own styles, then loads this file
   last, so anything here wins. To undo the new look on a page, remove
   the two lines marked "New hand-drawn style" in that page's <head>.

   Page types are set by a class on <body>:
     bb-home     homepage
     bb-hub      guides hub (/guides/)
     bb-guide    a single guide
     bb-dir      directory pages (doulas, midwives, classes)
     bb-profile  a provider profile
   No wording, prices or structured data are changed by this file.
   ===================================================================== */

:root {
  --bb-deep: #5a3080;
  --bb-mid: #7c4ab0;
  --bb-pink: #c05a9f;
  --bb-cream: #fdf4ee;
  --bb-blush: #f6dcea;
  --bb-lavender: #d6c4f0;
  --bb-apricot: #f4a680;
  --bb-apricot-tint: #fde3d4;
  --bb-paper: #fffbf7;
  --bb-head: 'Nunito', sans-serif;
  --bb-hand: 'Caveat', cursive;
  --bb-torn: 22px; /* height of torn paper edges */
}

/* ---------- 1. Headlines: DM Serif Display becomes chunky Nunito ---------- */
h1, h2,
.hero-headline, .section-title, .promise-title, .guide-title,
.guide-article h2, .guide-article .summary-title, .list-hero h1,
.dir-faq h2, .get-listed h2, .cta-band h2, .facts3 h3, .serif,
.doula-name, .doula-biz, .biz, .from b, .sticky-bar .from b,
.price-card .amount, .step::before,
.bump-shape .initial, .arch .initials {
  font-family: var(--bb-head);
  font-weight: 900;
  letter-spacing: -0.015em;
}
.quote-band blockquote, .testimonial blockquote {
  font-family: var(--bb-head);
  font-weight: 800;
  letter-spacing: -0.01em;
}
/* Business names under provider names stay lighter so the name leads */
.doula-biz, .biz { font-weight: 800; }
.story p:first-of-type::first-letter { font-family: var(--bb-head); font-weight: 900; }

/* Handwritten accents */
.callout.says .callout-title,
.bb-profile .sec-label, .bb-profile .hero-copy .eyebrow {
  font-family: var(--bb-hand);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--bb-pink);
}

/* ---------- 2. Brand tints for card and hero backgrounds ---------- */
.thumb-1 { background: linear-gradient(135deg, #f8e0f0, var(--bb-blush)); }
.thumb-2 { background: linear-gradient(135deg, #e9dcf8, var(--bb-lavender)); }
.thumb-3 { background: linear-gradient(135deg, #fdeee6, var(--bb-apricot-tint)); }
.thumb-4 { background: linear-gradient(135deg, #efe6fa, #e2d4f4); }
.thumb-5 { background: linear-gradient(135deg, #fbe7f1, #f3d2e4); }
.thumb-6 { background: linear-gradient(135deg, #fff1e8, #fbdccb); }
.find-box { background: var(--bb-lavender); }
.promise-icon { background: var(--bb-blush); }

/* ---------- 3. Torn paper edges on the purple bands ---------- */
.cta-band, .quote-band {
  -webkit-mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
          mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
}
footer, .site-footer {
  -webkit-mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% 100% no-repeat;
          mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% 100% no-repeat;
  padding-top: calc(2.5rem + var(--bb-torn));
}

/* Mailing list band: flat deep purple with hand-drawn marks */
.cta-band { background: var(--bb-deep); padding-top: calc(3.5rem + var(--bb-torn)); padding-bottom: calc(3.5rem + var(--bb-torn)); }
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 0; opacity: 1; transform: none;
  background-color: transparent; background-repeat: no-repeat; background-size: contain; pointer-events: none;
}
.cta-band::before { width: 56px; height: 56px; top: 48px; right: 9%; left: auto; bottom: auto; background-image: url(/images/style/sparkle-apricot.webp); }
.cta-band::after { width: 220px; height: 36px; bottom: 44px; left: -20px; top: auto; right: auto; background-image: url(/images/style/squiggle-pink.webp); }
.cta-inner { position: relative; z-index: 1; }

/* ---------- 4. Taped notes ---------- */
.summary-card, .get-listed-inner {
  background: var(--bb-paper);
  border: 0;
  border-radius: 4px;
  box-shadow: 6px 10px 26px rgba(90, 48, 128, 0.16);
  transform: rotate(-0.6deg);
  position: relative;
}
.summary-card::before, .summary-card::after,
.get-listed-inner::before, .get-listed-inner::after {
  content: ''; position: absolute; inset: auto; border: 0; border-radius: 0; opacity: 1; z-index: 2;
  width: 104px; height: 60px; background: url(/images/style/tape-lavender.webp) center / contain no-repeat;
}
.summary-card::before, .get-listed-inner::before { top: -22px; left: -22px; transform: rotate(-24deg); }
.summary-card::after, .get-listed-inner::after { top: -22px; right: -22px; transform: rotate(20deg); }
.get-listed-inner::before, .get-listed-inner::after { background-image: url(/images/style/tape-pink.webp); }
.get-listed { margin-top: 3rem; }

/* "BumpBuddy says" callout */
.callout.says { background: var(--bb-paper); border-left-color: var(--bb-pink); }

/* ---------- 5. Homepage (rebuilt to match the mock-up) ---------- */
.bbh-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.bbh-hand {
  font-family: var(--bb-hand); font-weight: 700; font-size: 2rem; line-height: 1.1;
  color: var(--bb-pink); margin: 0 0 0.35rem; transform: rotate(-2deg); transform-origin: left center;
}
.bbh-h1 {
  font-family: var(--bb-head); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 5.2vw, 4.1rem); color: var(--bb-deep); margin: 0 0 1.25rem;
}
.bbh-underline {
  color: var(--bb-pink); white-space: nowrap; padding-bottom: 0.1em;
  background: url(/images/style/brush-underline-pink.webp) 0 100% / 100% 0.24em no-repeat;
}
.bbh-h2 {
  font-family: var(--bb-head); font-weight: 900; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--bb-deep); margin: 0 0 1.75rem;
}
.bbh-lede { font-size: 1.15rem; line-height: 1.6; color: var(--text-soft, #6b5080); max-width: 31rem; margin: 0 0 1.75rem; }
.bbh-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bbh-btn {
  display: inline-block; font-family: var(--bb-head); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  background: var(--bb-deep); color: #fff; padding: 0.95rem 1.75rem; border-radius: 999px; transition: background 0.2s;
}
.bbh-btn:hover { background: var(--bb-mid); color: #fff; }
.bbh-btn-alt { background: transparent; color: var(--bb-deep); box-shadow: inset 0 0 0 2px var(--bb-deep); }
.bbh-btn-alt:hover { background: var(--bb-deep); color: #fff; }
.bbh-suggest { display: inline-block; margin-top: 1.1rem; color: var(--bb-mid); font-weight: 600; font-size: 0.95rem; }
.bbh-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; }
.bbh-trust li {
  display: flex; align-items: center; gap: 0.4rem; background: rgba(255, 251, 247, 0.85);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--bb-deep);
}
.bbh-trust svg { color: var(--bb-pink); }

.bbh-hero { padding: 3.25rem 0 4.5rem; overflow: hidden; }
.bbh-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.bbh-hero-art { position: relative; min-height: 500px; }
.bbh-hero-art img[aria-hidden] { position: absolute; pointer-events: none; }
.bbh-brush { width: 130%; left: -18%; top: 24%; transform: rotate(-8deg); z-index: 0; }
.bbh-burst { width: 66px; right: 0; top: -2%; }
.bbh-spark-a { width: 42px; left: 2%; top: 6%; }
.bbh-spark-b { width: 30px; left: 30%; bottom: 2%; }
.bbh-face { position: absolute; z-index: 1; text-decoration: none; display: block; }
.bbh-face-1 { width: 54%; left: 6%; top: 0; }
.bbh-face-2 { width: 46%; right: 2%; top: 38%; }
.bbh-face::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 5 / 6; z-index: -1;
  border: 2px solid var(--bb-pink); border-radius: 58% 42% 55% 45% / 62% 55% 45% 38%;
  transform: translate(12px, 12px) rotate(3deg);
}
.bbh-bump {
  display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--bb-lavender);
  border-radius: 58% 42% 55% 45% / 62% 55% 45% 38%; transition: transform 0.25s;
}
.bbh-face:hover .bbh-bump { transform: scale(1.03); }
.bbh-bump img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbh-tag {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%) rotate(-3deg); white-space: nowrap;
  background: var(--bb-pink); color: #fff; font-family: var(--bb-head); font-weight: 800; font-size: 0.95rem;
  padding: 0.45rem 1rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(90, 48, 128, 0.18);
}
.bbh-face-2 .bbh-tag { background: var(--bb-mid); transform: translateX(-50%) rotate(2deg); }
/* One provider in the hero (while only Amy is live): centre her and make the photo bigger */
.bbh-hero-art--single .bbh-face-1 { width: 66%; left: 17%; top: 4%; }
.bbh-hero-art--single .bbh-brush { top: 30%; }
.bbh-hero-art--single .bbh-spark-b { left: auto; right: 10%; bottom: 8%; }

/* Coloured bands with torn paper edges top and bottom */
.bbh-band {
  position: relative; padding: calc(3.75rem + var(--bb-torn)) 0; margin: 0.6rem 0;
  -webkit-mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
          mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
}
.bbh-band::before, .bbh-band::after { content: ''; position: absolute; pointer-events: none; background: center / contain no-repeat; }
.bbh-deep { background: var(--bb-deep); color: #fff; }
.bbh-deep .bbh-h2 { color: #fff; }
.bbh-deep::before { width: 46px; height: 46px; top: 54px; right: 6%; background-image: url(/images/style/sparkle-apricot.webp); }
.bbh-blush { background: var(--bb-blush); }
.bbh-blush::before { width: 40px; height: 40px; top: 50px; right: 4%; background-image: url(/images/style/sparkle-pink.webp); }
.bbh-lavender { background: var(--bb-lavender); }
.bbh-lavender::before { width: 220px; height: 36px; top: 34%; left: -24px; background-image: url(/images/style/squiggle-mid.webp); }
.bbh-lavender::after { width: 64px; height: 70px; bottom: 16%; right: 8%; background-image: url(/images/style/starburst-deep.webp); }

.bbh-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 3rem; align-items: center; }
.bbh-cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.bbh-card { background: var(--bb-mid); border-radius: 22px; padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.bbh-num { font-family: var(--bb-hand); font-weight: 700; font-size: 2.7rem; line-height: 0.8; color: var(--bb-apricot); min-width: 1.4rem; }
.bbh-card b { display: block; font-family: var(--bb-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 0.3rem; color: #fff; }
.bbh-card div > span { color: rgba(255, 255, 255, 0.86); font-size: 0.97rem; line-height: 1.5; }
.bbh-links { margin: 1.6rem 0 0; }
.bbh-links a { white-space: nowrap; color: #fff; font-family: var(--bb-head); font-weight: 800; margin-right: 1.5rem; text-underline-offset: 4px; }
.bbh-links a:hover { color: var(--bb-blush); }
.bbh-pebbles { width: 100%; max-width: 210px; justify-self: center; }

.bbh-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.bbh-head-row .bbh-h2 { margin: 0; }
.bbh-more { font-family: var(--bb-head); font-weight: 800; color: var(--bb-deep); text-underline-offset: 4px; }
.blog-tile { background: var(--bb-paper); border-color: transparent; box-shadow: 0 6px 0 var(--bb-lavender); }
.blog-tile:hover { box-shadow: 0 9px 0 var(--bb-lavender); }

.bbh-note {
  position: relative; max-width: 660px; margin: 0 auto; text-align: center;
  background: var(--bb-paper); padding: 3.25rem 2.75rem 2.75rem; transform: rotate(-1.2deg);
  box-shadow: 8px 14px 30px rgba(90, 48, 128, 0.2);
}
.bbh-note::before, .bbh-note::after {
  content: ''; position: absolute; top: -24px; width: 130px; height: 74px;
  background: url(/images/style/tape-pink.webp) center / contain no-repeat;
}
.bbh-note::before { left: -32px; transform: rotate(-20deg); }
.bbh-note::after { right: -32px; transform: rotate(16deg); }
.bbh-note .bbh-h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.bbh-note p { color: var(--text-soft, #6b5080); font-size: 1.05rem; line-height: 1.6; margin: 0 auto; max-width: 30rem; }
.bbh-note .bbh-hand { color: var(--bb-pink); font-size: 2.3rem; transform-origin: center; margin: 1rem auto 1.4rem; }

.bb-home .cta-band { margin-top: 0.6rem; }

@media (max-width: 860px) {
  .bbh-hero { padding-top: 2rem; }
  .bbh-hero-grid, .bbh-band-grid { grid-template-columns: 1fr; }
  .bbh-hero-art { min-height: 0; aspect-ratio: 1 / 1.02; max-width: 440px; width: 100%; margin: 0.5rem auto 0; }
  .bbh-pebbles { max-width: 150px; }
  .bbh-cards4 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bbh-hand { font-size: 1.7rem; }
  .bbh-band { padding: calc(2.75rem + var(--bb-torn)) 0; }
  .bbh-note { padding: 2.75rem 1.4rem 2.2rem; transform: rotate(-0.6deg); }
  .bbh-note::before { left: -6px; width: 92px; height: 52px; }
  .bbh-note::after { right: -6px; width: 92px; height: 52px; }
  .bbh-lavender::before { display: none; }
  .bbh-lavender::after { width: 44px; height: 48px; bottom: 10px; right: 12px; }
  .bbh-tag { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
  .bbh-deep::before { width: 30px; height: 30px; top: 22px; right: 14px; }
  .bbh-blush::before { width: 28px; height: 28px; top: 22px; right: 14px; }
}

/* Section titles on guide pages get a brush underline */
.section-title {
  display: inline-block;
  padding-bottom: 0.18em;
  background: url(/images/style/brush-underline-pink.webp) 0 100% / 100% 0.24em no-repeat;
}

/* ---------- 6. Guide pages and guides hub ---------- */
.guide-hero {
  border-bottom: 0;
  -webkit-mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--bb-torn) + 1px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
          mask:
    linear-gradient(#000, #000) 0 0 / 100% calc(100% - var(--bb-torn) + 1px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
}
.guide-hero-inner { padding-bottom: calc(2.75rem + var(--bb-torn)); }
.guide-hero::before, .guide-hero::after {
  border-radius: 0; background-color: transparent; background-repeat: no-repeat; background-size: contain; pointer-events: none;
}
.guide-hero::before { width: 52px; height: 52px; top: 26px; right: 7%; background-image: url(/images/style/sparkle-apricot.webp); }
.guide-hero::after { width: 200px; height: 34px; bottom: 34px; left: -18px; background-image: url(/images/style/squiggle-mid.webp); }
.guide-hero-icon { position: relative; background: var(--bb-paper); box-shadow: none; }
.guide-hero-icon::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 290px; aspect-ratio: 900 / 516; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-10deg);
  background: url(/images/style/brush-stroke-cream.webp) center / contain no-repeat;
}
.guide-hero-icon::after {
  content: ''; position: absolute; width: 36px; height: 36px; right: -6px; bottom: 4px; pointer-events: none;
  background: url(/images/style/sparkle-pink.webp) center / contain no-repeat;
}

/* ---------- 7. Directory pages ---------- */
.bb-dir .list-hero { position: relative; padding-right: 6rem; }
.bb-dir .list-hero::after {
  content: ''; position: absolute; width: 58px; height: 64px; top: 18px; right: 1.5rem;
  background: url(/images/style/starburst-deep.webp) center / contain no-repeat; pointer-events: none;
}
.bb-dir .list-hero h1 {
  display: inline;
  padding-bottom: 0.1em;
  background: url(/images/style/brush-underline-pink.webp) 0 100% / 100% 0.2em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.bb-dir .list-hero h1 + * { margin-top: 1rem; }
.trust-strip { background: transparent; border: 0; }

/* Directory bands: the page heading sits on a light pink torn band, and the
   "Are you a doula?" note on a lavender band (wrappers added by apply_style.py) */
.bb-dir-hero { padding: var(--bb-torn) 0; margin-top: 0; }
.bb-dir-hero .list-hero { padding-top: 1.5rem; padding-bottom: 2.25rem; }
.bb-dir-cta { padding: calc(1.5rem + var(--bb-torn)) 0; margin: 2.5rem 0 1rem; }
.bb-dir-cta .get-listed { margin: 1.5rem auto; }
.doula-card { background: var(--bb-paper); border-color: transparent; box-shadow: 0 6px 0 var(--bb-lavender); }
.trust-item { background: var(--bb-paper); border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.4rem; }

/* ---------- 8. Provider profiles (light touch: they should feel calm) ---------- */
.bb-profile .arch-wrap::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 150%; aspect-ratio: 900 / 516; left: -25%; top: 54%; transform: translateY(-50%) rotate(-8deg);
  background: url(/images/style/brush-stroke-lavender.webp) center / contain no-repeat;
}
.bb-profile .arch-wrap::after {
  content: ''; position: absolute; z-index: 3; pointer-events: none;
  width: 40px; height: 40px; top: 2%; right: -6%;
  background: url(/images/style/sparkle-apricot.webp) center / contain no-repeat;
}
.bb-profile .quote-band { padding-top: calc(56px + var(--bb-torn)); padding-bottom: calc(56px + var(--bb-torn)); }
.bb-profile .glance-card { background: var(--bb-paper); }

/* Prices sit on a light pink torn-paper strip, cards as paper notes */
.bb-profile .prices {
  background: var(--bb-blush); border-radius: 0; box-shadow: none;
  padding-top: calc(48px + var(--bb-torn)); padding-bottom: calc(48px + var(--bb-torn));
  -webkit-mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
          mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
}
.bb-profile .price-card { background: var(--bb-paper); border-color: transparent; box-shadow: 0 6px 0 var(--bb-lavender); }
.bb-profile .price-card:hover { border-color: transparent; box-shadow: 0 9px 0 var(--bb-lavender); }

/* "How it works" steps: purple cards with handwritten apricot numbers, as on the homepage */
.bb-profile .step { background: var(--bb-mid); color: #fff; border-radius: 22px; }
.bb-profile .step::before { font-family: var(--bb-hand); font-weight: 700; font-size: 3rem; line-height: 0.9; color: var(--bb-apricot); letter-spacing: 0; }
.bb-profile .step h3 { color: #fff; }
.bb-profile .step p { color: rgba(255, 255, 255, 0.88); }

/* Credentials as a taped paper note */
.bb-profile .creds { background: var(--bb-paper); border-radius: 4px; box-shadow: 6px 10px 26px rgba(90, 48, 128, 0.16); transform: rotate(-0.5deg); position: relative; }
.bb-profile .creds::before, .bb-profile .creds::after {
  content: ''; position: absolute; top: -22px; width: 104px; height: 60px; pointer-events: none;
  background: url(/images/style/tape-lavender.webp) center / contain no-repeat;
}
.bb-profile .creds::before { left: -22px; transform: rotate(-24deg); }
.bb-profile .creds::after { right: -22px; transform: rotate(20deg); }

/* Family quote on a lavender torn strip */
.bb-profile .testimonial {
  background: var(--bb-lavender); border-radius: 0; position: relative;
  padding-top: calc(48px + var(--bb-torn)); padding-bottom: calc(48px + var(--bb-torn));
  -webkit-mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
          mask:
    url(/images/style/torn-mask-top.png) top / 100% var(--bb-torn) no-repeat,
    linear-gradient(#000, #000) 0 calc(var(--bb-torn) - 1px) / 100% calc(100% - 2 * var(--bb-torn) + 2px) no-repeat,
    url(/images/style/torn-mask-bottom.png) bottom / 100% var(--bb-torn) no-repeat;
}
.bb-profile .testimonial::after {
  content: ''; position: absolute; width: 56px; height: 62px; right: 5%; top: calc(18px + var(--bb-torn)); pointer-events: none;
  background: url(/images/style/starburst-deep.webp) center / contain no-repeat;
}

/* Closing "Say hello" with hand-drawn marks */
.bb-profile .enquiry { position: relative; }
.bb-profile .enquiry::before, .bb-profile .enquiry::after { content: ''; position: absolute; pointer-events: none; background: center / contain no-repeat; }
.bb-profile .enquiry::before { width: 210px; height: 34px; left: -10px; top: 40%; background-image: url(/images/style/squiggle-pink.webp); }
.bb-profile .enquiry::after { width: 44px; height: 44px; right: 12%; top: 18%; background-image: url(/images/style/sparkle-apricot.webp); }

@media (max-width: 760px) {
  :root { --bb-torn: 14px; }
  .bb-dir .list-hero::after, .guide-hero::after { display: none; }
  .bb-dir .list-hero { padding-right: 1.5rem; }
  .cta-band::before { width: 30px; height: 30px; top: 18px; right: 14px; }
  .cta-band::after { width: 150px; height: 24px; bottom: 22px; }
  .summary-card, .get-listed-inner { transform: none; }
  .summary-card::before, .get-listed-inner::before { left: -4px; width: 84px; height: 48px; }
  .summary-card::after, .get-listed-inner::after { right: -4px; width: 84px; height: 48px; }
  .bb-profile .arch-wrap::before { width: 124%; left: -12%; }
  .bb-profile .arch-wrap::after { right: 0; }
  .bb-profile .creds { transform: none; }
  .bb-profile .creds::before { left: -4px; width: 84px; height: 48px; }
  .bb-profile .creds::after { right: -4px; width: 84px; height: 48px; }
  .bb-profile .enquiry::before { display: none; }
  .bb-profile .testimonial::after { width: 38px; height: 42px; right: 12px; top: calc(8px + var(--bb-torn)); }
}

/* Safety net: decorations must never make the page scroll sideways */
html, body { overflow-x: clip; }
