/* =========================================================
   BestieBrief design system - v0.1
   Tokens are CSS custom properties on .bb (theme scope).
   Component classes match component names (bb-<component>).
   Maps to WordPress: tokens -> theme.json settings,
   bb-* blocks -> block styles / patterns.
   Fonts (OFL, self-hostable, variable):
   Newsreader (display serif) + Figtree (body sans)
   ========================================================= */

/* ---------- 1. Tokens: light (default) ---------- */
.bb {
  /* type */
  --bb-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --bb-font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* color: surfaces + text */
  --bb-bg: #fff6f8;
  --bb-surface: #ffffff;
  --bb-surface-2: #fdedf2;
  --bb-line: #f1d3dd;
  --bb-line-strong: #e3b5c5;
  --bb-ink: #2b1b24;          /* 15.4:1 on bg */
  --bb-muted: #7a5a68;        /* 5.7:1 on bg */

  /* color: pink family */
  --bb-pink: #ff5c8a;         /* FILLS + shapes only (2.8:1 on bg) */
  --bb-pink-600: #e2316e;     /* display text >= 24px (4.0:1) */
  --bb-pink-700: #c21f63;     /* links, small text, primary button fill (5.4:1) */
  --bb-pink-800: #9e1650;     /* hover / pressed */
  --bb-pink-soft: #ffd6e2;
  --bb-pink-wash: #ffe9f0;
  --bb-on-pink: #2b1b24;      /* text on --bb-pink (5.6:1) */
  --bb-on-pink-700: #ffffff;  /* text on --bb-pink-700 (5.7:1) */
  --bb-link: var(--bb-pink-700);
  --bb-link-hover: var(--bb-pink-800);
  --bb-focus: #5a1236;

  /* color: status */
  --bb-green: #1f6b45; --bb-green-bg: #dcf3e5;
  --bb-red: #a3203a;   --bb-red-bg: #fde0e4;
  --bb-amber: #7a4a00; --bb-amber-bg: #fff0cf;

  /* ads (neutral, never pink) */
  --bb-ad-bg: #f4eef0; --bb-ad-line: #d9cdd2; --bb-ad-ink: #6b5a61;

  /* section tints: bg + ink (ink >= 5.3:1 on its bg) */
  --bb-tint-glow-bg: #ffe5d6;    --bb-tint-glow-ink: #9a3b12;
  --bb-tint-friends-bg: #fff0c4; --bb-tint-friends-ink: #7a5200;
  --bb-tint-crush-bg: #ffdbe6;   --bb-tint-crush-ink: #b0174f;
  --bb-tint-family-bg: #dff1e1;  --bb-tint-family-ink: #2f6b3a;
  --bb-tint-mind-bg: #ebe3fc;    --bb-tint-mind-ink: #5b3fa6;
  --bb-tint-money-bg: #d8f2e8;   --bb-tint-money-ink: #1f6b55;
  --bb-tint-become-bg: #dcebfb;  --bb-tint-become-ink: #1f5aa0;
  --bb-tint-quizzes-bg: #f7def4; --bb-tint-quizzes-ink: #9b2a8f;
  --bb-tint: var(--bb-pink-wash);
  --bb-tint-ink: var(--bb-pink-700);

  /* spacing (4px base) */
  --bb-space-1: 4px;  --bb-space-2: 8px;  --bb-space-3: 12px;
  --bb-space-4: 16px; --bb-space-5: 24px; --bb-space-6: 32px;
  --bb-space-7: 48px; --bb-space-8: 64px; --bb-space-9: 96px;
  --bb-gutter: 16px;  /* 16 mobile, 32 desktop */

  /* radii */
  --bb-radius-sm: 8px; --bb-radius-md: 14px; --bb-radius-lg: 22px;
  --bb-radius-xl: 32px; --bb-radius-pill: 999px;

  /* shadows (plum-tinted, soft) */
  --bb-shadow-1: 0 1px 2px rgba(74, 20, 44, .06), 0 2px 8px rgba(74, 20, 44, .05);
  --bb-shadow-2: 0 2px 4px rgba(74, 20, 44, .06), 0 12px 28px rgba(74, 20, 44, .09);
  --bb-shadow-3: 0 20px 48px rgba(74, 20, 44, .16);

  /* type scale: fluid between 390 and 1280 */
  --bb-text-xs: .8125rem;   /* 13 */
  --bb-text-sm: .9375rem;   /* 15 */
  --bb-text-base: 1.0625rem;/* 17 */
  --bb-text-lg: 1.1875rem;  /* 19 */
  --bb-h4: 1.1875rem;
  --bb-h3: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --bb-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --bb-h1: clamp(2.125rem, 1.5rem + 2.5vw, 3.5rem);
  --bb-display: clamp(2.625rem, 1.7rem + 3.8vw, 4.75rem);

  --bb-measure: 680px;
  --bb-tap: 44px;
  --bb-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 1b. Tokens: dark ---------- */
.bb[data-theme="dark"] {
  --bb-bg: #1c1218;
  --bb-surface: #26181f;
  --bb-surface-2: #2f1f28;
  --bb-line: #3d2a33;
  --bb-line-strong: #573d49;
  --bb-ink: #fbe9ef;
  --bb-muted: #bf98a7;
  --bb-pink: #ff7aa0;
  --bb-pink-600: #ff7aa0;
  --bb-pink-700: #ff7aa0;
  --bb-pink-800: #ffa3bd;
  --bb-pink-soft: #4a2433;
  --bb-pink-wash: #33202a;
  --bb-on-pink: #1c1218;
  --bb-on-pink-700: #1c1218;
  --bb-focus: #ffd6e2;
  --bb-green: #8fdcb0; --bb-green-bg: #17301f;
  --bb-red: #ff9fae;   --bb-red-bg: #3a1a20;
  --bb-amber: #ffd48a; --bb-amber-bg: #33270f;
  --bb-ad-bg: #2a1e24; --bb-ad-line: #4a3841; --bb-ad-ink: #b5a3aa;
  --bb-tint-glow-bg: #3a2219;    --bb-tint-glow-ink: #ffb894;
  --bb-tint-friends-bg: #352c16; --bb-tint-friends-ink: #ffd77a;
  --bb-tint-crush-bg: #3d1a28;   --bb-tint-crush-ink: #ff9ebd;
  --bb-tint-family-bg: #1c2f22;  --bb-tint-family-ink: #9fd8a8;
  --bb-tint-mind-bg: #2a2240;    --bb-tint-mind-ink: #c7b5ff;
  --bb-tint-money-bg: #16302a;   --bb-tint-money-ink: #8fdcc2;
  --bb-tint-become-bg: #182a3d;  --bb-tint-become-ink: #9cc8ff;
  --bb-tint-quizzes-bg: #351c35; --bb-tint-quizzes-ink: #f2a6e8;
  --bb-shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --bb-shadow-2: 0 10px 28px rgba(0, 0, 0, .35);
  --bb-shadow-3: 0 20px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* follow the system when no theme is forced (production default) */
@media (prefers-color-scheme: dark) {
  .bb:not([data-theme]) {
    --bb-bg: #1c1218; --bb-surface: #26181f; --bb-surface-2: #2f1f28;
    --bb-line: #3d2a33; --bb-line-strong: #573d49;
    --bb-ink: #fbe9ef; --bb-muted: #bf98a7;
    --bb-pink: #ff7aa0; --bb-pink-600: #ff7aa0; --bb-pink-700: #ff7aa0; --bb-pink-800: #ffa3bd;
    --bb-pink-soft: #4a2433; --bb-pink-wash: #33202a;
    --bb-on-pink: #1c1218; --bb-on-pink-700: #1c1218; --bb-focus: #ffd6e2;
    --bb-ad-bg: #2a1e24; --bb-ad-line: #4a3841; --bb-ad-ink: #b5a3aa;
    color-scheme: dark;
  }
}

/* section tint mapping: data-section="glow" etc. */
[data-section="glow"]    { --bb-tint: var(--bb-tint-glow-bg);    --bb-tint-ink: var(--bb-tint-glow-ink); }
[data-section="friends"] { --bb-tint: var(--bb-tint-friends-bg); --bb-tint-ink: var(--bb-tint-friends-ink); }
[data-section="crush"]   { --bb-tint: var(--bb-tint-crush-bg);   --bb-tint-ink: var(--bb-tint-crush-ink); }
[data-section="family"]  { --bb-tint: var(--bb-tint-family-bg);  --bb-tint-ink: var(--bb-tint-family-ink); }
[data-section="mind"]    { --bb-tint: var(--bb-tint-mind-bg);    --bb-tint-ink: var(--bb-tint-mind-ink); }
[data-section="money"]   { --bb-tint: var(--bb-tint-money-bg);   --bb-tint-ink: var(--bb-tint-money-ink); }
[data-section="become"]  { --bb-tint: var(--bb-tint-become-bg);  --bb-tint-ink: var(--bb-tint-become-ink); }
[data-section="quizzes"] { --bb-tint: var(--bb-tint-quizzes-bg); --bb-tint-ink: var(--bb-tint-quizzes-ink); }

/* ---------- 2. Base ---------- */
body { margin: 0; background: #fff6f8; }
.bb {
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-base);
  line-height: 1.6;
  color: var(--bb-ink);
  background: var(--bb-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bb *, .bb *::before, .bb *::after { box-sizing: border-box; }
.bb h1, .bb h2, .bb h3, .bb h4 {
  font-family: var(--bb-font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.bb h1 { font-size: var(--bb-h1); font-weight: 600; letter-spacing: -.02em; }
.bb h2 { font-size: var(--bb-h2); }
.bb h3 { font-size: var(--bb-h3); }
.bb h4 { font-size: var(--bb-h4); }
.bb p { margin: 0; text-wrap: pretty; }
.bb a { color: var(--bb-link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
.bb a:hover { color: var(--bb-link-hover); }
.bb img { display: block; max-width: 100%; }
.bb :focus-visible { outline: 3px solid var(--bb-focus); outline-offset: 2px; border-radius: 6px; }
.bb button { font: inherit; color: inherit; }
.bb svg.bb-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bb svg.bb-i--sm { width: 16px; height: 16px; }
.bb svg.bb-i--lg { width: 28px; height: 28px; }
.bb mark { background: var(--bb-pink-soft); color: inherit; padding: 0 .12em; border-radius: 3px; }
.bb mark:empty { display: none; }
.bb .bb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .bb *, .bb *::before, .bb *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Layout ---------- */
.bb-page { min-height: 100vh; display: flex; flex-direction: column; }
.bb-main { flex: 1; }
.bb-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--bb-gutter); }
.bb-container--narrow { max-width: 760px; }
.bb-stack { display: flex; flex-direction: column; gap: var(--bb-space-4); }
.bb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bb-space-3); }
.bb-section { padding-block: var(--bb-space-7); }
.bb-section--tight { padding-block: var(--bb-space-6); }
.bb-grid { display: grid; gap: var(--bb-space-5); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.bb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.bb-article-layout { display: grid; gap: var(--bb-space-7); grid-template-columns: minmax(0, 1fr); }
.bb-article-layout__aside { display: none; }
.bb-prose { max-width: var(--bb-measure); display: flex; flex-direction: column; gap: var(--bb-space-5); font-size: var(--bb-text-lg); line-height: 1.65; }
.bb-prose > h2 { margin-top: var(--bb-space-5); scroll-margin-top: 90px; }
.bb-prose > h3 { margin-top: var(--bb-space-3); }
.bb-prose ul, .bb-prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--bb-space-2); }
.bb-divider { height: 1px; background: var(--bb-line); border: 0; margin: 0; }
@media (max-width: 1023.98px) { .bb-only-desktop { display: none !important; } }

@media (min-width: 760px) {
  .bb { --bb-gutter: 32px; }
}
@media (min-width: 1024px) {
  .bb-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .bb-article-layout__aside { display: flex; flex-direction: column; gap: var(--bb-space-6); }
  .bb-only-mobile { display: none !important; }
}

/* ---------- 4. Brand: Logo ---------- */
.bb-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bb-ink); min-height: var(--bb-tap); }
.bb-logo__mark { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex: none; background: var(--bb-pink); }
.bb-logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.bb-wordmark { font-family: var(--bb-font-display); font-weight: 650; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; color: var(--bb-ink); }
.bb-wordmark span { color: var(--bb-pink-600); font-style: italic; font-weight: 600; }

/* ---------- 5. SiteHeader ---------- */
.bb-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bb-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bb-line); }
.bb-header__bar { display: flex; align-items: center; gap: var(--bb-space-4); min-height: 64px; }
.bb-header__actions { margin-left: auto; display: flex; gap: var(--bb-space-1); }
.bb-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 0 var(--bb-space-2); margin-inline: calc(var(--bb-gutter) * -1); padding-inline: var(--bb-gutter); }
.bb-nav::-webkit-scrollbar { display: none; }
.bb-nav__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 40px; padding: 0 12px; border-radius: var(--bb-radius-pill); color: var(--bb-ink); text-decoration: none; font-size: var(--bb-text-sm); font-weight: 600; }
.bb-nav__link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bb-tint-ink); opacity: .55; }
.bb-nav__link:hover { background: var(--bb-tint); color: var(--bb-ink); }
.bb-nav__link[aria-current="page"] { background: var(--bb-tint); color: var(--bb-tint-ink); }
.bb-nav__link[aria-current="page"]::before { opacity: 1; }
@media (min-width: 1024px) {
  .bb-header__inner { display: flex; align-items: center; gap: var(--bb-space-5); }
  .bb-header__bar { min-height: 76px; }
  .bb-nav { padding: 0; margin: 0; overflow: visible; }
  .bb-header__menu { display: none !important; }
}

