/* Website công dân */
body.site { background: #f4f6f9; font-size: 17px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 30; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-header { background: #0b4a8b; color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; }
.brand small { display: block; opacity: .85; font-size: .82rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: #0b4a8b; font-weight: 800; display: grid; place-items: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; opacity: .9; }
.site-nav a.on, .site-nav a:hover { background: rgba(255,255,255,.16); opacity: 1; }
main.wrap { padding-top: 20px; padding-bottom: 40px; outline: none; }
.site a { color: #0b5394; }
.site .site-header a { color: #fff; }
.hero { background: linear-gradient(135deg, #e7f0fb, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 6px; font-size: 1.6rem; color: #0b3d73; }
.hero.slim { padding: 20px 24px; }
.search { display: flex; gap: 8px; margin-top: 14px; }
.search input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 1.05rem; border: 2px solid #c9d6e6; border-radius: 12px; }
.search input:focus { border-color: #0b5394; outline: none; }
.search button { padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid #c9d6e6; background: #fff; text-decoration: none; font-size: .9rem; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip.on { background: #0b5394; color: #fff !important; border-color: #0b5394; }
.chip.on span { color: #dbe7f5; }
.count { color: var(--muted); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.result a { text-decoration: none; display: block; }
.result strong { display: block; font-size: 1.05rem; color: #0b3d73; }
.result .meta { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.code { font-family: Consolas, monospace; font-size: .85rem; color: #555; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e7f0fb; color: #0b4a8b; font-size: .8rem; margin-right: 6px; }
.tag.subtle { background: #eef1f5; color: #4b5563; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pg { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pg.on { background: #0b5394; color: #fff !important; }
.gap { padding: 8px 4px; }
.empty { background: #fff; border: 1px dashed #c9d6e6; border-radius: 12px; padding: 20px; }
.crumb { color: var(--muted); font-size: .92rem; }
.proc-head { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.proc-head h1 { margin: 6px 0 12px; font-size: 1.45rem; color: #0b3d73; line-height: 1.35; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts div { background: #f6f8fb; border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts.small dd { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-block; background: #0b5394; color: #fff !important; padding: 10px 16px; border-radius: 10px; text-decoration: none; border: 0; font-size: .95rem; cursor: pointer; }
.btn.ghost { background: #e7f0fb; color: #0b5394 !important; }
.btn.small { padding: 6px 12px; font-size: .88rem; white-space: nowrap; }
.proc-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.toc { position: sticky; top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; }
.toc a { padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: .9rem; }
.toc a:hover { background: #eef3fa; }
.block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; scroll-margin-top: 12px; }
.block h2 { margin: 0 0 10px; font-size: 1.15rem; color: #0b3d73; }
.raw { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.raw-title { font-size: .95rem; color: var(--muted); margin: 14px 0 6px; }
.assist { background: #f6f9fd; border: 1px solid #dbe7f5; border-radius: 10px; padding: 12px 14px; }
.assist-title { margin: 0 0 8px; font-weight: 600; }
.case-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.case-pick button { background: #fff; color: #0b5394; border: 1px solid #c9d6e6; text-align: left; font-size: .9rem; }
.case-pick button.on { background: #0b5394; color: #fff; }
.case h3 { font-size: 1rem; margin: 6px 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; font-size: 1rem; }
.checklist input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hint { margin-left: 26px; font-size: .82rem; color: var(--muted); }
.note { font-size: .9rem; color: #555; border-left: 3px solid #dbe7f5; padding-left: 8px; }
.kv { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.small { font-size: .88rem; }
.alert { border-radius: 10px; padding: 10px 14px; }
.alert.warn { background: #fff6e0; border: 1px solid #f0d58c; color: #6b4b00; }
.forms-group h3 { font-size: 1rem; margin: 6px 0 8px; }
.files { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.files li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ficon { width: 38px; height: 38px; border-radius: 8px; background: #1d5fb8; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: none; }
.ficon.pdf { background: #b3261e; }
.decision { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; margin-bottom: 12px; }
.decision.old { background: #fbfbfb; }
.decision .dn { font-weight: 700; margin: 0 0 4px; }
.history summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
.phones { list-style: none; padding: 0; display: grid; gap: 8px; }
.phones li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.phone { font-size: 1.1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.plain { padding-left: 18px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0; padding: 16px 0; }
.printed { display: none; }
@media (max-width: 860px) {
  .proc-body { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .facts.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body.site { font-size: 16px; }
  .hero { padding: 18px 16px; }
  .hero h1 { font-size: 1.3rem; }
  .search { flex-direction: column; }
  .search button { padding: 12px; }
  .facts, .facts.small { grid-template-columns: 1fr; }
  .proc-head { padding: 16px; }
  .block { padding: 14px 16px; }
  .files li { flex-wrap: wrap; }
  .site-nav { width: 100%; }
}
@media print {
  .site-header nav, .toc, .actions, .site-footer, .search, .chips, .btn { display: none !important; }
  body.site { background: #fff; }
  .proc-body { display: block; }
  .block, .proc-head { border: 0; padding: 0; }
  .printed { display: block; }
}

/* Thành phần hồ sơ: đề mục dạng danh sách thả xuống */
.dsr { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; background: #fff; }
.dsr > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: #0b3d73; list-style-position: inside; }
.dsr[open] > summary { border-bottom: 1px solid var(--line); background: #f3f7fb; border-radius: 8px 8px 0 0; }
.dsr-body { padding: 10px 14px 4px; }
.dsr-body .dsr { margin-left: 4px; }
.dsr-items { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; overflow-wrap: anywhere; }
.dsr-note { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.dsr-qty { margin: 6px 0 0; font-weight: 600; }
.tag.bb { background: #fde8e8; color: #9b1c1c; }

/* ---- Trang danh sách: đơn giản, lĩnh vực có màu, thẻ có vạch màu */
.hero { background: #eaf1f9; border: 1px solid #d3e0f0; border-radius: 18px; padding: 26px 26px 22px; }
.hero h1 { font-size: 1.9rem; letter-spacing: -.02em; }
.search { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1.5px #cfdcec; }
.search input { border: 0; background: transparent; padding: 10px 12px; }
.search:focus-within { box-shadow: 0 0 0 3px #7fb0e6; }
.search input:focus { border: 0; }
.chips { margin-top: 16px; }
.chip { --c: #0b5394; display: inline-flex; align-items: center; border: 1.5px solid #cfdcec; font-weight: 600; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.chip.on { background: var(--c); border-color: var(--c); }
.chip.on i { background: #fff; }
.result { --c: #0b5394; border-left: 4px solid var(--c); border-radius: 14px; transition: box-shadow .15s, translate .15s; }
.result:hover { box-shadow: 0 8px 20px rgba(11,83,148,.13); translate: 0 -2px; }
.result .rtop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.result .tag { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-weight: 700; margin: 0; }
.result strong { color: #0b3d73; line-height: 1.35; }
.result:hover strong { color: var(--c); }
.result .dl { display: flex; gap: 8px; margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.result .dl .ic { flex: none; margin-top: 3px; color: var(--c); }
.result .hl { font-weight: 800; color: #1d2733; }
@media (prefers-reduced-motion: reduce) { .result { transition: none; } .result:hover { translate: none; } }

/* màu lĩnh vực */
.result.c0, .chip.c0 { --c: #0b5394; }
.result.c1, .chip.c1 { --c: #047857; }
.result.c2, .chip.c2 { --c: #b45309; }
.result.c3, .chip.c3 { --c: #6d28d9; }
.result.c4, .chip.c4 { --c: #be185d; }
.result.c5, .chip.c5 { --c: #0e7490; }

/* ---- Danh sách dạng bảng, gom nhóm theo lĩnh vực (tên đầy đủ, không cắt) */
.tw { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tj { width: 100%; border-collapse: collapse; }
.tj th, .tj td { text-align: left; vertical-align: top; }
.tj thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 16px; background: #eef4fb; white-space: nowrap; }
.tj thead th.sr { padding: 0; }
.tj td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; }
.tj .c-code { white-space: nowrap; width: 1%; }
.tj .c-name { width: 46%; }
.tj .c-name a { font-weight: 700; color: #0b3d73; text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.tj .c-dl { color: var(--muted); }
.tj .c-go { width: 1%; color: var(--muted); font-size: 1.4rem; line-height: 1; text-align: right; }
.trj { cursor: pointer; }
.trj:hover td { background: #f3f8fd; }
.trj:hover .c-name a { text-decoration: underline; }
.tj tr.grp { --c: #0b5394; }
.tj tr.grp th { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); border-top: 2px solid var(--c); padding: 10px 16px; font-size: 1rem; font-weight: 800; text-transform: none; letter-spacing: 0; white-space: normal; }
.tj tr.grp th span { color: var(--muted); font-weight: 500; font-size: .88rem; margin-left: 10px; }
.tj tr.grp.c0 { --c: #0b5394; } .tj tr.grp.c1 { --c: #047857; } .tj tr.grp.c2 { --c: #b45309; }
.tj tr.grp.c3 { --c: #6d28d9; } .tj tr.grp.c4 { --c: #be185d; } .tj tr.grp.c5 { --c: #0e7490; }
@media (max-width: 760px) {
  .tj thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tj tr.trj { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .tj tr.trj td { display: block; padding: 0; border: 0; }
  .tj .c-code, .tj .c-name, .tj .c-dl { width: auto; grid-column: 1; }
  .tj .c-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; }
  .tj tr.grp, .tj tr.grp th { display: block; }
}
@media (prefers-reduced-motion: reduce) { .trj { transition: none; } }

/* ---- Chi tiết thủ tục: cột đọc + bảng tóm tắt cố định bên phải */
.proc2 { margin-top: 6px; }
.dband { background: #eaf1f9; border: 1px solid #d3e0f0; border-radius: 18px; padding: 20px 26px 22px; }
.dmeta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 8px; font-size: .9rem; }
.dband h1 { margin: 0; font-size: 1.7rem; line-height: 1.28; letter-spacing: -.015em; color: #0b3d73; overflow-wrap: anywhere; }
.snav { position: sticky; top: 0; z-index: 5; background: rgba(244,246,249,.96); border-bottom: 1px solid var(--line); margin: 10px 0 18px; }
.snav-in { display: flex; gap: 2px; overflow-x: auto; }
.snav a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.snav a:hover { color: #0b5394; }
.snav a[aria-current="true"] { color: #0b5394; border-color: #0b5394; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dmain { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sec { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; scroll-margin-top: 64px; overflow-wrap: anywhere; }
.sec h2 { margin: 0 0 14px; font-size: 1.15rem; color: #0b3d73; display: flex; align-items: center; gap: 10px; }
.sec h2 .hic { color: #0b5394; flex: none; }
.sec h3 { font-size: 1rem; margin: 14px 0 8px; }
.sec p { margin: 0 0 8px; line-height: 1.65; }
.sec ul { margin: 0 0 8px; padding-left: 20px; line-height: 1.65; }
.sec ul ul { margin-top: 4px; }
.sec .note { background: #eef4fb; border-radius: 12px; padding: 10px 14px; margin-top: 10px; font-size: .93rem; }
.hl { font-weight: 800; color: #0b5394; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.info > div { border-top: 1px solid var(--line); padding-top: 10px; scroll-margin-top: 64px; }
.info > .wide { grid-column: 1 / -1; }
.info dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.info dd { margin: 0; }
.info dd p:last-child, .info dd ul:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: #0b5394; color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 8px 0 6px; font-size: 1.02rem; }
.mau-don { margin-bottom: 14px; }
.legal ul { list-style: none; padding: 0; }
.legal li { padding: 10px 0; border-top: 1px solid var(--line); }
.legal li:first-child { border-top: 0; padding-top: 0; }
.dpanel { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.pcard h3 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pbig { font-size: 1rem; font-weight: 600; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.prow { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.prow span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.prow b { display: block; font-weight: 600; text-align: left; line-height: 1.5; overflow-wrap: anywhere; }
.pact { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pact .btn { text-align: center; }
.pcard .phones li { flex-wrap: wrap; }
@media (max-width: 960px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .dpanel { position: static; order: -1; }
  .info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .dband { padding: 16px; } .dband h1 { font-size: 1.35rem; }
  .sec { padding: 16px; }
}
@media print {
  .snav, .pact, .dpanel .pcard:nth-child(2) { display: none !important; }
  .dgrid { display: block; } .dpanel { position: static; margin-bottom: 12px; }
  .dband, .sec, .pcard { border: 0; padding: 0; background: #fff; }
}

/* ---- Đầu trang: nền trắng, nhãn hiệu có điểm nhấn, menu gạch chân mục đang xem */
.site .site-header { background: #fff; color: #1d2733; border-bottom: 1px solid #dfe6ee; box-shadow: 0 1px 0 rgba(11,74,139,.04); }
.site .site-header .header-row { padding-top: 12px; padding-bottom: 12px; gap: 10px 28px; }
.site .site-header .brand { color: #0b3d73; gap: 12px; }
.site .site-header .brand strong { display: block; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.site .site-header .brand small { opacity: 1; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.site .site-header .brand-mark { width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #0b4a8b, #2b7bd0); box-shadow: 0 4px 10px rgba(11,83,148,.28); letter-spacing: .02em; }
.site .site-header .site-nav { gap: 6px; }
.site .site-header .site-nav a { color: #51606f; opacity: 1; font-weight: 600; padding: 10px 14px; border-radius: 10px; position: relative; }
.site .site-header .site-nav a:hover { background: #eef4fb; color: #0b4a8b; }
.site .site-header .site-nav a.on { background: transparent; color: #0b4a8b; }
.site .site-header .site-nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: #0b5394; }
.site .site-header a:focus-visible { outline: 3px solid #7fb0e6; outline-offset: 2px; }
@media (max-width: 520px) {
  .site .site-header .header-row { padding-top: 10px; padding-bottom: 6px; }
  .site .site-header .brand strong { font-size: 1rem; }
  .site .site-header .site-nav { width: 100%; border-top: 1px solid #eef1f5; padding-top: 4px; }
  .site .site-header .site-nav a { flex: 1; text-align: center; padding: 10px 6px; }
  .site .site-header .site-nav a.on::after { left: 22%; right: 22%; }
}
@media print { .site .site-header { border: 0; box-shadow: none; } }

/* ===== Quyết định công bố: thẻ có tiêu đề rõ, thông tin 3 cột, tệp đính kèm gọn ===== */
.qcount { margin: 4px 2px 12px; color: var(--muted); }
.qcount b { color: #0b4a8b; }
.decision.qd { padding: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,40,80,.05); margin-bottom: 16px; }
.qd > .alert { margin: 0; border-radius: 0; }
.qd .qh { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(180deg, #f3f8fe, #fff); border-bottom: 1px solid var(--line); }
.qd .qbadge { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #0b4a8b, #2b7bd0); color: #fff; display: grid; place-items: center; flex: none; }
.qd .qbadge svg { width: 22px; height: 22px; }
.qd .qt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qd .qk { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.qd .qn { font-size: 1.3rem; font-weight: 800; color: #0b3d73; text-decoration: none; overflow-wrap: anywhere; }
.qd .qn:hover { text-decoration: underline; }
.qd .qdate { display: inline-flex; align-items: center; gap: 6px; background: #e7f0fb; color: #0b4a8b; font-weight: 600; font-size: .85rem; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.qd .qs { margin: 0; padding: 16px 20px 6px; font-size: 1.02rem; line-height: 1.6; }
.qd .qm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 12px 20px; }
.qd .qm div { background: #f6f8fb; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.qd .qm dt { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.qd .qm dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.qd .qnote { margin: 0 20px 6px; padding: 10px 14px; border-left: 3px solid #2b7bd0; background: #f3f8fe; border-radius: 0 10px 10px 0; font-size: .92rem; line-height: 1.55; color: #334155; }
.qd .qnote b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #0b4a8b; margin-bottom: 2px; }
.qd .qfiles { padding: 8px 20px 18px; }
.qd .qfiles h4 { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: .9rem; color: #0b3d73; }
.qd .qfiles h4 span { background: #e7f0fb; border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.qfl { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.qfl.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.qf { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.qf.main { border-color: #b9d3f2; background: #f3f8fe; padding: 12px 14px; }
.qf .qfn { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.qf .qfn .muted { font-size: .85rem; }
.ficon.doc { background: #1d5fb8; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plist a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; background: #fff; }
.plist a:hover { border-color: #2b7bd0; background: #f3f8fe; }
.plist .code { background: #e7f0fb; color: #0b4a8b; padding: 2px 8px; border-radius: 6px; font-weight: 700; flex: none; }
.plist .pn { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.plist .go { color: #2b7bd0; font-size: 1.3rem; }
@media (max-width: 760px) { .qd .qm { grid-template-columns: 1fr; } .qd .qh { flex-wrap: wrap; } .qfl.grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .qd .qh, .qd .qs, .qd .qm, .qd .qfiles { padding-left: 14px; padding-right: 14px; } .qd .qnote { margin-left: 14px; margin-right: 14px; } .qf { flex-wrap: wrap; } }

/* Quyết định trong trang chi tiết thủ tục: thẻ gọn, bấm cả thẻ để vào trang Quyết định */
.decision.qc { position: relative; padding: 14px 18px; border-radius: 12px; display: block; transition: border-color .15s, background .15s; }
.decision.qc:hover { border-color: #2b7bd0; background: #f3f8fe; }
.qc .qk { display: block; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.qc .qn { font-size: 1.2rem; font-weight: 800; color: #0b3d73; text-decoration: none; overflow-wrap: anywhere; }
.qc .qn::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.qc .qs { margin: 6px 0 8px; line-height: 1.55; }
.qc .qline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .9rem; color: #475569; }
.qc .qline b { color: #334155; font-weight: 600; }
.qc .qgo { display: inline-block; margin-top: 8px; color: #0b5394; font-weight: 600; font-size: .9rem; }
.decision.qc:hover .qgo { text-decoration: underline; }

/* ===== Trang chủ: danh sách 2 dòng theo lĩnh vực (mẫu B) ===== */
.hero { padding: 24px 26px 20px; }
.hero h1 { font-size: 1.8rem; margin-bottom: 6px; }
.hero p { color: #334155; margin: 0; }
.search input { min-height: 46px; font-size: 1.05rem; }
.search button { min-height: 46px; padding: 0 24px; font-weight: 700; }
.chips { gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; font-size: .93rem; color: #0b3d73; }
.chip:hover:not(.on) { background: #f3f8fd; border-color: var(--c); }
.chip:focus-visible, .pg:focus-visible, .pname:focus-visible { outline: 3px solid #7fb0e6; outline-offset: 2px; }
.count { margin: 16px 2px 8px; color: #334155; }
.count strong { color: #0b3d73; }
.pg-sec { --c: #0b5394; margin-bottom: 16px; }
.pg-sec.c0 { --c: #0b5394; } .pg-sec.c1 { --c: #047857; } .pg-sec.c2 { --c: #b45309; }
.pg-sec.c3 { --c: #6d28d9; } .pg-sec.c4 { --c: #be185d; } .pg-sec.c5 { --c: #0e7490; }
.pg-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; font-size: 1rem; color: var(--c); }
.pg-sec h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pg-sec h2 span { font-size: .82rem; font-weight: 500; color: #475569; }
.plist2 { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 8px 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); border-left: 3px solid var(--c, #0b5394); cursor: pointer; transition: background .12s; }
.pr:first-child { border-top: 0; }
.pr:hover { background: #f3f8fd; }
.pr:focus-within { outline: 3px solid #7fb0e6; outline-offset: -3px; }
.pname { grid-column: 1; font-weight: 600; line-height: 1.5; color: #0b3d73; text-decoration: none; overflow-wrap: anywhere; }
.pr:hover .pname { text-decoration: underline; }
.pm { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .85rem; color: #475569; }
.pcode { font-family: Consolas, monospace; font-weight: 700; color: #0b3d73; background: #eaf1f9; border-radius: 6px; padding: 1px 7px; }
.ppill { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 5px; background: #eaf1f9; color: #0b3d73; border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.ppill .ic { width: 14px; height: 14px; }
.pgo { grid-column: 3; grid-row: 1 / span 2; color: #51606f; font-size: 1.4rem; line-height: 1; }
.pr:hover .pgo { color: #0b5394; }
.pager { justify-content: center; align-items: center; gap: 8px; margin: 22px 0 8px; }
.pg { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font-weight: 600; color: #0b3d73; }
.pg:hover:not(.on) { background: #f3f8fd; border-color: #0b5394; }
@media (max-width: 640px) {
  .hero { padding: 18px 14px; } .hero h1 { font-size: 1.45rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .chip { flex: none; }
  .pr { grid-template-columns: minmax(0, 1fr) 14px; }
  .pr .ppill { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 2px; }
  .pr .pgo { grid-column: 2; grid-row: 1 / span 3; }
}
@media (prefers-reduced-motion: reduce) { .pr { transition: none; } }

/* ===== Đầu trang (mẫu B): căn giữa, nền trắng, ô tìm kiếm lớn, lĩnh vực là thẻ nhỏ có vạch màu ===== */
.hero { background: #fff; border: 1px solid var(--line); text-align: center; padding: 30px 24px 22px; }
.hero h1 { font-size: 2rem; color: #0b4a8b; margin-bottom: 8px; }
.hero > p { max-width: 720px; margin: 0 auto; color: #475569; text-wrap: balance; }
.hero .search { max-width: 720px; margin: 18px auto 0; text-align: left; box-shadow: 0 0 0 2px #cfdcec; }
.hero .search:focus-within { box-shadow: 0 0 0 3px #7fb0e6; }
.hero > .try { max-width: none; margin: 12px auto 0; text-align: center; font-size: .88rem; color: #475569; }
.hero .try button { margin: 2px 3px; padding: 3px 11px; border: 0; border-radius: 999px; background: #eaf1f9; color: #0b4a8b; font-weight: 600; font-size: .88rem; cursor: pointer; }
.hero .try button:hover { background: #dbe8f7; }
.hero .try button:focus-visible { outline: 3px solid #7fb0e6; outline-offset: 2px; }
.hero .chips { justify-content: center; gap: 8px; margin-top: 16px; }
.hero .chip { min-height: 0; padding: 5px 11px; border: 1px solid #d3e0f0; border-left: 4px solid var(--c); border-radius: 10px; font-size: .88rem; font-weight: 600; background: #fff; text-align: left; }
.hero .chip i { display: none; }
.hero .chip span { margin-left: 8px; background: #eaf1f9; border-radius: 999px; padding: 0 7px; font-size: .8rem; color: #0b4a8b; }
.hero .chip.on { background: color-mix(in srgb, var(--c) 10%, #fff); color: #0b3d73 !important; border-color: var(--c); }
.hero .chip.on span { background: var(--c); color: #fff; }
@media (max-width: 640px) { .hero { padding: 20px 14px 16px; } .hero h1 { font-size: 1.45rem; } .hero .chips { justify-content: flex-start; } }

/* ===== Lĩnh vực: tab dọc ở cột bên phải ===== */
.homegrid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.homeside { position: sticky; top: 16px; margin-top: 16px; }
.vtabs { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.vtabs h2 { margin: 2px 8px 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #475569; }
.vt { --c: #0b5394; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; border-left: 4px solid transparent; text-decoration: none; color: #0b3d73; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.vt i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.vt .vn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vt .vc { background: #eaf1f9; color: #0b4a8b; border-radius: 999px; padding: 0 8px; font-size: .8rem; flex: none; }
.vt:hover:not(.on) { background: #f3f8fd; }
.vt.on { background: color-mix(in srgb, var(--c) 10%, #fff); border-left-color: var(--c); }
.vt.on .vc { background: var(--c); color: #fff; }
.vt:focus-visible { outline: 3px solid #7fb0e6; outline-offset: 2px; }
.vt.c0 { --c: #0b5394; } .vt.c1 { --c: #047857; } .vt.c2 { --c: #b45309; } .vt.c3 { --c: #6d28d9; } .vt.c4 { --c: #be185d; } .vt.c5 { --c: #0e7490; }
@media (max-width: 900px) {
  .homegrid { grid-template-columns: 1fr; gap: 0; }
  .homeside { position: static; order: -1; margin: 0 0 4px; }
  .vtabs { flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; } .vtabs h2 { display: none; }
  .vt { flex: none; border-left-width: 0; border-bottom: 3px solid transparent; } .vt.on { border-bottom-color: var(--c); }
}

/* Ghi chú demo (tệp demo-note.js, không commit) */
.demo-note { position: fixed; left: 16px; bottom: 16px; z-index: 50; width: min(340px, calc(100vw - 32px)); background: #fffbe6; border: 2px solid #e0a800; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 10px 12px; font-size: .92rem; color: #3b2f00; }
.demo-note .dn-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.demo-note .dn-x { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #3b2f00; min-width: 32px; min-height: 32px; }
.demo-note .dn-row { display: grid; grid-template-columns: 82px 1fr; gap: 6px; padding: 2px 0; align-items: baseline; }
.demo-note .dn-l { color: #6b5a00; }
.demo-note .dn-v { font-family: Consolas, monospace; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
@media print { .demo-note { display: none; } }

/* Nút nộp hồ sơ trực tuyến (Cổng Dịch vụ công Quốc gia) */
.pact .btn.dvc { background: #c0392b; font-weight: 700; padding: 12px 16px; }
.pact .btn.dvc:hover { background: #a93226; }
.dvc-pick { margin-top: 10px; padding: 10px 12px; border: 1px solid #e6c9a8; border-left: 4px solid #c0392b; border-radius: 6px; background: #fff8ef; font-size: 13.5px; line-height: 1.5; }
.dvc-pick ol { margin: 6px 0 0; padding-left: 20px; }
.pact .pnote { margin: -2px 2px 4px; font-size: .84rem; color: #475569; line-height: 1.45; }
