/* Shared, deliberately namespaced navigation and discovery components. */
:root {
  --bb-text:#241d1a; --bb-muted:#63564f; --bb-paper:#fdfbfa; --bb-card:#fff;
  --bb-rule:#e2d8d3; --bb-accent:#a33443; --bb-tint:#f8f1ee;
}
.bb-header { position:sticky; top:0; z-index:100; background:var(--bb-card); border-bottom:1px solid var(--bb-rule); color:var(--bb-text); font-family:Nunito,system-ui,sans-serif; }
.bb-header-inner { max-width:1248px; min-height:72px; padding:0 24px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.bb-header a { text-decoration:none!important; color:inherit; }
.bb-brand { display:flex; align-items:center; gap:8px; min-height:44px; font:700 21px 'Playfair Display',Georgia,serif; flex-shrink:0; }
.bb-desktop-nav,.bb-header-actions { display:flex; align-items:center; gap:20px; }
.bb-desktop-nav { margin-left:auto; }
.bb-header summary { cursor:pointer; list-style:none; font-size:15px; font-weight:700; }
.bb-header summary {background:transparent!important;color:var(--bb-text)!important}
.bb-header summary::-webkit-details-marker { display:none; }
.bb-header .bb-nav-group { position:relative; border:0; background:none; padding:0; margin:0; overflow:visible; }
.bb-header .bb-nav-group>summary,.bb-desktop-nav>a { display:flex; align-items:center; min-height:44px; padding:8px 2px; }
.bb-header summary::after { content:"⌄"; margin-left:8px; font:inherit; color:inherit; }
.bb-header details[open]>summary::after { transform:rotate(180deg); }
.bb-nav-panel { position:absolute; top:100%; left:-16px; width:280px; padding:12px; background:var(--bb-card); border:1px solid var(--bb-rule); border-radius:12px; box-shadow:0 12px 26px #34231b14; }
.bb-nav-panel>a,.bb-mobile-panel a { display:block; padding:12px; line-height:1.4; font-size:15px; min-height:44px; border-radius:6px; }
.bb-nav-panel a:hover,.bb-mobile-panel a:hover { background:var(--bb-tint); }
.bb-header a.bb-start { color:#fff; background:#241d1a; border-radius:10px; padding:12px 18px; font-weight:800; font-size:14px; white-space:nowrap; min-height:44px; display:inline-flex; align-items:center; }
.bb-header .bb-signin { font-size:14px; min-height:44px; display:inline-flex; align-items:center; }
.bb-cta-short,.bb-mobile-nav { display:none; }
.bb-header :focus-visible,.bb-discovery :focus-visible,.bb-editorial-note a:focus-visible { outline:3px solid #a33443; outline-offset:3px; }
.bb-mobile-nav { border:0; margin:0; padding:0; background:none; overflow:visible; }
.bb-mobile-nav>summary { min-height:44px; display:flex; align-items:center; padding:8px; }
.bb-mobile-panel { position:absolute; top:100%; left:0; right:0; background:var(--bb-card); border-bottom:1px solid var(--bb-rule); max-height:calc(100dvh - 72px); overflow-y:auto; padding:12px 20px 24px; }
.bb-mobile-group { margin:0; border:0; border-bottom:1px solid var(--bb-rule); border-radius:0; background:transparent; }
.bb-mobile-group>summary { padding:16px 12px; display:flex; justify-content:space-between; min-height:52px; }
.bb-mobile-group a { margin-left:12px; }
.bb-discovery { max-width:1100px; margin:36px auto; padding:28px; border:1px solid var(--bb-rule); border-radius:16px; background:var(--bb-card); color:var(--bb-text); font-family:Nunito,system-ui,sans-serif; }
.bb-discovery h2 { margin:0 0 10px; font-size:24px; }
.bb-discovery [hidden] { display:none!important; }
.bb-discovery { scroll-margin-top:90px; }
.bb-filter-fields { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:16px; align-items:end; }
.bb-filter-fields label { display:block; font-weight:700; font-size:14px; margin-bottom:6px; }
.bb-filter-fields :is(input,select) { width:100%; min-height:48px; font-size:16px; border:1px solid var(--bb-rule); border-radius:8px; padding:10px; background:var(--bb-paper); color:var(--bb-text); }
.bb-filter-fields button,.bb-result-more { min-height:48px; padding:12px 18px; background:#241d1a; color:#fff; border:0; border-radius:8px; cursor:pointer; font:700 14px Nunito,sans-serif; }
.bb-filter-status { margin:18px 0; color:var(--bb-muted); font-size:14px; }
.bb-result-list { list-style:none!important; padding:0!important; margin:0!important; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.bb-result-list li { border:1px solid var(--bb-rule); border-radius:10px; padding:18px; margin:0; min-width:0; }
.bb-result-list a { color:var(--bb-text); font-weight:800; text-decoration:underline; text-underline-offset:3px; font-size:17px; }
.bb-result-list small { display:block; font-size:13px; color:var(--bb-accent); margin-bottom:8px; }
.bb-result-list p { font-size:15px; margin:8px 0 0; line-height:1.6; color:var(--bb-muted); }
.bb-age-links { display:flex; flex-wrap:wrap; gap:8px; padding:0!important; margin:16px 0!important; list-style:none!important; }
.bb-age-links a { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--bb-rule); border-radius:7px; font-size:14px; text-decoration:none; color:var(--bb-text); }
.bb-editorial-note { max-width:820px; margin:20px auto; padding:16px 20px; font-size:14px; line-height:1.65; border-block:1px solid var(--bb-rule); color:var(--bb-muted); }
.bb-editorial-note a { color:var(--bb-accent); }
.bb-context-links { max-width:820px; margin:32px auto; padding:24px; background:var(--bb-tint); border-radius:12px; }
.bb-context-links h2 { margin:0 0 12px; font-size:22px; }
.bb-context-links a { display:inline-block; padding:8px 0; min-height:44px; }
.bb-source-body>.hero { background:none!important; }
.bb-source-body .hero-inner,.bb-source-body .article-body { max-width:820px; margin-inline:auto; }
.bb-source-body>.hero { padding:32px 24px!important; }
.bb-source-body .article-centre { width:100%; }
.bb-source-body .article-outer { display:block!important;max-width:900px!important;margin:0 auto!important; }
.bb-source-body .article-centre { width:auto!important;max-width:820px!important;margin-inline:auto!important; }
.bb-source-body :is(.toc-col,.back-col) {position:static!important;width:auto!important;max-width:820px!important;margin:16px auto!important;}
.bb-page-intro {max-width:820px;margin:32px auto;padding:0 24px}
.bb-page-intro h1 {max-width:24ch}
.bb-source-body .article-wrap { padding:24px 0; }
.bb-source-body .byline { color:var(--bb-muted); font-size:14px; }
.bb-source-body [data-bb-image] { max-width:100%; height:auto; }
.bb-source-body table { font-variant-numeric:tabular-nums; }
.bb-source-body .references,.bb-source-body .references a,.bb-source-body .sources a { overflow-wrap:anywhere;word-break:normal; }
.bb-source-body :is(.table-wrap,.bb-scroll-x) { width:100%;min-width:0;max-width:100%;overflow-x:auto;box-sizing:border-box; }
.bb-source-body .hero-inner .article-outer { padding-inline:0!important; }
.bb-source-body .article-centre .article-body { padding-inline:0!important; }
.bb-mobile-nav:not([open])>.bb-mobile-panel { display:none!important; }
.bb-mobile-panel { position:fixed!important;top:68px!important;left:0!important;right:0!important;width:100vw!important; }
.bb-source-body [style*="color:#9ca3af"],.bb-source-body [style*="color: #9ca3af"],
.bb-source-body [style*="color:#94a3b8"],.bb-source-body [style*="color: #94a3b8"] { color:#5c514b!important; }
.bb-source-body a[style*="#a29bfe"],.bb-source-body a[style*="#e57a84"] { color:#983442!important; }
body>footer:not(.bb-footer) { background:#201b29!important; color:#ded7e4!important; padding-block:24px; }
body>footer:not(.bb-footer) :is(p,a,li,span,strong),body>footer:not(.bb-footer) .bb-editorial-note { color:#ded7e4!important; }
body>footer:not(.bb-footer) .bb-theme-toggle { background:#342c3f; color:#fff; margin:16px 24px; }
body>footer:not(.bb-footer) a { display:inline-block; padding-block:6px; }
.bb-source-body .callout-label,.bb-source-body .toc-title { color:#62524a!important; }
.bb-source-body .badge,.bb-source-body .card-new-tag { color:#713344!important; }
.bb-source-body :is(.topic-btn,.article-category,.related-card-cat,.card-link) { color:#86313f!important; }
.bb-source-body :is(.article-date,.card-date,.toc-heading,.toc-title-side) { color:#62524b!important;font-size:13px!important; }
.bb-source-body :is(.sleep-stat-label,.symptom-tip,.related-card-label) { color:#6b3d65!important; }
.bb-source-body .cta-btn {background:#241d1a!important;color:#fff!important;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.bb-source-body :is(.reveal,.fade-up,.bb-reveal,.byline) { opacity:1!important;transform:none!important;transition:none!important;animation:none!important; }
.bb-source-body [style*="color:#e2e8f0"],.bb-source-body [style*="color: #e2e8f0"] { color:#52473f!important; }
.bb-standards-grid>div>div { color:#d1c6c1!important; }
#root button.text-primary,#root a.text-primary { color:#9f3d2c; }
.bb-source-body .bb-breadcrumb a { min-height:44px; display:inline-flex; align-items:center; }
.bb-source-body .bb-breadcrumb { font-size:14px; color:var(--bb-muted); }
.bb-source-body .bb-bc-sep { color:var(--bb-muted); }
.bb-theme-toggle { font:700 14px Nunito,sans-serif; background:var(--bb-card); color:var(--bb-text); border:1px solid var(--bb-rule); border-radius:8px; min-height:44px; padding:10px 14px; cursor:pointer; }
[data-bb-theme="dark"] { --bb-text:#f4ece7;--bb-muted:#c8bcb4;--bb-paper:#201b19;--bb-card:#292321;--bb-rule:#64574f;--bb-accent:#f5a5af;--bb-tint:#342c29; }
html[data-bb-theme="dark"] body { background:var(--bb-paper)!important; color:var(--bb-text)!important; }
html[data-bb-theme="dark"] .bb-source-body :is(h1,h2,h3,h4,p,li,strong,span,td,th) { color:var(--bb-text)!important; }
html[data-bb-theme="dark"] .bb-source-body :is(section,article,aside,.hero,.article-wrap,.callout,.snippet,.byline,.toc,.card,.article-card,.related-articles,.article-centre,th,td) { background-color:var(--bb-card)!important; background-image:none!important; border-color:var(--bb-rule)!important; }
html[data-bb-theme="dark"] .bb-source-body a { color:var(--bb-accent)!important; }
html[data-bb-theme="dark"] .bb-source-body a { color:#f6b1bc!important; }
html[data-bb-theme="dark"] .bb-source-body .cta-btn {color:#fff!important}
html[data-bb-theme="dark"] .bb-source-body [style*="background:"] { background:var(--bb-card)!important;color:var(--bb-text)!important; }
.bb-source-body a:focus-visible { outline:3px solid var(--bb-accent); outline-offset:3px; }
.bb-source-body .bb-scroll-x { background:var(--bb-card); }
@media(max-width:1050px) {
 .bb-desktop-nav,.bb-signin { display:none!important; }.bb-mobile-nav{display:block}
 .bb-header-inner{min-height:68px;gap:12px}.bb-header-actions{gap:8px}
 .bb-filter-fields{grid-template-columns:1fr 1fr}.bb-search-field{grid-column:1/-1}
}
@media(max-width:600px) {
 .bb-header-inner{padding:0 12px}.bb-brand{font-size:18px}.bb-cta-full{display:none}.bb-cta-short{display:inline}
 .bb-header a.bb-start{padding:10px 12px}.bb-mobile-nav>summary{font-size:14px;padding:8px 4px}
 .bb-discovery{padding:20px 16px;margin:24px 16px}.bb-result-list{grid-template-columns:1fr}
 .bb-filter-fields{grid-template-columns:1fr}.bb-search-field{grid-column:auto}
 .bb-source-body .article-wrap{padding-inline:0}.bb-source-body .article-body{padding-inline:20px}
 .bb-source-body {padding-inline:20px}
 .bb-source-body :is(.article-outer,.article-centre,.article-body,.hero-inner,.article-wrap,.bb-page-intro) {padding-inline:0!important}
 .bb-source-body>.hero {padding-inline:0!important}
 .bb-source-body .bb-discovery {margin-inline:0}
 .bb-source-body .bb-breadcrumb [aria-current="page"] {display:none}
 .bb-source-body .bb-breadcrumb .bb-bc-sep:has(+[aria-current="page"]) {display:none}
}
@media(max-width:360px) {
 .bb-header-inner {padding:0 8px;gap:6px}
 .bb-brand {font-size:17px;gap:5px}
 .bb-brand svg {width:24px;height:24px}
 .bb-header-actions {gap:4px}
 .bb-header a.bb-start {padding:10px;font-size:13px}
 .bb-mobile-nav>summary {font-size:13px;padding:8px 2px}
 .bb-header summary::after {margin-left:4px}
}
@media(prefers-reduced-motion:reduce){.bb-header *,.bb-discovery *{scroll-behavior:auto!important;transition:none!important}}


/* Common wayfinding, compact footer and reading controls. */
.bb-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.bb-page-share { display:none; margin:12px 0 18px; }
html[data-bb-share-ready] .bb-page-share { display:flex; }
.bb-share-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; border:1px solid var(--bb-rule); border-radius:10px; background:var(--bb-card); color:var(--bb-text); cursor:pointer; font:700 14px Nunito,system-ui,sans-serif; }
.bb-share-trigger:hover { background:var(--bb-tint); }
.bb-share-trigger:disabled { opacity:.6; cursor:wait; }
.bb-share-trigger:focus-visible,.bb-share-dialog :focus-visible { outline:3px solid var(--bb-accent); outline-offset:3px; }
.bb-share-dialog { box-sizing:border-box; width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; margin:auto; padding:28px; border:1px solid var(--bb-rule); border-radius:20px; background:var(--bb-card); color:var(--bb-text); box-shadow:0 24px 80px #241d1a40; font:15px/1.6 Nunito,system-ui,sans-serif; }
.bb-share-dialog::backdrop { background:#241d1a80; }
.bb-share-dialog h2 { margin:0 44px 8px 0; font:700 24px/1.3 'Playfair Display',Georgia,serif; color:var(--bb-text); }
.bb-share-dialog p { margin:0 0 20px; color:var(--bb-muted); }
.bb-share-dialog label { display:block; margin-bottom:6px; font-weight:700; }
.bb-share-close { position:absolute; right:12px; top:12px; min-width:44px; min-height:44px; border:0; border-radius:8px; background:transparent; color:var(--bb-text); font:28px/1 system-ui,sans-serif; cursor:pointer; }
.bb-share-copy-row { display:flex; gap:8px; }
.bb-share-dialog input { min-width:0; flex:1; padding:10px; min-height:46px; border:1px solid var(--bb-rule); border-radius:8px; color:var(--bb-text); background:var(--bb-paper); font:14px Nunito,system-ui,sans-serif; }
.bb-share-copy { min-height:46px; padding:10px 14px; border:0; border-radius:8px; background:#241d1a; color:white; font:700 14px Nunito,system-ui,sans-serif; white-space:nowrap; cursor:pointer; }
.bb-share-copy:disabled { opacity:.6; }
.bb-share-dialog .bb-share-status { min-height:24px; margin:8px 0 16px; font-size:14px; }
.bb-share-dialog nav { display:flex; flex-wrap:wrap; gap:8px; }
.bb-share-dialog nav a { flex:1; min-width:90px; min-height:44px; padding:10px 12px; border:1px solid var(--bb-rule); border-radius:8px; color:var(--bb-text); text-decoration:none; text-align:center; font-weight:700; }
.bb-share-dialog nav a:hover { background:var(--bb-tint); }
@media(max-width:400px) { .bb-share-dialog { padding:24px 18px; } .bb-share-copy-row { flex-wrap:wrap; } .bb-share-dialog input { flex-basis:100%; } .bb-share-copy { width:100%; } }
.bb-header [aria-current=page],.bb-header details[data-active]>summary { color:var(--bb-accent)!important; }
.bb-header .bb-mobile-tools { border-top:1px solid var(--bb-rule); margin-top:8px; padding-top:12px; }
.bb-mobile-tools>span { display:block; padding:8px 12px; font-size:13px; color:var(--bb-muted); font-weight:800; }
.bb-header .bb-mobile-find { background:var(--bb-tint); font-weight:800; margin-bottom:8px; }
.bb-quick-start { max-width:1200px; margin:36px auto 0; padding:28px; display:grid; grid-template-columns:1fr 1.3fr; gap:20px 32px; align-items:center; background:#f8f1ee; border:1px solid #e2d8d3; border-radius:20px; color:#241d1a; }
.bb-quick-start .bb-eyebrow { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; color:#983442; margin:0 0 8px; }
.bb-quick-start h2 { font:700 clamp(24px,2.4vw,30px) 'Playfair Display',Georgia,serif; margin:0 0 8px; }
.bb-quick-start p { margin:0; color:#63564f; line-height:1.6; }
.bb-quick-start form { display:flex; gap:8px; min-width:0; }
.bb-quick-start input { flex:1; min-width:0; background:#fff; border:1px solid #d1c1b8; border-radius:10px; padding:12px; min-height:48px; font:inherit; font-size:16px; color:#241d1a; }
.bb-quick-start button,.bb-empty-search button { background:#241d1a; color:#fff; border:0; border-radius:10px; padding:12px 18px; min-height:48px; font:800 14px Nunito,system-ui,sans-serif; cursor:pointer; white-space:nowrap; }
.bb-quick-topics { grid-column:2; display:flex; gap:6px 16px; flex-wrap:wrap; }
.bb-quick-topics a { display:inline-flex; align-items:center; min-height:44px; color:#77303a; font-size:14px; font-weight:700; text-underline-offset:4px; }
.bb-quick-start :focus-visible,.bb-footer :focus-visible,.bb-reading-tools :focus-visible,.bb-app-nav :focus-visible { outline:3px solid #a33443; outline-offset:3px; }
.bb-filter-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:12px; }
.bb-filter-actions a { min-height:44px; display:inline-flex; align-items:center; color:var(--bb-accent); font-size:14px; font-weight:700; }
.bb-clear-search { border:1px solid var(--bb-rule); background:var(--bb-paper); color:var(--bb-text); border-radius:8px; padding:10px 14px; min-height:44px; cursor:pointer; font:700 14px Nunito,sans-serif; }
.bb-empty-search { grid-column:1/-1; background:var(--bb-tint); }
.bb-empty-search button { margin-top:12px; }
.bb-result-list li:hover { border-color:#bc9a8f; background:var(--bb-paper); }
.bb-result-more { margin-top:20px; }
.bb-catalog-archive { border:1px solid var(--bb-rule); border-radius:16px; margin:28px 0; padding:0 20px 20px; background:var(--bb-card); scroll-margin-top:90px; }
.bb-catalog-archive>summary { cursor:pointer; font-weight:800; padding:20px 0; min-height:56px; font-size:18px; color:var(--bb-text); background:transparent!important; }
.bb-catalog-archive:not([open]) { padding-bottom:0; }
.bb-reading-meta { display:flex; gap:10px; flex-wrap:wrap; align-items:center; font:600 14px Nunito,system-ui,sans-serif; color:var(--bb-muted); margin:16px 0; }
.bb-reading-meta a { color:var(--bb-accent); min-height:44px; display:inline-flex; align-items:center; }
.bb-reading-tools { border:1px solid var(--bb-rule); border-radius:12px; background:var(--bb-card); margin:0 0 24px; padding:0 18px; text-align:left; }
.bb-source-body .bb-reading-tools>summary { font:800 15px Nunito,system-ui,sans-serif; min-height:52px; padding:16px 0; cursor:pointer; color:var(--bb-text); background:transparent!important; }
.bb-reading-tools nav { max-height:340px; overflow:auto; padding-bottom:16px; }
.bb-source-body .bb-reading-tools ol { display:grid; grid-template-columns:1fr 1fr; gap:4px 24px; padding:0 0 0 20px; margin:0; }
.bb-reading-tools a { display:inline-flex; align-items:center; min-height:44px; color:var(--bb-accent); font:600 14px/1.5 Nunito,system-ui,sans-serif; text-decoration:underline; text-underline-offset:3px; }
.bb-source-body:has(.bb-reading-tools) :is(.toc,.toc-col) { display:none!important; }
.bb-source-body :is(h2,h3,[id]) { scroll-margin-top:90px; }
.bb-footer { margin:0!important; padding:48px 24px 28px!important; background:var(--bb-tint)!important; border-top:1px solid var(--bb-rule); color:var(--bb-text)!important; font-family:Nunito,system-ui,sans-serif; }
.bb-footer-inner { max-width:1200px; margin:auto; }
.bb-footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
.bb-footer-brand p { max-width:30ch; font-size:15px; line-height:1.7; color:var(--bb-muted)!important; margin:12px 0; }
.bb-footer a { color:var(--bb-text)!important; text-decoration:none; min-height:44px; display:inline-flex; align-items:center; font-size:14px; line-height:1.5; }
.bb-footer a:hover { text-decoration:underline; text-underline-offset:4px; }
.bb-footer .bb-brand { font-size:23px; }
.bb-footer h2 { font:800 14px Nunito,sans-serif; margin:12px 0 8px; letter-spacing:0; }
.bb-footer ul { list-style:none; padding:0; margin:0; }
.bb-footer li { margin:0; }
.bb-footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; padding-top:24px; margin-top:24px; border-top:1px solid var(--bb-rule); }
.bb-footer-bottom p,.bb-footer-note { margin:0; font-size:13px; color:var(--bb-muted)!important; line-height:1.7; }
.bb-footer-bottom nav { display:flex; flex-wrap:wrap; gap:4px 20px; }
.bb-footer-note { margin-top:16px; max-width:95ch; }
.bb-app-nav { position:sticky; top:56px; z-index:35; background:hsl(var(--background)); border-bottom:1px solid hsl(var(--border)); }
.bb-app-nav-inner { max-width:1280px; margin:auto; padding:8px 16px; display:flex; gap:6px; }
.bb-app-primary { display:flex; gap:6px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.bb-app-nav a,.bb-app-nav summary { min-height:44px; border-radius:10px; padding:10px 14px; white-space:nowrap; font-size:14px; font-weight:700; color:hsl(var(--muted-foreground)); }
.bb-app-nav [aria-current=page] { background:#f8e4e5; color:#77303a; }
.bb-app-more { position:relative; flex-shrink:0; padding:0; margin:0; border:0; background:none; overflow:visible; }
.bb-app-more summary { cursor:pointer; display:flex; align-items:center; }
.bb-app-more-panel { position:absolute; right:0; top:100%; width:250px; max-height:calc(100dvh - 140px); overflow:auto; border:1px solid hsl(var(--border)); border-radius:12px; padding:8px; background:hsl(var(--background)); box-shadow:0 10px 25px #241d1a18; }
.bb-app-more-panel a { display:flex; align-items:center; width:100%; text-align:left; }
.bb-guide-age { margin:20px 0; border:1px solid hsl(var(--border)); background:hsl(var(--card)); border-radius:12px; }
.bb-guide-age summary { min-height:48px; padding:14px 16px; cursor:pointer; font-weight:700; font-size:14px; }
.bb-guide-age .sticky { position:static; }
#tab-content { scroll-margin-top:130px; }
@media(max-width:1248px) { .bb-quick-start { margin-inline:24px; } }
@media(max-width:760px) {
  .bb-quick-start { grid-template-columns:1fr; padding:22px; margin:24px 20px 0; gap:16px; }
  .bb-quick-topics { grid-column:1; }
  .bb-footer-grid { grid-template-columns:1fr 1fr; gap:24px; }
  .bb-footer-brand { grid-column:1/-1; }
  .bb-footer-brand p { max-width:50ch; }
  .bb-source-body .bb-reading-tools ol { grid-template-columns:1fr; }
  .bb-app-nav-inner { padding:6px 12px; gap:4px; }
  .bb-app-nav a,.bb-app-nav summary { padding:10px 12px; font-size:13px; }
}
@media(max-width:420px) { .bb-quick-start form { flex-direction:column; } .bb-footer-grid { gap:20px 16px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto!important; } *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }

.bb-app-nav a { display:inline-flex; align-items:center; text-decoration:none; }
.bb-app-more:not([open])>.bb-app-more-panel { display:none; }
.bb-app-more-panel a:hover { background:hsl(var(--muted)); }

.dark .bb-footer { --bb-text:#f4ece7; --bb-muted:#c8bcb4; --bb-rule:#64574f; --bb-tint:#292321; }

/* Hidden horizontal overflow on body creates a second scrolling container and breaks sticky navigation. */
body { overflow-x:clip!important; overflow-y:visible!important; }

.bb-result-list a { display:block; }

/* Small, public-catalog next steps for long guides. */
.bb-related-guides { box-sizing:border-box;width:calc(100% - 3rem);max-width:900px;margin:3rem auto 1rem;padding:1.5rem;border:1px solid #c9dedb;border-radius:1.25rem;background:#f0f8f6;color:#183b3d; }
.bb-related-heading {display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;}
.bb-related-heading h2 {margin:0;font-size:1.4rem;}
.bb-related-heading > a {display:inline-flex;align-items:center;min-height:44px;color:#01696f;font-weight:700;font-size:.9rem;}
.bb-related-guides ul {list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;}
.bb-related-guides li {margin:0;min-width:0;}
.bb-related-guides li a {display:flex;flex-direction:column;gap:.75rem;height:100%;padding:1rem;background:#fff;border:1px solid #c9dedb;border-radius:.85rem;color:#183b3d;text-decoration:none;}
.bb-related-guides li a:hover {border-color:#01696f;box-shadow:0 2px 8px #183b3d12;}
.bb-related-guides li a:focus-visible {outline:3px solid #01696f;outline-offset:3px;}
.bb-related-guides small {font-size:.75rem;color:#46666a;}
.bb-related-guides li a > span {font-size:1rem;font-weight:700;line-height:1.5;}
.bb-related-guides li a .bb-related-action {margin-top:auto;font-size:.85rem;color:#01696f;}
html[data-bb-theme="dark"] .bb-related-guides {background:#162c2f;color:#edf7f5;border-color:#446468;}
html[data-bb-theme="dark"] .bb-related-guides li a {background:#20383b;color:#edf7f5;border-color:#446468;}
html[data-bb-theme="dark"] .bb-related-guides small {color:#bfd3d1;}
html[data-bb-theme="dark"] .bb-related-guides a,html[data-bb-theme="dark"] .bb-related-guides li a .bb-related-action {color:#9ddbd3;}
@media(max-width:700px) {.bb-related-guides {padding:1rem;}.bb-related-guides ul {grid-template-columns:1fr;}}
