/* BibBuddy · Race Pack theme for the content pages (blog, about, FAQ, privacy, terms).
   Loaded after each page's own <style>; every rule is scoped to html.rd so it wins
   without !important and can be removed by dropping class="rd" from <html>. */

html.rd{
  --navy:#1F2226;--navy-900:#1F2226;--navy-800:#272B30;--navy-700:#30353B;
  --surface:#262A2F;--card:#2D3237;--surface-2:#2D3237;--surface-3:#353B41;
  --border:rgba(255,255,255,.09);--border-l:rgba(255,255,255,.17);
  --text:#F1F2F3;--text-sec:#B9BFC5;--sec:#B9BFC5;--text-muted:#8A929A;--muted:#8A929A;
  --orange:#FF6A33;--orange-light:#FF8A5C;--orange-l:#FF8A5C;--orange-glow:rgba(255,90,31,.15);
  --cone:#FF5A1F;--cone-2:#FF7440;--ink:#16181B;--ink-2:#464C53;--ink-3:#6B727A;--tyvek:#F3F4F0;
  --teal:#14B8A6;--teal-light:#4FD1C5;--teal-l:#4FD1C5;--teal-subtle:rgba(20,184,166,.13);
  --green:#2BB673;--gold:#F2B33D;--rose:#F0506E;--purple:#A898FF;
  --blue:#FF6A33;--blue-sub:rgba(255,90,31,.09);--melb:#FF6A33;--melb-subtle:rgba(255,90,31,.08);
  --fd:'Big Shoulders','Arial Narrow',sans-serif;
  --fb:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --fs:var(--fb);
  --r:12px;--r-sm:8px;
  --hole:#1F2226;
  --paper-shadow:0 1px 0 rgba(0,0,0,.35),0 14px 28px -18px rgba(0,0,0,.95);
  background:#1F2226;
}
html.rd body{background:#1F2226;color:var(--text);font-family:var(--fb);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html.rd body ::selection{background:rgba(255,90,31,.35);color:#fff}
html.rd body .bg-layer,html.rd body .bg-orb{display:none}

/* ── links ─────────────────────────────────────────────────────────────── */
html.rd body a{text-underline-offset:3px;text-decoration-thickness:1px}
html.rd body .article-body a:not([class]),html.rd body section p a:not([class]),html.rd body .page a:not([class]),
html.rd body .faq a:not([class]),html.rd body .q a:not([class]){color:var(--cone-2)}
html.rd body .article-body a:not([class]):hover,html.rd body .page a:not([class]):hover,html.rd body .faq a:not([class]):hover{color:#FF9466}

/* ── reading progress ──────────────────────────────────────────────────── */
html.rd body .progress-bar{background:var(--cone);height:3px;box-shadow:none}

/* ── nav ───────────────────────────────────────────────────────────────── */
html.rd body .site-nav{background:rgba(31,34,38,.9);border-bottom:1px solid var(--border);-webkit-backdrop-filter:saturate(1.2) blur(10px);backdrop-filter:saturate(1.2) blur(10px)}
html.rd body .nav-logo,html.rd body .logo-text,html.rd body .footer-logo{font-family:var(--fd);font-weight:800;font-size:27px;letter-spacing:.005em;line-height:1;color:var(--text);text-decoration:none}
html.rd body .nav-logo,html.rd body .footer-logo{display:inline-flex;align-items:center;gap:0}
html.rd body .nav-logo b,html.rd body .logo-text b,html.rd body .footer-logo b{color:inherit;font-weight:inherit}
html.rd body .nav-logo::before,html.rd body .footer-logo::before{content:'';flex:0 0 auto;width:32px;height:28px;margin-right:9px;background:url(/bib-mark.svg) center/contain no-repeat}
html.rd body .footer-logo{font-size:23px;color:var(--text);justify-content:center}
html.rd body .footer-logo::before{width:27px;height:24px;margin-right:8px}
html.rd body .logo{display:inline-flex;align-items:center;gap:0;text-decoration:none}
html.rd body a.logo:not(:has(.logo-text)){font-family:var(--fd);font-weight:800;font-size:27px;letter-spacing:.005em;line-height:1;color:var(--text)}
html.rd body a.logo:not(:has(.logo-text)) b{color:inherit;font-weight:inherit}
html.rd body a.logo:not(:has(.logo-icon))::before{content:'';flex:0 0 auto;width:32px;height:28px;margin-right:9px;background:url(/bib-mark.svg) center/contain no-repeat}
html.rd body .nav-logo span,html.rd body .footer-logo span,html.rd body a.logo span{color:inherit}
html.rd body .logo-icon{font-size:0;width:34px;height:30px;padding:0;margin-right:9px;border:0;border-radius:0;box-shadow:none;background:url(/bib-mark.svg) center/contain no-repeat}
html.rd body .nav-links a{font-family:var(--fb);font-weight:600;font-size:14.5px;color:var(--text-sec);text-decoration:none}
html.rd body .nav-links a:hover{color:var(--text)}
html.rd body .nav-cta{background:var(--cone);color:var(--ink);font-family:var(--fb);font-weight:700;font-size:14px;border-radius:10px;border:0;box-shadow:none;text-decoration:none}
html.rd body .nav-cta:hover{background:var(--cone-2);color:var(--ink);transform:none;box-shadow:none}
html.rd body .nav-back{font-family:var(--fb);font-weight:600;font-size:14px;color:var(--text-sec);text-decoration:none}
html.rd body .nav-back:hover{color:var(--text)}

/* ── kicker / eyebrow labels ───────────────────────────────────────────── */
html.rd body .eyebrow,html.rd body .hero-eyebrow,html.rd body .page-eyebrow,html.rd body .toc-title,html.rd body .answer-box-label,
html.rd body .checklist-title,html.rd body .section-divider-label{font-family:var(--fb);font-weight:700;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--cone-2)}

/* ── hero ──────────────────────────────────────────────────────────────── */
html.rd body .hero h1,html.rd body h1,html.rd body .page-title,html.rd body .hero-title{font-family:var(--fd);font-weight:900;letter-spacing:.002em;line-height:.94;color:var(--text);text-wrap:balance}
html.rd body .hero h1{font-size:clamp(44px,10.5vw,80px)}
html.rd body .page-title{font-size:clamp(42px,9vw,64px);margin-bottom:14px}
html.rd body .wrap .hero h1{font-size:clamp(46px,11vw,78px)}
html.rd body h1 em,html.rd body .hero h1 em,html.rd body .page-title em{font-style:normal;color:var(--cone-2)}
html.rd body .hero-sub,html.rd body .lead{font-family:var(--fb);font-size:18px;line-height:1.6;color:var(--text-sec)}
html.rd body .hero-meta{gap:10px;align-items:center}
html.rd body .hero-tag,html.rd body .hero-tag-orange{background:var(--cone);color:var(--ink);border:0;border-radius:5px;font-family:var(--fb);font-weight:700;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;padding:5px 9px}
html.rd body .hero-date,html.rd body .page-meta,html.rd body .hero-label{color:var(--text-muted);font-size:13.5px}

/* hero stats → a row of race bibs */
html.rd body .hero-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:12px;background:none;border:0;box-shadow:none;padding:0;border-radius:0}
html.rd body .hero-stat{position:relative;background:var(--tyvek);color:var(--ink);border-radius:8px;padding:20px 16px 14px;text-align:left;
  box-shadow:var(--paper-shadow);border:0;border-top:7px solid var(--cone);display:flex;flex-direction:column;gap:6px;min-width:0}
