/* Nhịp Cầu Doanh Nghiệp — giao diện v2
   Layout: masthead trắng + menu dính, lưới tin chính (tin lớn / tin phụ / mới cập nhật),
   khối chuyên mục bên cạnh cột "Đọc nhiều"; trang bài viết chữ serif dễ đọc. */
:root {
  --brand: #e81d24;          /* đỏ lấy từ logo */
  --brand-ink: #c4141b;      /* đỏ cho chữ trên nền sáng */
  --bg: #ffffff;
  --surface: #f5f5f3;
  --ink: #17191c;
  --ink-2: #4a4e55;
  --ink-3: #6b6f76;          /* ≥ 4.5:1 trên nền trắng cho chữ nhỏ */
  --rule: #e4e3df;
  --rule-strong: #17191c;

  --f-head: "Literata", "Noto Serif", Georgia, serif;
  --f-ui: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
/* tít chạy kín dòng như bình thường; pretty chỉ kéo bớt chữ xuống khi dòng cuối quá ngắn (balance chia đều làm dòng nào cũng hụt ~1/3) */
h1, h2, h3, h4 { margin: 0; text-wrap: pretty; }
p { margin: 0; }
/* thuộc tính hidden luôn thắng: nhiều khối có display: flex/grid riêng sẽ ghi đè [hidden] mặc định của trình duyệt */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* link "Bỏ qua tới nội dung": ẩn cho tới khi được focus bằng bàn phím */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 600; }
.skip-link:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(8px + env(safe-area-inset-top, 0px)); }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; width: 100%; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- masthead ---------- */
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.logo { display: block; flex: none; }
.logo img { width: 260px; max-width: 62vw; height: auto; }
.logo h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.masthead .ad-slot { max-width: 728px; flex-shrink: 1; min-width: 0; }

/* ---------- ads (partials trong fe/ads) ---------- */
.ad-slot .banner { display: grid; gap: 4px; justify-items: center; }
.ad-slot .banner-block img { width: auto; max-width: 100%; height: auto; }
.ad-slot .banner-info { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ad-slot .banner-info .icon-default { display: none; }
.ad-slot--wide { display: grid; justify-items: center; }

/* ---------- menu ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 12px 12px 11px; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--brand-ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.nav .home { color: var(--brand); display: grid; place-items: center; padding-inline: 4px 10px; }
.nav .home svg { width: 18px; height: 18px; }
.menu-btn { display: none; flex: none; position: sticky; left: 0; z-index: 1; width: 44px; height: 44px; place-items: center; margin-left: -6px; background: var(--bg); border: 0; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* menu trượt trên mobile */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); overflow-y: auto; background: var(--bg); display: grid; align-content: start; gap: 22px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-head img { width: 180px; height: auto; }
.drawer-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-cats { display: grid; border-top: 1px solid var(--rule); }
.drawer-cats a { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 600; }
.drawer-cats a::after { content: "›"; color: var(--ink-3); }
.drawer-cats a[aria-current="page"] { color: var(--brand-ink); }
.drawer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.drawer-contact { padding: 14px; background: var(--surface); font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
body.menu-open { overflow: hidden; }

/* ---------- dải tin nhanh ---------- */
.ticker { border-bottom: 1px solid var(--rule); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; padding-block: 9px; }
.ticker .label { flex: none; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; }
.ticker .track { overflow: hidden; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ticker .run { display: flex; gap: 40px; width: max-content; animation: run 60s linear infinite; }
.ticker:hover .run, .ticker:focus-within .run, .ticker.paused .run { animation-play-state: paused; }
/* nút dừng / chạy tiếp dải chữ (người dùng cảm ứng không có hover) */
.ticker-toggle { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: var(--bg); color: var(--ink-2); cursor: pointer; padding: 0; }
.ticker-toggle:hover { color: var(--ink); border-color: var(--ink); }
.ticker-toggle svg { width: 12px; height: 12px; }
/* thuộc tính hidden không áp dụng cho SVG => đổi biểu tượng theo trạng thái nút */
.ticker-toggle .i-play, .ticker-toggle[aria-pressed="true"] .i-pause { display: none; }
.ticker-toggle[aria-pressed="true"] .i-play { display: block; }
.ticker .run a { font-size: 14px; font-weight: 500; white-space: nowrap; }
.ticker .run a:hover { color: var(--brand-ink); }
.ticker .run a::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--brand); margin-right: 10px; vertical-align: 2px; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- thành phần bài viết dùng chung ---------- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.meta span + span::before { content: "·"; margin-right: 6px; }
.media { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover .media img { transform: scale(1.03); }
.story:hover .h { color: var(--brand-ink); }
.h { font-family: var(--f-head); font-weight: 600; line-height: 1.25; transition: color .15s; }
.sapo { color: var(--ink-2); }
.story { display: grid; gap: 10px; align-content: start; min-width: 0; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 12px; margin-bottom: 18px; }
.section-head h2, .section-head h1 { font-family: var(--f-ui); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-head h2::before, .section-head h1::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--brand); margin-right: 9px; vertical-align: 1px; }
.section-head a { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.section-head a:hover { color: var(--brand-ink); }

main { padding-block: 28px 56px; display: grid; gap: 44px; }
main > * { min-width: 0; }

/* ---------- trang chủ: tin chính ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
/* thang tít: 28 (tin chính, tít trang) / 24 (bài lớn chuyên mục) / 20 (bài lớn khối) / 18 (tin phụ) */
.lead .main .h { font-size: clamp(24px, 1.95vw, 28px); line-height: 1.35; }
.lead .main .sapo { font-size: 16.5px; line-height: 1.6; }
.lead .main .media { aspect-ratio: 16 / 9.5; }
.lead .second { display: grid; gap: 24px; align-content: start; border-left: 1px solid var(--rule); padding-left: 28px; }
.lead .second .h { font-size: 18px; }
.lead .second .sapo { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lead .second .story + .story { border-top: 1px solid var(--rule); padding-top: 22px; }
.latest { border-left: 1px solid var(--rule); padding-left: 28px; min-width: 0; }
.latest h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.latest h2 i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(232, 29, 36, .22); }
.latest ol { list-style: none; margin: 0; padding: 0; }
.latest li { border-bottom: 1px solid var(--rule); }
.latest li a { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding-block: 12px; align-items: start; }
.latest .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); max-width: 100%; }
.latest .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.latest a:hover .thumb img { transform: scale(1.05); }
.latest .txt { display: grid; gap: 3px; min-width: 0; }
.latest time { font-size: 12px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.latest .t { font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.latest a:hover .t { color: var(--brand-ink); }

.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.row4 .h { font-size: 17px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.block .top .h { font-size: 20px; }
.block .top .sapo { font-size: 14.5px; }
.block ul, .list { list-style: none; margin: 16px 0 0; padding: 0; }
.block li a, .list li a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--rule); align-items: start; }
.block li .media, .list li .media { aspect-ratio: 4 / 3; }
.block li .h, .list li .h { font-size: 15.5px; }
.block li .txt, .list li .txt { display: grid; gap: 6px; min-width: 0; }

/* ---------- cột phải ---------- */
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); display: grid; gap: 28px; }
.mostread ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.mostread li a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding-block: 13px; border-bottom: 1px solid var(--rule); counter-increment: rank; }
.mostread li a::before { content: counter(rank); font-family: var(--f-head); font-size: 28px; font-weight: 700; line-height: 1; color: var(--brand); }
.mostread .h { font-size: 15.5px; }
.mostread .meta { margin-top: 5px; }

