/* HILUX — tối ưu điện thoại (12/11/2026).
   Chỉ áp dụng màn hình ≤ 700px; giao diện máy tính giữ nguyên. Gắn vào mọi trang bằng <link>. */
@media (max-width: 700px) {
  /* iPhone tự phóng to trang khi chạm vào ô nhập chữ < 16px. */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size: 16px !important; }

  /* Không cho cả trang bị kéo ngang vì một khối lệch vài pixel. */
  html, body { max-width: 100%; overflow-x: clip; }

  /* Linh vật trợ lý AI: thu nhỏ để không che nội dung. */
  button[aria-label="Mở trợ lý Hilux"] { transform: scale(0.6); transform-origin: right bottom; right: 6px !important; bottom: 8px !important; }

  /* Dãy tab ngang: vuốt được, không cắt mất tab cuối. */
  nav, [role=tablist] { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }

  /* ---- Media (Production) ---- */
  .hm-studio { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .hm-studio > * { min-width: 0 !important; max-width: 100% !important; grid-column: auto !important; }
  .hm-tech, .hm-sticky { position: static !important; max-height: none !important; overflow: visible !important; }
  .hm-media-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; max-width: 100% !important; }
  .hm-media-tab { flex-shrink: 0 !important; }
  .hm-ecosystem { overflow-x: auto !important; }
  .hm-form-row { grid-template-columns: minmax(0, 1fr) !important; }
  .hm-project-grid, .hm-artifacts { grid-template-columns: minmax(0, 1fr) !important; }

  /* ---- Flow Video ---- */
  .hmd-shell { grid-template-columns: minmax(0, 1fr) !important; }
  .hmd-shell > * { min-width: 0 !important; }
  .hmd-gallery { grid-template-columns: minmax(0, 1fr) !important; }
  .hmd-generate { min-height: 52px; font-size: 16px !important; }

  /* ---- Trang chủ công khai: link mục lục đầu trang dễ bấm và vuốt được ---- */
  div:has(> a[href="#features"]) { overflow-x: auto !important; gap: 4px !important; scrollbar-width: none; }
  div:has(> a[href="#features"]) > a { padding: 12px 8px; }

  /* Nút / link quá nhỏ: tăng vùng chạm tối thiểu. */
  a[href="/login"], a[href="/contact"], a[href="/policies"] { display: inline-block; padding-top: 8px; padding-bottom: 8px; }
}
