/* BadgeBox v2 — base reset + typography
 * Lightweight normalization. Does NOT touch legacy widgets; only applies
 * within a v2 context (body.bbx-v2 or nested .bbx-root containers).
 */

body.bbx-v2 {
    margin: 0;
    padding: 0;
    background: var(--bbx-gray-50);
    color: var(--bbx-gray-700);
    font-family: var(--bbx-font);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.bbx-v2,
body.bbx-v2 * {
    box-sizing: border-box;
}

body.bbx-v2 a {
    color: var(--bbx-blue-600);
    text-decoration: none;
}
body.bbx-v2 a:hover { color: var(--bbx-blue-700); }

body.bbx-v2 h1,
body.bbx-v2 h2,
body.bbx-v2 h3,
body.bbx-v2 h4 {
    margin: 0;
    color: var(--bbx-gray-800);
    font-weight: 600;
    letter-spacing: -0.3px;
}
body.bbx-v2 h1 { font-size: 22px; line-height: 1.2; }
body.bbx-v2 h2 { font-size: 18px; line-height: 1.3; }
body.bbx-v2 h3 { font-size: 15px; line-height: 1.35; }
body.bbx-v2 h4 { font-size: 13px; line-height: 1.4; }

body.bbx-v2 p { margin: 0; }

body.bbx-v2 button,
body.bbx-v2 input,
body.bbx-v2 select,
body.bbx-v2 textarea {
    font-family: inherit;
    font-size: inherit;
}

body.bbx-v2 ::placeholder {
    color: var(--bbx-gray-400);
    opacity: 1;
}

body.bbx-v2 code,
body.bbx-v2 .bbx-mono {
    font-family: var(--bbx-mono);
}

/* Scrollbar: single source of truth in style_bbx_primitives.css §8b
 * (token --bbx-scrollbar-* + auto-hide su #iframe-scroller / #widget). */

/* Utility: uppercase label */
body.bbx-v2 .bbx-label-u {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--bbx-gray-500);
}

/* Utility: hidden */
body.bbx-v2 .bbx-hidden { display: none !important; }
