/* Hallmark · trang chi tiết dự án DND (giữ khung single-projects.php) · design-system: DESIGN.md DND (bmw + vàng đồng) · tone: corporate-measured
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V5 — navy chỉ cho dải ôm ảnh (đầu trang, tiện ích, hộp thông số); FAQ + khối bài viết về nền kem;
 * hiệu ứng riêng DND: ảnh xám nhạt → màu + vạch vàng đồng khi cuộn tới, vạch vàng dưới tiêu đề mục vẽ dần (khác NTH Ken Burns/inset, angia vệt đỏ quét). body.dnd-bmw.single-projects.dda */

/* ---------- 1. FAQ + khối "Thông tin chi tiết dự án": nền tối → kem ---------- */
html body.dnd-bmw.dda.single-projects #faq-du-an, html body.dnd-bmw.dda .dnd-faq-dark { background: var(--k-soft) !important; background-image: none !important; color: var(--k-body) !important; }
body.dnd-bmw.dda #faq-du-an h2, body.dnd-bmw.dda #faq-du-an h3 { color: var(--k-ink) !important; }
body.dnd-bmw.dda #faq-du-an p:not(.author-box *), body.dnd-bmw.dda #faq-du-an span:not(.vl-faq__q-text):not(.author-box *) { color: var(--k-body) !important; }
body.dnd-bmw.dda #faq-du-an .vl-faq__item { background: #fff !important; border: 1px solid var(--k-line) !important; border-radius: 0 !important; box-shadow: none !important; }
body.dnd-bmw.dda #faq-du-an .vl-faq__item[open] { border-color: var(--k-gold) !important; }
body.dnd-bmw.dda #faq-du-an .vl-faq__q-text { color: var(--k-ink) !important; }
body.dnd-bmw.dda #faq-du-an .vl-faq__answer, body.dnd-bmw.dda #faq-du-an .vl-faq__answer * { color: var(--k-body) !important; }
body.dnd-bmw.dda #faq-du-an a:not(.author-box *) { color: var(--k-gold-ink) !important; }
html body.dnd-bmw.dda .dnd-arts { background: var(--k-canvas) !important; background-image: none !important; }
body.dnd-bmw.dda .dnd-arts-box { background: #fff !important; border: 1px solid var(--k-line) !important; border-left: 4px solid var(--k-gold) !important; border-radius: 0 !important; box-shadow: none !important; }
body.dnd-bmw.dda .dnd-arts-title { color: var(--k-ink) !important; }
body.dnd-bmw.dda .dnd-arts-list a { color: var(--k-ink) !important; text-decoration: none !important; }
body.dnd-bmw.dda .dnd-arts-list a:hover { color: var(--k-gold-ink) !important; text-decoration: underline !important; }
/* Thẻ hệ sinh thái trong FAQ/khối bài viết (đã sáng nền) */
body.dnd-bmw.dda #faq-du-an .dnd-ecosystem-card, body.dnd-bmw.dda .dnd-arts .dnd-ecosystem-card { background: #fff !important; border: 1px solid var(--k-line) !important; }

/* ---------- 2. Thanh mục (TỔNG QUAN · VỊ TRÍ…): chữ thường, đang chọn có vạch vàng ---------- */
body.dnd-bmw.dda .dnd-section-nav a, body.dnd-bmw.dda [class*="section-nav"] a { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 700 !important; }

/* ---------- 3. Thẻ mặt bằng căn hộ: cùng khung, ảnh nằm gọn ---------- */
body.dnd-bmw.dda #mat-bang .swiper-slide img, body.dnd-bmw.dda #mat-bang [class*="group/fp"] .swiper-slide img { width: 100% !important; aspect-ratio: 4 / 5; height: auto !important; object-fit: contain !important; background: #fff; }
body.dnd-bmw.dda #mat-bang [class*="group/fp"] .swiper-slide > * { height: 100%; }

/* ---------- 4. Form cuối trang: nút vàng đồng ---------- */
html body.dnd-bmw.dda #contact .ff-btn-submit, html body.dnd-bmw.dda .ff-btn-submit { background: var(--k-gold) !important; background-image: none !important; color: var(--k-navy) !important; border: 0 !important; border-radius: 0 !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; }
html body.dnd-bmw.dda .ff-btn-submit:hover { background: var(--k-gold2) !important; }
body.dnd-bmw.dda #contact .w-16.h-1 { background: var(--k-gold) !important; }

/* ---------- 5. Hiệu ứng riêng DND ---------- */
body.dnd-bmw.dda.dda-fx .dda-anh { position: relative; }
body.dnd-bmw.dda.dda-fx .dda-anh img { filter: saturate(.45); transition: filter 700ms var(--k-ease), transform 700ms var(--k-ease); }
body.dnd-bmw.dda.dda-fx .dda-anh.is-in img { filter: none; }
body.dnd-bmw.dda.dda-fx .dda-anh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: var(--k-gold); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--k-ease) 150ms; pointer-events: none; }
body.dnd-bmw.dda.dda-fx .dda-anh.is-in::after { transform: scaleX(1); }
body.dnd-bmw.dda .dda-h { position: relative; padding-bottom: 14px; }
body.dnd-bmw.dda .dda-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 2px; background: var(--k-gold); transform-origin: left; }
body.dnd-bmw.dda .text-center > .dda-h::after, body.dnd-bmw.dda .dda-h.is-giua::after { left: 50%; margin-left: -32px; transform-origin: center; }
body.dnd-bmw.dda.dda-fx .dda-h::after { transform: scaleX(0); transition: transform 600ms var(--k-ease); }
body.dnd-bmw.dda.dda-fx .dda-h.is-in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  body.dnd-bmw.dda.dda-fx .dda-anh img, body.dnd-bmw.dda.dda-fx .dda-anh::after, body.dnd-bmw.dda.dda-fx .dda-h::after { transition: none; }
}