/* ---------- trang chuyên mục / từ khoá ---------- */
.page-title { display: grid; gap: 6px; }
/* tiêu đề nằm ngay dưới dải Tin nhanh (đã có gạch dưới) nên bỏ gạch trên, tránh 3 gạch ngang chồng nhau */
.page-title .section-head { border-top: 0; padding-top: 0; }
/* tiêu đề trang chuyên mục / từ khoá: cùng kiểu nhãn khối (chữ không chân, in hoa, ô vuông đỏ) nhưng lớn hơn;
   không dùng chữ có chân 40px in hoa vì lấn át tít bài bên dưới */
.page-title h1 { font-family: var(--f-ui); font-size: clamp(20px, 1.7vw, 24px); font-weight: 800; letter-spacing: .04em; line-height: 1.25; }
.page-title h1::before { width: 12px; height: 12px; margin-right: 10px; vertical-align: 2px; }
.page-title p { color: var(--ink-3); font-size: 14px; }
/* ảnh : chữ = 1.3 : 1 để cột chữ đủ rộng (~340px), tít dài vừa 2 dòng */
.cat-lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.cat-lead .h { font-size: clamp(22px, 1.7vw, 24px); font-weight: 700; line-height: 1.35; }
.cat-lead .sapo { font-size: 15.5px; }
/* khoảng cách chỉ khi có bài lớn đầu trang (trang 1); từ trang 2 lưới bài nằm ngay dưới tiêu đề */
.cat-lead + .grid3 { margin-top: 28px; }
/* tiêu đề trang chuyên mục / từ khoá sát nội dung hơn (khoảng cách mặc định giữa các khối trong main quá rộng ở đây) */
.page-title + .cols { margin-top: -20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.grid3 .h { font-size: 17px; }
.grid3 .sapo { font-size: 14px; }
.empty { padding: 40px 0; color: var(--ink-3); }

/* phân trang */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--rule); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pager .disabled { color: var(--ink-3); opacity: .5; }

