/* ============================================================
   Header & Footer — dựng trên Astra Header/Footer Builder.
   Markup: functions/site-builder.php + template-parts/site-builder/*.
   Breakpoint khớp filter astra_tablet_breakpoint (1180px):
     desktop > 1180 · tablet 700–1180 · mobile < 700 · mobile nhỏ < 420.
   Màu/khoảng cách lấy từ design-tokens.css; các mã màu thiết kế đã map sang token.
   ============================================================ */

#masthead,
#colophon,
.vf-topbar,
.vf-crumbbar {
  --vf-line: color-mix(in srgb, var(--color-brand-primary) 10%, transparent);
  --vf-line-strong: color-mix(in srgb, var(--color-brand-primary) 14%, transparent);
  --vf-glass-edge: rgba(255, 255, 255, .9);
  --vf-admin: var(--wp-admin--admin-bar--height, 0px);
  /* Lề ngang = đúng lề .vf-container của thân trang (12px mobile, 32px từ 768px) và khung --container-max,
     nên logo/CTA header, nội dung footer và thân trang cùng mép. Nền footer vẫn full-bleed. */
  --vf-edge: var(--container-px);
  --vf-fpad: max(var(--vf-edge), calc((100% - var(--container-max)) / 2 + var(--vf-edge)));
}

@media (min-width: 768px) { #masthead, #colophon, .vf-topbar { --container-px-md: 2rem; } #masthead, #colophon, .vf-topbar, .vf-crumbbar { --vf-edge: var(--container-px-md); } }

/* ── Top header: nền navy như footer (khối tối không có nút đỏ dùng navy, DS §2), cuộn đi (nằm ngoài #masthead) ── */
.vf-topbar { background: var(--color-brand-deep); color: var(--color-text-on-dark); font-size: var(--text-sm); }
.vf-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  min-height: 40px;
  max-width: var(--container-max); margin-inline: auto; padding-inline: var(--vf-edge);
}
.vf-topbar svg { flex: none; }
.vf-topbar a { color: inherit; text-decoration: none; }
.vf-topbar a:hover { color: var(--color-hybrid-on-dark); }
.vf-topbar a:focus-visible { outline: 2px solid var(--color-hybrid-on-dark); outline-offset: 2px; border-radius: var(--radius-sm); }
.vf-topbar strong { font-weight: var(--font-bold); color: var(--color-text-inverse); }
.vf-topbar__loc { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin: 0; font-style: normal; }
.vf-topbar__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-topbar__info { display: flex; align-items: center; flex: none; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.vf-topbar__info li, .vf-topbar__info a { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; white-space: nowrap; }
.vf-topbar__info :is(.vf-topbar__phone, .vf-topbar__hours) + .vf-topbar__social { padding-left: var(--space-6); border-left: 1px solid color-mix(in srgb, var(--color-text-inverse) 24%, transparent); }
@media (max-width: 1180px) { .vf-topbar__social { display: none !important; } }
/* Mobile: chỉ hotline (trái) + giờ làm việc (phải), bỏ nhãn chữ. */
@media (max-width: 699px) {
  .vf-topbar__loc, .vf-topbar__label { display: none; }
  .vf-topbar__info { width: 100%; justify-content: space-between; }
}

/* ── Dải breadcrumb (Rank Math) dưới Main header, cuộn đi ───── */
.vf-crumbbar { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.vf-crumbbar__inner { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--vf-edge); }
.vf-crumbbar .rank-math-breadcrumb { font-size: var(--text-sm); }
.vf-crumbbar .rank-math-breadcrumb p {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 40px; margin: 0;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; /* mobile: cuộn ngang thay vì xuống dòng */
  color: var(--color-text-primary);
}
.vf-crumbbar .rank-math-breadcrumb p::-webkit-scrollbar { display: none; }
.vf-crumbbar .rank-math-breadcrumb a { display: inline-flex; align-items: center; color: var(--color-text-primary); text-decoration: none; }
.vf-crumbbar .rank-math-breadcrumb a:hover { color: var(--color-brand-primary); text-decoration: underline; }
.vf-crumbbar .rank-math-breadcrumb a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
/* Mục đầu: icon nhà đỏ (mặt nạ SVG) trước chữ "Trang chủ". */
.vf-crumbbar .rank-math-breadcrumb a:first-child::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-right: var(--space-2);
  background: var(--color-brand-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 12h3v8h5v-5h4v5h5v-8h3z'/></svg>") center / contain no-repeat;
}
/* Dấu phân cách Rank Math (" - ") thay bằng chevron. */
.vf-crumbbar .rank-math-breadcrumb .separator { display: flex; flex: none; align-items: center; margin: 0; font-size: 0; }
.vf-crumbbar .rank-math-breadcrumb .separator::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>") center / contain no-repeat;
}
.vf-crumbbar .rank-math-breadcrumb .last { color: var(--color-text-primary); font-weight: var(--font-semibold); } /* trang hiện tại đậm hơn các mục cha */