/* ---------- 6. Buttons, chips, labels ---------- */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bb-tap); padding: 0 20px; border-radius: var(--bb-radius-pill); border: 1.5px solid transparent; font-weight: 700; font-size: var(--bb-text-sm); line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s var(--bb-ease), transform .15s var(--bb-ease), border-color .15s; white-space: nowrap; }
.bb a.bb-btn { text-decoration: none; }
.bb-btn--primary { background: var(--bb-pink-700); color: var(--bb-on-pink-700); }
.bb a.bb-btn--primary, .bb a.bb-btn--primary:hover { color: var(--bb-on-pink-700); }
.bb-btn--primary:hover, .bb-btn--primary.is-hover { background: var(--bb-pink-800); }
.bb-btn--pink { background: var(--bb-pink); color: var(--bb-on-pink); }
.bb a.bb-btn--pink, .bb a.bb-btn--pink:hover { color: var(--bb-on-pink); }
.bb-btn--pink:hover { background: color-mix(in srgb, var(--bb-pink) 85%, #000); }
.bb-btn--secondary { background: var(--bb-surface); color: var(--bb-ink); border-color: var(--bb-line-strong); }
.bb a.bb-btn--secondary { color: var(--bb-ink); }
.bb-btn--secondary:hover, .bb-btn--secondary.is-hover { border-color: var(--bb-ink); }
.bb-btn--ghost { background: transparent; color: var(--bb-link); padding-inline: 12px; }
.bb-btn--ghost:hover { background: var(--bb-pink-wash); }
.bb-btn--block { width: 100%; }
.bb-btn--lg { min-height: 56px; font-size: var(--bb-text-base); padding: 0 28px; }
.bb-btn--sm { min-height: 40px; padding: 0 14px; font-size: var(--bb-text-xs); }
.bb-btn.is-focus { outline: 3px solid var(--bb-focus); outline-offset: 2px; }
.bb-btn:disabled, .bb-btn.is-disabled { background: var(--bb-surface-2); color: var(--bb-muted); border-color: var(--bb-line); cursor: not-allowed; }
.bb-btn--success, .bb-btn.is-copied { background: var(--bb-green-bg); color: var(--bb-green); border-color: transparent; }
.bb-icon-btn { display: inline-grid; place-items: center; width: var(--bb-tap); height: var(--bb-tap); border-radius: 50%; border: 0; background: transparent; color: var(--bb-ink); cursor: pointer; }
.bb-icon-btn:hover { background: var(--bb-pink-wash); }

.bb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--bb-radius-pill); background: var(--bb-surface); border: 1.5px solid var(--bb-line-strong); color: var(--bb-ink); font-size: var(--bb-text-sm); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bb a.bb-chip { color: var(--bb-ink); }
.bb-chip:hover { border-color: var(--bb-ink); }
.bb-chip[aria-pressed="true"], .bb-chip.is-active { background: var(--bb-ink); color: var(--bb-bg); border-color: var(--bb-ink); }
.bb-chips { display: flex; gap: var(--bb-space-2); flex-wrap: wrap; }
.bb-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }

