/* ==========================================================================
   kicap-reset.css — Compat reset layer (Phase 1 of 23-CSS-UNIFICATION-ROADMAP)
   --------------------------------------------------------------------------
   MỤC ĐÍCH: thay phần normalize/reset mà `bootstrap.scss.css` đang gánh, để khi
   gỡ Bootstrap ở Phase 2 các hành vi nền (box-sizing, margin body, normalize
   phần tử) không biến mất.

   NGUYÊN TẮC (giữ "0 thay đổi hiển thị" ở Phase 1):
   - File này nạp NGAY SAU bootstrap.scss.css và TRƯỚC kicap-foundation.css.
     Giá trị ở đây trùng Bootstrap nên không đổi hiển thị; chỗ nào foundation
     cố ý khác (vd html font-size, body color/font) thì foundation nạp sau vẫn
     thắng — đúng như hiện trạng.
   - KHÔNG set `html { font-size: 10px }` như Bootstrap: kicap-foundation.css đã
     set `html { font-size: 100% }` (root 16px) và mọi token rem của KICAP giả
     định 16px. Bootstrap 10px hiện đã bị foundation đè — tái tạo sẽ SAI.
   - KHÔNG chứa grid/utility (ở kicap-grid.css). KHÔNG style trang trí tag trần.
   - Nội dung = normalize.css v3.0.x (đúng bản Bootstrap 3 nhúng) + box-sizing.
   ========================================================================== */

/* --- box-sizing toàn cục (LOAD-BEARING) -----------------------------------
   Chỉ Bootstrap cung cấp `* { box-sizing: border-box }` toàn site; foundation
   /components KHÔNG set global. Mọi layout theme đang dựa vào border-box, nên
   đây là rule bắt buộc phải giữ khi bỏ Bootstrap. */
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* --- normalize.css v3 (khớp Bootstrap 3) ---------------------------------- */
html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* body { margin: 0 } CHỈ đến từ Bootstrap — foundation set color/font nhưng
   KHÔNG set margin. Bắt buộc giữ để không có margin mặc định 8px của UA. */
body {
  margin: 0;
}

article, aside, details, figcaption, figure, footer, header,
hgroup, main, menu, nav, section, summary {
  display: block;
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden], template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b, strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub, sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

img {
  border: 0;
  vertical-align: middle;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* --- form normalize (Bootstrap 3 / normalize v3) --------------------------
   Giữ để form không đổi khi bỏ Bootstrap. Style trang trí form (.form-control
   v.v.) thuộc Phase 2, KHÔNG nằm ở đây. */
button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
  text-transform: none;
}

button, html input[type="button"],
input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled], html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td, th {
  padding: 0;
}