/* ── Header: khung ─────────────────────────────────────────── */
#masthead {
  position: sticky !important;
  top: var(--vf-admin);
  z-index: 100;
  isolation: isolate;
  background: transparent;
  --vf-navfs: var(--text-sm);
  --vf-navpad: 8px;
  --vf-mega-top: 84px;
}
/* Menu IN HOA 14px (sàn chữ DS); đệm ngang nới dần khi cửa sổ rộng. Cột giữa rộng ~740px ở khung 1280 vì SĐT đã lên Top header. */
@media (min-width: 1280px) { #masthead { --vf-navpad: 12px; } }

/* Nền header đặc màu trắng, nằm ở ::before để không ảnh hưởng lớp nội dung/mega menu. */
#masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-surface);
  border-bottom: 1px solid var(--vf-line);
}

#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .main-header-bar {
  background: transparent;
  border: 0;
  box-shadow: none;
}
#masthead .ast-primary-header-bar { height: 72px; min-height: 72px; padding-top: 0; padding-bottom: 0; padding-inline: 0; }
/* Căn giữa theo chiều dọc: hàng grid của Astra chỉ cao bằng nội dung nên mặc định dính mép trên. */
#masthead .ast-primary-header-bar { display: flex; align-items: center; }
#masthead .ast-primary-header-bar > * { width: 100%; }
#masthead .site-primary-header-wrap.ast-container,
#masthead .site-primary-header-wrap { max-width: none; padding: 0; min-height: 0; }

/* Logo */
#masthead .site-branding,
#masthead .ast-site-identity { padding: 0; }
#masthead .site-logo-img img { display: block; width: 192px; height: auto; max-width: none; }
#masthead .site-title,
#masthead .site-description { display: none; }
.vf-no-logo #masthead .site-title { display: block; margin: 0; font-size: var(--text-lg); font-weight: var(--font-semibold); line-height: 1.15; letter-spacing: -.02em; }
.vf-no-logo #masthead .site-title a { color: var(--color-brand-deep); text-decoration: none; }
.vf-no-logo #masthead .site-title a:hover, .vf-no-logo #masthead .site-title a:focus-visible { color: var(--color-cta-primary); }

