/* ═══ 1. NỀN TẢNG — token, chữ, khung, các mảnh dùng lại ═══════════════════
 * Giá trị lấy nguyên từ đặc tả mục 3.1–3.4. Đổi ở đây là đổi cả site.
 */
:root {
  --paper: #F6F7F5;
  --surface: #FFFFFF;
  --ink: #18222C;
  --muted: #56616B;
  --body-2: #3A4651;
  --rule: #DCE1E4;
  --rule-2: #EEF2F5;
  --brand: #B8124F;
  --action: #0A5BAE;
  --action-dam: #08467F;
  --tint: #EAF1FA;
  --bong: 0 22px 48px -18px rgba(24, 34, 44, 0.42), 0 2px 8px rgba(24, 34, 44, 0.08);

  --chu-de: Archivo, "Helvetica Neue", Helvetica, sans-serif;
  --chu-than: "Source Serif 4", Georgia, serif;
  --chu-nhan: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --khung: 1240px;
  --le: 40px;
  --khoang: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--chu-than);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-dam); }
h1, h2, h3, h4 {
  font-family: var(--chu-de);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; }
p { margin: 0 0 1em; }
button { font: inherit; }
[hidden] { display: none !important; }

.tlk-bo-qua { position: absolute; left: -9999px; }
.tlk-bo-qua:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

.tlk-khung {
  max-width: var(--khung);
  margin: 0 auto;
  padding-left: var(--le);
  padding-right: var(--le);
}

/* ── Nhãn Plex Mono: nhãn, ngày, toạ độ ──────────────────────────────── */
.tlk-nhan {
  font-family: var(--chu-nhan);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.tlk-nhan--hong { color: var(--brand); }

/* ── Hình thoi nhận diện ─────────────────────────────────────────────── */
.tlk-thoi {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--brand);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ── Nút ─────────────────────────────────────────────────────────────── */
.tlk-nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--action);
  background: var(--action);
  color: #fff;
  font-family: var(--chu-de);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tlk-nut:hover { background: var(--action-dam); border-color: var(--action-dam); color: #fff; }
.tlk-nut--vien { background: transparent; color: var(--action); }
.tlk-nut--vien:hover { background: var(--tint); color: var(--action-dam); }
.tlk-hang-nut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tlk-lk-mui {
  font-family: var(--chu-de);
  font-size: 15px;
  font-weight: 600;
  color: var(--action);
}

/* ── Chip (hàng lọc, hàng nhảy nhanh) ────────────────────────────────── */
.tlk-chip-hang { display: flex; flex-wrap: wrap; gap: 8px; }
.tlk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--chu-de);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.tlk-chip:hover { border-color: var(--brand); color: var(--ink); }
.tlk-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Thẻ: nền trắng, viền 1px, bo 6px, KHÔNG đổ bóng ─────────────────── */
.tlk-the {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}
a.tlk-the:hover { border-color: var(--ink); color: var(--ink); }
.tlk-luoi { display: grid; gap: 18px; }
.tlk-luoi--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tlk-luoi--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Nhãn toạ độ đè lên ảnh ──────────────────────────────────────────── */
.tlk-toado {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 3px;
  background: rgba(24, 34, 44, 0.82);
  color: #fff;
  font-family: var(--chu-nhan);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
