/* ==========================================================================
   Trang chủ kể chuyện (H1, NAVI01349) — chỉ nạp ở layout home-story.
   Tiền tố .hs-. Màu: biến --hs-*, tông tối theo cùng công tắc với ill.css.
   ========================================================================== */

.hs {
  --hs-bg: #ffffff;
  --hs-soft: #f5f7f6;
  --hs-card: #ffffff;
  --hs-line: #e3e7e5;
  --hs-ink: #16201b;
  --hs-ink-2: #56615c;
  --hs-accent: #303030;
  --hs-accent-ink: #303030;
  --hs-accent-tint: #f1f1f1;
  --hs-green: #1f9d63; /* N6: xanh lá chỉ để điểm xuyết (chấm trạng thái) */
  --hs-on-accent: #ffffff;
  --hs-hero: linear-gradient(160deg, #f6f6f6 0%, #fafafa 55%, #ffffff 100%);
  --hs-shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 6px 20px rgba(16, 24, 20, .06);
  --hs-shadow-hover: 0 2px 4px rgba(16, 24, 20, .06), 0 14px 34px rgba(16, 24, 20, .12);
  --hs-tag-howto: #f1f1f1; --hs-tag-howto-ink: #303030;
  --hs-tag-learn: #eaf1fb; --hs-tag-learn-ink: #2457a6;
  --hs-tag-ref: #f2eefa;   --hs-tag-ref-ink: #5b3fa0;
  --hs-tag-fix: #fdeeee;   --hs-tag-fix-ink: #b42318;
  color: var(--hs-ink);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 0 72px;
}
[data-bs-theme="dark"] .hs, html.dark .hs, body.dark .hs {
  --hs-bg: #15181c; --hs-soft: #1b1f24; --hs-card: #1d2127; --hs-line: #2f353d;
  --hs-ink: #e7eaee; --hs-ink-2: #a9b2bc; --hs-accent: #e3e3e3; --hs-accent-ink: #e3e3e3; --hs-accent-tint: #2a2e33; --hs-green: #3ecf8e; --hs-on-accent: #1a1a1a;
  --hs-hero: linear-gradient(160deg, #1d2024 0%, #181b1f 60%, #15181c 100%);
  --hs-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  --hs-shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.5);
  --hs-tag-howto: #2a2e33; --hs-tag-howto-ink: #e3e3e3;
  --hs-tag-learn: #1a2840; --hs-tag-learn-ink: #8fb6f2;
  --hs-tag-ref: #2a2140;   --hs-tag-ref-ink: #c2acf5;
  --hs-tag-fix: #3d1d1d;   --hs-tag-fix-ink: #ff9b9b;
}
@media (prefers-color-scheme: dark) {
  html[data-ill-theme="auto"] .hs {
    --hs-bg: #15181c; --hs-soft: #1b1f24; --hs-card: #1d2127; --hs-line: #2f353d;
    --hs-ink: #e7eaee; --hs-ink-2: #a9b2bc; --hs-accent: #e3e3e3; --hs-accent-ink: #e3e3e3; --hs-accent-tint: #2a2e33; --hs-green: #3ecf8e; --hs-on-accent: #1a1a1a;
    --hs-hero: linear-gradient(160deg, #1d2024 0%, #181b1f 60%, #15181c 100%);
    --hs-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
    --hs-shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 14px 34px rgba(0,0,0,.5);
    --hs-tag-howto: #2a2e33; --hs-tag-howto-ink: #e3e3e3;
    --hs-tag-learn: #1a2840; --hs-tag-learn-ink: #8fb6f2;
    --hs-tag-ref: #2a2140;   --hs-tag-ref-ink: #c2acf5;
    --hs-tag-fix: #3d1d1d;   --hs-tag-fix-ink: #ff9b9b;
  }
}

/* Khung chung: trang chủ rộng hơn bài viết, không cần mục lục "On this page" */
body:has(.hs) #tableOfContents { display: none !important; }
@media (min-width: 1366px) {
  body:has(.hs) main.col-lg-10 { padding-right: 24px !important; }
}
.content-wrapper:has(> .hs) { max-width: 1240px; }
@media (max-width: 767.98px) {
  .content-wrapper:has(> .hs) { padding: 0 14px 40px; }
}
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs a { text-decoration: none; color: inherit; }
.hs h1, .hs h2, .hs p { margin: 0; }
.hs ul { list-style: none; margin: 0; padding: 0; }

/* Hero + ô tìm kiếm: xem khối "H2 — Màn tìm kiếm" ở cuối file */

/* ---------- Chặng ---------- */
.hs-stage {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--hs-line);
  scroll-margin-top: 80px;
}
.hs-stage--flip .hs-stage__text { order: 2; }
.hs-stage--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.hs-stage--full { display: block; }
#hs-1.hs-stage--full { border-top: 0; padding-top: 0; }
.hs-stage--full .hs-fig--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hs-stage--full .hs-fig--pair .hs-hint { grid-column: 1 / -1; margin-top: 0 !important; }

.hs-stage__head { display: flex; gap: 16px; align-items: flex-start; }
.hs-stage--full .hs-stage__head { max-width: 760px; margin-bottom: 26px; }
.hs-num {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--hs-accent); color: var(--hs-on-accent); font-weight: 750; font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.hs-stage__title {
  font-size: clamp(22px, 2.6vw, 30px) !important; line-height: 1.2; font-weight: 760; letter-spacing: -.015em;
  margin: 2px 0 8px !important; border: 0 !important; padding: 0 !important; color: var(--hs-ink);
}
.hs-stage__lead { font-size: 16.5px; line-height: 1.55; color: var(--hs-ink-2); }
.hs-stage__lead b { color: var(--hs-ink); font-weight: 650; }

/* Link bài */
.hs-links { display: grid; gap: 8px; margin-top: 22px !important; }
.hs-links--row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px !important; }
.hs-links--row.hs-links--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 12px; background: var(--hs-soft); border: 1px solid transparent;
  font-size: 15px; font-weight: 560; line-height: 1.35; color: var(--hs-ink);
  transition: border-color .15s, background .15s;
}
.hs-link:hover { border-color: var(--hs-accent); background: var(--hs-card); }
.hs-link__t::after { content: "\00a0↗"; color: var(--hs-ink-2); font-weight: 400; font-size: 13px; }
.hs-link__k {
  flex: none; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px;
  background: var(--hs-tag-howto); color: var(--hs-tag-howto-ink);
}
.hs-link__k--learn { background: var(--hs-tag-learn); color: var(--hs-tag-learn-ink); }
.hs-link__k--ref { background: var(--hs-tag-ref); color: var(--hs-tag-ref-ink); }
.hs-link__k--fix { background: var(--hs-tag-fix); color: var(--hs-tag-fix-ink); }