/* ── Header desktop ────────────────────────────────────────── */
@media (min-width: 1181px) {
  #masthead #ast-desktop-header .ast-builder-grid-row {
    /* Logo bên trái; menu dồn sang phải, liền kề cụm SĐT + CTA. */
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: center;
    padding-inline: var(--vf-edge);
    /* Khung tối đa = --container-max như thân trang, căn giữa; nền kính vẫn full-bleed. */
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
  }
  /* Chưa có file logo: tên đại lý bằng chữ xuống 2 dòng để không đè lên menu ở khung 1181–1440px. */
  .vf-no-logo #masthead .site-title { max-width: 12rem; }
  #masthead .site-header-primary-section-center { justify-content: flex-end; min-width: 0; }
  #masthead .site-header-primary-section-right { justify-content: flex-end; }

  #masthead .main-navigation,
  #masthead .main-header-bar-navigation,
  #masthead .ast-main-header-bar-alignment { display: flex; align-items: center; }
  #masthead .main-header-menu { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
  #masthead .main-header-menu > .menu-item { position: static; }
  #masthead .main-header-menu > .menu-item > .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 var(--vf-navpad);
    border-radius: var(--radius-lg);
    font-size: var(--vf-navfs);
    position: relative;
    font-weight: var(--font-semibold);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-text-primary);
    background: transparent;
    transition: background .15s, color .15s;
  }
  #masthead .main-header-menu > .vf-panel-xe > .menu-link { font-weight: var(--font-semibold); }
  #masthead .main-header-menu > .menu-item > .menu-link > .ast-icon { display: none; }
  #masthead .main-header-menu > .menu-item > .menu-link:hover,
  #masthead .main-header-menu > .menu-item > .menu-link:focus-visible {
    background: color-mix(in srgb, var(--color-brand-primary) 6%, transparent);
    color: var(--color-text-primary);
  }
  /* Mục đang xem: gạch chân đỏ (không chỉ dựa vào màu). */
  #masthead .main-header-menu > .menu-item > .menu-link[aria-current="page"]::after { content: ''; position: absolute; left: var(--vf-navpad); right: var(--vf-navpad); bottom: 2px; height: 2px; background: var(--color-brand-primary); }
  #masthead .main-header-menu > .vf-has-panel:hover > .menu-link,
  #masthead .main-header-menu > .vf-has-panel:focus-within > .menu-link {
    background: color-mix(in srgb, var(--color-cta-primary) 10%, transparent);
    color: var(--color-cta-primary);
  }
  #masthead .vf-has-panel.is-dismissed > .menu-link { background: transparent; color: var(--color-text-primary); }
  #masthead .vf-chev { flex: none; transition: transform .2s; }
  #masthead .vf-has-panel:hover > .menu-link .vf-chev,
  #masthead .vf-has-panel:focus-within > .menu-link .vf-chev { transform: rotate(180deg); }
  #masthead .vf-has-panel.is-dismissed > .menu-link .vf-chev { transform: none; }

  /* Cụm phải: SĐT, tìm kiếm, Đăng ký lái thử */
  #masthead .vf-hactions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  #masthead .vf-htrial svg { flex: none; }
  #masthead .vf-hsearch { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-lg); border: 1px solid var(--vf-line-strong); background: rgba(255, 255, 255, .7); color: var(--color-brand-deep); }
  #masthead .vf-hsearch:hover, #masthead .vf-hsearch:focus-visible { color: var(--color-cta-primary); background: var(--color-brand-light); }
  #masthead .vf-htrial { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; text-transform: uppercase; letter-spacing: .02em; border-radius: var(--radius-full); background: var(--color-cta-primary); color: var(--color-text-inverse); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
  #masthead .vf-htrial:hover, #masthead .vf-htrial:focus-visible { background: var(--color-cta-hover, var(--color-brand-deep)); color: var(--color-text-inverse); }
}


/* ── Mega menu "Xe mới" & dropdown "Dịch vụ" (desktop) ─── */
.vf-mega,
.vf-drop {
  position: fixed;
  /* --vf-hb = mép dưới Main header trong viewport (site-header.js): Top header phía trên làm vị trí thay đổi theo cuộn. */
  top: calc(var(--vf-hb, calc(72px + var(--vf-admin))) + 12px);
  z-index: 99;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s .14s, transform .18s .14s, visibility .18s .14s;
}
.vf-mega {
  left: 50%;
  width: 1120px;
  max-width: calc(100vw - 48px);
  padding: var(--space-4);
  max-height: calc(100dvh - var(--vf-hb, calc(72px + var(--vf-admin))) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-2xl);
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand-primary) 8%, transparent);
}
/* Dropdown neo dưới chính mục "Dịch vụ" / "Tiện ích". */
#masthead .main-header-menu > .vf-panel-dv,
#masthead .main-header-menu > .vf-panel-ti { position: relative; }
.vf-drop {
  position: absolute;
  top: calc(var(--vf-mega-top) - 16px);
  left: 50%;
  width: 320px;
  /* Nền đặc giữ nội dung rõ và tránh lớp backdrop blur tràn khi hover mục con. */
  background: var(--color-surface-elevated);
  padding: 12px;
  border-radius: var(--radius-lg);
  transform: translateX(-50%) translateY(8px);
  box-shadow: none;
}
.vf-has-panel:hover > .vf-mega,
.vf-has-panel:focus-within > .vf-mega,
.vf-has-panel:hover > .vf-drop,
.vf-has-panel:focus-within > .vf-drop {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.vf-has-panel:hover > .vf-mega,
.vf-has-panel:focus-within > .vf-mega { transform: translateX(-50%); }
.vf-has-panel:hover > .vf-drop,
.vf-has-panel:focus-within > .vf-drop { transform: translateX(-50%); }
.vf-has-panel.is-dismissed > .vf-mega,
.vf-has-panel.is-dismissed > .vf-drop { opacity: 0; visibility: hidden; }

.vf-mega, .vf-drop, .vf-acc {
  /* Panel nằm trong <li> của menu Astra nên thừa hưởng line-height = chiều cao header; đặt lại. */
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
}
.vf-mega ul, .vf-drop ul, .vf-acc ul { list-style: none; margin: 0; padding: 0; }
.vf-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-brand-primary);
}
.vf-mega__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vf-mega__count { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted); }
.vf-mega__sub { display: block; margin: var(--space-3) 0 var(--space-2); }

