/**
 * 2-base.css — Base Styles
 * ============================================================
 * Global resets, body defaults, typography, and scrollbar.
 * No component-specific styles here.
 * Depends on: 1-tokens.css
 * ============================================================
 */

/* --------------------------------------------------------
 * BODY
 * -------------------------------------------------------- */
/* The horizontal clip belongs on <html>, not <body>.
 *
 * overflow-x on body makes body a scroll container, and position:sticky inside
 * a scroll container pins to THAT box rather than the viewport -- so every
 * sticky header in the system (grade row headers, registrar field groups, the
 * settings nav, the POS cart, the evaluation rating scale) silently stopped
 * following the scroll. On the root element the overflow propagates to the
 * viewport instead: horizontal scrolling is still prevented, and sticky works.
 */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--color-body-bg);
    font-family: var(--font-family-base, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
    font-size: var(--text-base);
    line-height: var(--leading-snug);
}

/* --------------------------------------------------------
 * SCROLLBAR
 * -------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
    opacity: 0.8;
}