/* ---------- Ô loại menu (chặng 1) ---------- */
.hs-tiles {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.hs-tile {
  display: flex; flex-direction: column; background: var(--hs-card); border: 1px solid var(--hs-line);
  border-radius: 18px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hs-tile:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-hover); border-color: var(--hs-accent); }
.hs-tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.hs-tile__fig { display: block; background: var(--hs-soft); padding: 16px 16px 6px; }
.hs-tile--wide .hs-tile__fig { flex: 1 1 64%; padding: 18px 22px; }
.hs-tile__fig .ill { margin: 0 auto !important; max-width: 150px; }
.hs-tile--wide .hs-tile__fig .ill { max-width: 640px; }
.hs-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.hs-tile--wide .hs-tile__body { flex: 1 1 36%; padding: 22px 30px; gap: 8px; }
.hs-tile__name { font-size: 16.5px; font-weight: 720; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hs-tile--wide .hs-tile__name { font-size: 22px; }
.hs-tile__go { color: var(--hs-accent); font-weight: 600; font-size: 15px; }
.hs-tile__where { font-size: 14px; line-height: 1.4; color: var(--hs-ink); }
.hs-tile__when { font-size: 13.5px; line-height: 1.4; color: var(--hs-ink-2); }
.hs-tile__when::before { content: "Dùng khi: "; font-weight: 650; color: var(--hs-accent-ink); }
.hs-tile--wide .hs-tile__where { font-size: 16px; }
.hs-tile--wide .hs-tile__when { font-size: 15px; }

.hs-swipe { display: none; }

/* ---------- Hình có điểm bấm ---------- */
.hs-fig { position: relative; min-width: 0; }
.hs-fig .ill { margin: 0 auto !important; }
.hs-fig--pair { display: grid; gap: 18px; }
.hs-hint { text-align: center; font-size: 13px; color: var(--hs-ink-2); margin-top: 12px !important; }
.hs-hint::before { content: "☝ "; }
.hs-hot {
  position: absolute; inset: -0.35em; z-index: 7; border-radius: inherit; pointer-events: auto; cursor: pointer;
}
/* nhãn chú thích cùng 1 cỡ chữ dù khoá nằm trong chữ nhỏ (cqi = % bề rộng hình) */
.hs-fig .ill .ill-tip { font-size: clamp(9px, 1.55cqi, 12.5px) !important; color: var(--ill-tip-ink) !important; font-weight: 600; opacity: 1; }
.hs-fig .ill-hl .ill-num, .hs-fig .ill-hl .ill-tip { pointer-events: auto; cursor: pointer; z-index: 8; }
.hs-fig .ill-hl:hover .ill-ring { box-shadow: 0 0 0 0.35em var(--ill-accent-soft); }
.hs-fig .ill-hl:hover .ill-tip { background: var(--ill-accent-2); }
.hs-fig .ill-num { animation: hs-pulse 2.4s ease-out infinite; }
@keyframes hs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 48, 48, .5); }
  70% { box-shadow: 0 0 0 0.6em rgba(48, 48, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 48, 48, 0); }
}
@media (prefers-reduced-motion: reduce) { .hs-fig .ill-num { animation: none; } .hs-tile { transition: none; } }