.vf-mega__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
.vf-mega__cards > li[hidden] { display: none; }
.vf-mega .vf-mega__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-heading);
  transition: background .18s;
}
.vf-mega .vf-mega__card:hover,
.vf-mega .vf-mega__card:focus-visible { background: var(--color-surface-alt); color: var(--color-text-heading); }
.vf-mega .vf-nav-image { display: block; width: 100%; }
.vf-mega .vf-nav-image img { display: block; width: 100%; height: 124px; object-fit: contain; }
.vf-mega__card strong { font-size: var(--text-base); font-weight: 700; line-height: 1.25; text-transform: uppercase; color: var(--color-cta-primary); overflow-wrap: anywhere; }
.vf-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-primary);
}
.vf-price svg { flex: none; color: var(--color-cta-primary); }
.vf-price--sm { margin-top: 0; font-size: var(--text-sm); }

.vf-mega__pill-txt { display: flex; flex-direction: column; min-width: 0; }

.vf-mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--vf-line);
}
.vf-mega .vf-mega__all { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--color-cta-primary); }
.vf-mega .vf-mega__price { font-size: var(--text-sm); font-weight: 700; color: var(--color-brand-deep); }

/* Cấp cha-con lấy từ menu core, giữ thứ tự quản trị. Desktop: cột trái = lọc kiểu thân xe, cột phải = lưới xe; hai liên kết phụ nằm ngang hàng ở hàng dưới. */
.vf-mega > .vf-nav-children { display: grid; grid-template-columns: 200px repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr auto; column-gap: var(--space-4); }
.vf-mega > .vf-nav-children > .vf-nav-item:has(> .vf-nav-children) { grid-column: 2 / 4; grid-row: 1; padding-left: var(--space-4); border-left: 1px solid var(--color-border); }
.vf-mega > .vf-nav-children > .vf-mega__tabs { grid-column: 1; grid-row: 1; }
.vf-mega > .vf-nav-children > .vf-nav-item:not(:has(> .vf-nav-children)) { grid-row: 2; margin-top: var(--space-4); }
.vf-mega > .vf-nav-children > .vf-nav-item:not(:has(> .vf-nav-children)):nth-last-child(2) { grid-column: 2; }
.vf-mega > .vf-nav-children > .vf-nav-item:not(:has(> .vf-nav-children)):last-child { grid-column: 3; }
.vf-mega > .vf-nav-children > .vf-nav-item > .vf-mega__sub { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vf-mega__tabs { display: flex; flex-direction: column; margin-bottom: var(--space-3); }
.vf-mega .vf-mega__tab {
  position: relative;
  min-height: 48px;
  padding: 0 var(--space-3) 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: 700 var(--text-lg)/1.2 var(--font-body);
  color: var(--color-text-heading);
  cursor: pointer;
  transition: color .15s;
}
.vf-mega .vf-mega__tab:hover,
.vf-mega .vf-mega__tab:focus { background: transparent; color: var(--color-cta-primary); }
.vf-mega .vf-mega__tab.is-on { color: var(--color-cta-primary); }
.vf-mega .vf-mega__tab.is-on::after { content: ""; position: absolute; top: 6px; bottom: 6px; right: calc(-1 * var(--space-4) - 1px); width: 3px; border-radius: 2px; background: var(--color-cta-primary); }
/* Liên kết phụ dạng nút viền, cân đối hai bên (dùng chung desktop và drawer). */
.vf-mega .vf-mega__all, #masthead .vf-acc .vf-mega__all { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); text-align: center; color: var(--color-cta-primary); font-weight: 700; transition: background .15s, border-color .15s; }
.vf-mega .vf-mega__all:hover, .vf-mega .vf-mega__all:focus-visible, #masthead .vf-acc .vf-mega__all:hover, #masthead .vf-acc .vf-mega__all:focus-visible { background: var(--color-surface-alt); border-color: var(--color-cta-primary); color: var(--color-cta-primary); }
.vf-mega .vf-eyebrow { display: block; }
.vf-mega .vf-mega__card .vf-mega__pill-txt { gap: 4px; }
.vf-mega .vf-price { font-size: var(--text-sm); white-space: nowrap; }
.vf-drop .vf-nav-children .vf-nav-children { padding-left: 12px; }

.vf-drop a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-heading);
  transition: background .15s, color .15s;
}
.vf-drop a:hover { background: var(--color-brand-light); color: var(--color-brand-primary); }
.vf-drop .vf-nav-ico, .vf-acc__list .vf-nav-ico { flex: none; width: 28px; height: 28px; margin-right: var(--space-3); color: var(--color-cta-primary); }
.vf-nav-ico--mask { display: inline-block; background: currentColor; -webkit-mask: var(--vf-ico) center / contain no-repeat; mask: var(--vf-ico) center / contain no-repeat; }