.bb-section-label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--bb-radius-pill); background: var(--bb-tint); color: var(--bb-tint-ink); font-size: var(--bb-text-xs); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; line-height: 1.4; }
.bb a.bb-section-label { color: var(--bb-tint-ink); }
.bb-section-label .bb-i { width: 14px; height: 14px; }
.bb-kicker { font-size: var(--bb-text-xs); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); }
.bb-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--bb-radius-pill); font-size: var(--bb-text-xs); font-weight: 750; }
.bb-tag--budget { background: var(--bb-green-bg); color: var(--bb-green); }
.bb-tag--splurge { background: var(--bb-tint-mind-bg); color: var(--bb-tint-mind-ink); }
.bb-tag--neutral { background: var(--bb-surface-2); color: var(--bb-muted); }
.bb-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--bb-text-sm); color: var(--bb-muted); }
.bb-breadcrumb a { color: var(--bb-muted); text-decoration: none; }
.bb-breadcrumb a:hover { color: var(--bb-ink); text-decoration: underline; }

/* ---------- 7. Media (fixed aspect ratios = zero CLS) ---------- */
.bb-media { position: relative; overflow: hidden; border-radius: var(--bb-radius-lg); background: var(--bb-tint, var(--bb-pink-wash)); aspect-ratio: 3 / 2; width: 100%; }
.bb-media > img { width: 100%; height: 100%; object-fit: cover; }
.bb-media--1x1 { aspect-ratio: 1 / 1; }
.bb-media--4x5 { aspect-ratio: 4 / 5; }
.bb-media--2x3 { aspect-ratio: 2 / 3; }
.bb-media--16x9 { aspect-ratio: 16 / 9; }
.bb-media--sm { border-radius: var(--bb-radius-md); }
.bb-media__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--bb-tint-ink); font-size: var(--bb-text-xs); font-weight: 600; line-height: 1.35;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--bb-tint-ink) 18%, transparent) 1px, transparent 0); background-size: 14px 14px; }
.bb-media__ph .bb-i { width: 26px; height: 26px; opacity: .8; }
.bb-media__caption { font-size: var(--bb-text-xs); color: var(--bb-muted); margin-top: 8px; }
.bb-media--hero { aspect-ratio: 3 / 2; }
@media (max-width: 759.98px) {
  .bb-hero-figure .bb-media--hero { margin-inline: calc(var(--bb-gutter) * -1); width: calc(100% + 2 * var(--bb-gutter)); border-radius: 0; }
}
@media (min-width: 1024px) { .bb-media--hero { aspect-ratio: 2 / 1; } }