/* Sự cố hay gặp (chặng 5) */
.hs-fixes { display: grid; gap: 8px; margin-top: 18px; }
.hs-fixes::before { content: "Gặp sự cố?"; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hs-tag-fix-ink); }
.hs-fix {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--hs-line); background: var(--hs-card); font-size: 15px; font-weight: 560;
  transition: border-color .15s;
}
.hs-fix i { font-size: 18px; color: var(--hs-tag-fix-ink); }
.hs-fix::after { content: "↗"; margin-left: auto; color: var(--hs-ink-2); font-size: 13px; }
.hs-fix:hover { border-color: var(--hs-tag-fix-ink); }

/* Cuối trang */
.hs-end { border-top: 1px solid var(--hs-line); padding-top: 48px; text-align: center; }
.hs-end__title { font-size: 24px !important; font-weight: 740; border: 0 !important; padding: 0 !important; margin: 0 0 6px !important; }
.hs-end__lead { color: var(--hs-ink-2); font-size: 16px; }
.hs-end .hs-links { text-align: left; }

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1199.98px) {
  .hs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-tiles .hs-tile:not(.hs-tile--wide) .hs-tile__fig .ill { max-width: 150px; }
  .hs-links--row, .hs-links--row.hs-links--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-stage--full .hs-fig--pair { grid-template-columns: minmax(0, 1fr); }
  .hs-stage, .hs-stage--flip { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* 1 cột: tiêu đề → HÌNH → link (trực quan trước, chữ sau) */
  .hs-stage__text { display: contents; }
  .hs-stage .hs-stage__head { order: 1; }
  .hs-stage .hs-fig { order: 2; margin-top: 26px; }
  .hs-stage .hs-links { order: 3; }
  .hs-stage .hs-fixes { order: 4; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 767.98px) {
  .hs { padding-bottom: 40px; }
  .hs-link { padding: 10px 12px; }
  .hs-links { gap: 6px; }
  .hs-stage { padding: 40px 0; gap: 22px; }
  .hs-num { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  /* số + tiêu đề cùng hàng, câu ý chính chạy hết bề ngang */
  .hs-stage__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: center; }
  .hs-stage__head > div { display: contents; }
  .hs-stage__title { margin: 0 !important; }
  .hs-stage__lead { grid-column: 1 / -1; margin-top: 12px !important; }
  .hs-stage__lead { font-size: 15.5px; }
  /* 6 loại menu: ô rộng ở trên, 5 điện thoại thành dải vuốt ngang */
  .hs-tiles {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -14px; padding: 4px 14px 14px; flex-wrap: nowrap;
  }
  .hs-tile { flex: 0 0 64%; scroll-snap-align: start; }
  .hs-tile--wide { flex: 0 0 88%; flex-direction: column; align-items: stretch; }
  .hs-tile--wide .hs-tile__fig { padding: 14px; flex: none; }
  .hs-tile--wide .hs-tile__body { padding: 14px 16px 16px; gap: 4px; flex: 1 1 auto; }
  .hs-tile--wide .hs-tile__name { font-size: 16.5px; }
  .hs-tile--wide .hs-tile__where { font-size: 14px; }
  .hs-tile--wide .hs-tile__when { font-size: 13.5px; }
  .hs-tiles .hs-tile:not(.hs-tile--wide) .hs-tile__fig .ill { max-width: 140px; }
  .hs-swipe { display: block; font-size: 13px; color: var(--hs-ink-2); text-align: right; margin-top: 2px !important; }
  .hs-links--row, .hs-links--row.hs-links--3 { grid-template-columns: minmax(0, 1fr); }
  .hs-link { font-size: 14.5px; }
}

/* Khôi 03/11: rê chuột lên card/link trang chủ bị gạch chân cả khối chữ → xấu.
   Theme gắn `.content-wrapper a:hover { text-decoration: underline }` cho mọi link;
   trong trang chủ (và hình vẽ) phản hồi hover đã có viền/nền, nên bỏ gạch chân. */
.content-wrapper .hs a:hover, .content-wrapper .hs a:hover *,
.content-wrapper .ill a:hover, .content-wrapper .ill a:hover * { text-decoration: none; }

/* Khôi 03/11: icon ↗ (mở tab mới) hiện thường trực làm rối → chỉ hiện khi rê chuột / focus.
   Màn cảm ứng không có hover: ẩn hẳn (cả card đã là link). */
.hs-link__t::after, .hs-fix::after, .hs-tile__go { opacity: 0; transition: opacity .15s ease; }
.hs-link:hover .hs-link__t::after, .hs-link:focus-visible .hs-link__t::after,
.hs-fix:hover::after, .hs-fix:focus-visible::after,
.hs-tile:hover .hs-tile__go, .hs-tile:focus-visible .hs-tile__go { opacity: 1; }

/* Khôi 03/11: tag "Hướng dẫn / Tìm hiểu / Tra cứu" trên mỗi link quá rối → bỏ tag, chỉ dùng mũi tên →
   (thay luôn ↗). Mũi tên nhạt, đậm lên và nhích sang phải khi rê chuột. */
.hs-link__k { display: none !important; }
.hs-link__t::after { content: none !important; }
.hs-link::after, .hs-fix::after {
  content: "→" !important; margin-left: auto; padding-left: 10px; opacity: .45 !important;
  color: var(--hs-ink-2); font-size: 15px; transition: transform .15s ease, opacity .15s ease;
}
.hs-link:hover::after, .hs-link:focus-visible::after,
.hs-fix:hover::after, .hs-fix:focus-visible::after { opacity: 1 !important; transform: translateX(3px); color: var(--hs-accent); }
.hs-tile__go { font-size: 0; }
.hs-tile__go::before { content: "→"; font-size: 16px; }

/* ==========================================================================
   H2 — Màn tìm kiếm đầu trang kiểu Google (Khôi 03/11: "màn search đầu tiên chán thế").
   Ô tìm kiếm lớn là trung tâm, chữ gợi ý tự gõ, kết quả tức thì ngay dưới ô,
   nền chấm + vài menu mini (kit ill/) mờ ở hai bên, chuyển động nhẹ.
   ========================================================================== */
.hs {
  --hs-glow: rgba(0, 0, 0, .05);
  --hs-dot: rgba(22, 32, 27, .07);
  --hs-hl: #1a1a1a;
  --hs-ring: rgba(0, 0, 0, .12);
  --hs-search-shadow: 0 1px 3px rgba(16, 24, 20, .08), 0 10px 32px rgba(16, 24, 20, .09);
  --hs-search-shadow-hover: 0 2px 6px rgba(16, 24, 20, .10), 0 16px 44px rgba(16, 24, 20, .13);
}
[data-bs-theme="dark"] .hs, html.dark .hs, body.dark .hs {
  --hs-glow: rgba(255, 255, 255, .06); --hs-dot: rgba(231, 234, 238, .07); --hs-hl: #ffffff; --hs-ring: rgba(255, 255, 255, .18);
  --hs-search-shadow: 0 1px 3px rgba(0,0,0,.5), 0 10px 32px rgba(0,0,0,.45);
  --hs-search-shadow-hover: 0 2px 6px rgba(0,0,0,.55), 0 16px 44px rgba(0,0,0,.55);
}
@media (prefers-color-scheme: dark) {
  html[data-ill-theme="auto"] .hs {
    --hs-glow: rgba(255, 255, 255, .06); --hs-dot: rgba(231, 234, 238, .07); --hs-hl: #ffffff; --hs-ring: rgba(255, 255, 255, .18);
    --hs-search-shadow: 0 1px 3px rgba(0,0,0,.5), 0 10px 32px rgba(0,0,0,.45);
    --hs-search-shadow-hover: 0 2px 6px rgba(0,0,0,.55), 0 16px 44px rgba(0,0,0,.55);
  }
}

.hs-hero {
  position: relative; z-index: 3; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: clamp(540px, calc(100vh - 110px), 720px);
  margin: 8px 0 56px; padding: 40px 40px 22px;
  border: 1px solid var(--hs-line); border-radius: 28px; text-align: center;
  background:
    radial-gradient(60% 55% at 50% 30%, var(--hs-glow), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--hs-dot) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    var(--hs-bg);
}
/* hero KHÔNG overflow:hidden để dropdown kết quả tràn xuống dưới được; .hs-deco tự cắt phần trang trí */
.hs-hero__in {
  position: relative; z-index: 4; flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; max-width: 720px; margin: 0 auto; padding-bottom: 5vh;
}
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--hs-accent-ink);
  background: var(--hs-card); border: 1px solid var(--hs-line); border-radius: 999px; padding: 5px 12px 5px 10px;
}
.hs-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hs-green); box-shadow: 0 0 0 3px var(--hs-accent-tint); }
.hs-title {
  font-size: clamp(30px, 4.2vw, 50px) !important; line-height: 1.1; font-weight: 790; letter-spacing: -.025em;
  margin: 18px 0 30px !important; color: var(--hs-ink); border: 0 !important; padding: 0 !important; text-wrap: balance;
}
.hs-title span {
  color: var(--hs-ink);
}