/* ── Header mobile / tablet ────────────────────────────────── */
@media (max-width: 1180px) {
  #masthead { --vf-drawer-top: var(--vf-hb, calc(64px + var(--vf-admin))); }
  #masthead .ast-primary-header-bar { height: 64px; min-height: 64px; }
  #masthead::before { border-bottom-color: var(--color-border); }
  #masthead #ast-mobile-header .ast-primary-header-bar { padding-inline: var(--vf-edge) !important; }
  #masthead #ast-mobile-header .ast-builder-grid-row { padding-inline: 0; align-items: center; }
  #masthead .site-logo-img img { width: 184px; }

  #masthead .menu-toggle.main-header-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-brand-deep);
  }
  #masthead .menu-toggle.main-header-menu-toggle:hover,
  #masthead .menu-toggle.main-header-menu-toggle:focus-visible { background: var(--color-surface-alt); color: var(--color-brand-deep); }
  #masthead .menu-toggle .ast-mobile-svg { width: 20px; height: 20px; fill: currentColor; }

  /* Drawer */
  #masthead .ast-mobile-header-content {
    position: fixed;
    top: var(--vf-drawer-top);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: none;
    z-index: 98;
    padding: 18px 20px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
    box-shadow: none;
    animation: vf-drawer-in .2s ease;
  }
  #masthead .ast-mobile-header-content { display: none; }
  body.ast-main-header-nav-open #masthead .ast-mobile-header-content { display: block; }
  #masthead .ast-mobile-header-content .ast-builder-menu-mobile,
  #masthead .ast-mobile-header-content .main-header-bar-navigation,
  #masthead .ast-mobile-header-content .ast-main-header-bar-alignment,
  #masthead .ast-mobile-header-content .main-navigation { width: 100%; }
  #masthead #ast-hf-mobile-menu {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--vf-drawer-top) - 46px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  #masthead #ast-hf-mobile-menu > li { list-style: none; border: 0; }
  .vf-drawer-label { font-size: var(--text-sm); font-weight: var(--font-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }

  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-brand-deep);
    background: transparent;
  }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link > .ast-icon { display: none; }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link .vf-chev { width: 14px; height: 14px; transition: transform .2s; }
  #masthead #ast-hf-mobile-menu > .vf-has-acc.is-open > .menu-link,
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[aria-current="page"] { color: var(--color-cta-primary); }
  #masthead #ast-hf-mobile-menu > .vf-has-acc.is-open > .menu-link .vf-chev { transform: rotate(180deg); }
  /* Icon bên trái mục menu cấp 1 (mặt nạ SVG, ăn theo màu chữ) */
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link { justify-content: flex-start; gap: 14px; }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link::before { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--vf-ico) center / contain no-repeat; mask: var(--vf-ico) center / contain no-repeat; }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link .vf-chev { margin-left: auto; }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/xe-moi/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/><circle cx='7' cy='17' r='2'/><path d='M9 17h6'/><circle cx='17' cy='17' r='2'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/dich-vu/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/bang-gia-xe-honda/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z'/><circle cx='7.5' cy='7.5' r='1'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/tien-ich/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect width='7' height='7' x='3' y='3' rx='1'/><rect width='7' height='7' x='14' y='3' rx='1'/><rect width='7' height='7' x='14' y='14' rx='1'/><rect width='7' height='7' x='3' y='14' rx='1'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/khuyen-mai/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='4' rx='1'/><path d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/><path d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/kien-thuc-xe-honda/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 7v14'/><path d='M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z'/></svg>"); }
  #masthead #ast-hf-mobile-menu > .menu-item > .menu-link[href$="/lien-he/"] { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/></svg>"); }

  .vf-acc { display: none; }
  .vf-has-acc.is-open > .vf-acc { display: block; }
  .vf-acc__label { margin: 12px 0 0; font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
  #masthead .vf-acc .vf-acc__label { display: flex; align-items: center; min-height: 44px; }
  .vf-acc > .vf-nav-children:not(.vf-acc__list) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); }
  .vf-acc > .vf-nav-children:not(.vf-acc__list) > .vf-nav-item:has(> .vf-nav-children) { grid-column: 1 / -1; }
  .vf-acc > .vf-nav-children:not(.vf-acc__list) > .vf-nav-item:not(:has(> .vf-nav-children)) { margin-bottom: var(--space-3); }
  .vf-acc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 4px; }
  #masthead .vf-acc__tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 8px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    color: var(--color-text-heading);
  }
  .vf-acc__img { display: grid; place-items: center; flex: none; width: 48px; height: 36px; border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; }
  .vf-acc__img img { width: 100%; height: 100%; object-fit: contain; }
  .vf-acc__txt { display: flex; flex-direction: column; min-width: 0; }
  .vf-acc__txt strong { font-size: var(--text-base); font-weight: 700; line-height: 1.25; }
  .vf-acc__all { margin: 0; }
  #masthead .vf-acc__all a { display: flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 700; color: var(--color-cta-primary); }
  .vf-acc__list { display: grid; gap: 8px; padding: 12px 0 16px; }
  #masthead .vf-acc__list a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface-alt);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-heading);
  }

  #masthead li.vf-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 24px; }
  #masthead .vf-drawer-actions:has(> :only-child) { grid-template-columns: 1fr; }
  #masthead .vf-drawer-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 12px;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: center;
  }
  #masthead .vf-btn-call { border: 1px solid var(--color-border-strong); color: var(--color-brand-deep); }
  #masthead .vf-btn-trial {
    background: var(--gradient-action);
    color: var(--color-text-inverse);
    box-shadow: none;
  }

  /* Drawer tự cuộn; ẩn thanh CTA dưới đáy để không đè lên drawer. */
  body.ast-main-header-nav-open .vf-mobile-sticky-bar { display: none; }
}
@media (max-width: 419px) {
  /* Giữ 2 cột, thumbnail nhỏ bên trái, tên + giá bên phải. */
  #masthead .vf-acc__tile { gap: 8px; padding: 8px; }
  .vf-acc__img { width: 40px; height: 30px; border-radius: var(--radius-lg); }
  .vf-acc__txt strong { font-size: var(--text-sm); }
  .vf-acc__txt .vf-price { white-space: nowrap; }
}
@keyframes vf-drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* ── Footer: khung 2 hàng full-bleed, nền tối ──────────────── */
#colophon { background: var(--color-brand-deep); padding: 0; }
/* Astra căn giữa phần tử HTML của footer; đặt lại trên chính khối của theme. */
#colophon .vf-flinks,
#colophon .vf-flegal { text-align: left; }
#colophon .ast-builder-grid-row-container-inner,
#colophon .ast-builder-footer-grid-columns,
#colophon .footer-widget-area,
#colophon .ast-header-html,
#colophon .ast-builder-html-element { width: 100%; max-width: none; margin: 0; padding: 0; min-height: 0; }
#colophon .site-above-footer-wrap,
#colophon .site-primary-footer-wrap,
#colophon .site-below-footer-wrap { padding: 0; min-height: 0; border: 0; background: transparent; }
#colophon .vf-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-sm); font-weight: var(--font-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-heading); line-height: 1.3; }
#colophon .vf-h svg { flex: none; color: var(--color-text-on-dark); }
/* Tiêu đề 3 cột liên kết: icon theo nhóm thay cho tia sét (mặt nạ SVG, màu trung tính). */
#colophon .vf-h--ico { color: var(--color-text-on-dark); }
#colophon .vf-h--ico::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--color-text-on-dark); -webkit-mask: var(--vf-ico) center / contain no-repeat; mask: var(--vf-ico) center / contain no-repeat; }
#colophon .vf-h--xe-moi { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/><circle cx='7' cy='17' r='2'/><path d='M9 17h6'/><circle cx='17' cy='17' r='2'/></svg>"); }
#colophon .vf-h--dich-vu { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M8 6v6M15 6v6M2 12h19.6'/><path d='M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3'/><circle cx='7' cy='18' r='2'/><path d='M9 18h5'/><circle cx='16' cy='18' r='2'/></svg>"); }
#colophon .vf-h--support { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>"); }
#colophon .vf-h--tienich { --vf-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1.6'/><rect x='14' y='3' width='7' height='7' rx='1.6'/><rect x='3' y='14' width='7' height='7' rx='1.6'/><rect x='14' y='14' width='7' height='7' rx='1.6'/></svg>"); }
#colophon .vf-h a { color: inherit; }
#colophon .vf-h a:hover { color: var(--color-brand-on-dark); }
#colophon ul { list-style: none; margin: 0; padding: 0; }

