/* Be Vietnam Pro (SIL OFL 1.1) tự host, không phụ thuộc Google Fonts */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: optional; src: url(/assets/fonts/be-vietnam-pro-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* docduan.com: bộ nhận diện riêng "đô thị công viên" (10/2026).
   Nền kem ấm, chữ xanh than, một màu nhấn xanh lá đậm; nút bo 12px, thẻ bo 18/24px, bóng ngả xanh than.
   Mọi màu lấy từ token dưới đây, không viết mã màu trực tiếp trong trang. Tương phản đo ở /styleguide:
   chữ thường >= 4,5:1, vùng chạm >= 44px, không cuộn ngang. */
:root {
  --ink: #15262d;
  --ink-2: #2a3b42;
  --ink-soft: #435259;
  --paper: #f8f6ef;
  --paper-2: #efece2;
  --card: #ffffff;
  --line: #e1dccd;
  --line-strong: #c9c3b2;
  --muted: #5b6a6f;
  --control-border: var(--muted);
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --text-small: .875rem;
  --space-section: 64px;
  --accent: #1d6847;
  --accent-d: #17573b;
  --accent-h: #165338;
  --accent-bg: #e6f1ea;
  --on-accent: #ffffff;
  --good: #1d6847;
  --good-bg: #e6f1ea;
  --warn: #94490b;
  --warn-bg: #fbefe0;
  --err: #b0241b;
  --err-bg: #fbeae8;
  --zalo: #0068ff;
  --zalo-h: #0057d6;
  --glass: rgba(248,246,239,.82);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(21,38,45,.05), 0 10px 28px rgba(21,38,45,.07);
  --shadow-lg: 0 2px 8px rgba(21,38,45,.05), 0 24px 64px rgba(21,38,45,.11);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  color: var(--ink); background: var(--paper);
  line-height: 1.6; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; font-weight: 700; letter-spacing: -.022em; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
em { font-style: normal; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.art { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap, .art { padding: 0 28px; } }

/* ---------- Nút và link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 500; font-size: .97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-h); }
.btn-line { background: transparent; border-color: var(--accent); color: var(--accent-d); }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: var(--text-small); }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-more { color: var(--accent-d); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.link-more::after { content: '›'; font-size: 1.3em; line-height: 1; margin-left: 5px; transition: transform .2s var(--ease); }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-more:hover::after { transform: translateX(2px); }

/* ---------- Dải miễn trừ + thanh điều hướng ---------- */
.ribbon { background: var(--paper-2); color: var(--muted); font-size: var(--text-small); line-height: 1.5; text-align: center; padding: 8px 16px; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid rgba(21,38,45,.09); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; min-height: 44px; font-size: 1rem; }
.logo b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8rem; letter-spacing: 0; }
.logo small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; line-height: 1.3; }
.topnav { display: none; gap: 2px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-size: var(--text-small); white-space: nowrap; transition: color .2s var(--ease); }
.topnav a:hover, .topnav a[aria-current='page'] { color: var(--ink); }
@media (min-width: 900px) { .topnav { display: flex; } }
.topbar .btn { min-height: 44px; padding: 8px 16px; font-size: var(--text-small); }

/* Menu điện thoại dùng details để mở bằng bàn phím khi không có JavaScript. */
.mobile-menu { display: none; }
@media not all and (min-width: 900px) {
  .topbar-in { position: relative; gap: 8px; }
  .topbar .logo { min-width: 0; gap: 6px; font-size: .875rem; }
  .topbar .logo span { min-width: 0; }
  .topbar .btn { flex: none; padding-inline: 10px; }
  .mobile-menu { display: block; flex: none; margin-left: auto; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: var(--text-small); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .mobile-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .mobile-menu summary:hover, .mobile-menu[open] summary { background: var(--accent-bg); }
  .mobile-nav { position: absolute; top: 100%; left: 16px; right: 16px; display: grid; padding: 8px; max-height: 60vh; max-height: 60dvh; overflow-y: auto; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--paper); }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--accent-d); font-size: var(--text-small); text-underline-offset: 3px; }
  .mobile-nav a:hover, .mobile-nav a[aria-current='page'] { background: var(--accent-bg); }
}

