/* ==========================================================================
   EMR CHECK 2026 — Reset & nền tảng
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

p { text-wrap: pretty; }

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--blue-700); }

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

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

button { cursor: pointer; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

[hidden] { display: none !important; }

/* Chừa chỗ cho header dính khi cuộn tới một anchor */
[id] { scroll-margin-top: 88px; }

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface-soft); }
.section--blue { background: var(--surface-blue); }
.section--dark {
  background: var(--brand-gradient);
  color: rgba(255, 255, 255, .82);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-500);
}

.muted { color: var(--ink-500); }
.fineprint {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-400);
}

.text-brand { color: var(--brand-blue); }
.text-red   { color: var(--brand-red); }

/* Chỉ hiện với trình đọc màn hình */
.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;
}

/* Bỏ qua header khi dùng bàn phím */
.skip-link {
  position: absolute; top: -100px; left: var(--s-4);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--brand-blue); color: #fff;
  border-radius: var(--r-btn);
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); color: #fff; }
