/* Trang chủ Hồ sơ vận hành (thuonghieu.jarvis.vn), theo bản vẽ Bố duyệt 2/11/2026. Làm cho điện thoại trước.
   Không có JavaScript, không có chữ style="" trong trang (CSP chặn): màu từng tập đặt bằng lớp .mau-<tập>.
   Hiệu ứng mở tập: chuyển cảnh của trình duyệt (View Transitions), máy cũ hay máy tắt hiệu ứng thì chỉ đổi trang. */

/* Phông để ngay trên máy (static/phong, giấy phép OFL.txt): mỗi phông hai phần, Latin và tiếng Việt */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("phong/anton-vi.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("phong/anton-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("phong/robotomono-vi.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("phong/robotomono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("phong/sourceserif4-vi.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("phong/sourceserif4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("phong/sourceserif4-nghieng-vi.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("phong/sourceserif4-nghieng-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --nen: #121211; --chu: #F1EDE4; --phu: #ABA597; --tia: rgba(255, 255, 255, 0.05); --bong: rgba(0, 0, 0, 0.45);
  --dau: #E2382C; --bia: #D42A1F; --giay: #F3F1EC; --muc: #17140A; --muc-phu: #5A564E; --vien-giay: #DEDAD0;
  --cham: #B9B3A6; --vien-toi: rgba(255, 255, 255, 0.12); --vien-sang: #FFD84D;
  --f-hien: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-chu: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-may: "Roboto Mono", "Courier New", monospace;
  --dem-tren: clamp(28px, 5.5svh, 46px);
  --tai: polygon(0 100%, 5% 18%, 9% 0, 91% 0, 95% 18%, 100% 100%);
  --mau: #1E1E1E; --mau-chu: #FFFFFF;
}
/* Màu từng tập (Bố duyệt): chữ trên tập vàng là chữ đen */
.mau-chot-ca { --mau: #2B4FD8; --mau-chu: #FFFFFF; }
.mau-kho { --mau: #1E1E1E; --mau-chu: #FFFFFF; }
.mau-xep-ca { --mau: #0B7A54; --mau-chu: #FFFFFF; }
.mau-nhan-su { --mau: #F0BF12; --mau-chu: #17140A; }
.mau-canh-bao { --mau: #5B2A8A; --mau-chu: #FFFFFF; }
.mau-thuong-hieu { --mau: #D42A1F; --mau-chu: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--nen); }
body { margin: 0; background: var(--nen); color: var(--chu); font: 16px/1.45 var(--f-chu); }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--vien-sang); outline-offset: 2px; }

/* Khung trang: cột rộng tối đa 430 điểm ở giữa, hai vệt sáng chéo như bản vẽ */
.trang { position: relative; isolation: isolate; display: flex; flex-direction: column; max-width: 430px;
  min-height: 100vh; min-height: 100svh; margin: 0 auto; overflow: hidden; background: var(--nen); }
.trang::before, .trang::after { content: ""; position: absolute; z-index: -1; top: -240px; height: 1600px;
  background: var(--tia); transform: rotate(32deg); pointer-events: none; }
.trang::before { left: -70px; width: 150px; }
.trang::after { left: 170px; width: 64px; }

.nhan-may { margin: 0; font: 11px/1.4 var(--f-may); letter-spacing: 0.2em; text-transform: uppercase; color: var(--phu); }

/* Dấu đóng MẬT, ĐỌC TRƯỚC */
.dau-mat { position: absolute; right: 12px; top: calc(var(--dem-tren) + 66px); transform: rotate(-14deg);
  padding: 2px 12px; border: 3px double var(--dau); color: var(--dau); font: 400 26px/1.2 var(--f-hien);
  letter-spacing: 0.14em; pointer-events: none; }
.dau-doc { position: absolute; padding: 1px 8px; border: 3px double currentColor; font: 400 15px/1.3 var(--f-hien);
  letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }

/* ===== Trang chủ ===== */
.dau { position: relative; padding: var(--dem-tren) 16px 0; text-align: center; }
.dau .nhan-may { padding: 0 48px; }
.tieu-de-lon { margin: clamp(14px, 3.4svh, 28px) 0 0; font: 400 clamp(56px, min(10svh, 22vw), 84px)/1.08 var(--f-hien);
  letter-spacing: 0.005em; text-transform: uppercase; }
.loi-dan { max-width: 318px; margin: 18px auto 0; font-size: 15px; line-height: 1.45; color: var(--phu); }

.nut-khoa { position: absolute; left: 4px; top: calc(var(--dem-tren) - 16px); margin: 0; }
.nut-khoa button { display: flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 0; background: none; color: var(--phu); font: 10px/1 var(--f-may); letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; }
.nut-khoa button:hover { color: var(--chu); }

/* Chồng tập: mỗi tập một tai (tên) và một dải màu cao 44 điểm, tập sau đè lên dải của tập trước */
.chong { position: relative; margin-top: auto; padding-top: 48px; }
.giay-lo { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; width: 124px;
  height: 170px; padding: 20px 12px 0; background: var(--giay); color: var(--muc); transform: rotate(5deg);
  box-shadow: 0 6px 18px var(--bong); font: 9.5px/1.6 var(--f-may); }
.giay-lo b { letter-spacing: 0.06em; }
.kep { display: block; color: var(--phu); }
.kep-lo { position: absolute; right: 68px; top: 2px; transform: rotate(8deg); }

.tap { position: relative; display: block; height: 44px; text-decoration: none; pointer-events: none; }
.tai, .dai { pointer-events: auto; background: var(--mau); color: var(--mau-chu); }
.tai { position: absolute; top: 0; height: 45px; display: flex; align-items: center; justify-content: center;
  clip-path: var(--tai); font: 400 17px/1 var(--f-hien); letter-spacing: 0.05em; text-transform: uppercase;
  transition: transform 0.15s ease-out; }
.dai { position: absolute; left: 10px; right: 10px; top: 44px; height: 56px; border-radius: 0 10px 0 0;
  box-shadow: 0 -3px 8px var(--bong); }
.dai .so { position: absolute; left: 14px; top: 15px; font: 10px/1 var(--f-may); letter-spacing: 0.12em; }
.tap-1 .tai { left: 4.6%; width: 31.8%; }
.tap-2 .tai { left: 21%; width: 25.6%; }
.tap-3 .tai { left: 37.4%; width: 29.7%; }
.tap-4 .tai { left: 51.3%; width: 30.8%; }
.tap-5 .tai { left: 62.6%; width: 33.3%; }
.tap:hover .tai, .tap:focus-visible .tai { transform: translateY(-3px); }
.tap:active .tai { transform: translateY(-5px); }
.tap:focus-visible { outline: none; }
.tap:focus-visible .dai { box-shadow: inset 0 0 0 3px var(--vien-sang); }

.bia-do { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 180px;
  margin: 44px 10px 0; padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--bia); color: #FFFFFF; border-radius: 0 10px 0 0; box-shadow: 0 -4px 12px var(--bong);
  text-decoration: none; }
.bia-do:focus-visible { outline-offset: -4px; }
.bia-so { font: 10px/1.4 var(--f-may); letter-spacing: 0.14em; text-transform: uppercase; }
.bia-ten { font: 400 32px/1.1 var(--f-hien); letter-spacing: 0.005em; text-transform: uppercase; }
.bia-phu { padding-right: 96px; font-size: 14px; line-height: 1.35; }
.bia-ke { height: 1px; background: rgba(255, 255, 255, 0.6); }
.bia-mo-ta { font-size: 13px; line-height: 1.4; }
.bia-mui-ten { position: absolute; right: 18px; top: 16px; width: 26px; height: 26px; transition: transform 0.15s ease-out; }
.bia-do:hover .bia-mui-ten, .bia-do:active .bia-mui-ten { transform: translateX(4px); }
.bia-do .dau-doc { right: 22px; top: 54px; transform: rotate(8deg); }

/* ===== Tập đang mở (5 tập và tập Thương hiệu) ===== */
.dau-ho-so { position: relative; padding: var(--dem-tren) 20px 0; }
.dau-ho-so .nhan-may { padding: 0 40px; text-align: center; }
.dong { position: absolute; right: 8px; top: calc(var(--dem-tren) - 16px); display: flex; align-items: center;
  justify-content: center; width: 44px; height: 44px; color: var(--nen); }
.dong span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--chu); transition: transform 0.15s ease-out; }
.dong:hover span, .dong:active span { transform: scale(1.1); }
.ten-tap { margin: 22px 0 0; font: 400 clamp(52px, 18vw, 72px)/1.08 var(--f-hien); letter-spacing: 0.005em;
  text-transform: uppercase; overflow-wrap: anywhere; }
.ten-tap-dai { font-size: clamp(46px, 15vw, 60px); }
.so-tap { margin: 6px 2px 0; font: 10px/1.4 var(--f-may); letter-spacing: 0.14em; text-transform: uppercase; color: var(--phu); }
.dau-doc-dau { z-index: 1; right: 34px; bottom: -10px; color: var(--dau); font-size: 18px; padding: 1px 10px;
  transform: rotate(-8deg); }

/* Bìa tập (màu tập) + tai các tập khác bên phải + tờ giấy */
.cap { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; min-height: 540px;
  margin: 14px 34px calc(24px + env(safe-area-inset-bottom)) 12px; padding: 12px; background: var(--mau);
  border-radius: 4px; box-shadow: 0 0 0 1px var(--vien-toi); }
.ben { position: absolute; top: 20px; left: calc(100% - 4px); display: flex; flex-direction: column; gap: 6px; }
.ben a { display: block; width: 30px; padding: 13px 0; background: var(--mau); color: var(--mau-chu);
  border-radius: 0 8px 8px 0; box-shadow: 0 0 0 1px var(--vien-toi); writing-mode: vertical-rl;
  font: 10.5px/30px var(--f-may); letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s ease-out; }
.ben a:hover, .ben a:active { transform: translateX(3px); }

.to { position: relative; flex: 1 0 auto; padding: 24px 16px 28px 34px; color: var(--muc);
  background: radial-gradient(circle at 15px 45px, var(--mau) 0 5px, transparent 5.5px) 0 0 / 100% 110px repeat-y, var(--giay);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }

.dau-to { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
.phieu { display: flex; flex-direction: column; height: 118px; margin-top: 4px; padding: 20px 10px 0;
  background: #FFFFFF; border: 1px solid var(--vien-giay); transform: rotate(-2.5deg); font: 9.5px/1.75 var(--f-may);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 92% 100%, 84% 94%, 76% 100%, 68% 94%, 60% 100%, 52% 94%, 44% 100%, 36% 94%, 28% 100%, 20% 94%, 12% 100%, 4% 94%, 0 100%); }
.phieu b { letter-spacing: 0.04em; }
.phieu i { display: block; margin: 3px 0; border-top: 1px dashed #8C887E; }
.kep-phieu { position: absolute; left: 24px; top: -18px; transform: rotate(10deg); color: #8C887E; }
.truong { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; }
.truong dt { font: 9.5px/1.3 var(--f-may); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muc-phu); }
.truong dd { margin: 2px 0 0; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.dau-mat-nho { left: 140px; right: auto; top: 104px; padding: 0 10px; border-color: var(--bia); color: var(--bia);
  font-size: 24px; line-height: 1.3; transform: rotate(-12deg); opacity: 0.88; }
/* Ảnh tư liệu: ảnh đen trắng, mờ, viền trắng như ảnh in, kẹp vào tờ hồ sơ */
.dau-to.co-anh { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.anh-tu-lieu { margin: 2px 0 0; padding: 6px 6px 0; background: #FBFAF6; border: 1px solid var(--vien-giay);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22); transform: rotate(-2.5deg); }
.anh-tu-lieu img { display: block; width: 100%; height: auto; aspect-ratio: 108 / 140; background: #6A6862;
  filter: contrast(1.05); }
.anh-tu-lieu figcaption { padding: 5px 0 6px; font: 8.5px/1.2 var(--f-may); letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; color: var(--muc-phu); white-space: nowrap; }
.co-anh .kep-phieu { left: 30px; top: -20px; }
.co-anh .dau-mat-nho { left: 142px; top: 108px; }
.mo-ta { margin: 12px 0 0; font: 400 13px/1.7 var(--f-may); letter-spacing: -0.01em; color: var(--muc); }

.muc-may { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; font: 400 9.5px/1.3 var(--f-may);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muc-phu); }
.muc-may::after { content: ""; flex: 1; height: 1px; background: #D8D3C7; }
.can-nam { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.can-nam li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding-bottom: 12px;
  border-bottom: 1px dotted var(--cham); font-size: 15px; line-height: 1.45; }
.so-dieu { font: 400 24px/1 var(--f-hien); }

.nut-vao { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 56px; margin-top: 28px; padding: 10px 18px; border: 0; background: var(--mau); color: var(--mau-chu);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); font: 400 20px/1.15 var(--f-hien); letter-spacing: 0.04em;
  text-align: left; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.nut-vao .mui-ten { flex: none; transition: transform 0.15s ease-out; }
.nut-vao:hover .mui-ten { transform: translateX(4px); }
.nut-vao:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.chu-nho { margin: 10px 0 0; text-align: center; font: 10px/1.5 var(--f-may); color: var(--muc-phu); }

/* Tập Thương hiệu: lời chào chữ đầu to, mỗi thương hiệu một thẻ bấm mở */
.loi-chao { margin: 0; font-size: 15px; line-height: 1.5; }
.loi-chao::first-letter { float: left; margin: 4px 8px 0 0; font-size: 52px; line-height: 0.85; font-weight: 600; }
.cac-the { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.the-th { background: #FFFFFF; border: 1px solid var(--vien-giay); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease-out; }
.the-th:nth-child(3n + 1) { transform: rotate(-0.8deg); }
.the-th:nth-child(3n + 2) { transform: rotate(0.7deg); }
.the-th:nth-child(3n) { transform: rotate(-0.5deg); }
.the-th[open] { transform: none; }
.the-th summary { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px;
  padding: 10px; list-style: none; cursor: pointer; }
.the-th summary::-webkit-details-marker { display: none; }
.logo { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #E9E5DB;
  color: var(--muc-phu); font: 700 13px/1 var(--f-may); letter-spacing: 0.06em; object-fit: contain; }
.tom-tat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ten-th { padding-right: 56px; font-size: 17px; font-weight: 600; line-height: 1.2; }
.so-ch { font: 9.5px/1.3 var(--f-may); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muc-phu); }
.ds-ch { font-size: 13px; line-height: 1.35; }
.chip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chip span { padding: 1px 6px; border: 1px solid var(--cham); font: 9.5px/1.5 var(--f-may); }
.mo { position: absolute; right: 10px; top: 12px; font: 700 9.5px/1 var(--f-may); letter-spacing: 0.1em; color: var(--bia); }
.mo::after { content: "MỞ +"; }
.the-th[open] .mo::after { content: "ĐÓNG −"; }
.noi-dung-th { padding: 2px 14px 14px; border-top: 1px dashed var(--cham); }
.noi-dung-th h2 { margin: 14px 0 4px; font: 400 9.5px/1.3 var(--f-may); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muc-phu); }
.noi-dung-th p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.dang-cap-nhat { font-style: italic; color: var(--muc-phu); }

/* ===== Nhập mã PIN, trang lỗi ===== */
.tieu-de-vua { font-size: clamp(52px, min(8svh, 18vw), 72px); }
.trang-dang-nhap .dau-mat { top: calc(var(--dem-tren) + 52px); }
.cap-cua { flex: none; min-height: 0; margin: 26px 12px calc(28px + env(safe-area-inset-bottom)); }
.cap-cua .to { flex: none; }
.nhan-giay { margin: 0 0 18px; font: 700 11px/1.3 var(--f-may); letter-spacing: 0.14em; text-transform: uppercase; }
.nhan-truong { display: block; font: 9.5px/1.3 var(--f-may); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muc-phu); }
.o-pin { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 0; border-bottom: 2px solid var(--muc);
  border-radius: 0; background: #FFFFFF; color: var(--muc); font: 700 26px/1.2 var(--f-may);
  letter-spacing: 0.4em; }
.o-pin:focus { outline: 3px solid var(--bia); outline-offset: 2px; }
.bao-loi { margin: 14px 0 0; padding: 10px 12px; border-left: 4px solid var(--bia); background: #FDECEA; color: #8F1D15;
  font-size: 14px; line-height: 1.4; }
.trang-dang-nhap .nut-vao { margin-top: 22px; }

/* ===== Hiệu ứng mở, đóng tập =====
   Dải màu của tập trên trang chủ và bìa tập ở trang tập cùng một tên: trình duyệt đẩy tập lên, mở ra. Tờ giấy trượt
   lên khi mở, trượt xuống khi đóng. */
@view-transition { navigation: auto; }
.vt-chot-ca { view-transition-name: ho-so-chot-ca; }
.vt-kho { view-transition-name: ho-so-kho; }
.vt-xep-ca { view-transition-name: ho-so-xep-ca; }
.vt-nhan-su { view-transition-name: ho-so-nhan-su; }
.vt-canh-bao { view-transition-name: ho-so-canh-bao; }
.vt-thuong-hieu { view-transition-name: ho-so-thuong-hieu; }
.vt-to { view-transition-name: to-giay; }
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
::view-transition-new(to-giay) { animation: giay-len 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
::view-transition-old(to-giay) { animation: giay-xuong 0.28s ease-in both; }
@keyframes giay-len { from { opacity: 0; transform: translateY(120px); } }
@keyframes giay-xuong { to { opacity: 0; transform: translateY(80px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
