/*
 * YHDP – giao diện portal thông tin y học dự phòng.
 * Chữ: Arial (có sẵn trên mọi máy, đủ dấu tiếng Việt) cho cả tiêu đề và nội dung.
 * Màu theo bộ nhận diện AnTiem-YHDP v1.
 */
:root {
  --xanh: #3DB896;
  --xanh-dam: #17785E;
  --xanh-ngoc: #0B7A62;
  --xanh-nhat: #E3F4EE;
  --than: #14302A;
  --chu: #1D2B27;
  --chu-phu: #55655F;
  --vien: #DDE5E1;
  --vien-dam: #C6D3CD;
  --nen: #FFFFFF;
  --nen-phu: #F5F8F6;
  --do: #C62828;
  --do-nhat: #FDECEA;
  --vang: #B26A00;
  --vang-nhat: #FEF4DE;
  --serif: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --rong: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--chu); background: var(--nen); }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--xanh-dam); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--than); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
:focus-visible { outline: 3px solid #F5B83D; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--than); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--rong); margin: 0 auto; padding: 0 16px; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; flex: none; }
.muted { color: var(--chu-phu); }
.small { font-size: .875rem; }

/* ================= Đầu trang ================= */
.topbar { background: var(--than); color: #CFE3DC; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #E7F2EE; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-links { display: flex; gap: 16px; flex-wrap: wrap; }
.hotline { color: #FFB4AB; font-weight: 600; }
.hotline a { color: #FFD7D2; }

.masthead { border-bottom: 1px solid var(--vien); background: #fff; }
.masthead .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 48px; width: auto; }
.brand-tag { font-size: .8125rem; color: var(--chu-phu); line-height: 1.35; border-left: 1px solid var(--vien); padding-left: 14px; max-width: 210px; }
.masthead-search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--vien-dam); border-radius: 4px; overflow: hidden; width: min(380px, 100%); background: #fff; }
.masthead-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: .9375rem; outline: 0; }
.masthead-search button { border: 0; background: var(--xanh-dam); color: #fff; padding: 0 16px; align-self: stretch; cursor: pointer; display: grid; place-items: center; }
.masthead-search button:hover { background: var(--xanh-ngoc); }
.masthead-search:focus-within { border-color: var(--xanh-dam); }

.mainnav { background: var(--xanh-dam); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgb(0 0 0 / 10%); }
.mainnav .wrap { display: flex; align-items: stretch; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 13px; color: #fff; font-weight: 600; font-size: .9375rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-list a:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.nav-list a[aria-current="page"] { border-bottom-color: #F5B83D; background: rgb(0 0 0 / 10%); }
.nav-list .nav-home { padding: 0 14px; }
.nav-list .nav-alert { color: #FFE1DC; }
.nav-search-m { display: none; color: #fff; align-items: center; padding: 0 12px; }

.ticker { background: var(--nen-phu); border-bottom: 1px solid var(--vien); font-size: .875rem; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker-label { background: var(--do); color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .06em; padding: 3px 8px; border-radius: 2px; flex: none; }
.ticker a { white-space: nowrap; color: var(--chu); }
.ticker a:hover { color: var(--do); }
.ticker a + a::before { content: "•"; color: var(--vien-dam); margin-right: 12px; }

@media (max-width: 760px) {
  .brand-tag { display: none; }
  .masthead .wrap { min-height: 64px; }
  .brand img { height: 38px; }
  .masthead-search { display: none; }
  .nav-search-m { display: flex; }
  .topbar-links .hide-m { display: none; }
}

/* ================= Breadcrumb, tiêu đề trang ================= */
.crumbs { font-size: .8125rem; color: var(--chu-phu); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--vien-dam); }
.crumbs a:hover { text-decoration: underline; }
.page { padding-top: 18px; padding-bottom: 56px; }
.page-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin: 6px 0 10px; }
.page-lead { font-size: 1.125rem; color: var(--chu-phu); max-width: 820px; line-height: 1.6; }
.kicker { display: inline-block; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--xanh-dam); }
.kicker:hover { text-decoration: underline; }

/* ================= Bố cục cột ================= */
.cols { display: grid; gap: 32px; }
@media (min-width: 980px) {
  .cols { grid-template-columns: minmax(0, 1fr) 320px; }
  .cols-wide { grid-template-columns: minmax(0, 1fr) 360px; }
  .sidebar { position: sticky; top: 64px; align-self: start; }
}

/* Tiêu đề khối theo kiểu báo: chữ đậm + gạch màu */
.block { margin-top: 36px; }
.block-head { display: flex; align-items: baseline; gap: 16px; border-top: 3px solid var(--xanh-dam); padding-top: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { font-size: 1.375rem; margin: 0; text-transform: none; }
.block-head h2 a:hover { color: var(--xanh-dam); }
.block-head .more { margin-left: auto; font-size: .875rem; font-weight: 600; color: var(--xanh-dam); font-family: var(--sans); }
.block-head .more:hover { text-decoration: underline; }
.block-tabs { display: flex; gap: 14px; flex-wrap: wrap; font-size: .875rem; }
.block-tabs a { color: var(--chu-phu); }
.block-tabs a:hover { color: var(--xanh-dam); }

/* ================= Ảnh bìa đồ họa (bài viết chưa có ảnh) ================= */
.cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c1, #17785E); color: #fff; border-radius: 2px; }
.cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgb(255 255 255 / 22%), transparent 45%), linear-gradient(135deg, var(--c1, #17785E), var(--c2, #0B7A62)); }
.cover-icon { position: absolute; right: 8%; bottom: 10%; width: 34%; height: auto; opacity: .9; stroke: #fff; fill: none; }
.cover-label { position: absolute; left: 6%; top: 8%; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgb(0 0 0 / 22%); padding: 3px 8px; border-radius: 2px; }
.cover-sm .cover-label { display: none; }
.cover-sm .cover-icon { width: 46%; right: 27%; bottom: 18%; }
.cv-an-toan-tiem-chung { --c1: #17785E; --c2: #0B5E4B; }
.cv-cam-nang-tiem-chung { --c1: #2F6FA3; --c2: #1D4E78; }
.cv-hpv { --c1: #9C4F8A; --c2: #6E2F61; }
.cv-nao-mo-cau { --c1: #3D5A99; --c2: #283E70; }
.cv-sot-xuat-huyet { --c1: #C8553D; --c2: #96361F; }
.cv-tiem-chung-tron-doi { --c1: #2FA383; --c2: #17785E; }
.cv-vac-xin-moi { --c1: #B7822A; --c2: #8A5E14; }

/* ================= Bài viết dạng tin ================= */
.story h3, .story h2 { font-family: var(--serif); }
.story-title a:hover { color: var(--xanh-dam); }
.story-meta { font-size: .8125rem; color: var(--chu-phu); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.story-meta .kicker { font-size: .72rem; }
.story-sapo { color: var(--chu-phu); font-size: .9375rem; margin: 6px 0 0; }

.lead-story .cover { aspect-ratio: 16 / 8.5; }
.lead-story .story-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); margin: 4px 0 10px; line-height: 1.22; }
.lead-story { padding-bottom: 6px; }
.lead-story .story-sapo { font-size: 1.0625rem; }

.story-row { padding: 14px 0; border-top: 1px solid var(--vien); }
.story-row.has-img { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
.story-row:first-child { border-top: 0; padding-top: 0; }
.story-row .story-title { font-size: 1.0625rem; margin: 2px 0 4px; line-height: 1.35; }
@media (max-width: 560px) { .story-row.has-img { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; } }

.story-grid { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.story-card { padding: 14px 0; border-top: 1px solid var(--vien); }
.story-card .story-title { font-size: 1.0625rem; margin: 2px 0 6px; line-height: 1.35; }
.story-card .story-sapo { font-size: .875rem; }

.home-top { display: grid; gap: 28px; padding-top: 22px; }
@media (min-width: 980px) { .home-top { grid-template-columns: minmax(0, 1fr) 340px; } }
.home-lead { display: grid; gap: 24px; }
@media (min-width: 760px) { .home-lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.side-stories .story-row .story-title { font-size: 1.0625rem; }
.side-stories .story-sapo { font-size: .875rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cover-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: var(--nen-phu); }
.story-card .cover-img, .lead-story .cover-img { margin-bottom: 10px; }

.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { padding: 11px 0; border-top: 1px solid var(--vien); }
.title-list li:first-child { border-top: 0; padding-top: 0; }
.title-list a { font-family: var(--serif); font-weight: 700; color: var(--than); line-height: 1.4; }
.title-list a:hover { color: var(--xanh-dam); }
.title-list .desc { display: block; font-size: .875rem; color: var(--chu-phu); margin-top: 3px; line-height: 1.5; }
.numbered { counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; }
.numbered li::before { content: counter(n); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--vien-dam); line-height: 1.1; }

/* ================= Hộp cột phải ================= */
.box { border: 1px solid var(--vien); background: #fff; margin-bottom: 20px; }
.box-head { background: var(--nen-phu); border-bottom: 1px solid var(--vien); padding: 10px 16px; font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; color: var(--than); display: flex; gap: 8px; align-items: center; }
.box-head .icon { color: var(--xanh-dam); }
.box-body { padding: 14px 16px; }
.box-body > :last-child { margin-bottom: 0; }
.box-alert { border-color: #EFC2BC; }
.box-alert .box-head { background: var(--do-nhat); color: var(--do); border-bottom-color: #EFC2BC; }
.box-alert .box-head .icon { color: var(--do); }
.tool-links { list-style: none; margin: 0; padding: 0; }
.tool-links li + li { border-top: 1px solid var(--vien); }
.tool-links a { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.tool-links a:hover strong { color: var(--xanh-dam); }
.tool-links .icon { width: 36px; height: 36px; padding: 7px; background: var(--xanh-nhat); color: var(--xanh-dam); border-radius: 4px; box-sizing: border-box; }
.tool-links strong { display: block; font-weight: 600; color: var(--than); }
.tool-links span span { display: block; font-size: .8125rem; color: var(--chu-phu); }
.mini-form { display: grid; gap: 8px; }
.mini-form label { font-size: .875rem; font-weight: 600; }
.toc { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.toc li { border-left: 2px solid var(--vien); }
.toc a { display: block; padding: 6px 12px; color: var(--chu-phu); }
.toc a:hover { color: var(--xanh-dam); border-left: 2px solid var(--xanh-dam); margin-left: -2px; }

/* ================= Nút, biểu mẫu ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border: 1px solid var(--xanh-dam); border-radius: 4px; background: var(--xanh-dam); color: #fff; font: inherit; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.btn:hover { background: var(--xanh-ngoc); border-color: var(--xanh-ngoc); color: #fff; }
.btn-ghost { background: #fff; color: var(--xanh-dam); }
.btn-ghost:hover { background: var(--xanh-nhat); color: var(--xanh-dam); }
.btn-block { width: 100%; }
.btn-sm { min-height: 30px; padding: 2px 10px; font-size: .8125rem; }
.meta-action { margin-left: auto; }
.box-note { margin-top: 8px; }
input[type="date"], input[type="search"], input[type="text"], select { font: inherit; min-height: 42px; padding: 8px 12px; border: 1px solid var(--vien-dam); border-radius: 4px; background: #fff; color: var(--chu); max-width: 100%; }
input:focus, select:focus { outline: 2px solid var(--xanh); outline-offset: 0; border-color: var(--xanh-dam); }
.tool-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: var(--nen-phu); border: 1px solid var(--vien); padding: 18px; margin: 16px 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1; }
.field-wide { flex: 2; min-width: 260px; }
.field label, .filters label { font-weight: 600; font-size: .875rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 18px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--vien-dam); border-radius: 4px; padding: 4px 4px 4px 12px; max-width: 640px; margin: 14px 0; background: #fff; }
.search-box:focus-within { border-color: var(--xanh-dam); }
.search-box > .icon { color: var(--chu-phu); }
.search-box input { flex: 1; min-width: 0; border: 0; min-height: 38px; padding: 6px 4px; outline: 0; }
.search-box input:focus { outline: 0; }

/* ================= Nhãn, thông báo ================= */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--vien-dam); border-radius: 2px; color: var(--chu-phu); font-size: .75rem; font-weight: 600; line-height: 1.7; background: #fff; }
.tag-ok { border-color: #A9D9C6; background: var(--xanh-nhat); color: var(--xanh-dam); }
.tag-warn { border-color: #EFC2BC; background: var(--do-nhat); color: var(--do); }
.tag-note { border-color: #F0D59B; background: var(--vang-nhat); color: var(--vang); }
.alert { padding: 12px 16px; background: var(--vang-nhat); border-left: 4px solid #E0A42C; margin: 12px 0; }
.note { padding: 14px 16px; background: var(--nen-phu); border-left: 4px solid var(--xanh); margin: 16px 0; font-size: .9375rem; }
.note p:last-child { margin-bottom: 0; }
.provenance { font-size: .8125rem; color: var(--chu-phu); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--vien-dam); border-radius: 2px; font-size: .875rem; font-weight: 500; background: #fff; }
.chip:hover, .chip-active { border-color: var(--xanh-dam); color: var(--xanh-dam); background: var(--xanh-nhat); }

/* ================= Nội dung bài (article body) ================= */
.article-head { max-width: 860px; }
.article-head h1 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); line-height: 1.22; margin: 8px 0 14px; }
.article-sapo { font-size: 1.1875rem; font-weight: 600; color: var(--than); line-height: 1.55; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--chu-phu); padding: 10px 0; border-top: 1px solid var(--vien); border-bottom: 1px solid var(--vien); margin-bottom: 22px; }
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 .55em; scroll-margin-top: 70px; }
.prose h3 { font-size: 1.15rem; margin: 1.3em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .source { font-size: .8125rem; line-height: 1.5; color: var(--chu-phu); border-left: 2px solid var(--vien-dam); padding-left: 10px; margin-top: -.3em; }
.link-list { list-style: none; padding: 0; margin: 0 0 12px; }
.link-list li { padding: 9px 0; border-bottom: 1px solid var(--vien); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 600; color: var(--xanh-dam); }
.link-list a:hover { text-decoration: underline; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .9375rem; }
.facts dt { color: var(--chu-phu); }
.facts dd { margin: 0; }

/* ================= Danh mục (bệnh, vắc xin) ================= */
.dir { display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dir-item { padding: 14px 0; border-top: 1px solid var(--vien); }
.dir-item h3 { font-size: 1.0625rem; margin: 0 0 3px; }
.dir-item h3 a:hover { color: var(--xanh-dam); }
.dir-item p { font-size: .875rem; color: var(--chu-phu); margin: 0; line-height: 1.5; }
.dir-item .tags { margin: 6px 0 0; }

/* ================= Phác đồ, lịch tiêm ================= */
.regimen { border: 1px solid var(--vien); padding: 16px 18px; margin: 16px 0; background: #fff; }
.regimen h3, .regimen h4 { margin-top: 0; font-size: 1.0625rem; }
.regimen-group { margin: 28px 0 0; }
.regimen-group > h3 { font-size: 1.125rem; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--xanh-dam); }
.regimen-group > p { margin: 0 0 8px; }
details.regimen { padding: 0; margin: 8px 0; }
details.regimen > summary { cursor: pointer; padding: 12px 18px; font-weight: 700; }
details.regimen > summary a { color: var(--xanh-dam); }
details.regimen[open] > summary { border-bottom: 1px solid var(--vien); }
details.regimen > :not(summary) { margin-left: 18px; margin-right: 18px; }
details.regimen > .provenance { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--vien); vertical-align: top; }
thead th { background: var(--nen-phu); color: var(--than); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; border-bottom: 2px solid var(--vien-dam); }
tbody th { font-weight: 600; }
@media (max-width: 600px) { thead th { white-space: normal; } th, td { padding: 8px; } tbody th { min-width: 96px; } }
.status { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status-ok { background: var(--xanh-nhat); color: var(--xanh-dam); }
.status-warn { background: var(--do-nhat); color: var(--do); }
.status-due { background: var(--vang-nhat); color: var(--vang); }
.status-note, .status-muted { background: var(--nen-phu); color: var(--chu-phu); }
.warnings { padding-left: 1.2em; color: var(--vang); }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.result-head h2, .result-head h3 { margin: 0; }

/* ================= Chuyên đề khẩn cấp ================= */
.topic-band { background: var(--than); color: #DCEBE5; padding: 26px 0 30px; }
.topic-band .kicker { color: #8FDCC4; }
.topic-band h1 { color: #fff; font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); margin: 6px 0 10px; }
.topic-band p { font-size: 1.125rem; max-width: 820px; margin: 0; color: #DCEBE5; }
.topic-band .crumbs { color: #A9C4BC; padding-top: 0; margin-bottom: 14px; }
.topic-band .crumbs li + li::before { color: #5B7A71; }
.first-aid { background: var(--do-nhat); border: 1px solid #EFC2BC; border-top: 4px solid var(--do); padding: 18px 22px; margin-top: 24px; }
.first-aid h2 { color: var(--do); display: flex; gap: 10px; align-items: center; font-size: 1.3rem; margin-top: 0; }
.steps { padding-left: 1.4em; margin: 0; }
.steps li { margin-bottom: 10px; }
.warning-signs { padding-left: 1.2em; margin: 0 0 12px; }
.warning-signs li { margin-bottom: 6px; }
.grades { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grade { border: 1px solid var(--vien); border-top: 4px solid #B8CCC5; padding: 14px 16px; background: #fff; }
.grade h3 { margin: 0 0 4px; font-size: 1.1rem; }
.grade-2 { border-top-color: #E0A42C; }
.grade-3 { border-top-color: var(--do); }
.grade-ok { border-top-color: var(--xanh); }
.grade-action { font-weight: 600; margin-bottom: 0; }
.care { display: grid; gap: 20px; }
@media (min-width: 760px) { .care { grid-template-columns: 1fr 1fr; } }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--vien); background: #fff; }
a.tile:hover { border-color: var(--xanh-dam); }
.tile > .icon { width: 30px; height: 30px; color: var(--xanh-dam); }
.tile strong { font-family: var(--serif); font-size: 1.0625rem; color: var(--than); }
.tile span { color: var(--chu-phu); font-size: .9rem; }
.ci-list { padding-left: 1.2em; }
.ci-list li { margin-bottom: 10px; }
.reaction { border-left: 3px solid var(--vien-dam); padding: 2px 0 2px 14px; margin: 12px 0; }
.reaction-serious { border-left-color: var(--do); }
.reaction h3 { margin: 0 0 4px; font-size: 1.05rem; }

/* ================= Hỏi đáp ================= */
.faq details { border-bottom: 1px solid var(--vien); }
.faq details:first-child { border-top: 1px solid var(--vien); }
.faq summary { cursor: pointer; padding: 14px 40px 14px 0; font-family: var(--serif); font-weight: 700; color: var(--than); list-style: none; position: relative; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--sans); font-size: 1.4rem; color: var(--xanh-dam); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--xanh-dam); }
.faq-answer { padding: 0 0 14px; font-size: .975rem; }
.source { font-size: .8125rem; color: var(--chu-phu); }

/* ================= Điểm tiêm ================= */
.map { height: min(60vh, 440px); border: 1px solid var(--vien); background: var(--xanh-nhat); margin: 12px 0; }
.map-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.clinic-list { list-style: none; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.clinic { padding: 16px 0; border-top: 1px solid var(--vien); }
.clinic.is-highlight { background: var(--xanh-nhat); box-shadow: -8px 0 0 var(--xanh-nhat), 8px 0 0 var(--xanh-nhat); }
.clinic h2 { font-size: 1.0625rem; margin: 0 0 4px; }
.clinic p { margin: 0 0 6px; font-size: .9375rem; }
.clinic-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.clinic-meta a { color: var(--xanh-dam); font-weight: 600; }
.distance { font-family: var(--sans); font-size: .8125rem; color: var(--xanh-dam); font-weight: 600; white-space: nowrap; }

/* ================= Văn bản pháp lý ================= */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--vien); }
.doc-no { font-weight: 700; color: var(--xanh-dam); font-size: .9375rem; }
.doc-no small { display: block; font-weight: 400; color: var(--chu-phu); font-size: .8125rem; }
.doc-list h2, .doc-list h3 { font-size: 1.05rem; margin: 0 0 4px; }
.doc-list p { margin: 0 0 4px; font-size: .9375rem; color: var(--chu-phu); }
@media (max-width: 560px) { .doc-list li { grid-template-columns: 1fr; } }

/* ================= Khối ứng dụng ================= */
.app-band { background: var(--xanh-nhat); border-top: 1px solid #C6E6DA; border-bottom: 1px solid #C6E6DA; margin-top: 44px; padding: 28px 0; }
.app-band .wrap { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .app-band .wrap { grid-template-columns: auto 1fr auto; } }
.app-band img { width: 64px; height: 64px; border-radius: 14px; }
.app-band h2 { font-size: 1.35rem; margin: 0 0 4px; }
.app-band p { margin: 0; color: var(--chu-phu); }
.app-badges { font-size: .875rem; color: var(--chu-phu); }

/* ================= Trang lỗi, pháp lý ================= */
.error-page { text-align: center; padding-top: 48px; }
.error-page .search-box { margin: 20px auto; }
.error-code { font-family: var(--serif); font-size: 4rem; font-weight: 700; color: var(--xanh); margin: 0; line-height: 1; }
.legal h2 { font-size: 1.25rem; }

/* ================= Chân trang ================= */
.site-footer { background: var(--than); color: #BDD3CB; margin-top: 48px; font-size: .9rem; }
.app-band + .site-footer { margin-top: 0; }
.footer-top { padding: 34px 0 24px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-top h2 { font-family: var(--sans); color: #fff; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top li { margin-bottom: 7px; }
.footer-top a { color: #E2EFEA; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.disclaimer { margin: 0; border-top: 1px solid rgb(255 255 255 / 12%); border-bottom: 1px solid rgb(255 255 255 / 12%); padding: 14px 0; color: #E2EFEA; }
.disclaimer .icon { color: #F5B83D; margin-top: 3px; }
.footer-bottom { padding: 14px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8FAAA2; font-size: .8125rem; }
.footer-bottom a { color: #BDD3CB; }

/* ================= In ================= */
@media print {
  .topbar, .masthead, .mainnav, .ticker, .site-footer, .crumbs, .no-print, .sidebar, .app-band, .first-aid, .faq { display: none !important; }
  body { font-size: 11pt; }
  .cols { display: block; }
  .regimen, .box { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Ảnh trong bài viết (tải lên từ trang quản trị) */
.article-figure { margin: 1.4em 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.article-figure figcaption { margin-top: 6px; color: var(--chu-phu); font-size: .875rem; }
.article-cover { margin: 0 0 22px; max-width: 720px; }

/* Nhóm đối tượng (trang Lịch tiêm): biểu tượng theo nhóm */
.group-item { display: flex; gap: 14px; align-items: flex-start; }
.group-icon { width: 50px; height: 50px; padding: 11px; box-sizing: border-box; border-radius: 12px; flex: none; margin-top: 2px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  background: var(--xanh-nhat); color: var(--xanh-dam); }
.tone-nhi .group-icon { background: var(--vang-nhat); color: var(--vang); }
.tone-dac-biet .group-icon { background: #E6EEF7; color: #2F6FA3; }

/* Danh sách bệnh: hình minh họa (web/assets/benh/<mã bệnh>.svg) */
.disease-art { display: block; margin: 0 0 10px; }
.disease-art img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 175; border-radius: 10px; }

/* Trang chủ: Hỏi đáp và Vắc xin */
.faq-tag { margin-right: 8px; vertical-align: 2px; font-family: var(--sans); }
.block-foot { margin: 18px 0 0; }
.vx-list li { display: flex; gap: 12px; align-items: flex-start; }
.vx-list .icon { width: 38px; height: 38px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--xanh-nhat); color: var(--xanh-dam); vertical-align: 0; }