/* ---------- Khối trang ---------- */
.sec { padding: var(--space-section) 0; }
.sec-tight { padding: 48px 0; }
.sec-alt { background: var(--paper-2); }
.sec-white { background: var(--card); }
@media (min-width: 900px) { :root { --space-section: 88px; } }
.eyebrow { font-size: .86rem; font-weight: 600; color: var(--accent-d); letter-spacing: 0; }
.head { max-width: 760px; margin-bottom: 36px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.02em; margin-top: 8px; }
.head p { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.55; margin-top: 14px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.5; color: var(--muted); }

.tile { background: var(--card); border-radius: var(--radius-lg); padding: 22px 20px; box-shadow: var(--shadow); }
.tile p a, .src a { color: var(--accent-d); text-decoration: none; }
.tile p a:hover, .src a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile > .tbl:first-child { margin-top: 0; }
.sec-white .tile, .tile.on-white { background: var(--paper-2); box-shadow: none; }
@media (min-width: 720px) { .tile { padding: 36px 40px; } }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .grid { gap: 20px; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.facts > div { background: var(--card); padding: 20px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.sec-white .facts > div { background: var(--paper-2); box-shadow: none; }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 500; }
.facts dd { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.checks { list-style: none; }
.checks li { position: relative; padding: 6px 0 6px 28px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Bài viết ---------- */
.art-hero { background: var(--card); padding: 44px 0 8px; }
@media (min-width: 900px) { .art-hero { padding: 72px 0 12px; } }
.crumbs { font-size: var(--text-small); color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-d); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.art-hero h1 { font-size: clamp(1.95rem, 4.6vw, 2.75rem); letter-spacing: -.02em; line-height: 1.18; }
/* Tiêu đề bài từ 55 ký tự dùng cỡ gọn hơn, không rút ngắn nội dung. */
@media (max-width: 600px) {
  .art-hero h1.h1-long, .infra-page .art-hero h1.h1-long { font-size: clamp(1.75rem, 4.6vw, 2.75rem); text-wrap: balance; }
}
.art-meta { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.art-body { background: var(--card); padding: 32px 0 72px; }
.art-body figure:first-child { margin-top: 0; }

article { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
article p { margin-bottom: 20px; }
article h2 { font-size: clamp(1.55rem, 3.2vw, 2rem); letter-spacing: -.028em; line-height: 1.18; margin: 56px 0 16px; }
article h3 { font-size: 1.22rem; letter-spacing: -.018em; font-weight: 600; margin: 32px 0 10px; }
article ul, article ol { margin: 0 0 20px 22px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--muted); }
article b, article strong { font-weight: 600; }
article a, .art-body p a, .faq p a { color: var(--accent-d); text-decoration: none; }
article a:hover, .art-body p a:hover, .faq p a:hover { text-decoration: underline; text-underline-offset: 3px; }
article a.ilink { font-weight: 500; }
figure { margin: 32px 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--paper-2); }
figcaption { font-size: var(--text-small); line-height: 1.6; color: var(--muted); text-align: center; margin-top: 12px; }

.note { background: var(--paper-2); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 28px; }
.note-accent { background: var(--accent-bg); }
.note-label { font-size: var(--text-small); font-weight: 600; color: var(--accent-d); margin-bottom: 8px; }
.note p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.note p + p { margin-top: 10px; }
.keybox { background: var(--paper); border-radius: var(--radius); padding: 26px 28px; margin: 36px 0; }
.keybox h3 { margin: 0 0 12px; font-size: 1.15rem; }
.keybox ul { list-style: none; margin: 0; }
.keybox li { position: relative; padding: 5px 0 5px 28px; margin: 0; }
.keybox li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Bảng số liệu: không tô đầu bảng, chỉ đường kẻ mảnh */
.tbl-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 8px; scrollbar-color: var(--muted) var(--paper-2); }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tbl-scroll .tbl { margin: 0; }
.tbl-scroll .tbl td { white-space: nowrap; }
.tbl th { text-align: left; font-size: var(--text-small); font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.tbl td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl td:first-child { font-weight: 600; }
.tbl-price td:last-child, .tbl .num { font-weight: 600; white-space: nowrap; }
.src { font-size: var(--text-small); line-height: 1.65; color: var(--muted); margin-top: 10px; }

/* Bảng nhiều cột: tên dãy luôn ở lại khi cuộn, nhận focus bằng bàn phím. */
.tbl-compare .tbl { min-width: 560px; border-collapse: separate; border-spacing: 0; }
.tbl-compare .tbl tbody th { font-size: inherit; color: var(--ink); vertical-align: top; padding: 13px 12px; border-bottom: 1px solid var(--line); }
.tbl-compare .tbl tr > :first-child { position: sticky; left: 0; z-index: 1; padding-left: 12px; border-right: 1px solid var(--line); background: var(--card); }
.tbl-compare .tbl tbody tr:nth-child(even) > * { background: var(--paper); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; background: var(--paper-2); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 44px; }
.cta-band > div { flex: 1; min-width: 220px; }
.cta-band b { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.cta-band span { font-size: .94rem; color: var(--muted); }

/* ---------- Thẻ bài viết ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; } }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s var(--ease); }
.card:hover { border-color: var(--accent); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
.card-body { padding: 18px 20px 22px; }
.card-tag { font-size: var(--text-small); font-weight: 600; color: var(--accent-d); }
.card h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; margin-top: 6px; }
.card p { font-size: .9rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.sec-head-row h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; }

/* ---------- Hỏi đáp ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; font-weight: 600; font-size: 1.06rem; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { color: var(--ink-soft); padding: 0 0 22px; margin: 0; line-height: 1.7; }

/* ---------- Biểu mẫu ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: .86rem; font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: var(--card); font-size: 1rem; caret-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: none; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: var(--text-small); color: var(--ink-soft); line-height: 1.6; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.status { display: none; font-size: .9rem; line-height: 1.5; padding: 12px 14px; border-radius: 12px; }
.status[data-state] { display: block; }
.status[data-state=success] { background: var(--good-bg); color: var(--good); }
.status[data-state=error] { background: var(--err-bg); color: var(--err); }
.status a { color: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* ---------- Chân trang ---------- */
.foot { background: var(--paper-2); color: var(--muted); font-size: var(--text-small); line-height: 1.65; padding: 36px 0 44px; }
.foot p + p { margin-top: 10px; }
.foot b { color: var(--ink-soft); font-weight: 600; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; border-top: 1px solid var(--line-strong); margin-top: 18px; padding-top: 16px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }

/* ---------- Thanh liên hệ trên điện thoại ---------- */
.mfab { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mfab { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-top: 1px solid rgba(21,38,45,.09); }
  .mfab a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 14px; text-decoration: none; font-size: .86rem; font-weight: 600; background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(21,38,45,.09); }
  .mfab a svg { width: 18px; height: 18px; }
  .mfab a.zalo { color: var(--zalo); }
  .mfab a.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Phần phụ của bài viết ---------- */
.rel-h { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 28px; }
.faq-h { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 20px; }
.lead-box { margin-top: 44px; }
.lead-title { display: block; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; }
.lead-sub { font-size: .95rem; color: var(--muted); margin: 8px 0 18px; }

/* ---------- Trang dự án ---------- */
.hero { background: var(--card); text-align: center; padding: 56px 0 0; }
@media (min-width: 900px) { .hero { padding: 92px 0 0; } }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.8rem); letter-spacing: -.025em; line-height: 1.08; max-width: 17ch; margin: 12px auto 0; }
.hero .lead { max-width: 42ch; margin: 20px auto 0; }
.hero-price { margin-top: 20px; font-size: 1.02rem; color: var(--ink-soft); }
.hero-price b { font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; align-items: center; margin-top: 24px; }
.hero-media { max-width: 1240px; margin: 48px auto 0; padding: 0 16px; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); background: var(--paper-2); }
@media (max-width: 719px) { .hero-media { margin-top: 36px; } .hero-media img { aspect-ratio: 4 / 3; border-radius: var(--radius); } }
.hero-media figcaption { margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; } }
.stats > div { background: var(--card); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.45; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.center { align-items: center; } }
.feat { list-style: none; border-top: 1px solid var(--line); }
.feat li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feat i { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent-d); display: grid; place-items: center; }
.feat i svg { width: 22px; height: 22px; }
.feat b { display: block; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }
.feat span { display: block; font-size: .94rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.map { border-radius: var(--radius-lg); overflow: hidden; height: 380px; background: var(--paper-2); }
.map iframe { border: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 719px) { .map { height: 280px; border-radius: var(--radius); } }

.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; } .bento .s8 { grid-column: span 8; } .bento .s6 { grid-column: span 6; } .bento .s4 { grid-column: span 4; } }
.bento figure { margin: 0; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.bento img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-2); }
@media (min-width: 720px) { .bento img { aspect-ratio: auto; height: 260px; } }
.bento figcaption { padding: 18px 22px 22px; text-align: left; margin: 0; }
.bento figcaption b { display: block; font-size: 1.08rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.bento figcaption span { font-size: .9rem; color: var(--muted); }

.num-tile .n { font-size: .9rem; font-weight: 600; color: var(--accent-d); font-variant-numeric: tabular-nums; }
.num-tile h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.num-tile p { color: var(--muted); font-size: .96rem; line-height: 1.6; }

.price-tbl td { padding-top: 12px; padding-bottom: 12px; }
.price-tbl td:last-child, .price-tbl th:last-child { text-align: right; padding-right: 0; }
.price-tbl td:last-child { font-weight: 600; white-space: nowrap; }
.price-tbl small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
@media (max-width: 480px) { .price-tbl { font-size: .9rem; } .price-tbl th, .price-tbl td { padding-left: 6px; padding-right: 6px; } }
.steps { list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps em { font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; color: var(--accent-d); font-variant-numeric: tabular-nums; }
.steps b { display: block; font-weight: 600; }
.steps span { font-size: .9rem; color: var(--muted); }

.agent { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--paper-2); border-radius: var(--radius); }
.agent + .agent { margin-top: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-d); display: grid; place-items: center; font-weight: 700; flex: none; }
.agent > div { flex: 1; min-width: 0; }
.agent small { display: block; color: var(--muted); font-size: .82rem; }
.agent a { font-weight: 600; color: var(--accent-d); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.btn-zalo { background: var(--zalo); color: var(--on-accent); }
.btn-zalo:hover { background: var(--zalo-h); }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.form-tile { background: var(--paper-2); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 720px) { .form-tile { padding: 36px 40px; } }
.form-tile h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.form-tile form { display: grid; gap: 14px; margin-top: 16px; }
.disclosure { font-size: .84rem; color: var(--ink-soft); background: var(--card); border-radius: 14px; padding: 14px 16px; line-height: 1.55; margin-top: 14px; }
.verify { display: inline-flex; gap: 8px; align-items: center; background: var(--good-bg); color: var(--good); font-size: .86rem; font-weight: 500; border-radius: 999px; padding: 8px 16px; margin-top: 18px; }

/* ---------- Trang tin tức ---------- */
.news-hero { padding-bottom: 40px; }
.news-hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); max-width: 16ch; }
.news-hero .lead { max-width: 60ch; margin-top: 16px; }
.feat-sec { padding: 8px 0 72px; }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 14px; font-size: .86rem; }
.chip { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-d); white-space: nowrap; }
.feat-h { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; }
.feat-media { margin: 26px 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.feat-media img { width: 100%; height: auto; }

/* Bản đồ chỉ tải khi bấm (iframe Google Maps kéo theo nhiều script) */
.map-btn { width: 100%; height: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px; color: var(--ink);
  background: radial-gradient(circle at 50% 45%, var(--accent-bg) 0, var(--paper-2) 60%); font: inherit; }
.map-btn:hover .map-pin { transform: translateY(-2px); }
.map-pin { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; transition: transform .2s var(--ease); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.map-pin svg { width: 26px; height: 26px; }
.map-btn b { font-size: 1.02rem; margin-top: 8px; }
.map-btn span:last-child { font-size: .88rem; color: var(--accent-d); }

/* Trang bán hồ sơ + thanh toán SePay */
.buy-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .buy-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.toc { list-style: none; margin: 0; display: grid; gap: 10px; }
.toc li { background: var(--paper-2); border-radius: 14px; padding: 14px 16px; }
.toc b { display: block; }
.toc span { color: var(--muted); font-size: .9rem; }

/* ---------- Khối form nhận bảng giá dùng chung (tools/lead-block.html) ---------- */
.lead-sec .form-tile { padding: 24px 20px; }
@media (min-width: 620px) { .lead-sec .form-tile { padding: 32px; } }
.lead-h { font-size: clamp(1.45rem, 3.2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; }
.lead-row { display: grid; gap: 14px; }
@media (min-width: 620px) { .lead-row { grid-template-columns: 1fr 1fr; } }
.lead-more { font-size: .9rem; margin-top: 16px; line-height: 1.6; }
.lead-more a, .lead-sub a { color: var(--accent-d); font-weight: 600; }
.input[aria-invalid=true], .al-input[aria-invalid=true] { border-color: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 14%, transparent); }
.home-cta { flex-direction: column; gap: 12px; }
.home-cta-sub { font-size: .95rem; color: var(--muted); }
.home-cta-sub a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Trang chủ: cùng nhận diện, nhịp riêng cho dự án có ảnh và hồ sơ dạng chữ. */
.home-hero { padding: 48px 0; text-align: center; }
.home-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.12; }
.home-hero .lead { max-width: 54ch; color: var(--ink-soft); line-height: 1.65; }
.home-hero .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 24px; }
.home-hero .chip { padding: 0; border-radius: 0; background: transparent; font-size: var(--text-small); white-space: normal; }
.home-hero .disclosure { max-width: 68ch; margin: 24px auto 0; text-align: left; background: var(--paper-2); font-size: var(--text-small); line-height: 1.65; padding: 20px; }
.card .go { margin-top: 14px; }
.project-cards .card-soon { min-height: 0; background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.project-cards .card-soon .card-body { padding: 20px 0 0; }
.project-cards .card-soon:hover h3 { text-decoration: none; }
.project-source { margin-top: 20px; }
.method-note { max-width: 760px; }
.directory-cards { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.directory-cards .card { border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; overflow: visible; }
.directory-cards .card-body { display: grid; gap: 8px; padding: 24px 0; }
.directory-cards h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.directory-cards p { margin: 0; line-height: 1.6; }
.process-list .num-tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px 16px; align-content: start; padding: 24px 0 0; background: transparent; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line-strong); }
.process-list .n { grid-row: 1 / 3; }
.process-list h3 { margin: 0; line-height: 1.35; }
.process-list p { grid-column: 2; }
@media (min-width: 640px) { .project-cards .card-soon { grid-column: 1 / -1; } }
@media (min-width: 720px) {
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .directory-cards .card-body { grid-template-columns: 148px minmax(0, 1fr) auto; grid-template-areas: 'tag title action' 'tag description action'; gap: 8px 24px; align-items: center; }
  .directory-cards .card-tag { grid-area: tag; }
  .directory-cards h3 { grid-area: title; }
  .directory-cards p { grid-area: description; }
  .directory-cards .link-more { grid-area: action; }
}
@media (min-width: 900px) { .home-hero { padding: 64px 0; } }
@media (min-width: 980px) { .project-cards { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (max-width: 719px) { .note, .keybox { padding: 20px; } }

/* Link nằm giữa đoạn văn (nguồn, ghi chú, bài viết, hỏi đáp, chân trang): gạch chân sẵn để không chỉ dựa vào màu (WCAG 1.4.1) */
.src a, .art-body p.src a, article p a, .art-body p a, .note p a, .faq p a, .tile p a, .foot-row > div:first-child a, .lead-sub a, .lead-more a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article li a { text-decoration: underline; text-underline-offset: 3px; }
.lead-more a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