/* Khối chuyên gia (navy) nằm trong FAQ: giữ chữ sáng */
body.dnd-bmw.dda #faq-du-an .author-box { background: var(--k-navy) !important; border-radius: 0 !important; }
body.dnd-bmw.dda #faq-du-an .author-box, body.dnd-bmw.dda #faq-du-an .author-box p, body.dnd-bmw.dda #faq-du-an .author-box span, body.dnd-bmw.dda #faq-du-an .author-box div { color: var(--k-on-navy2) !important; }
body.dnd-bmw.dda #faq-du-an .author-box strong, body.dnd-bmw.dda #faq-du-an .author-box b, body.dnd-bmw.dda #faq-du-an .author-box h3, body.dnd-bmw.dda #faq-du-an .author-box h4 { color: #fff !important; }
body.dnd-bmw.dda #faq-du-an .author-box a:not([style*="background"]) { color: var(--k-gold) !important; } /* nút có nền giữ màu chữ riêng (Claude 11/11/2026) */

/* Thanh mục trang dự án (dnd-secnav): chữ thường, không giãn chữ */
body.dnd-bmw.dda .dnd-secnav__list, body.dnd-bmw.dda .dnd-secnav__link { text-transform: none !important; letter-spacing: 0 !important; }
body.dnd-bmw.dda .dnd-secnav__link { font-size: 15px !important; font-weight: 700 !important; }
@media (max-width: 767px) { body.dnd-bmw.dda .dnd-secnav__link { font-size: 14px !important; } }

body.dnd-bmw.dda { --dda-pad: max(16px, calc((100vw - 1280px) / 2)); }
/* ---- A. Dải số liệu (spec-cell BMW): số lớn trên, nhãn dưới, kẻ dọc mảnh ---- */
body.dnd-bmw.dda .dda-so { background: var(--k-card); border-bottom: 1px solid var(--k-line); }
body.dnd-bmw.dda .dda-so__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); max-width: 1280px; margin: 0 auto; padding: 0 16px; }
body.dnd-bmw.dda .dda-so__o { padding: 30px 24px 28px; border-left: 1px solid var(--k-line); min-width: 0; }
body.dnd-bmw.dda .dda-so__o:first-child { border-left: 0; padding-left: 0; }
body.dnd-bmw.dda .dda-so__o b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1; color: var(--k-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
body.dnd-bmw.dda .dda-so__o b small { font-size: .42em; font-weight: 700; color: var(--k-gold-ink); letter-spacing: 0; margin-left: 2px; }
body.dnd-bmw.dda .dda-so__o span { display: block; margin-top: 10px; font-size: 14px; color: var(--k-mute); line-height: 1.4; }
@media (max-width: 767px) {
  body.dnd-bmw.dda .dda-so__in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  body.dnd-bmw.dda .dda-so__o { padding: 20px 16px; border-left: 1px solid var(--k-line); border-top: 1px solid var(--k-line); }
  body.dnd-bmw.dda .dda-so__o:nth-child(odd) { border-left: 0; }
  body.dnd-bmw.dda .dda-so__o:first-child { padding-left: 16px; }
  body.dnd-bmw.dda .dda-so__o:nth-child(-n+2) { border-top: 0; }
}


/* Khung chữ mục Mặt bằng: góc vuông, vạch vàng đồng (theme đặt bo 18px + vàng #D4AF37 ở điện thoại) */
html body.dnd-bmw.dda #mat-bang .prose { border-radius: 0 !important; border-left: 4px solid var(--k-gold) !important; }

/* Bảng 4 cột trở lên trên điện thoại: không ngắt chữ giữa từ, cho vuốt ngang (Claude 11/11/2026) */
@media (max-width: 767px) { .dnd-tw table:has(tr > :nth-child(4)) { min-width: 560px; } .dnd-tw table:has(tr > :nth-child(4)) th, .dnd-tw table:has(tr > :nth-child(4)) td { word-break: normal !important; overflow-wrap: normal !important; hyphens: none; } }