html.rd body .hero-stat::before{content:'';position:absolute;inset:-7px 0 0;pointer-events:none;border-radius:8px;background:
  radial-gradient(circle at 9px 13px,var(--hole) 2.4px,transparent 3px),radial-gradient(circle at calc(100% - 9px) 13px,var(--hole) 2.4px,transparent 3px),
  radial-gradient(circle at 9px calc(100% - 9px),var(--hole) 2.4px,transparent 3px),radial-gradient(circle at calc(100% - 9px) calc(100% - 9px),var(--hole) 2.4px,transparent 3px)}
html.rd body .hero-stat{container-type:inline-size}
html.rd body .hero-stat-val{font-family:var(--fd);font-weight:900;font-size:clamp(22px,18.5cqw,34px);line-height:.92;letter-spacing:0;color:var(--ink);-webkit-hyphens:manual;hyphens:manual}
html.rd body .hero-stat-lbl{font-family:var(--fb);font-size:12.5px;line-height:1.35;color:var(--ink-2);font-weight:500}

/* ── table of contents ─────────────────────────────────────────────────── */
html.rd body .toc{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--cone);border-radius:10px;box-shadow:none}
html.rd body .toc ol,html.rd body .toc ul{color:var(--text-sec)}
html.rd body .toc li::marker{color:var(--cone-2);font-family:var(--fd);font-weight:800}
html.rd body .toc a{color:var(--text-sec);text-decoration:none}
html.rd body .toc a:hover{color:var(--text);text-decoration:underline}