/* ---------- 8. PostCard ---------- */
.bb-post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--bb-ink); }
.bb a.bb-post-card { color: var(--bb-ink); }
.bb-post-card__title { font-family: var(--bb-font-display); font-weight: 600; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.bb-post-card:hover .bb-post-card__title { text-decoration: underline; text-decoration-color: var(--bb-pink); text-underline-offset: .15em; }
.bb-post-card__meta { font-size: var(--bb-text-xs); color: var(--bb-muted); display: flex; gap: 8px; align-items: center; }
.bb-post-card--lead .bb-post-card__title { font-size: var(--bb-h1); line-height: 1.05; letter-spacing: -.02em; }
.bb-post-card--row { flex-direction: row; align-items: center; gap: 14px; }
.bb-post-card--row .bb-media { width: 104px; flex: none; aspect-ratio: 1 / 1; border-radius: var(--bb-radius-md); }
.bb-post-card--row .bb-post-card__title { font-size: 1.0625rem; }

/* ---------- 9. Article header, Byline, AffiliateDisclosure ---------- */
.bb-article-header { display: flex; flex-direction: column; gap: var(--bb-space-4); padding-top: var(--bb-space-5); }
.bb-article-header__dek { font-size: var(--bb-text-lg); color: var(--bb-muted); max-width: 640px; line-height: 1.5; }
.bb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: var(--bb-text-sm); }
.bb-byline__author { display: flex; align-items: center; gap: 10px; }
.bb-byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bb-pink-soft); display: grid; place-items: center; font-family: var(--bb-font-display); font-weight: 600; color: var(--bb-pink-700); flex: none; overflow: hidden; }
.bb-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bb-byline__name { font-weight: 700; color: var(--bb-ink); text-decoration: none; }
.bb a.bb-byline__name { color: var(--bb-ink); }
.bb-byline__date { color: var(--bb-muted); font-size: var(--bb-text-xs); }
.bb-reviewed-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 8px; border-radius: var(--bb-radius-pill); background: var(--bb-green-bg); color: var(--bb-green); font-size: var(--bb-text-xs); font-weight: 700; text-decoration: none; }
.bb a.bb-reviewed-badge { color: var(--bb-green); }
.bb a.bb-reviewed-badge:hover { text-decoration: underline; color: var(--bb-green); }
.bb-reviewed-badge .bb-i { width: 18px; height: 18px; }
.bb-affiliate-disclosure { font-size: var(--bb-text-xs); color: var(--bb-muted); line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.bb-affiliate-disclosure .bb-i { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- 10. ShareSaveBar ---------- */
.bb-share-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bb-share-bar__label { font-size: var(--bb-text-xs); font-weight: 700; color: var(--bb-muted); margin-right: 4px; }
.bb-share-bar__pin { background: var(--bb-pink-700); color: var(--bb-on-pink-700); }
.bb-share-bar--float { position: sticky; bottom: 12px; z-index: 5; justify-content: center; padding: 8px; background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-pill); box-shadow: var(--bb-shadow-2); width: max-content; margin-inline: auto; }

/* ---------- 11. TableOfContents ---------- */
.bb-toc { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 4px 20px; }
.bb-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 750; font-size: var(--bb-text-sm); }
.bb-toc summary::-webkit-details-marker { display: none; }
.bb-toc[open] summary .bb-i { transform: rotate(180deg); }
.bb-toc ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; }
.bb-toc li { counter-increment: toc; }
.bb-toc a { display: flex; gap: 10px; padding: 9px 0; min-height: 40px; color: var(--bb-ink); text-decoration: none; font-size: var(--bb-text-sm); line-height: 1.35; border-top: 1px solid var(--bb-line); }
.bb-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 750; color: var(--bb-pink-700); font-variant-numeric: tabular-nums; }
.bb-toc a:hover { color: var(--bb-link); }
.bb-toc a[aria-current="true"] { font-weight: 700; }

/* ---------- 12. Callouts + Flags ---------- */
.bb-callout { border-radius: var(--bb-radius-lg); padding: 20px 20px 20px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: var(--bb-text-base); line-height: 1.55; }
.bb-callout__icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.bb-callout__title { font-weight: 800; font-size: var(--bb-text-sm); letter-spacing: .02em; }
.bb-callout--tip { background: var(--bb-pink-wash); }
.bb-callout--tip .bb-callout__icon { background: var(--bb-pink); color: var(--bb-on-pink); }
.bb-callout--tip .bb-callout__title { color: var(--bb-pink-700); }
.bb-callout--real-talk { background: var(--bb-amber-bg); }
.bb-callout--real-talk .bb-callout__icon { background: var(--bb-amber); color: var(--bb-amber-bg); }
.bb-callout--real-talk .bb-callout__title { color: var(--bb-amber); }
.bb-flags { display: grid; gap: var(--bb-space-4); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.bb-flag-list { border-radius: var(--bb-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bb-flag-list__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--bb-text-sm); }
.bb-flag-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--bb-text-base); line-height: 1.45; }
.bb-flag-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.bb-flag-list li .bb-i { width: 20px; height: 20px; margin-top: 2px; }
.bb-flag-list--red { background: var(--bb-red-bg); }
.bb-flag-list--red .bb-flag-list__title, .bb-flag-list--red li .bb-i { color: var(--bb-red); }
.bb-flag-list--green { background: var(--bb-green-bg); }
.bb-flag-list--green .bb-flag-list__title, .bb-flag-list--green li .bb-i { color: var(--bb-green); }

