/* gladiaheightsthuduc.com · trang thông tin tham khảo dự án Gladia Heights
   Hệ màu: nền giấy lệch xanh rêu nhạt, chữ xanh than, một màu nhấn "nước sông".
   Bảng màu khai đủ ở :root trần; khối tối chỉ GHI ĐÈ. */
:root {
  --paper: #f4f6f4;
  --surface: #ffffff;
  --mist: #e4ecea;
  --ink: #16282a;
  --ink-2: #455a5c;
  --river: #155e69;
  --river-deep: #0e4750;
  --on-river: #ffffff;
  --line: #ccd8d6;
  --field: #687c7a;
  --sand: #efe6d2;
  --on-sand: #3b3420;
  --alert: #9b2c1f;
  --alert-bg: #fbe9e6;
  --ok: #2b6638;
  --ok-bg: #e5f2e7;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a1b;
    --surface: #152325;
    --mist: #1a2c2e;
    --ink: #e3ecea;
    --ink-2: #a8bab7;
    --river: #6cc3cd;
    --river-deep: #8fd3db;
    --on-river: #0b1617;
    --line: #2b3f41;
    --field: #82999a;
    --sand: #2b2618;
    --on-sand: #eadfbf;
    --alert: #f29a8b;
    --alert-bg: #3a1d18;
    --ok: #93d3a0;
    --ok-bg: #16301c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1a1b; --surface: #152325; --mist: #1a2c2e; --ink: #e3ecea; --ink-2: #a8bab7;
  --river: #6cc3cd; --river-deep: #8fd3db; --on-river: #0b1617; --line: #2b3f41; --field: #82999a;
  --sand: #2b2618; --on-sand: #eadfbf; --alert: #f29a8b; --alert-bg: #3a1d18; --ok: #93d3a0; --ok-bg: #16301c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--river-deep); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Dải thông báo danh xưng: HTML tĩnh, hiện mặc định */
.notice { background: var(--sand); color: var(--on-sand); font-size: 14px; line-height: 1.5; }
.notice .wrap { padding-top: 9px; padding-bottom: 9px; }
.notice a { color: var(--on-sand); font-weight: 600; }

/* Đầu trang */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; margin-right: auto; }
.brand b { font-size: 1.15rem; font-weight: 700; }
.brand span { font-size: 13px; color: var(--ink-2); }
.nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav a { display: inline-block; padding: 8px 10px; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 15px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); }
@media (min-width: 960px) { .nav { order: 2; width: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: var(--radius);
  background: var(--river); color: var(--on-river); border: 2px solid var(--river);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--river-deep); border-color: var(--river-deep); color: var(--on-river); }
.btn-ghost { background: transparent; color: var(--river); }
.btn-ghost:hover { background: var(--mist); color: var(--river-deep); }
.btn[disabled] { opacity: .65; cursor: progress; }
.top .btn { min-height: 42px; padding: 8px 14px; font-size: 15px; }

/* Khối mở đầu: chữ trái, phiếu thông số phải */
.hero { padding: 36px 0 28px; }
.hero .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 48px; } .hero { padding: 64px 0 48px; } }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.spec h2 { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; }
.spec dt, .spec dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { color: var(--ink-2); font-size: 15px; padding-right: 16px; }
.spec dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.spec dl > :nth-last-child(-n+2) { border-bottom: 0; }
.src { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 10px; }

/* Khối nội dung */
.sec { padding: 44px 0; }
.sec-alt { background: var(--mist); }
.sec h2 + .intro { color: var(--ink-2); max-width: 62ch; margin-bottom: 24px; }
.two { display: grid; gap: 28px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } .two.wide-left { grid-template-columns: 1.2fr .8fr; } }

