/* Reset + typography cơ bản. */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--lm-font);
    color: var(--lm-ink);
    background: var(--lm-white);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-weight: 800;
    color: var(--lm-ink);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a {
    color: var(--lm-green);
}

table {
    border-collapse: collapse;
    width: 100%;
}

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

/* Label cho input chỉ có placeholder (ô tìm kiếm...) — ẩn khỏi mắt nhìn nhưng screen reader
   vẫn đọc được, thay vì không có label nào (ck:ui-ux-pro-max audit 260805). */
.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;
}

/* ─── Form controls ─────────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
    font-family: inherit;
    font-size: 14px;
    color: var(--lm-ink);
    background: var(--lm-white);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    padding: 9px 12px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--lm-green);
    outline-offset: 1px;
}

input.lm-input--error,
select.lm-input--error,
textarea.lm-input--error {
    border-color: var(--lm-danger);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--lm-input-disabled-bg);
    color: var(--lm-grey);
    cursor: not-allowed;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--lm-muted);
    margin-bottom: 4px;
}