/* ---------- 13. HelpBox (heavy topics) ---------- */
.bb-help-box { border-radius: var(--bb-radius-lg); padding: 22px; background: var(--bb-tint-become-bg); color: var(--bb-ink); display: flex; flex-direction: column; gap: 14px; }
.bb-help-box__head { display: flex; gap: 12px; align-items: flex-start; }
.bb-help-box__head .bb-i { color: var(--bb-tint-become-ink); width: 26px; height: 26px; margin-top: 2px; }
.bb-help-box__title { font-family: var(--bb-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.bb-help-box__lines { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.bb-help-line { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--bb-radius-md); background: var(--bb-surface); text-decoration: none; color: var(--bb-ink); font-size: var(--bb-text-sm); line-height: 1.4; min-height: var(--bb-tap); }
.bb a.bb-help-line { color: var(--bb-ink); }
.bb-help-line strong { font-size: var(--bb-text-base); color: var(--bb-tint-become-ink); }
.bb-help-box__note { font-size: var(--bb-text-xs); color: var(--bb-muted); }

/* ---------- 14. ComparisonTable (stacks < 600px) ---------- */
.bb-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); overflow: hidden; font-size: var(--bb-text-base); line-height: 1.45; }
.bb-compare caption { text-align: left; font-weight: 800; font-size: var(--bb-text-sm); padding: 0 0 10px; color: var(--bb-muted); }
.bb-compare th, .bb-compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bb-line); }
.bb-compare thead th { background: var(--bb-surface-2); font-family: var(--bb-font-display); font-size: 1.125rem; font-weight: 600; }
.bb-compare tbody th { font-weight: 700; font-size: var(--bb-text-sm); color: var(--bb-muted); width: 28%; }
.bb-compare tr:last-child th, .bb-compare tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .bb-compare, .bb-compare tbody, .bb-compare tr, .bb-compare td, .bb-compare th { display: block; width: 100%; }
  .bb-compare { background: transparent; border: 0; }
  .bb-compare thead { display: none; }
  .bb-compare tbody { display: flex; flex-direction: column; gap: 12px; }
  .bb-compare tr { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-md); padding: 6px 0; }
  .bb-compare tbody th { width: 100%; padding: 10px 16px 4px; border: 0; font-size: var(--bb-text-xs); text-transform: uppercase; letter-spacing: .06em; }
  .bb-compare td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .bb-compare td::before { content: attr(data-label); font-weight: 750; color: var(--bb-pink-700); font-size: var(--bb-text-sm); }
}