/* Khối link */
.vf-flinks {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.9fr);
  align-items: start;
  gap: var(--space-fluid-lg);
  padding: 56px var(--vf-fpad);
  background: var(--color-brand-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Thẻ Showroom */
.vf-showroom {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: none;
}
.vf-showroom__bar { height: 4px; background: linear-gradient(90deg, var(--color-brand-primary), var(--color-cta-primary) 60%, var(--color-brand-on-dark)); }
.vf-showroom__body { padding: 28px; }
.vf-showroom__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--color-border); }
.vf-showroom__head .vf-logo { width: 220px; max-width: 100%; height: auto; }
.vf-showroom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 0; font-style: normal; }
.vf-cell { display: block; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--color-surface-alt); color: var(--color-text-heading); }
.vf-cell--wide { grid-column: span 2; }
.vf-cell__label { display: block; margin-bottom: 6px; font-size: var(--text-sm); font-weight: var(--font-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.vf-cell__addr { display: block; font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }
.vf-cell__hours { display: block; font-size: var(--text-sm); font-weight: 700; line-height: 1.5; }
.vf-cell__hours + .vf-cell__hours { margin-top: 6px; }
#colophon .vf-cell--hotline { background: var(--color-surface-sunken); border: 1px solid var(--color-border); color: var(--color-text-heading); transition: border-color .15s, background .15s; }
#colophon .vf-cell--hotline:hover { background: var(--color-surface-soft); border-color: var(--color-border-strong); }
.vf-cell--hotline .vf-cell__label { color: var(--color-text-muted); }
.vf-cell__num { display: block; font-size: var(--text-xl); font-weight: var(--font-bold); letter-spacing: -.02em; white-space: nowrap; color: var(--color-text-heading); }
#colophon .vf-cell__mail { font-size: var(--text-sm); font-weight: 700; color: var(--color-brand-primary); word-break: break-all; }
#colophon .vf-cell__mail:hover { color: var(--color-cta-primary); }
@media (max-width: 559px) { .vf-showroom__grid { grid-template-columns: 1fr; } .vf-cell--wide { grid-column: auto; } }
#colophon .vf-showroom__map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-heading);
  transition: background .15s, color .15s;
}
#colophon .vf-showroom__map:hover { background: var(--color-surface-soft); color: var(--color-cta-primary); }

/* 3 cột link đều nhau (Xe mới / Dịch vụ / Tiện ích) */
.vf-fnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-fluid-sm); padding-top: 24px; }
/* Danh sách xe: desktop 1 cột; tablet/điện thoại chia 2 cột (xem media query bên dưới). */
#colophon .vf-fcol--wide ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.vf-fcol .vf-h { margin: 0; }
.vf-bars { display: flex; gap: 4px; margin: 10px 0 8px; }
.vf-bars i { width: 22px; height: 4px; border-radius: 2px; background: var(--color-border-strong); }
.vf-bars i:nth-child(2) { opacity: .55; }
.vf-bars i:nth-child(3) { opacity: .2; }
#colophon .vf-frow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--color-text-on-dark);
}
#colophon .vf-frow:hover { color: var(--color-brand-on-dark); }
.vf-frow__img { display: grid; place-items: center; flex: none; width: 58px; height: 40px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); overflow: hidden; }
.vf-frow__img img { width: 100%; height: 100%; object-fit: contain; }
.vf-frow__txt { display: flex; flex-direction: column; min-width: 0; }
.vf-frow__txt strong { font-size: var(--text-sm); font-weight: 700; line-height: 1.25; }
.vf-frow__txt span { font-size: var(--text-sm); font-weight: 700; color: var(--color-text-on-dark); opacity: .72; white-space: nowrap; }
#colophon .vf-fsup {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-on-dark);
  transition: color .15s, padding-left .15s;
}
#colophon .vf-fsup:hover { color: var(--color-brand-on-dark); padding-left: 6px; }