/* Theme ép màu cho .content-wrapper h1/p (không theo tông tối) → ghi đè màu chữ trong hero */
.content-wrapper .hs .hs-title { color: var(--hs-ink) !important; }
.content-wrapper .hs .hs-eyebrow { color: var(--hs-accent-ink); line-height: 1.3; }

/* Ô tìm kiếm lớn */
.hs-search { position: relative; width: 100%; max-width: 680px; margin: 0 auto; text-align: left; z-index: 5; }
.hs-search__box { position: relative; }
.hs-search__icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--hs-ink-2); pointer-events: none; transition: color .15s;
}
.hs-search__input {
  display: block; width: 100%; height: 64px; border-radius: 999px;
  border: 1px solid var(--hs-line); background: var(--hs-card); color: var(--hs-ink);
  padding: 0 64px 0 60px; font-size: 18px; font-weight: 450;
  box-shadow: var(--hs-search-shadow); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.hs-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hs-search__input::placeholder { color: var(--hs-ink-2); opacity: .8; }
.hs-search.has-ghost .hs-search__input::placeholder { color: transparent; }
.hs-search__input:hover { box-shadow: var(--hs-search-shadow-hover); }
.hs-search__input:focus {
  border-color: var(--hs-accent);
  box-shadow: 0 0 0 5px var(--hs-ring), var(--hs-search-shadow-hover);
}
.hs-search__box:focus-within .hs-search__icon { color: var(--hs-accent); }
.hs-search__ghost {
  position: absolute; left: 61px; right: 64px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--hs-ink-2); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: none;
}
.hs-search.has-ghost.is-empty .hs-search__ghost { display: block; }
.hs-search__ghost em { font-style: normal; color: var(--hs-ink); opacity: .6; }
.hs-search__ghost i {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em;
  background: var(--hs-accent); animation: hs-caret 1s steps(1) infinite;
}
.hs-search.is-focus .hs-search__ghost i { display: none; }
@keyframes hs-caret { 50% { opacity: 0; } }
.hs-search__kbd {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center;
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--hs-ink-2);
  border: 1px solid var(--hs-line); border-bottom-width: 2px; border-radius: 8px; background: var(--hs-soft);
  pointer-events: none; transition: opacity .15s; box-shadow: none;
}
.hs-search.is-focus .hs-search__kbd { opacity: 0; }