/* ---------- 15. ProductCard + compact ---------- */
.bb-product-card { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 16px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.bb-product-card__media { position: relative; }
.bb-product-card__media .bb-media { aspect-ratio: 1 / 1; border-radius: var(--bb-radius-md); background: var(--bb-surface-2); }
.bb-product-card__media .bb-tag { position: absolute; top: 10px; left: 10px; }
.bb-product-card__body { display: flex; flex-direction: column; gap: 10px; }
.bb-product-card__name { font-family: var(--bb-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.bb-product-card__why { font-size: var(--bb-text-base); line-height: 1.5; }
.bb-product-card__why strong { color: var(--bb-pink-700); }
.bb-product-card__price { font-weight: 800; font-size: var(--bb-text-lg); font-variant-numeric: tabular-nums; }
.bb-product-card__retailers { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-product-card__note { font-size: var(--bb-text-xs); color: var(--bb-muted); }
@media (min-width: 640px) {
  .bb-product-card { grid-template-columns: 200px minmax(0, 1fr); padding: 20px; gap: 22px; }
}
.bb-product-card--compact { grid-template-columns: 88px minmax(0, 1fr) !important; gap: 14px !important; padding: 12px !important; align-items: center; }
.bb-product-card--compact .bb-product-card__name { font-size: 1.0625rem; font-family: var(--bb-font-body); font-weight: 700; }
.bb-product-card--compact .bb-product-card__body { gap: 6px; }
.bb-product-card--compact .bb-product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- 16. FAQAccordion ---------- */
.bb-faq { display: flex; flex-direction: column; border-top: 1px solid var(--bb-line); }
.bb-faq__item { border-bottom: 1px solid var(--bb-line); }
.bb-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 700; font-size: var(--bb-text-lg); line-height: 1.35; }
.bb-faq__item summary::-webkit-details-marker { display: none; }
.bb-faq__item summary .bb-i { transition: transform .2s var(--bb-ease); color: var(--bb-pink-700); }
.bb-faq__item[open] summary .bb-i { transform: rotate(45deg); }
.bb-faq__answer { padding: 0 0 20px; font-size: var(--bb-text-base); line-height: 1.6; max-width: 640px; }

/* ---------- 17. RelatedPosts ---------- */
.bb-related { display: flex; flex-direction: column; gap: var(--bb-space-5); }
.bb-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bb-related__grid { display: grid; gap: var(--bb-space-5); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- 18. QuizCTA (inline) ---------- */
.bb-quiz-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border-radius: var(--bb-radius-lg); background: var(--bb-tint-quizzes-bg); color: var(--bb-ink); text-decoration: none; border: 1.5px solid transparent; }
.bb a.bb-quiz-cta { color: var(--bb-ink); }
.bb-quiz-cta:hover { border-color: var(--bb-tint-quizzes-ink); }
.bb-quiz-cta__badge { width: 64px; height: 64px; border-radius: 18px; background: var(--bb-surface); display: grid; place-items: center; color: var(--bb-tint-quizzes-ink); }
.bb-quiz-cta__badge .bb-i { width: 30px; height: 30px; }
.bb-quiz-cta__kicker { font-size: var(--bb-text-xs); font-weight: 800; color: var(--bb-tint-quizzes-ink); text-transform: uppercase; letter-spacing: .06em; }
.bb-quiz-cta__title { font-family: var(--bb-font-display); font-size: 1.3125rem; font-weight: 600; line-height: 1.2; }
.bb-quiz-cta__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: var(--bb-text-sm); color: var(--bb-tint-quizzes-ink); margin-top: 4px; }

/* ---------- 19. NewsletterCard ---------- */
.bb-newsletter { border-radius: var(--bb-radius-xl); background: var(--bb-pink-soft); padding: 28px 22px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.bb-newsletter::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: var(--bb-pink); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: .35; }
.bb-newsletter__title { font-family: var(--bb-font-display); font-size: var(--bb-h2); font-weight: 600; line-height: 1.1; }
.bb-newsletter__title em { color: var(--bb-pink-700); }
.bb-newsletter__form { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.bb-newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.bb-newsletter__row .bb-input { flex: 1 1 220px; }
.bb-newsletter__fine { font-size: var(--bb-text-xs); color: var(--bb-ink); opacity: .85; }
@media (min-width: 900px) {
  .bb-newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 44px; gap: 40px; align-items: center; }
}

/* ---------- 20. Forms ---------- */
.bb-field { display: flex; flex-direction: column; gap: 6px; }
.bb-label { font-weight: 700; font-size: var(--bb-text-sm); }
.bb-hint { font-size: var(--bb-text-xs); color: var(--bb-muted); }
.bb-input, .bb-select, .bb-textarea { font: inherit; font-size: var(--bb-text-base); color: var(--bb-ink); background: var(--bb-surface); border: 1.5px solid var(--bb-line-strong); border-radius: var(--bb-radius-md); min-height: 52px; padding: 12px 16px; width: 100%; }
.bb-textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.bb-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.bb-input:focus, .bb-select:focus, .bb-textarea:focus, .bb-input.is-focus { outline: 3px solid var(--bb-focus); outline-offset: 1px; border-color: var(--bb-ink); }
.bb-input.is-error { border-color: var(--bb-red); background: var(--bb-red-bg); }
.bb-error { font-size: var(--bb-text-xs); color: var(--bb-red); font-weight: 700; }
.bb-check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--bb-tap); font-size: var(--bb-text-sm); line-height: 1.4; cursor: pointer; padding-top: 4px; }
.bb-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--bb-pink-700); }
.bb-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bb-surface); border: 1.5px solid var(--bb-line-strong); border-radius: var(--bb-radius-pill); padding: 3px; }
.bb-stepper__value { min-width: 44px; text-align: center; font-weight: 800; font-size: var(--bb-text-lg); font-variant-numeric: tabular-nums; }
.bb-segmented { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 21. AdSlot ---------- */
.bb-ad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-inline: auto; background: var(--bb-ad-bg); border: 1px dashed var(--bb-ad-line); border-radius: 6px; color: var(--bb-ad-ink); font-size: var(--bb-text-xs); padding-top: 22px; }
.bb-ad::before { content: "Advertisement"; position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-ad-ink); }
.bb-ad__size { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.bb-ad--300x250 { width: 300px; max-width: 100%; min-height: 272px; }
.bb-ad--responsive { width: 100%; min-height: 302px; }
.bb-ad--sidebar { width: 300px; min-height: 622px; position: sticky; top: 96px; }
.bb-ad--leaderboard { width: 728px; max-width: 100%; min-height: 112px; }
.bb-ad--sticky-footer { position: sticky; bottom: 0; z-index: 30; width: 100%; min-height: 72px; border-radius: 0; border: 0; border-top: 1px solid var(--bb-ad-line); background: color-mix(in srgb, var(--bb-ad-bg) 96%, transparent); padding-top: 18px; }
.bb-ad--sticky-footer::before { top: 2px; font-size: 10px; }
.bb-ad-wrap { padding-block: var(--bb-space-5); border-block: 1px solid var(--bb-line); display: flex; justify-content: center; }
@media (min-width: 1024px) { .bb-ad--sticky-footer { display: none; } .bb-ad--responsive { min-height: 272px; } }

/* ---------- 22. SiteFooter ---------- */
.bb-footer { background: var(--bb-ink); color: var(--bb-bg); padding-block: var(--bb-space-8) var(--bb-space-6); margin-top: var(--bb-space-8); }
.bb[data-theme="dark"] .bb-footer, .bb-footer[data-theme="dark"] { background: #120b0f; color: var(--bb-ink); }
.bb-footer a { color: inherit; text-decoration: none; opacity: .9; }
.bb-footer a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.bb-footer .bb-wordmark { color: inherit; }
.bb-footer .bb-wordmark span { color: #ff8fb0; }
.bb-footer__grid { display: grid; gap: var(--bb-space-6); grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.bb-footer__brand { display: flex; flex-direction: column; gap: 14px; grid-column: 1 / -1; max-width: 420px; }
.bb-footer__title { font-size: var(--bb-text-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.bb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.bb-footer li a { display: flex; align-items: center; min-height: 40px; font-size: var(--bb-text-sm); }
.bb-footer__bottom { margin-top: var(--bb-space-7); padding-top: var(--bb-space-5); border-top: 1px solid rgba(255, 246, 248, .18); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: var(--bb-text-xs); opacity: .85; }
@media (min-width: 1024px) {
  .bb-footer__grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .bb-footer__brand { grid-column: auto; }
}

/* ---------- 23. ChatBubble message card (scripts) ---------- */
.bb-script-card { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bb-script-card__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--bb-text-xs); font-weight: 750; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .06em; }
.bb-chat { display: flex; flex-direction: column; gap: 6px; }
.bb-bubble { align-self: flex-end; max-width: 88%; background: var(--bb-pink-700); color: var(--bb-on-pink-700); padding: 12px 16px; border-radius: 22px 22px 6px 22px; font-size: var(--bb-text-base); line-height: 1.45; white-space: pre-line; }
.bb-bubble--them { align-self: flex-start; background: var(--bb-surface-2); color: var(--bb-ink); border-radius: 22px 22px 22px 6px; }
.bb-bubble__meta { align-self: flex-end; font-size: 11px; color: var(--bb-muted); }
.bb-script-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bb-script-card__tone { font-size: var(--bb-text-xs); color: var(--bb-muted); }

/* ---------- 24. ReaderStory ---------- */
.bb-story-quote { font-family: var(--bb-font-display); font-style: italic; font-weight: 500; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; position: relative; padding-top: 48px; margin: 0; }
.bb-story-quote::before { content: "\201C"; position: absolute; top: -18px; left: -4px; font-size: 7rem; line-height: 1; color: var(--bb-pink); font-style: normal; }
.bb-story-attrib { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--bb-text-sm); }
.bb-story-attrib__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--bb-tint); color: var(--bb-tint-ink); display: grid; place-items: center; }
.bb-big-sis { border-radius: var(--bb-radius-xl); background: var(--bb-surface); border: 1px solid var(--bb-line); padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--bb-shadow-1); }
.bb-big-sis__head { display: flex; gap: 12px; align-items: center; }
.bb-big-sis__head .bb-logo__mark { width: 48px; height: 48px; border-radius: 14px; }
.bb-big-sis__title { font-family: var(--bb-font-display); font-size: 1.625rem; font-weight: 600; line-height: 1.1; }

/* ---------- 25. Quiz ---------- */
.bb-quiz { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.bb-quiz-card { background: var(--bb-surface); border-radius: var(--bb-radius-xl); border: 1px solid var(--bb-line); box-shadow: var(--bb-shadow-2); padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 20px; }
.bb-progress { display: flex; flex-direction: column; gap: 8px; }
.bb-progress__top { display: flex; justify-content: space-between; align-items: center; font-size: var(--bb-text-xs); font-weight: 750; color: var(--bb-muted); }
.bb-progress__track { height: 8px; border-radius: 999px; background: var(--bb-surface-2); overflow: hidden; }
.bb-progress__fill { height: 100%; border-radius: 999px; background: var(--bb-pink); transition: width .3s var(--bb-ease); }
.bb-quiz__q { font-family: var(--bb-font-display); font-weight: 600; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.12; text-wrap: balance; }
.bb-quiz-options { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.bb-quiz-options--image { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bb-quiz-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; background: var(--bb-surface); border: 2px solid var(--bb-line-strong); border-radius: var(--bb-radius-md); font-size: var(--bb-text-lg); font-weight: 650; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.bb-quiz-option:hover { border-color: var(--bb-ink); }
.bb-quiz-option:active { transform: scale(.985); }
.bb-quiz-option[aria-pressed="true"], .bb-quiz-option.is-selected { border-color: var(--bb-pink-700); background: var(--bb-pink-wash); }
.bb-quiz-option__key { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: var(--bb-text-xs); font-weight: 800; background: var(--bb-surface-2); color: var(--bb-muted); flex: none; }
.bb-quiz-option[aria-pressed="true"] .bb-quiz-option__key, .bb-quiz-option.is-selected .bb-quiz-option__key { background: var(--bb-pink-700); color: var(--bb-on-pink-700); }
.bb-quiz-option--image { flex-direction: column; align-items: stretch; padding: 8px 8px 12px; gap: 10px; font-size: var(--bb-text-base); text-align: center; }
.bb-quiz-option--image .bb-media { aspect-ratio: 1 / 1; border-radius: 10px; }
.bb-quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bb-quiz-intro { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.bb-quiz-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--bb-text-sm); color: var(--bb-muted); }
.bb-quiz-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) {
  .bb-quiz-card { padding: 36px; }
  .bb-quiz-options--image { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bb-quiz-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
}

/* Quiz result */
.bb-result-hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.bb-result-hero__title { font-family: var(--bb-font-display); font-size: var(--bb-display); font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.bb-result-hero__title em { color: var(--bb-pink-600); }
.bb-result-art { position: relative; aspect-ratio: 1 / 1; border-radius: var(--bb-radius-xl); background: var(--bb-tint); overflow: hidden; }
.bb-result-art__shape { position: absolute; background: var(--bb-pink); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.bb-result-art__blob { position: absolute; border-radius: 50%; }
.bb-result-traits { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.bb-result-trait { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bb-result-trait b { font-size: var(--bb-text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--bb-pink-700); }
.bb-share-result { border-radius: var(--bb-radius-xl); background: var(--bb-surface-2); padding: 22px; display: grid; gap: 20px; }
.bb-share-result__previews { display: flex; gap: 14px; align-items: flex-end; }
@media (min-width: 900px) {
  .bb-result-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
  .bb-share-result { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 32px; gap: 36px; }
}

/* ---------- 26. ShareCard (9:16 + 1:1) ---------- */
.bb-share-card { position: relative; overflow: hidden; background: var(--bb-pink-soft); color: #2b1b24; display: flex; flex-direction: column; font-family: var(--bb-font-body); }
.bb-share-card--story { aspect-ratio: 9 / 16; }
.bb-share-card--square { aspect-ratio: 1 / 1; }
.bb-share-card__url { font-weight: 800; letter-spacing: .02em; }

/* ---------- 27. ThisOrThat ---------- */
.bb-tot { display: flex; flex-direction: column; gap: 18px; max-width: 960px; margin: 0 auto; width: 100%; }
.bb-tot__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: relative; }
.bb-tot__or { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--bb-ink); color: var(--bb-bg); display: grid; place-items: center; font-family: var(--bb-font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; z-index: 2; border: 4px solid var(--bb-bg); pointer-events: none; }
.bb-tot__choice { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 16px; border-radius: var(--bb-radius-xl); background: var(--bb-surface); border: 2px solid var(--bb-line); cursor: pointer; text-align: center; font-family: var(--bb-font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.1; transition: transform .12s, border-color .15s; }
.bb-tot__choice:hover { border-color: var(--bb-pink-700); }
.bb-tot__choice:active { transform: scale(.98); }
.bb-tot__choice .bb-media { aspect-ratio: 3 / 4; border-radius: calc(var(--bb-radius-xl) - 8px); }

/* ---------- 28. Tool (calculator) ---------- */
.bb-tool { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.bb-tool__form { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-xl); padding: 22px 18px; display: flex; flex-direction: column; gap: 22px; }
.bb-tool-result { border-radius: var(--bb-radius-xl); background: var(--bb-ink); color: var(--bb-bg); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.bb[data-theme="dark"] .bb-tool-result { background: var(--bb-pink-soft); color: var(--bb-ink); }
.bb-tool-result__label { font-size: var(--bb-text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.bb-tool-result__big { font-family: var(--bb-font-display); font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bb-tool-result__big small { font-size: .4em; font-family: var(--bb-font-body); font-weight: 600; letter-spacing: 0; opacity: .85; }
.bb-tool-result__total { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 246, 248, .22); font-size: var(--bb-text-base); }
.bb-tool-result__total b { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .bb-tool { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
  .bb-tool__form { padding: 32px; }
}

/* ---------- 29. PfpGallery ---------- */
.bb-pfp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.bb-pfp-pair { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 12px; }
.bb-pfp-pair__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bb-pfp-pair__img { display: flex; flex-direction: column; gap: 6px; }
.bb-pfp-pair__img .bb-media { aspect-ratio: 1 / 1; border-radius: 50%; }
.bb-pfp-pair__name { font-weight: 750; font-size: var(--bb-text-base); padding-inline: 4px; }
.bb-pfp-pair__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bb-pfp-pair__actions .bb-btn { flex: 1 1 auto; }
.bb-pfp-grid > .bb-ad-row { grid-column: 1 / -1; }

/* ---------- 30. Ask Big Sis ---------- */
.bb-ask-form { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-xl); padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--bb-shadow-1); }
.bb-ask-promise { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--bb-text-sm); font-weight: 650; }
.bb-ask-promise span { display: inline-flex; align-items: center; gap: 6px; }
.bb-ask-promise .bb-i { color: var(--bb-green); width: 18px; height: 18px; }
.bb-qa { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bb-qa__q { font-family: var(--bb-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.bb-qa__who { font-size: var(--bb-text-xs); color: var(--bb-muted); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bb-qa__a { font-size: var(--bb-text-base); line-height: 1.55; padding-left: 14px; border-left: 3px solid var(--bb-pink-soft); }
@media (min-width: 900px) { .bb-ask-form { padding: 32px; } }

/* ---------- 31. PrintableGate ---------- */
.bb-gate { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-xl); padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--bb-shadow-2); }
.bb-gate__choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.bb-printable-preview { background: #ffffff; border-radius: 10px; box-shadow: var(--bb-shadow-3); aspect-ratio: 8.5 / 11; padding: 9% 9%; display: flex; flex-direction: column; gap: 4%; color: #2b1b24; transform: rotate(-2deg); }
@media (min-width: 900px) { .bb-gate { padding: 32px; } .bb-gate__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 32. Trust: ReviewerCard, AuthorHeader ---------- */
.bb-reviewer-card { background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: var(--bb-radius-lg); padding: 20px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.bb-reviewer-card__photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--bb-tint); }
.bb-reviewer-card__name { font-family: var(--bb-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.bb-reviewer-card__cred { font-size: var(--bb-text-sm); font-weight: 700; color: var(--bb-green); display: flex; align-items: center; gap: 6px; }
.bb-reviewer-card__bio { font-size: var(--bb-text-base); line-height: 1.5; }
.bb-author-header { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.bb-author-header__photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--bb-pink-soft); }
@media (min-width: 900px) { .bb-author-header { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } .bb-author-header__photo { width: 200px; height: 200px; } }

/* ---------- 33. Pagination ---------- */
.bb-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.bb-pagination a, .bb-pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; text-decoration: none; color: var(--bb-ink); font-weight: 700; font-size: var(--bb-text-sm); }
.bb-pagination a:hover { background: var(--bb-pink-wash); color: var(--bb-ink); }
.bb-pagination [aria-current="page"] { background: var(--bb-ink); color: var(--bb-bg); }
.bb-pagination .bb-pagination__step { border-radius: 999px; padding: 0 16px; gap: 6px; display: inline-flex; border: 1.5px solid var(--bb-line-strong); }

/* ---------- 34. Section header (archives) ---------- */
.bb-section-header { background: var(--bb-tint); border-radius: 0 0 var(--bb-radius-xl) var(--bb-radius-xl); padding-block: var(--bb-space-7) var(--bb-space-6); }
.bb-section-header__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--bb-surface); color: var(--bb-tint-ink); display: grid; place-items: center; }
.bb-section-header__icon .bb-i { width: 28px; height: 28px; }
.bb-section-header__title { font-size: var(--bb-display) !important; letter-spacing: -.03em !important; line-height: 1 !important; }
.bb-section-header__intro { font-size: var(--bb-text-lg); max-width: 600px; line-height: 1.5; }

/* ---------- 35. List article item ---------- */
.bb-list-item { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-block: var(--bb-space-6); border-top: 1px solid var(--bb-line); }
.bb-list-item__media { position: relative; }
.bb-list-item__media .bb-media { aspect-ratio: 2 / 3; }
.bb-list-item__pin { position: absolute; top: 12px; right: 12px; box-shadow: var(--bb-shadow-2); }
.bb-list-item__num { font-family: var(--bb-font-display); font-style: italic; font-weight: 600; font-size: 3.5rem; line-height: .9; color: var(--bb-pink-600); letter-spacing: -.03em; }
.bb-list-item__title { font-size: var(--bb-h3) !important; }
.bb-list-item__facts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) {
  .bb-list-item { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
}

/* ---------- 36. 404 + misc ---------- */
.bb-hero-404 { font-family: var(--bb-font-display); font-style: italic; font-weight: 600; font-size: clamp(6rem, 3rem + 14vw, 14rem); line-height: .85; color: var(--bb-pink); letter-spacing: -.05em; }
.bb-search-field { display: flex; gap: 8px; align-items: center; background: var(--bb-surface); border: 1.5px solid var(--bb-line-strong); border-radius: var(--bb-radius-pill); padding: 4px 4px 4px 18px; min-height: 56px; }
.bb-search-field input { flex: 1; border: 0; background: transparent; font: inherit; font-size: var(--bb-text-lg); color: var(--bb-ink); min-width: 0; min-height: 44px; }
.bb-search-field input:focus { outline: none; }
.bb-search-field:focus-within { outline: 3px solid var(--bb-focus); outline-offset: 2px; }
.bb-result-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding-block: 20px; border-top: 1px solid var(--bb-line); text-decoration: none; color: var(--bb-ink); align-items: start; }
.bb a.bb-result-row { color: var(--bb-ink); }
.bb-result-row .bb-media { aspect-ratio: 1 / 1; border-radius: var(--bb-radius-md); }
.bb-result-row__title { font-family: var(--bb-font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; margin: 6px 0; }
.bb-result-row:hover .bb-result-row__title { text-decoration: underline; text-decoration-color: var(--bb-pink); }
@media (min-width: 760px) { .bb-result-row { grid-template-columns: minmax(0, 1fr) 160px; gap: 28px; } }

/* ---------- 37. Pinterest pin template (1000x1500, drawn at 0.4) ---------- */
.bb-pin { position: relative; width: 400px; height: 600px; overflow: hidden; background: #fff6f8; color: #2b1b24; font-family: var(--bb-font-body); display: flex; flex-direction: column; }
