/* =========================================================================
   EduOne · Greenie — BASE (reset + nền tảng)
   ========================================================================= */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { line-height: var(--lh-tight); font-weight: var(--fw-bold); color: var(--c-text); }
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { color: var(--c-text-2); }

a { color: var(--c-primary-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-700); }

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

button { font-family: inherit; cursor: pointer; }

ul, ol { padding-left: var(--s-5); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* Container tiện dụng */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* Tiện ích chung */
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--c-text-2); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }

/* Lớp trợ năng: ẩn nhìn nhưng đọc được bằng screen reader */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Thanh cuộn gọn gàng */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--r-full); border: 2px solid var(--c-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-3); }
