/* Thanh điều hướng chung. Tách riêng khỏi chung.css để app Vite ở gốc nạp
   được MỘT MÌNH nó: app đã có reset và font riêng, thêm bộ thứ hai vào là
   xô bố cục mà không có lỗi nào báo. */
@import "mau.css";

/* ── Thanh điều hướng, giống hệt nhau ở cả ba trang ───────────────── */
.thanh-tren {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--cao-thanh);
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px;
  background: var(--nen);
  border-bottom: 1px solid var(--vien);
}
.thanh-tren .hieu {
  font-weight: 700; font-size: 15px; color: var(--chu); text-decoration: none;
  margin-right: 16px; letter-spacing: -.01em;
}
.thanh-tren .hieu span { color: var(--xanh); }
.thanh-tren nav { display: flex; gap: 2px; }
.thanh-tren nav a {
  color: var(--mo); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 7px;
}
.thanh-tren nav a:hover { background: #f1f3f6; color: var(--chu); }
.thanh-tren nav a[aria-current="page"] { background: var(--xanh-nhat); color: var(--xanh); }

/* Trang chữ (tài liệu, mục lục) chừa chỗ cho thanh. Trang bản đồ KHÔNG
   dùng lớp này — nó tự trừ bằng .khung-ban-do vì bố cục toàn màn hình. */
body.co-thanh-tren { padding-top: var(--cao-thanh); }

@media (max-width: 620px) {
  .thanh-tren { padding: 0 9px; }
  .thanh-tren .hieu { margin-right: 8px; }
  .thanh-tren nav a { padding: 6px 8px; font-size: 13px; }
}
