/*
 * Purpose: Small global reset layered over Bootstrap 5.
 *          Bootstrap's component CSS (cards, buttons, alerts) is
 *          overridden in `kinetic/components.css` (Phase 2 expands
 *          those rules). This file just enforces the Kinetic
 *          shape + base typography rules globally.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--gp-bg);
    color: var(--gp-fg);
    font-family: var(--gp-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Kill Bootstrap's default 1rem border-radius everywhere. The
   Kinetic shape language is sharp corners (§2.1.4). */
*,
.btn,
.card,
.form-control,
.form-select,
.modal-content,
.alert,
.toast,
.badge,
.dropdown-menu,
.nav-link,
.list-group-item,
.input-group-text,
.page-link,
.progress,
.popover,
.tooltip,
.offcanvas {
    border-radius: 0 !important;
}

/* Kill the soft drop-shadows that Bootstrap and AdminLTE sprinkle
   around. Kinetic has no shadows (§2.1.4 — depth via color). */
*,
.btn,
.card,
.modal-content,
.toast,
.alert,
.dropdown-menu,
.nav-link,
.popover,
.offcanvas,
.app-header,
.app-sidebar,
.app-footer,
.shadow,
.shadow-sm,
.shadow-lg,
.shadow-none {
    box-shadow: none !important;
}

/* Selection: yellow bg + black text (per §2.1.1). */
::selection {
    background: var(--gp-accent);
    color: var(--gp-accent-fg);
    text-shadow: none;
}

::-moz-selection {
    background: var(--gp-accent);
    color: var(--gp-accent-fg);
    text-shadow: none;
}

/* Strip AdminLTE's sticky/fixed offsets so the new chrome in
   Phase 1 can paint over a clean canvas. */
.app-wrapper {
    min-height: 100vh;
}

/* The wholesale portal is excluded from the redesign (Decision 6).
   Keep its scoped rules intact — do not let this reset cascade
   into its chrome. */
body.wholesale-portal-body,
body.wholesale-portal-body * {
    border-radius: revert;
    box-shadow: revert;
}