/* ── article typography ────────────────────────────────────────────────── */
html.rd body .article-body{font-family:var(--fb);color:var(--text-sec)}
html.rd body .article-body p,html.rd body .article-body li{font-size:17px;line-height:1.75;color:#C3C8CD}
html.rd body .article-body strong,html.rd body .article-body b{color:var(--text)}
html.rd body .article-body h2,html.rd body section > h2,html.rd body .page h2,html.rd body .related h2,html.rd body .related-inner h2{font-family:var(--fd);font-weight:800;font-size:clamp(30px,6.4vw,40px);line-height:1;letter-spacing:.004em;color:var(--text)}
html.rd body .article-body h2::before,html.rd body .page h2::before{content:'';display:block;width:34px;height:5px;border-radius:2px;background:var(--cone);margin-bottom:14px}
html.rd body .article-body h3{font-family:var(--fb);font-weight:700;color:var(--text)}
html.rd body .article-body h4{font-family:var(--fb);font-weight:700;color:var(--text)}
html.rd body .article-body ul li::marker{color:var(--cone-2)}
html.rd body .article-body ol li::marker{color:var(--cone-2);font-weight:700}
html.rd body .article-body blockquote{border-left:4px solid var(--cone);background:var(--surface);border-radius:0 10px 10px 0;color:var(--text)}
html.rd body .article-body hr{border:0;border-top:2px dashed var(--border-l)}

/* tables */
html.rd body .table-scroll,html.rd body .table-wrap{border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:none}
html.rd body table{border-collapse:collapse}
html.rd body table th{font-family:var(--fb);font-weight:700;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);background:var(--surface-2);border-bottom:1px solid var(--border-l)}
html.rd body table td{border-bottom:1px solid var(--border);color:#C3C8CD;font-size:14.5px}
html.rd body table tr:last-child td{border-bottom:0}
html.rd body table td strong{color:var(--text)}

/* callouts */
html.rd body .callout{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--teal);border-radius:10px;box-shadow:none}
html.rd body .callout.info{border-left-color:var(--teal)}
html.rd body .callout.warn,html.rd body .callout.tip{border-left-color:var(--gold)}
html.rd body .callout.danger{border-left-color:var(--rose)}
html.rd body .callout.success{border-left-color:var(--green)}
html.rd body .callout-title{font-family:var(--fb);font-weight:700;color:var(--text);letter-spacing:0;text-transform:none}
html.rd body .callout.info .callout-title{color:var(--teal-light)}
html.rd body .callout.warn .callout-title{color:var(--gold)}
html.rd body .callout.danger .callout-title{color:#FF7A92}
html.rd body .callout.success .callout-title{color:#4CD38F}
html.rd body .callout-body p,html.rd body .callout p{color:#C3C8CD}
html.rd body .answer-box,html.rd body .highlight,html.rd body .highlight-box{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--cone);border-radius:10px}

/* steps — each number is a little race bib */
html.rd body .step-num{position:relative;background:var(--tyvek);color:var(--ink);font-family:var(--fd);font-weight:900;font-size:22px;line-height:1;border-radius:6px;border:0;border-top:6px solid var(--cone);box-shadow:var(--paper-shadow);
  width:40px;height:42px;min-width:40px;display:flex;align-items:center;justify-content:center;padding-top:2px}
html.rd body .step-title{font-family:var(--fb);font-weight:700;color:var(--text)}
html.rd body .step{border-color:var(--border)}
html.rd body .steps::before,html.rd body .steps::after{border-color:var(--border-l)}

/* timeline / checklist accents */
html.rd body .tl-dot{background:var(--cone);border-color:#1F2226;box-shadow:none}
html.rd body .tl-title{font-family:var(--fb);font-weight:700;color:var(--text)}
html.rd body .tl-when{color:var(--cone-2);font-weight:700}

/* ── CTA: a big race bib ───────────────────────────────────────────────── */
html.rd body .cta-block,html.rd body .cta-strip,html.rd body .cta-box{position:relative;background:var(--tyvek);color:var(--ink);border:0;border-top:22px solid var(--cone);border-radius:12px;box-shadow:var(--paper-shadow);overflow:hidden}
html.rd body .cta-block::after,html.rd body .cta-strip::after,html.rd body .cta-box::after{content:'';position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(circle at 14px 14px,var(--hole) 3.6px,rgba(0,0,0,.18) 4.2px,transparent 4.8px),radial-gradient(circle at calc(100% - 14px) 14px,var(--hole) 3.6px,rgba(0,0,0,.18) 4.2px,transparent 4.8px),
  radial-gradient(circle at 14px calc(100% - 14px),var(--hole) 3.6px,rgba(0,0,0,.18) 4.2px,transparent 4.8px),radial-gradient(circle at calc(100% - 14px) calc(100% - 14px),var(--hole) 3.6px,rgba(0,0,0,.18) 4.2px,transparent 4.8px)}
html.rd body .cta-block::before,html.rd body .cta-strip::before,html.rd body .cta-box::before{display:none}
html.rd body .cta-block h3,html.rd body .cta-strip h2,html.rd body .cta-box h3,html.rd body .cta-box h2,html.rd body .cta-title{font-family:var(--fd);font-weight:900;font-size:clamp(28px,6vw,36px);line-height:.98;letter-spacing:.003em;color:var(--ink);text-transform:none}
html.rd body .cta-block p,html.rd body .cta-strip p,html.rd body .cta-box p{color:var(--ink-2)}
html.rd body .cta-block .cta-sub,html.rd body .cta-strip .cta-sub,html.rd body .cta-box .cta-sub,html.rd body .cta-note{color:var(--ink-3);font-size:13px}
html.rd body .cta-btn,html.rd body .cta-btn-orange,html.rd body .post-cta-btn{background:var(--cone);color:var(--ink);font-family:var(--fb);font-weight:700;border:0;border-radius:10px;box-shadow:none;text-decoration:none}
html.rd body .cta-btn:hover,html.rd body .cta-btn-orange:hover{background:var(--cone-2);color:var(--ink);transform:none;box-shadow:none}
html.rd body .cta-btn-blue{background:var(--ink);color:var(--tyvek);font-family:var(--fb);font-weight:700;border:0;border-radius:10px;box-shadow:none}
html.rd body .cta-block-emoji,html.rd body .cta-emoji{filter:none}

/* ── author / share / footer of post ───────────────────────────────────── */
html.rd body .post-footer{border-top:2px dashed var(--border-l)}
html.rd body .author-av{background:var(--cone);color:var(--ink);border:0;box-shadow:none}
html.rd body .author-name{font-family:var(--fb);font-weight:700;color:var(--text)}
html.rd body .author-role{color:var(--text-muted)}
html.rd body .share-btn{background:transparent;color:var(--text);border:1.5px solid var(--border-l);border-radius:10px;font-family:var(--fb);font-weight:600}
html.rd body .share-btn:hover{border-color:var(--cone);color:var(--text);background:transparent}

/* ── related guides ────────────────────────────────────────────────────── */
html.rd body .related{background:#1A1D20;border-top:1px solid var(--border)}
html.rd body .related-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:none;text-decoration:none;transition:transform .18s cubic-bezier(.2,.9,.3,1.2),border-color .18s}
html.rd body .related-card:hover{transform:translateY(-2px);border-color:rgba(255,90,31,.55);background:var(--surface)}
html.rd body .related-tag{color:var(--cone-2);font-family:var(--fb);font-weight:700;font-size:11px;letter-spacing:.1em;text-transform:uppercase;background:none;border:0;padding:0}
html.rd body .related-title{font-family:var(--fd);font-weight:800;font-size:22px;line-height:1.02;letter-spacing:.004em;color:var(--text)}

/* ── site footer ───────────────────────────────────────────────────────── */
html.rd body .site-footer,html.rd body .foot{border-top:1px solid var(--border);background:transparent;color:var(--text-muted)}
html.rd body .site-footer p,html.rd body .foot p{color:var(--text-muted)}
html.rd body .site-footer a,html.rd body .foot a,html.rd body .footer-links a{color:var(--text-sec)}
html.rd body .site-footer a:hover,html.rd body .foot a:hover,html.rd body .footer-links a:hover{color:var(--text)}

/* ── blog index ────────────────────────────────────────────────────────── */
html.rd body .filter-btn{background:transparent;color:var(--text-sec);border:1.5px solid var(--border-l);border-radius:999px;font-family:var(--fb);font-weight:600}
html.rd body .filter-btn:hover{color:var(--text);border-color:rgba(255,255,255,.32)}
html.rd body .filter-btn.active{background:var(--cone);border-color:var(--cone);color:var(--ink);font-weight:700}
html.rd body .post-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:none;transition:transform .18s cubic-bezier(.2,.9,.3,1.2),border-color .18s}
html.rd body .post-card:hover{transform:translateY(-2px);border-color:rgba(255,90,31,.55);box-shadow:none}
html.rd body .post-card.featured,html.rd body .featured{border-top:6px solid var(--cone)}
html.rd body .post-title{font-family:var(--fd);font-weight:800;font-size:25px;line-height:1.02;letter-spacing:.004em;color:var(--text)}
html.rd body .post-card.featured .post-title,html.rd body .featured .post-title{font-size:32px}
html.rd body .post-excerpt{color:var(--text-sec)}
html.rd body .post-date,html.rd body .post-read-time{color:var(--text-muted)}
html.rd body .post-tag{font-family:var(--fb);font-weight:700;font-size:10.5px;letter-spacing:.1em;border-radius:5px}
html.rd body .post-cta{color:var(--cone-2);font-weight:700}
html.rd body .skeleton{background:linear-gradient(90deg,var(--surface) 0,var(--surface-2) 50%,var(--surface) 100%);background-size:200% 100%;border-color:var(--border)}
html.rd body .empty-state{color:var(--text-muted)}

/* ── about / FAQ ───────────────────────────────────────────────────────── */
html.rd body .pull{font-family:var(--fd);font-style:normal;font-weight:800;font-size:clamp(26px,5.4vw,32px);line-height:1.08;letter-spacing:.003em;color:var(--text);border-left:5px solid var(--cone)}
html.rd body .card,html.rd body .values,html.rd body .faq-item{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:none}
html.rd body .value-icon{border-radius:8px}
html.rd body .q{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:none}
html.rd body .q h2,html.rd body .faq-q{font-family:var(--fd);font-weight:800;font-size:25px;line-height:1.04;letter-spacing:.004em;color:var(--text)}
html.rd body .q p,html.rd body .faq-a,html.rd body section p{color:#C3C8CD}
html.rd body .q strong,html.rd body section p strong{color:var(--text)}
html.rd body .btn{font-family:var(--fb);font-weight:700;border-radius:10px}
html.rd body .btn-p{background:var(--cone);color:var(--ink);border:0;box-shadow:none}
html.rd body .btn-p:hover{background:var(--cone-2);color:var(--ink);transform:none;box-shadow:none}
html.rd body .btn-s{background:transparent;color:var(--text);border:1.5px solid var(--border-l)}
html.rd body .btn-s:hover{border-color:var(--cone);background:transparent;color:var(--text)}

/* ── privacy / terms ───────────────────────────────────────────────────── */
html.rd body .page h2{font-size:clamp(26px,5.4vw,32px)}
html.rd body .page p,html.rd body .page li{color:#C3C8CD}
html.rd body .page strong{color:var(--text)}

@media (prefers-reduced-motion:reduce){
  html.rd body .post-card,html.rd body .related-card{transition:none}
  html.rd body .post-card:hover,html.rd body .related-card:hover{transform:none}
}
html.rd body .tag{background:rgba(255,90,31,.12);border:1px solid rgba(255,90,31,.3);color:#FF9466}
html.rd body .box.blue .box-title{color:#FF9466}
/* blog index CTA: a bib, not a full-bleed band */
html.rd body .cta-strip{max-width:760px;margin:8px auto 56px;width:calc(100% - 36px)}

/* ── newsletter sign-up box (blog-subscribe.js) ────────────────────────── */
.bb-sub-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
html.rd body .bb-sub{position:relative;z-index:1;max-width:720px;margin:44px auto;padding:26px 24px 22px;background:var(--surface);color:var(--text);border:1px solid var(--border-l);border-left:6px solid var(--cone);border-radius:12px;text-align:left}
html.rd body .bb-sub .bb-sub-k{font-family:var(--fb);font-weight:700;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--cone-2);margin:0 0 8px}
html.rd body .bb-sub .bb-sub-h{font-family:var(--fd);font-weight:900;font-size:clamp(26px,5.6vw,32px);line-height:1;letter-spacing:.003em;text-transform:none;color:var(--text);margin:0 0 8px}
html.rd body .bb-sub .bb-sub-p{font-size:15px;line-height:1.55;color:var(--text-sec);margin:0 0 16px}
html.rd body .bb-sub .bb-sub-form{display:flex;flex-wrap:wrap;gap:10px;margin:0}
html.rd body .bb-sub .bb-sub-form input[type=email]{flex:1 1 220px;min-width:0;height:48px;padding:0 14px;border-radius:10px;border:1px solid var(--border-l);background:#1F2226;color:var(--text);font:500 16px/1 var(--fb)}
html.rd body .bb-sub .bb-sub-form input[type=email]::placeholder{color:var(--text-muted)}
html.rd body .bb-sub .bb-sub-form input[type=email]:focus{outline:2px solid var(--cone);outline-offset:1px;border-color:transparent}
html.rd body .bb-sub .bb-sub-form button{flex:0 0 auto;height:48px;padding:0 22px;border:0;border-radius:10px;background:var(--cone);color:var(--ink);font:700 15px/1 var(--fb);cursor:pointer}
html.rd body .bb-sub .bb-sub-form button:hover{background:var(--cone-2)}
html.rd body .bb-sub .bb-sub-form button:disabled{opacity:.6;cursor:default}
html.rd body .bb-sub .bb-sub-msg{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--text-sec)}
html.rd body .bb-sub .bb-sub-msg:empty{display:none}
html.rd body .bb-sub .bb-sub-msg.ok{color:#7EE2B8;font-weight:600}
html.rd body .bb-sub .bb-sub-msg.err{color:#FF9B8A}
html.rd body .bb-sub.done .bb-sub-form{display:none}
html.rd body .bb-sub.done .bb-sub-msg{margin-top:0}
html.rd body .bb-sub-banner{position:fixed;z-index:200;left:50%;top:76px;transform:translateX(-50%);width:min(92vw,560px);display:flex;align-items:flex-start;gap:12px;padding:14px 14px 14px 18px;border-radius:12px;background:var(--tyvek);color:var(--ink);border-left:6px solid var(--green);box-shadow:0 18px 40px -12px rgba(0,0,0,.7);font-size:15px;line-height:1.5}
html.rd body .bb-sub-banner.err{border-left-color:var(--gold)}
html.rd body .bb-sub-banner span{flex:1}
html.rd body .bb-sub-banner button{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--ink-3);font-size:15px;cursor:pointer}
@media (max-width:520px){
  html.rd body .bb-sub{padding:22px 18px 18px;margin:36px auto}
  html.rd body .bb-sub .bb-sub-form button{flex:1 1 100%}
}
/* blog index: the sign-up box sits between the guides and the closing bib */
html.rd body .posts-grid+.bb-sub{width:calc(100% - 36px);margin:0 auto 40px}

/* ── images in Studio posts ────────────────────────────────────────────── */
html.rd body .st-figure{margin:30px 0}
html.rd body .st-figure img{display:block;width:100%;height:auto;margin:0 auto;border-radius:12px;border:1px solid var(--border);background:var(--surface-2,rgba(127,127,127,.08))}
html.rd body .st-figure figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:var(--text-muted);text-align:center}
/* beside the text: floats next to the paragraphs and lists after it; anything else (a
   heading, table, box or another photo) starts below it; phones show it full width.
   A list beside a left-hand photo keeps clear of it so the bullets don't sit on it */
html.rd body .st-figure-side{clear:both;width:min(44%,var(--sw,320px));margin:5px 0 16px}
html.rd body .st-figure-r{float:right;margin-left:28px}
html.rd body .st-figure-l{float:left;margin-right:28px}
html.rd body .st-figure-side figcaption{font-size:13px}
html.rd body .st-figure-side~:not(p):not(ul):not(ol):not(.st-figure-side){clear:both}
html.rd body .article-body .st-beside-l{display:flow-root}
@media (max-width:600px){html.rd body .st-figure-side{float:none;width:auto;margin:30px 0}}

/* ── the people behind BibBuddy (people.py, Studio bylines) ────────────── */
html.rd body .bb-team{position:relative;z-index:1;display:flex;align-items:center;gap:14px;max-width:760px;width:calc(100% - 36px);margin:0 auto 26px;padding:12px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
html.rd body .bb-team-faces,html.rd body .st-byline-av{display:flex;flex:none}
html.rd body .bb-team-faces img,html.rd body .st-author-av img,html.rd body .st-byline-av img{display:block;width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid var(--navy)}
html.rd body .bb-team-faces img+img,html.rd body .st-author-av img+img,html.rd body .st-byline-av img+img{margin-left:-12px}
html.rd body .bb-team-txt{margin:0;font-size:14.5px;line-height:1.5;color:var(--text-sec)}
html.rd body .bb-team-txt b{color:var(--text);font-weight:700}
html.rd body .bb-team-txt a,html.rd body .author-role a{color:var(--cone-2);font-weight:600;text-decoration:none;white-space:nowrap}
html.rd body .bb-team-txt a:hover,html.rd body .author-role a:hover{text-decoration:underline}
html.rd body .author-av.st-author-av{width:auto;height:auto;background:none;border-radius:0;display:flex;flex:none}
html.rd body .st-author-av img{width:40px;height:40px}
html.rd body .st-byline{display:flex;align-items:center;gap:12px;margin:20px 0 18px;text-align:left}
html.rd body .st-byline-txt{display:flex;flex-direction:column;line-height:1.35}
html.rd body .st-byline-txt b{font-size:15px;font-weight:700;color:var(--text)}
html.rd body .st-byline-txt span{font-size:13.5px;color:var(--text-muted)}
html.rd body .post-card-top .post-new{margin:0 auto 0 6px;display:inline-flex;align-items:center;padding:2px 8px;border-radius:99px;background:var(--green);color:#0B2A1B;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.5}
html.rd body .post-author{display:inline-flex;align-items:center;gap:6px;margin-right:8px;color:var(--text);font-weight:600}
html.rd body .post-author img{width:22px;height:22px;border-radius:50%;object-fit:cover}
html.rd body .team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
html.rd body .team-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
html.rd body .team-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
html.rd body .team-card-txt{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px}
html.rd body .team-card-txt strong{font-family:var(--fd);font-weight:800;font-size:24px;line-height:1.05;color:var(--text)}
html.rd body .team-card-txt span{font-size:14px;line-height:1.45;color:var(--text-sec)}
@media (max-width:520px){
  html.rd body .bb-team{align-items:flex-start;padding:12px 14px}
  html.rd body .team-grid{gap:10px}
  html.rd body .team-card-txt strong{font-size:20px}
}

/* Instagram (@bib_buddy_) in page footers */
.bb-ig-line{margin-top:10px}
.bb-ig{color:inherit;text-decoration:underline;text-underline-offset:3px}
.bb-ig b{font-weight:700}
