/* ============================================================
   base.css — global reset & base element styles.
   Split out of the former monolithic site.css (Phase 1 foundation).
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0.5px;
    padding: 0;
}

/* Density: shrinks every rem-sized measurement across the whole app (our own
   tokens.css scale, base.css headings below, and the many hardcoded rem
   font-sizes throughout components.css/legacy-pages.css) from a 16px to a
   14px root in one place, so more content/components fit on screen without
   hand-editing dozens of individual rules. DevExtreme widgets are exempt —
   dx.light.css hardcodes their font-size in px, not relative to the root —
   see the .dx-widget override in components.css for that half of the system. */
html {
    font-size: 87.5%;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text1);
    font-family: 'Manrope', 'Cairo', 'Segoe UI', sans-serif;
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    line-height: 1.6;
    display: flex;
}

/* Typography hierarchy — enterprise information-first sizing, not
   decorative. Headings inherit color/family from body; only size/weight
   differ per level. */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    color: var(--text1);
    line-height: 1.3;
}
h1 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-xl);  font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-lg);  font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-md);  font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-base);font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-sm);  font-weight: var(--fw-semibold); color: var(--text2); }

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button {
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