/* Kết quả tức thì */
.hs-search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
  background: var(--hs-card); border: 1px solid var(--hs-line); border-radius: 22px;
  box-shadow: 0 4px 10px rgba(16, 24, 20, .06), 0 28px 64px rgba(16, 24, 20, .18);
  max-height: min(64vh, 560px); overflow: auto; overscroll-behavior: contain;
  padding: 6px 8px 0; animation: hs-drop .16s ease-out;
}
@keyframes hs-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hs-r__grp {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hs-ink-2); padding: 12px 14px 6px;
}
.hs-r {
  display: block; position: relative; padding: 9px 40px 9px 14px; border-radius: 14px; color: var(--hs-ink);
  scroll-margin: 8px;
}
.hs-r.is-active { background: var(--hs-accent-tint); }
.hs-r.is-active::after {
  content: "↵"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--hs-accent-ink);
}
.hs-r__t { display: block; font-size: 15.5px; font-weight: 620; line-height: 1.35; }
.hs-r__in { display: block; font-size: 12.5px; color: var(--hs-ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-r__s {
  display: block; font-size: 13.5px; color: var(--hs-ink-2); line-height: 1.45; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-r mark { background: none; color: var(--hs-hl); font-weight: 750; padding: 0; }
.hs-r__s mark { font-weight: 650; }
.hs-r__foot {
  position: sticky; bottom: 0; display: flex; gap: 16px; justify-content: flex-end;
  margin: 6px -8px 0; padding: 9px 16px; border-top: 1px solid var(--hs-line); background: var(--hs-card);
  font-size: 12px; color: var(--hs-ink-2); border-radius: 0 0 22px 22px;
}
.hs-r__foot kbd {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 5px; margin-right: 3px;
  border: 1px solid var(--hs-line); border-radius: 5px; background: var(--hs-soft); color: var(--hs-ink-2); box-shadow: none;
}
.hs-r__empty { padding: 22px 16px 20px; text-align: center; color: var(--hs-ink-2); font-size: 15px; }
.hs-r__empty b { color: var(--hs-ink); }
.hs-r__empty a {
  display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 999px;
  background: var(--hs-accent); color: var(--hs-on-accent) !important; font-weight: 620; font-size: 14.5px;
}

/* Menu mini làm nền (kit ill/, mờ, bay nhẹ) */
.hs-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hs-deco__i {
  position: absolute; opacity: .62; filter: saturate(.85);
  transform: rotate(var(--r));
  animation: hs-float 10s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hs-deco__i .ill, .hs-deco__i figure { margin: 0 !important; }
.hs-deco__i figcaption { display: none; }
.hs-deco__i--desk  { width: 330px; left: -120px; top: 34px;   --r: -7deg; }
.hs-deco__i--tab   { width: 128px; left: 4%;     bottom: 40px; --r: 6deg;  animation-delay: -3s; }
.hs-deco__i--slide { width: 136px; right: 5%;    top: 38px;   --r: 7deg;  animation-delay: -6s; }
.hs-deco__i--fab   { width: 120px; right: -26px; bottom: 50px; --r: -6deg; animation-delay: -8s; }
@keyframes hs-float {
  from { transform: translateY(0) rotate(var(--r)); }
  to   { transform: translateY(-14px) rotate(calc(var(--r) * .6)); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-deco__i { animation: none; }
  .hs-search__ghost i, .hs-search__results { animation: none; }
  .hs-sc, .hs-bar i { transition: none; }
}

@media (max-width: 1199.98px) {
  .hs-deco__i--desk { left: -200px; }
  .hs-deco__i--tab { left: -20px; }
  .hs-deco__i--slide { right: -30px; }
  .hs-deco__i--fab { right: -50px; }
}
@media (max-width: 767.98px) {
  .hs-hero { min-height: 0; padding: 30px 16px 14px; border-radius: 22px; margin-bottom: 36px; }
  .hs-hero__in { padding-bottom: 0; }
  .hs-title { font-size: 30px !important; margin: 14px 0 22px !important; }
  .hs-search__input { height: 56px; font-size: 16.5px; padding: 0 18px 0 50px; }
  .hs-search__icon { left: 18px; font-size: 20px; }
  .hs-search__ghost { left: 51px; right: 16px; font-size: 16.5px; }
  .hs-search__kbd { display: none; }
  .hs-search__results { border-radius: 18px; max-height: 70vh; padding: 4px 6px 6px; }
  .hs-r { padding: 9px 12px; }
  .hs-r.is-active::after, .hs-r__foot { display: none; }
  .hs-deco__i--desk, .hs-deco__i--fab { display: none; }
  .hs-deco__i { opacity: .28; }
  .hs-deco__i--tab { width: 92px; left: -34px; top: 16px; bottom: auto; }
  .hs-deco__i--slide { width: 92px; right: -34px; top: 16px; }
}

/* Panel tìm kiếm: bỏ 4 điện thoại trang trí (Khôi 04/11: "4 cái mobile xấu quá") → vệt màu loang nhẹ */
.hs-deco__i { display: none !important; }
.hs-hero {
  background:
    radial-gradient(circle at 1px 1px, var(--hs-dot) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    var(--hs-bg) !important;
}
.hs-deco { -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 90% at 50% 40%, #000 55%, transparent 100%); }
.hs-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: hs-drift 18s ease-in-out infinite alternate; }
.hs-blob--a { width: 46%; aspect-ratio: 1; left: 4%;  top: -18%; background: #d4d4d4; }
.hs-blob--b { width: 40%; aspect-ratio: 1; right: 2%; top: 4%;   background: #e2e2e2; animation-delay: -6s; }
.hs-blob--c { width: 38%; aspect-ratio: 1; left: 30%; bottom: -30%; background: #ececec; opacity: .4; animation-delay: -11s; }
@keyframes hs-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(4%, 6%) scale(1.08); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-blob { opacity: .18; } }
:root[data-theme="dark"] .hs-blob { opacity: .18; }
@media (prefers-reduced-motion: reduce) { .hs-blob { animation: none; } }
@media (max-width: 767.98px) { .hs-blob { filter: blur(48px); } .hs-blob--a { width: 70%; } .hs-blob--b { width: 64%; } .hs-blob--c { width: 60%; } }

/* ==========================================================================
   H3 — Dải SHOW OFF dưới ô tìm kiếm (Khôi 04/11): tốc độ · SEO · so sánh.
   Số liệu có nguồn trong work/out/H3-REPORT.md. 3 thẻ; mobile xếp dọc.
   ========================================================================== */
.hs-show {
  position: relative; z-index: 2; width: 100%; max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left;
}
.hs-sc {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px 16px;
  background: var(--hs-card); border: 1px solid var(--hs-line); border-radius: 20px; box-shadow: var(--hs-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hs-sc:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-hover); border-color: var(--hs-accent); }
.content-wrapper .hs .hs-sc__lbl {
  display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; border: 0 !important;
  font-size: 13px !important; line-height: 1.2; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hs-accent-ink) !important;
}
.hs-sc__lbl i {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 15px;
  background: var(--hs-accent-tint); color: var(--hs-accent-ink);
}
.content-wrapper .hs .hs-sc__big {
  display: flex; flex-direction: column; margin: 2px 0 0 !important; font-size: 40px; line-height: 1.05; font-weight: 800;
  letter-spacing: -.03em; color: var(--hs-ink) !important;
  -webkit-text-fill-color: var(--hs-ink);
}
.content-wrapper .hs .hs-sc__big small {
  margin-top: 6px; font-size: 13.5px; line-height: 1.35; font-weight: 550; letter-spacing: 0; -webkit-text-fill-color: var(--hs-ink-2); color: var(--hs-ink-2);
}
.content-wrapper .hs .hs-sc__big--sm { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; justify-content: center; background: none; -webkit-text-fill-color: var(--hs-ink); color: var(--hs-ink) !important; }
.content-wrapper .hs .hs-sc__txt { margin: 0 !important; font-size: 13.5px; line-height: 1.45; color: var(--hs-ink-2) !important; }
.hs-sc__txt code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--hs-soft); color: var(--hs-ink); }
.hs-sc__go { margin-top: auto; padding-top: 4px; font-size: 14.5px; font-weight: 620; color: var(--hs-accent-ink) !important; text-decoration: none !important; }
.hs-sc__go::after { content: "\00a0→"; display: inline-block; transition: transform .15s ease; }
.hs-sc__go:hover::after, .hs-sc__go:focus-visible::after { transform: translateX(3px); }

/* thanh đo: độ dài theo tỉ lệ số đo thật (2,5 s = 100%, 0,9 s = 36%) */
.hs-bars { display: flex; flex-direction: column; gap: 7px; }
.hs-bar { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hs-ink-2); }
.hs-bar i { display: block; height: 10px; width: var(--w); border-radius: 99px; background: var(--hs-line); transform-origin: left; animation: hs-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.hs-bar--good i { background: var(--hs-green); animation-delay: .15s; }
.hs-bar b { font-weight: 700; color: var(--hs-ink); white-space: nowrap; font-size: 12.5px; }
@keyframes hs-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* thang SEO theo gói */
.hs-ladder { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.hs-ladder li { margin: 0 !important; padding: 7px 10px !important; display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: baseline; border-radius: 10px; background: var(--hs-soft); font-size: 12.5px; line-height: 1.35; color: var(--hs-ink-2); }
.hs-ladder li b { font-weight: 700; color: var(--hs-ink); }
.hs-ladder li.is-on { background: var(--hs-accent-tint); color: var(--hs-ink); }
.hs-ladder li.is-top { box-shadow: inset 3px 0 0 var(--hs-accent); }
.hs-ladder li:not(.is-on) { opacity: .75; }

/* bảng so sánh mini */
.hs-vs { width: 100%; margin: 0 !important; border-collapse: collapse; border: 0 !important; font-size: 12.5px; display: table !important; width: 100% !important; max-width: none !important; overflow: visible !important; }
.hs-vs th, .hs-vs td { border: 0 !important; border-bottom: 1px solid var(--hs-line) !important; padding: 6px 4px !important; background: none !important; line-height: 1.3; color: var(--hs-ink); }
.hs-vs thead th { white-space: nowrap; text-transform: none !important; font-size: 11.5px !important; font-weight: 700; color: var(--hs-ink-2); text-align: center; text-transform: none; }
.hs-vs tbody th { text-align: left; font-weight: 550; text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; }
.hs-vs td { text-align: center; width: 64px; font-weight: 700; }
.hs-vs td.yes { color: var(--hs-accent-ink); font-size: 15px; }
.hs-vs td.no { color: var(--hs-tag-fix-ink); font-size: 15px; opacity: .8; }
.hs-vs td.mid { color: var(--hs-ink-2); font-weight: 550; font-size: 11.5px; }
.hs-vs tbody tr:last-child th, .hs-vs tbody tr:last-child td { border-bottom: 0 !important; }
.hs-vs__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 899.98px) {
  .hs-show { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 12px; margin-top: 24px; }
  .hs-sc { padding: 16px 16px 14px; }
  .hs-sc__big { font-size: 36px; }
  .content-wrapper .hs .hs-sc__big--sm { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .hs-bar i { animation: none; } }

/* hero có dải show off: gọn lại để vẫn vừa một màn 1440x900 */
.hs-hero__in { padding-bottom: 0; }
.hs-hero .hs-title { margin-bottom: 26px !important; }
.hs-hero .hs-show { margin-top: 28px; }
@media (min-width: 900px) { .hs-hero { min-height: 0; padding-bottom: 26px; } .hs-hero__in { flex: 0 0 auto; } }
@media (min-width: 900px) and (max-height: 860px) { .hs-hero .hs-title { font-size: clamp(28px, 3.6vw, 42px) !important; margin: 14px 0 20px !important; } .hs-hero .hs-show { margin-top: 20px; } }

/* Thẻ Tốc độ: số đo menu in sẵn (Khôi 04/11 chê "lần đầu 2 s") */
.hs-sc--speed .hs-bar { grid-template-columns: 84px 1fr auto; }
.content-wrapper .hs p.hs-sc__note { margin: 8px 0 0 !important; font-size: 11.5px !important; line-height: 1.4 !important; color: var(--hs-ink-2); opacity: .8; }

/* H5 (04/11): thẻ Tốc độ kiểu so sánh; thẻ So sánh 6 hàng x 4 cột */
.content-wrapper .hs .hs-sc__big--md { font-size: 27px; line-height: 1.12; letter-spacing: -.02em; }
.hs-sc--speed .hs-bar { grid-template-columns: 52px 1fr 44px; }
.hs-sc--speed .hs-bar b { text-align: right; }
.hs-vs thead th.is-navi, .hs-vs td:nth-child(2) { background: var(--hs-accent-tint) !important; }
.hs-vs td { width: 15%; padding-left: 2px !important; padding-right: 2px !important; }
.hs-vs th, .hs-vs td { padding-top: 4px !important; padding-bottom: 4px !important; }
.hs-vs thead th { font-size: 11px !important; padding-left: 2px !important; padding-right: 2px !important; }
.hs-vs tbody th { font-size: 12px !important; }
.hs-vs td.mid { font-size: 10.5px; line-height: 1.15; }
.hs-vs td.na { color: var(--hs-ink-2); opacity: .55; font-size: 14px; font-weight: 500; }
.hs-sc--vs .hs-sc__big--sm { font-size: 19px; }
.hs-vs tbody th { white-space: nowrap; font-size: 11.5px !important; }
.hs-vs td { width: 13%; }
.hs-vs td.mid { white-space: nowrap; font-size: 10px; }

/* Khôi 04/11: "Tăng thêm khoảng cách giữa các phần" — Trang chủ: mỗi chặng thưa hơn */
.hs-stage { padding: 96px 0 !important; }
.hs-end { padding-top: 80px !important; margin-top: 24px; }
.hs-hero { padding-bottom: 72px !important; }
@media (max-width: 760px) { .hs-stage { padding: 64px 0 !important; } }
/* Khôi 04/11: số chặng + icon thẻ trang chủ = xanh lá điểm xuyết */
.hs-num { background: var(--color-accent, #1a7a4f) !important; color: #fff !important; }
.hs-sc__lbl i { color: var(--color-accent, #1a7a4f) !important; }
