/* 3A Design 2026 · KHUNG (gói P0, 24/11/2026). Vài luật riêng bản WordPress, KHÔNG đổi giao diện đã chốt.
   Chỉ dùng biến/màu đã có trong proto (token §4b). Nạp sau proto/*.css, trước noi-dung.css. */

/* Ô bẫy máy của form (người thật không thấy, trình đọc màn hình bỏ qua) */
.t3ad-hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* Dòng lỗi tổng ở đầu form (máy chủ trả về) — dùng lại kiểu .err của prototype, thêm khoảng dưới */
.lead-form .t3ad-sum{margin:0 0 14px}

/* Thanh đáy điện thoại khi thiếu hotline hoặc Zalo (ô trống → nút ẩn): chia lại cột cho đều */
.mbar.mbar--2{grid-template-columns:1fr 1.4fr}
.mbar.mbar--1{grid-template-columns:1fr}

/* Nút "Nhận dự toán" ở chân trang khi đang dùng CF7 (form nằm ở trang Liên hệ) */
.ft-form .btns{display:flex;flex-wrap:wrap;gap:12px}

/* Menu chính: mục CHA của trang đang xem (vd "Kiến thức" khi đọc một bài) gạch chân như prototype.
   Walker in aria-current="true" cho mục cha (đúng ARIA), "page" chỉ cho đúng trang đang mở. */
.nav-l>li>a[aria-current="true"]{border-color:var(--acc)}

/* ẢNH MẶC ĐỊNH (25/11): bài không có ảnh đại diện trong lưới gói A → THẺ CHỮ có chủ đích (cùng kiểu .b-ph-txt gói B),
   nằm trong khung ảnh .x-ph / figure.ph / mảng .x-f. Màu = token §4b (#283A44 nền, #477C9A tam giác). */
.t3ad-ph-txt{position:absolute;inset:0;display:flex;align-items:flex-end;padding:18px 20px;color:#fff;
  background:#283A44 linear-gradient(135deg,transparent 0 62%,rgba(71,124,154,.55) 62% 100%)}
.t3ad-ph-txt>span{font:600 13px/1.4 var(--fh);letter-spacing:.06em;text-transform:uppercase;color:#D5DEE4}
.ph>.t3ad-ph-txt,.ph>a>.t3ad-ph-txt{border-radius:inherit}
.x-f.x-f--txt{background:#283A44 linear-gradient(135deg,transparent 0 62%,rgba(71,124,154,.55) 62% 100%)}

/* MENU CHÍNH 3 CẤP (25/11) — menu cũ "Main Menu - Vi" 61 mục, nhãn dài (vd "Dịch Vụ Thiết Kế Kiến Trúc Chuyên Nghiệp").
   Giữ kiểu prototype (.sub nền sáng, viền, bóng). Cấp 3 = .sub--3. Không đổi màu/chữ của prototype. */
.nav-l>li>a{white-space:nowrap}
.sub>li{position:relative}
.sub a{line-height:1.4;overflow-wrap:break-word;hyphens:manual}
.sub>li.has-sub{display:flex;flex-wrap:wrap;align-items:center}
.sub>li.has-sub>a{flex:1;min-width:0}
@media (min-width:1181px){
  .sub{width:max-content;min-width:240px;max-width:320px}
  .sub a{padding:9px 20px;white-space:normal}
  .sub>li.has-sub>a{padding-right:6px}
  .sub .sub-t{width:32px;height:32px;margin:0 8px 0 0;flex:none}
  .sub .sub-t .ic-s,.sub .has-sub.open>.sub-t .ic-s{transform:rotate(-90deg)}
  .sub--3{left:100%;top:-11px;transform:translateX(6px)}
  .has-sub:hover>.sub--3,.has-sub:focus-within>.sub--3,.has-sub.open>.sub--3{transform:none}
  /* 3 mục cuối hàng menu: menu con mở sang trái để không tràn mép phải màn hình */
  .nav-l>li:nth-last-child(-n+3)>.sub{left:auto;right:0}
  .nav-l>li:nth-last-child(-n+4) .sub--3{left:auto;right:100%;transform:translateX(-6px)}
}
@media (min-width:1181px) and (max-width:1440px){
  .nav-l{gap:0}
  .nav-l>li>a{padding-inline:5px}
  .nav-l>li>.sub-t{width:18px;margin-left:-4px}
}
@media (max-width:1180px){
  .sub>li.has-sub>a{padding-right:0}
  .sub .sub-t{width:44px;height:44px}
  .sub--3{padding:0 0 6px 14px}
  .sub--3 a{font-size:14.5px;padding-block:8px}
}

/* 01/12/2026 (CEO, go-live): form chân trang dùng CF7 (ô nhập size="40") làm cột lưới rộng hơn màn hình điện thoại 52px. Hoàn tác: xoá khối này. */
.form-g>*{min-width:0}
.wpcf7 input,.wpcf7 textarea,.wpcf7 select{max-width:100%;box-sizing:border-box}
