/* Theme: lapmangviettel.com.vn — original theme, Viettel-red accents.
   Token source: --red-600 #EE0033 taken from Viettel's public logo (post-2021 identity); pending owner
   confirmation against an official brand guideline. Red is reserved for primary CTA and accents;
   headings and prices use dark neutrals so not everything is the same red. */
:root {
  --red-600: #ee0033;      /* brand accent for borders and marks; white text on it is 4.48:1, so CTAs use --red-700 */
  --red-700: #c4002a;      /* hover / red text on white (6.0:1) */
  --red-050: #fff1f3;
  --ink-900: #1b1d21;      /* body text */
  --ink-700: #3d4148;
  --ink-500: #626872;      /* muted text (5.6:1 on white) */
  --line: #e3e5e8;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --focus: #1a5fd0;
  --radius: 8px;
  --wrap: 1160px;
  --font: Roboto, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--ink-900); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--red-700); text-underline-offset: 2px; }
a:hover { color: #8f001e; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink-900); line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin: .4em 0 .3em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink-900); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-500); }
.preview-bar { background: #fff6d6; color: #5a4300; text-align: center; padding: 6px; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-900); font-weight: 700; }
.brand-mark { background: var(--red-600); color: #fff; border-radius: 6px; padding: 4px 7px; font-size: .85rem; letter-spacing: .5px; }
.brand-text { font-size: 1.05rem; }
.search { display: flex; flex: 1; max-width: 380px; margin-left: auto; }
.search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #80868f; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.search button { padding: 8px 12px; border: 1px solid var(--ink-700); background: var(--ink-700); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font: inherit; cursor: pointer; }
.hotline { white-space: nowrap; text-decoration: none; background: var(--red-700); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.hotline:hover { background: #8f001e; color: #fff; }
.main-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-scroll { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-top: 2px; padding-bottom: 2px; margin: 0 auto; }
.nav-scroll a { display: block; padding: 10px 12px; white-space: nowrap; text-decoration: none; color: var(--ink-700); font-weight: 500; border-bottom: 3px solid transparent; }
.nav-scroll a:hover, .nav-scroll a[aria-current] { color: var(--ink-900); border-bottom-color: var(--red-600); }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .hotline { margin-left: auto; padding: 6px 12px; font-size: .9rem; }
  .brand-text { font-size: .98rem; }
  .site-header { position: static; }   /* no sticky header on phones: never hides content */
}

/* Breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0 0; margin: 0; font-size: .9rem; color: var(--ink-500); }
.breadcrumb li + li::before { content: "›"; content: "›" / ""; margin-right: 4px; color: var(--ink-500); }
.breadcrumb a { color: var(--ink-700); }

/* Main */
.main { padding-bottom: 40px; }
.page-head .meta, .meta { color: var(--ink-500); font-size: .9rem; margin-top: 0; }
.lead { font-size: 1.07rem; background: var(--bg-soft); border-left: 4px solid var(--red-600); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.lead p:first-child { margin-top: 0; } .lead p:last-child { margin-bottom: 0; }
.body { max-width: 820px; }
.body img { border-radius: var(--radius); }
.hero { padding: 16px 0 8px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--ink-700); background: #fff; color: var(--ink-900); text-decoration: none; font: 500 1rem var(--font); cursor: pointer; }
.btn-primary { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.btn-primary:hover { background: #8f001e; border-color: #8f001e; color: #fff; }
.card-grid, .link-grid { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.card h3 { margin: 0 0 6px; } .card h3 a { color: var(--ink-900); text-decoration: none; } .card h3 a:hover { color: var(--red-700); text-decoration: underline; }
.card p { margin: 0; color: var(--ink-700); }
.link-grid a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-900); }
.post-list { list-style: none; padding: 0; } .post-list li { border-bottom: 1px solid var(--line); padding: 8px 0; } .post-list h2 { font-size: 1.1rem; margin: .3em 0; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; } .pager a, .pager span { display: inline-block; min-width: 40px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.pager span[aria-current] { background: var(--ink-900); color: #fff; }

/* Price tables: real tables, horizontal scroll only inside the table region on phones. */
.table-scroll { overflow-x: auto; margin: 16px 0 6px; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 700; padding: 12px 14px 8px; color: var(--ink-900); }
.price-table .cap-meta { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-500); }
.price-table th, .price-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { background: var(--ink-900); color: #fff; font-weight: 500; border-top: 0; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table tbody th { font-weight: 600; }
.price-table .sku { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-500); }
.table-note { font-size: .9rem; color: var(--ink-700); }
.price-pending { border: 1px dashed #b9bdc3; border-radius: var(--radius); padding: 12px 16px; background: #fff; margin: 16px 0; }
.price-pending h3 { margin-top: 0; }
.price-note { border-left: 4px solid var(--red-600); background: #f6f7f8; padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* CTA / form */
.cta-box { margin: 32px 0; padding: 18px; border-radius: var(--radius); background: var(--red-050); border: 1px solid #f7c4cf; }
.cta-box h2 { margin-top: 0; }
.lead-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.lead-form .wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 9px 10px; border: 1px solid #80868f; border-radius: 6px; font: inherit; background: #fff; }
.field input:user-invalid { border-color: var(--red-700); }
.hp { position: absolute; left: -5000px; }
.alert { border: 1px solid var(--red-700); background: var(--red-050); padding: 10px 14px; border-radius: var(--radius); }

/* Related */
.related { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); margin-top: 24px; }
.related h2 { font-size: 1.1rem; }
.related ul { padding-left: 18px; }
/* WCAG 2.5.8: list links get a >=24px tap target without changing the text size */
.related li a, .footer-cols li a, .breadcrumb li a, .content ul li > a:only-child { display: inline-block; min-height: 24px; padding: 2px 0; }

/* Footer */
.site-footer { background: #17191c; color: #d7d9dc; padding: 28px 0 16px; margin-top: 32px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 8px; }
.footer-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; } .footer-cols li { margin: 4px 0; }
.site-footer .muted { color: #a9adb3; }
.legal { font-size: .85rem; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .cta-box, .related { display: none; } .table-scroll { overflow: visible; border: 0; } }

/* Sales photos and plain data tables (old wards, apartment buildings, comparison tables in articles). */
.photo { margin: 18px 0; }
.photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(70vh, 640px); object-fit: contain; margin: 0 auto; border-radius: var(--radius); background: var(--bg-soft); }
.photo figcaption { font-size: .88rem; color: var(--ink-500); margin-top: 6px; text-align: center; }
.data-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.data-table caption { text-align: left; font-weight: 700; padding: 12px 14px 8px; color: var(--ink-900); }
.data-table th, .data-table td { padding: 8px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--bg-soft); font-weight: 600; border-top: 0; }
.data-table tbody th { font-weight: 600; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
@media (max-width: 600px) { .data-table { min-width: 460px; font-size: .9rem; } }
/* Contact points from config: footer (compact) and the {{lien-he}} body token */
.contact-box ul{list-style:none;margin:0 0 1rem;padding:0}
.contact-box li{margin:.25rem 0}
.contact-box a{font-weight:600}
.contact-box.compact{font-size:.95em}