/* Dòng pháp lý */
.vf-flegal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 24px var(--vf-fpad) 36px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-on-dark);
  text-align: left;
}
.vf-flegal p { margin: 0; }
.vf-flegal__note { max-width: 640px; text-align: right; }

/* ── Footer desktop (≥1181px): cột Xe 1 cột (cột Tiện ích hiện ở mọi thiết bị) ── */
@media (min-width: 1181px) {
  #colophon .vf-fcol--wide ul { display: block; }
  /* Thẻ Showroom nằm trong cột hẹp → số hotline 20px tràn ô; hạ cỡ + thu ô icon cho vừa. */
  #colophon .vf-cell--hotline .vf-cell__num { font-size: var(--text-sm); gap: 6px; }
  #colophon .vf-cell--hotline .vf-cell__ico { width: 20px; height: 20px; }
}

/* ── Footer tablet / mobile ────────────────────────────────── */
@media (max-width: 1180px) {
  .vf-flinks { grid-template-columns: 1fr; gap: 32px 24px; padding: 40px var(--vf-edge); }
  .vf-fnav { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .vf-fcol--wide { grid-column: 1 / -1; }
  .vf-flegal { padding: 24px var(--vf-edge) 36px; }
}
@media (max-width: 699px) {
  .vf-flinks { padding: 32px var(--vf-edge); }
  .vf-fnav { gap: 20px 16px; } /* điện thoại: nhóm xe chiếm trọn hàng, Dịch vụ | Tiện ích đứng cạnh nhau */
  .vf-fcol--dich-vu { grid-column: 1 / -1; }
  .vf-flegal { flex-direction: column; gap: 8px; padding: 16px var(--vf-edge) 12px; } /* body đã chừa 60px cho thanh mobile */
  .vf-flegal__note { text-align: left; }
}
/* Danh sách xe Honda luôn mở trên mọi màn hình (ít dòng xe, không cần thu gọn). */
.vf-fcol__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 559px) {
  /* Điện thoại: danh sách xe chia 2 cột, hàng gọn lại để vừa nửa chiều rộng. */
  #colophon .vf-fcol--xe-moi > ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #colophon .vf-fcol--xe-moi .vf-frow { gap: 8px; }
  #colophon .vf-fcol--xe-moi .vf-frow__img { width: 44px; height: 32px; border-radius: var(--radius-lg); }
  #colophon .vf-fcol--xe-moi .vf-frow__txt span { white-space: normal; font-size: var(--text-sm); }
}
@media (max-width: 419px) {
  .vf-showroom__body { padding: 22px; }
}

