/* ============================================================
   reset.css — Box model reset & base element normalization
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* The entire app is a light theme (white base, green accents) with no
       dark variant. Declaring color-scheme:light tells the browser so, which
       stops mobile "force dark" engines (Samsung Internet, Chrome auto-dark)
       from re-tinting our fixed light surfaces — that was making the public
       site unreadable (vanished borders/cards, broken contrast) for visitors
       whose OS is in dark mode. If a real dark theme is added later, switch
       this to `light dark` and provide dark token values. */
    color-scheme: light;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    color: var(--color-text-primary);
    background-color: var(--color-bg-page);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Do NOT override img styles inside the admin template elements
   which rely on their own sizing rules for logos and icons */
.sidenav-menu img,
.sidenav-menu svg,
.app-topbar img,
.app-topbar svg {
    max-width: unset;
    height: unset;
    display: unset;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-body);
    line-height: var(--lh-normal);
}

strong {
    font-weight: var(--fw-semibold);
}