/* Sơ đồ vị trí */
.map { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.map svg { display: block; width: 100%; height: auto; }
.map figcaption { font-size: 13.5px; color: var(--ink-2); padding: 8px 6px 2px; }
.m-water { fill: #cfe3e6; }
.m-river { stroke: #cfe3e6; }
.m-land { fill: var(--surface); }
.m-road { stroke: #b88a3a; stroke-width: 7; fill: none; stroke-linecap: round; }
.m-road2 { stroke: #c9b48a; stroke-width: 3.5; fill: none; stroke-dasharray: 8 6; }
.m-rail { stroke: #7a6aa0; stroke-width: 3; fill: none; stroke-dasharray: 2 5; stroke-linecap: round; }
.m-site { fill: var(--river); }
.m-dot { fill: var(--ink); }
.m-txt { fill: var(--ink); font: 600 19px "Be Vietnam Pro", Arial, sans-serif; }
.m-sub { fill: var(--ink-2); font: 400 16px "Be Vietnam Pro", Arial, sans-serif; }
.m-site-txt { fill: var(--river); font: 700 19px "Be Vietnam Pro", Arial, sans-serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-water { fill: #1d3d43; } :root:not([data-theme="light"]) .m-river { stroke: #24505a; } }
:root[data-theme="dark"] .m-water { fill: #1d3d43; }
:root[data-theme="dark"] .m-river { stroke: #24505a; }

.times { list-style: none; padding: 0; margin: 0 0 8px; }
.times li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.times li span:last-child { font-weight: 600; white-space: nowrap; }

.infra { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 8px; }
.infra th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 14px; padding: 8px 8px 8px 0; border-bottom: 2px solid var(--line); }
.infra td { padding: 10px 8px 10px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--sand); color: var(--on-sand); white-space: nowrap; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Thang diện tích */
.range { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 18px; }
.range-line { position: relative; height: 88px; margin: 18px 6px 8px; }
.range-line::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 4px; border-radius: 2px; background: var(--river); }
.range-mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 13px; line-height: 1.25; color: var(--ink-2); white-space: nowrap; }
.range-mark i { display: block; width: 2px; height: 22px; background: var(--ink); margin: 4px auto 0; }
.range-end { position: absolute; top: 62px; font-weight: 700; font-size: 15px; }
.range-end.l { left: 0; } .range-end.r { right: 0; }
.facts { margin: 0; padding-left: 1.1em; }
.facts li { margin-bottom: 8px; }

/* Tiện ích theo cụm */
.amen { display: grid; gap: 22px; }
@media (min-width: 760px) { .amen { grid-template-columns: 1fr 1fr; } }
.amen section { background: var(--surface); border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
.amen h3 { margin-bottom: 4px; }
.amen p.sub { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.amen ul { margin: 0; padding-left: 1.1em; columns: 1; }
@media (min-width: 1000px) { .amen ul { columns: 2; column-gap: 24px; } }
.amen li { break-inside: avoid; margin-bottom: 4px; }
.green { margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: 0 10px 10px 0; }

/* Sổ pháp lý (phần tử chữ ký của trang) */
.ledger { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ledger li { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .ledger li { grid-template-columns: 120px 1fr; } }
.ledger time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--river); }
.ledger .doc { font-weight: 600; }
.ledger .who { color: var(--ink-2); font-size: 15px; }
.ledger li.plan time { color: var(--ink-2); }
.ledger li.plan .doc::after { content: " (dự kiến)"; font-weight: 400; color: var(--ink-2); }

/* Hỏi đáp */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style-position: outside; min-height: 44px; }
.faq details > div { padding: 0 16px 14px; }
.faq details[open] summary { color: var(--river); }

/* Form */
.form-sec { padding: 48px 0; }
.form-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; max-width: 640px; }
@media (min-width: 760px) { .form-box { padding: 30px 32px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--field); border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--river); outline-offset: 1px; border-color: var(--river); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; margin: 12px 0; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--river); }
.consent b { font-weight: 700; }
.form-note { font-size: 14px; color: var(--ink-2); margin: 10px 0 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; padding: 12px 14px; border-radius: 8px; margin: 10px 0; font-size: 15px; }
.msg.err { display: block; background: var(--alert-bg); color: var(--alert); border: 1px solid var(--alert); }
.done { display: none; background: var(--ok-bg); color: var(--ink); border: 1px solid var(--ok); border-radius: 12px; padding: 18px; }
.done.show { display: block; }

/* Bài viết */
.crumbs { font-size: 14px; color: var(--ink-2); padding-top: 18px; }
.crumbs a { color: var(--ink-2); }
.article { padding: 18px 0 40px; }
.article .wrap { max-width: 760px; }
.article .meta { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.article h2 { margin-top: 1.6em; font-size: 1.45rem; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 1.2em 0; padding: 12px 16px; background: var(--mist); border-radius: 10px; }
.article .box { background: var(--sand); color: var(--on-sand); border-radius: 12px; padding: 14px 16px; margin: 22px 0; font-size: 15.5px; }
.article .box a { color: var(--on-sand); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
.article th { text-align: left; border-bottom: 2px solid var(--line); padding: 8px 8px 8px 0; color: var(--ink-2); font-size: 14px; }
.article td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
.refs { font-size: 14.5px; color: var(--ink-2); }
.refs li { margin-bottom: 6px; }
.next-cta { margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

.list-posts { list-style: none; padding: 0; margin: 0; }
.list-posts li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-posts a { font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.list-posts a:hover { text-decoration: underline; }
.list-posts p { margin: 6px 0 0; color: var(--ink-2); }
.list-posts time { font-size: 14px; color: var(--ink-2); }

.page { padding: 28px 0 44px; }
.page .wrap { max-width: 800px; }
.vtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vtable th, .vtable td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; text-align: left; vertical-align: top; }

/* Chân trang */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.foot .disc { background: var(--sand); color: var(--on-sand); padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; line-height: 1.55; }
.foot ul { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink-2); display: inline-block; padding: 4px 0; }

/* Banner đồng ý cookie (Mẫu 2): hai nút ngang hàng, cùng cỡ, cùng độ nổi */
.ck-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); color: var(--ink); border-top: 2px solid var(--river); box-shadow: 0 -6px 24px rgba(15, 40, 42, .12); font-size: 14.5px; line-height: 1.5; }
.ck-banner[hidden] { display: none; }
.ck-banner .wrap { padding-top: 12px; padding-bottom: 12px; display: grid; gap: 10px; }
.ck-banner p { margin: 0; }
.ck-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck-nut .btn { width: 100%; min-height: 44px; }
@media (min-width: 900px) { .ck-banner .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 24px; } .ck-nut { grid-template-columns: 140px 140px; } }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.link-btn:hover { color: var(--river); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .notice, .top .btn, .form-sec, .nav, .ck-banner { display: none; } }