/* ---------- trang bài viết ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand-ink); }
.crumb .kicker { font-size: 13px; }
/* tít bài: 28px desktop, 24px mobile (gọn, vẫn lớn hơn rõ rệt so với sapo 18px) */
/* tít trang bài: giãn dòng 1.4 để dấu tiếng Việt (ầ, ỡ, ạ...) của hai dòng không sát nhau */
.article h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(24px, 1.95vw, 28px); line-height: 1.4; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-block: 1px solid var(--rule); padding-block: 12px; margin-block: 20px; }
.byline .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.byline .name { font-weight: 600; font-size: 14px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share .fb { background: #166fe5; border-color: #166fe5; color: #fff; }   /* 4.7:1 với chữ trắng (#1877f2 chỉ 4.2:1) */
.share [data-native-share] { display: none; }
.lede { font-size: 18px; line-height: 1.6; font-weight: 600; margin-bottom: 22px; }
.article figure { margin: 0 0 26px; }
/* ảnh đại diện có width/height thật (FeView::imgSize) nên trình duyệt giữ đúng tỷ lệ trước khi tải xong */
.article figure img { width: 100%; height: auto; background: var(--surface); }
.article figcaption { font-size: 13px; color: var(--ink-3); padding-top: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }

/* nội dung bài từ CMS: bỏ cỡ chữ / font cài sẵn trong HTML để chữ đồng nhất */
.prose { max-width: 680px; font-family: var(--f-head); font-size: 18.5px; line-height: 1.75; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose > :last-child { margin-bottom: 0; }
.prose [style*="font-size"], .prose [style*="font-family"] { font-size: inherit !important; font-family: inherit !important; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-ui); font-size: 20px; font-weight: 700; line-height: 1.35; margin-top: 32px; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto !important; margin-inline: auto; }
.prose figure, .prose .image { margin: 24px 0; }
.prose figcaption, .prose em { font-size: .9em; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-family: var(--f-ui); font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 6px 10px; }
.prose iframe, .prose video { max-width: 100%; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.source { max-width: 680px; margin-top: 24px; text-align: right; font-weight: 600; font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags a { font-size: 13px; padding: 5px 12px; background: var(--surface); border-radius: 999px; color: var(--ink-2); }
.tags a:hover { color: var(--brand-ink); }
.related { margin-top: 44px; }
.related .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related .h { font-size: 16.5px; }
.textlist { list-style: none; margin: 0; padding: 0; display: grid; }
.textlist a { display: block; padding-block: 10px; border-bottom: 1px solid var(--rule); font-weight: 600; }
.textlist a:hover { color: var(--brand-ink); }

/* bình luận */
.comments { margin-top: 44px; }
.comment-list, .comment-list ul { list-style: none; margin: 0; padding: 0; }
.comment-list ul { margin-left: 28px; border-left: 2px solid var(--rule); padding-left: 16px; }
.comment { padding-block: 14px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.comment .who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comment .who b { font-size: 14.5px; }
.comment .text { font-size: 15.5px; overflow-wrap: anywhere; }
.comment .reply { justify-self: start; font: inherit; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: none; border: 0; padding: 0; cursor: pointer; }
.comment-form { margin-top: 28px; display: grid; gap: 14px; max-width: 680px; scroll-margin-top: 140px; }
.notice { margin-top: 24px; max-width: 680px; padding: 12px 16px; background: #edf7ee; border-left: 3px solid #2e7d32; color: #1b4d1f; font-size: 14.5px; font-weight: 500; }
.notice + .comment-form { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comment-form .note { font-size: 13.5px; color: var(--ink-3); }
.comment-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); padding: 10px 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.field .error { font-size: 13px; color: var(--brand-ink); }
.replying { font-size: 13.5px; color: var(--ink-2); background: var(--surface); padding: 8px 12px; display: flex; justify-content: space-between; gap: 12px; }
.replying button { font: inherit; font-weight: 600; color: var(--brand-ink); background: none; border: 0; cursor: pointer; padding: 0; }
.btn { justify-self: start; font: inherit; font-size: 14.5px; font-weight: 700; color: #fff; background: var(--brand); border: 0; padding: 11px 22px; cursor: pointer; }
.btn:hover { background: var(--brand-ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* trang tĩnh (liên hệ, 404) */
.static { max-width: 760px; display: grid; gap: 18px; }
.static h1 { font-family: var(--f-head); font-size: clamp(24px, 1.95vw, 28px); font-weight: 700; line-height: 1.2; }
.static p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.static a { color: var(--brand-ink); font-weight: 600; }
.static .big { font-family: var(--f-head); font-size: 96px; font-weight: 700; line-height: 1; color: var(--brand); }

/* ---------- footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
footer .cols-f { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 40px; padding-block: 40px 32px; }
footer .about { display: grid; gap: 14px; align-content: start; }
footer .about img { width: 210px; height: auto; mix-blend-mode: multiply; }
footer .about p { max-width: 44ch; }
footer h3 { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer .catlist { grid-template-columns: 1fr 1fr; column-gap: 16px; }
footer a:hover { color: var(--brand-ink); }
footer .contact li { overflow-wrap: break-word; }
footer .contact .more { font-weight: 600; color: var(--brand-ink); }
footer .bottom { border-top: 1px solid var(--rule); }
footer .bottom .wrap { padding-block: 16px; font-size: 12.5px; color: var(--ink-3); }
footer .bottom b { color: var(--ink-2); font-weight: 600; }

.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: .85; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 50; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lead { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; }
  .latest ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .cols, .article { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .masthead .ad-slot { display: none; }
  .masthead .wrap { padding-block: 14px; justify-content: center; }
  .logo img { width: 220px; }
  .menu-btn { display: grid; }
  .nav .home { display: none; }
  .nav::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--bg)); pointer-events: none; }
  main { padding-block: 18px 40px; gap: 32px; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lead .main { padding-bottom: 18px; }
  .lead .main .h { font-size: 24px; }
  .lead .main .sapo { font-size: 15.5px; }
  .lead .main .media, .cat-lead .media { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); max-width: none; width: calc(100% + 2 * max(16px, env(safe-area-inset-left, 0px))); }
  .lead .second { border-left: 0; padding-left: 0; gap: 0; }
  /* thẻ dạng danh sách trên điện thoại: chữ trái, ảnh phải */
  .lead .second .story, .row4 .story, .grid3 .story, .related .story { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; border-top: 1px solid var(--rule); padding-block: 14px; }
  .lead .second .story + .story { padding-top: 14px; }
  .lead .second .story .media, .row4 .story .media, .grid3 .story .media, .related .story .media { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 4 / 3; }
  .lead .second .story .sapo, .row4 .story .sapo, .grid3 .story .sapo { display: none; }
  .lead .second .h, .row4 .h, .grid3 .h { font-size: 16.5px; }
  .latest ol { grid-template-columns: minmax(0, 1fr); }
  .row4, .grid3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blocks { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .cat-lead { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 18px; border-bottom: 0; margin-bottom: 0; }
  /* trên mobile mỗi bài đã có đường kẻ phía trên => bỏ khoảng cách và đường kẻ thừa */
  .cat-lead + .grid3 { margin-top: 0; }
  .related .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prose { font-size: 17.5px; }
  .lede { font-size: 17px; }
  .article figure { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .article figcaption { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .comment-form .row2 { grid-template-columns: minmax(0, 1fr); }
  /* vùng bấm tối thiểu 44px trên điện thoại */
  .share a, .share button, .tags a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 16px; }
  .comment .reply { min-height: 44px; padding: 0 12px 0 0; }
  .field input { min-height: 44px; }
  .btn { min-height: 48px; }
  .ticker-toggle { width: 44px; height: 44px; }
  .comment-list ul { margin-left: 12px; }
  footer .cols-f { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 24px; }
}
/* ---------- thang chữ desktop, theo tỉ lệ VnExpress (đo 10/2026) ----------
   VnExpress: tít bài 32 / sapo 18 thường / thân bài 18 / tiêu đề phụ 18 đậm / breadcrumb + ngày 14;
   trang chủ: tin chính 20, các tít khác 15, sapo 14.
   Ở đây tít bài giữ 28px, tin chính trang chủ 24px vì ảnh tin chính lớn hơn.
   Chỉ áp dụng cho màn hình >= 761px; mobile giữ nguyên. */
@media (min-width: 761px) {
  /* trang bài */
  .lede { font-size: 18px; font-weight: 400; }
  .prose { font-size: 18px; line-height: 1.7; }
  .prose h2, .prose h3, .prose h4 { font-size: 18px; }
  .crumb, .crumb .kicker { font-size: 14px; }
  .byline .meta { font-size: 14px; }
  /* trang chủ */
  .lead .main .h { font-size: 24px; }
  .lead .main .sapo { font-size: 15px; }
  .lead .second .h { font-size: 17px; }
  .latest .t { font-size: 15px; }
  .block .top .h { font-size: 18px; }
  .block li .h, .list li .h { font-size: 15px; }
  /* trang chuyên mục / từ khoá */
  .cat-lead .h { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker .run, .drawer-panel { animation: none; }
  .media img, .latest .thumb img { transition: none; }
  .story:hover .media img { transform: none; }
}
