/* Demo presentation only. Component package tokens and geometry remain untouched. */
:root {
    --bz-docs-bg: #111214;
    --bz-docs-bg-secondary: #1b1c20;
    --bz-text-primary: #f4f4f5;
    --bz-text-secondary: #b7b8c0;
    --bz-text-muted: #9698a3;
    --bz-accent-purple: #b3a0f4;
    --bz-accent-cyan: #b3c7cf;
    --bz-gradient-brand: linear-gradient(135deg, #ded5fb, #b3c7cf);
    --bz-active-bg: #292534;
    --bz-focus-ring: 0 0 0 3px #b3a0f4;
    --site-line: #303136;
    --site-panel: #191a1e;
}
html { scroll-padding-top: 100px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body .bz-orbs-container { display: none; }
.site-skip { position: fixed; left: 16px; top: -80px; z-index: 3000; padding: 12px 20px; background: #f4f4f5; color: #111214; border-radius: 8px; }
.site-skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 1100; min-height: 76px; padding: 16px max(24px, calc((100vw - 1280px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 28px; background: #111214; border-bottom: 1px solid var(--site-line); }
.site-brand { display: flex; align-items: center; gap: 10px; color: #f4f4f5; text-decoration: none; font-weight: 650; letter-spacing: -.035em; font-size: 20px; }
.site-brand img { object-fit: contain; }
.site-brand__tag { font-size: 11px; letter-spacing: .03em; font-weight: 400; color: #9698a3; margin-left: 10px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #b7b8c0; text-decoration: none; font-size: 14px; padding: 8px 0; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a.active { box-shadow: 0 2px #b3a0f4; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
body .bz-hero { min-height: auto; padding: 88px 24px 52px; }
body .bz-hero__content { gap: 20px; max-width: 850px; }
body .bz-hero__brand { letter-spacing: .12em; font-size: 12px; color: #b3a0f4; }
body .bz-hero__title { font-size: clamp(32px, 5vw, 62px); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; color: #f4f4f5; background: none; -webkit-text-fill-color: currentColor; }
body .bz-hero__subtitle { font-size: 17px; max-width: 560px; color: #b7b8c0; }
body .bz-hero__actions { gap: 12px; margin-top: 4px; }
body .bz-btn { border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 550; box-shadow: none; transition: background .15s, border-color .15s; }
body .bz-btn--primary { background: #e9e3fa; color: #211a32; border: 1px solid #e9e3fa; }
body .bz-btn--primary:hover { background: #fff; box-shadow: none; transform: none; }
body .bz-btn--secondary { background: #1b1c20; color: #e4e4e7; border: 1px solid #3b3c43; }
body .bz-btn--secondary:hover { background: #25262c; box-shadow: none; transform: none; }
body .bz-install-box { background: #191a1e; border: 1px solid #34353c; border-radius: 8px; box-shadow: none; max-width: 100%; }
body .bz-install-box__command { font-size: 13px; }
body .bz-scroll-indicator { margin-top: 0; }
body .bz-scroll-indicator svg { animation: none; }
body .bz-demo, body .bzb-presentation { padding: 44px 24px; }
body .bz-demo__label, body .bzb-presentation__label, .site-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #b3a0f4; }
body .bz-demo__title, body .bzb-presentation__title { font-size: 26px; letter-spacing: -.035em; margin-bottom: 24px; }
body .bz-theme-pills { border-radius: 10px; border-color: #36373e; background: #191a1e; padding: 4px; gap: 2px; margin-bottom: 20px; transform: none; }
body .bz-pill { border-radius: 7px; padding: 9px 16px; font-size: 14px; }
body .bz-pill.active { background: #34313e; border-color: #595164; box-shadow: none; }
body .bz-selected-title { color: #e4e4e7; background: none; -webkit-text-fill-color: currentColor; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
body .bz-feature-card { background: #191a1e; border-color: #303136; border-radius: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
body .bz-feature-card:hover { border-color: #595164; transform: none; box-shadow: none; }
body .bz-features { padding-top: 48px; }
body .bz-features__heading { font-size: 26px; letter-spacing: -.03em; }
.component-directory { max-width: 1240px; margin: 0 auto; padding: 72px 24px; }
.section-heading { max-width: 660px; margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.045em; font-weight: 550; margin: 12px 0; }
.section-heading p, .collection-help p { color: #b7b8c0; font-size: 16px; }
.component-directory__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.component-entry { padding: 28px; border: 1px solid #303136; border-radius: 12px; background: #191a1e; }
.component-entry__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.component-entry__icon { color: #b3a0f4; display: inline-flex; }
.component-entry__icon svg { width: 28px; height: 28px; }
.component-entry__version { font-family: monospace; font-size: 12px; color: #9698a3; }
.component-entry h3 { font-size: 24px; font-weight: 550; letter-spacing: -.03em; }
.component-entry h3 a { color: #f4f4f5; text-decoration: none; display: flex; justify-content: space-between; }
.component-entry h3 a span { color: #9698a3; }
.component-entry p { color: #b7b8c0; margin: 10px 0 24px; font-size: 15px; }
.component-entry__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.component-entry__links a { color: #ddd5f5; text-underline-offset: 4px; }
.collection-help { max-width: 1192px; margin: 0 auto 64px; padding: 36px 24px; border-top: 1px solid #303136; }
.collection-help h2 { font-weight: 550; font-size: 28px; letter-spacing: -.035em; }
.collection-help p { margin: 12px 0 24px; }
.site-footer { max-width: 1240px; margin: 40px auto 0; padding: 32px 24px; border-top: 1px solid #303136; display: flex; gap: 24px; flex-wrap: wrap; color: #9698a3; font-size: 13px; }
.site-footer a { color: #c9c9d0; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
body .bz-sidebar { top: 76px; background: #16171a; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #303136; }
body .bz-sidebar__logo-text { color: #f4f4f5; background: none; -webkit-text-fill-color: currentColor; }
body .bz-main { padding: 40px clamp(24px, 4vw, 64px); }
body .bz-page-header__title { color: #f4f4f5; background: none; -webkit-text-fill-color: currentColor; letter-spacing: -.04em; }
body .bz-doc-section { background: #191a1e; border-color: #303136; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
body .bz-doc-section::before { display: none; }
body .bz-mobile-toggle { top: 92px; right: 16px; background: #26272e; border: 1px solid #4b4c55; border-radius: 8px; }
@media (max-width: 768px) {
    .site-header { min-height: 104px; padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
    .site-brand { font-size: 18px; }
    .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
    .site-nav a { font-size: 13px; padding: 4px 0; }
    body .bz-sidebar { top: 104px; }
    body .bz-main { margin-left: 0; padding: 64px 18px 32px; }
    body .bz-mobile-toggle { top: 116px; }
    body .bz-hero { padding: 48px 20px 28px; }
    body .bz-demo, body .bzb-presentation { padding: 32px 16px; }
    body .bz-theme-pills { flex-wrap: nowrap; width: auto; max-width: 100%; }
    body .bz-pill { padding: 9px 11px; font-size: 13px; }
    body .bz-pill__icon { display: none; }
    .component-directory { padding: 48px 18px; }
    .component-directory__grid { grid-template-columns: 1fr; }
    .component-entry { padding: 24px; }
    .site-footer { flex-direction: column; gap: 12px; }
    .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body .bz-splash__logo, body .bz-splash__loader-bar { animation: none; }
}

body .bz-sidebar .bz-sidebar__link.active { background: #2b2636; color: #e1d7fa; }
body .bz-sidebar .bz-sidebar__link.active::before { background: #b3a0f4; }
body .bz-sidebar { height: calc(100dvh - 76px); }
@media (max-width: 768px) { body .bz-sidebar { height: calc(100dvh - 104px); } }

/* Keep the documentation rail independent from page scrolling and mobile zoom. */
#docs-navigation { top: 76px; bottom: 0; height: auto; width: 248px; background: #16171a; border-right: 1px solid #303136; transform: none; }
body .bz-main { margin-left: 248px; }
body .bz-main__content { min-width: 0; }
body .bz-mobile-toggle { display: none; }
.docs-dialog { margin: 0; padding: 0; border: 1px solid #3b3c43; background: #16171a; color: #f4f4f5; max-width: min(360px, 90vw); width: 360px; height: 100dvh; max-height: 100dvh; overflow: hidden; }
.docs-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.docs-dialog .bz-sidebar { position: static; width: 100%; max-width: none; height: 100%; transform: none; background: #16171a; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; }
.docs-dialog .bz-sidebar__close { display: flex; }
/* Keep one touch scroll surface so the entire navigation and footer remain reachable. */
.docs-dialog .bz-sidebar__nav { flex: 0 0 auto; overflow: visible; }
body :is(.bz-demo, .bzb-presentation, .component-directory, .bz-doc-section, h1, h2, h3) { scroll-margin-top: 16px; }
body .bz-demo { padding-top: 24px; padding-bottom: 24px; }
body .bz-demo__stage { padding-top: 12px; padding-bottom: 12px; }
body .bz-selected-title { margin-top: 16px; }
body .bz-sidebar__nav { scrollbar-width: thin; }
@media (max-width: 1024px) {
    .docs-desktop { display: none; }
    body .bz-main { margin-left: 0; padding-top: 72px; }
    body .bz-mobile-toggle { display: flex; gap: 8px; align-items: center; width: auto; height: auto; padding: 10px 14px; font: inherit; font-size: 13px; z-index: 900; }
}
.component-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 18px 20px 0; }
.component-links a { font-size: 13px; color: #b7b8c0; text-underline-offset: 5px; }
.component-links a:hover { color: #f4f4f5; }
.demo-surface-controls { max-width: 1000px; margin: 0 auto 12px; text-align: right; }
.demo-surface-controls label { display: inline-flex; align-items: center; gap: 10px; color: #b7b8c0; font-size: 12px; }
.demo-surface-controls select { font: inherit; color: #e4e4e7; background: #191a1e; border: 1px solid #45464e; border-radius: 6px; padding: 8px 12px; }
.demo-surface { max-width: 1000px; margin: auto; border-radius: 16px; }
.demo-surface[data-preview-background="dark"] { background: #16171b; }
.demo-surface[data-preview-background="light"] { background: #eceef1; }
.demo-surface[data-preview-background="tinted"] { background: radial-gradient(ellipse at 20% 30%, #716a88, transparent 65%), linear-gradient(130deg, #343b46, #1a2329); }
.component-api-anchor { scroll-margin-top: 16px; }
body:has(.docs-dialog[open]) { overflow: hidden; }
/* Preserve compact documentation typography with a sequential heading hierarchy. */
.bz-doc-section__content > h3 { font-size: 1rem; font-weight: 600; }
.bz-code-block pre:focus-visible { outline: 2px solid #c4b5fd; outline-offset: -3px; }
.collection-title { max-width: 1240px; margin: 40px auto 0; padding: 0 24px; font-size: 32px; letter-spacing: -.04em; }
.playground-control-label { font-size: .875rem; font-weight: 500; color: var(--bz-text-secondary); }
.demo-example-title { font-size: 1rem; font-weight: 500; color: var(--bz-text-secondary); margin-bottom: 8px; }
/* Version-pinned commands remain readable on narrow screens. */
body .bz-install-box__command { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body .bz-install-box__copy { flex-shrink: 0; }