/* ── Focus + giảm chuyển động ──────────────────────────────── */
#masthead a:focus-visible,
#masthead button:focus-visible,
#colophon a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
/* Footer nền tối: vòng focus sáng cho vùng chữ trên nền ink (thẻ Showroom trắng giữ --color-focus). */
#colophon .vf-fnav a:focus-visible,
#colophon .vf-flegal a:focus-visible { outline-color: var(--color-hybrid-on-dark); }
@media (prefers-reduced-motion: reduce) {
  #masthead *, #masthead::before, .vf-mega, .vf-drop, #colophon * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.vf-logo--text { font-weight: 700; font-size: var(--text-lg); letter-spacing: -.02em; color: var(--color-brand-deep); text-decoration: none; }

.vf-cell__num:has(.vf-cell__ico) { display: flex; align-items: center; gap: 8px; }
.vf-connect { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vf-connect a { display: block; border-radius: 50%; line-height: 0; }
.vf-connect a:hover, .vf-connect a:focus-visible { opacity: .85; }
.vf-connect a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Cột Tiện ích: khối "Kết nối" (Zalo/Facebook/YouTube) trên nền tối. */
.vf-fconnect { margin-top: 24px; }
#colophon .vf-fconnect .vf-h { color: var(--color-text-on-dark); }
#colophon .vf-fconnect .vf-connect { margin-top: var(--space-4); }
