/* ==========================================================================
   VNeTraffic.org — main.css
   Màu lấy từ logo: xanh navy + vàng. Font: Roboto (đủ dấu tiếng Việt).
   ========================================================================== */

:root {
	--navy: #14286b;
	--navy-900: #0b1847;
	--navy-100: #e8ecf8;
	--yellow: #ffc62a;
	--yellow-600: #e8a800;
	--ink: #161b27;
	--ink-2: #475063;
	--ink-3: #7a8397;
	--ground: #ffffff;
	--soft: #f4f5f8;
	--surface: #ffffff;
	--line: #e1e5ee;
	--line-2: #eef0f5;
	--bad: #c2261c;
	--bad-soft: #fdecea;
	--warn: #a15c00;
	--warn-soft: #fff4dc;
	--good: #16794a;
	--good-soft: #e5f5ec;
	--radius: 4px;
	--radius-sm: 3px;
	--container: 1032px; /* 1000px nội dung + 2 x 16px lề */
	--sidebar: 300px;
	--gap: 28px;
	--shadow: 0 1px 2px rgba(15, 25, 60, .06), 0 8px 24px rgba(15, 25, 60, .06);
	--font: Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
	--measure: 70ch;
	--icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4a6 6 0 104.47 10.03l4.75 4.75 1.41-1.41-4.75-4.75A6 6 0 0010 4zm0 2a4 4 0 110 8 4 4 0 010-8z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: pretty; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.1rem); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.selectable { user-select: all; }

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 0; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--navy-900); }
.btn-accent:hover { background: var(--yellow-600); color: var(--navy-900); }

/* Notice bar ---------------------------------------------------------- */
.notice-bar { background: var(--navy-900); color: #c9d2ee; font-size: .8rem; line-height: 1.4; }
.notice-bar .container { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding-block: 7px; }
.notice-bar a { color: var(--yellow); }

/* Header -------------------------------------------------------------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 var(--yellow); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark { width: 34px; height: 34px; color: var(--yellow); }
.brand-word { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-word span { color: var(--yellow); font-weight: 600; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; white-space: nowrap; padding: 10px 9px; color: #e6eaf7; text-decoration: none; font-weight: 500; font-size: .93rem; border-radius: var(--radius); }
.primary-nav .menu a:hover, .primary-nav .menu a[aria-current="page"], .primary-nav .current-menu-item > a { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-cta { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 12px 8px; }
	.nav-cta { margin-top: 8px; }
}

/* Breadcrumb ---------------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-2); }

/* Tool hero ----------------------------------------------------------- */
.tool-hero { background: linear-gradient(180deg, var(--navy-100), var(--soft)); padding-block: 24px 32px; border-bottom: 1px solid var(--line); }
.tool-hero h1 { max-width: none; }
.tool-lede { font-size: 1.05rem; color: var(--ink-2); max-width: 66ch; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.tool-card-title { font-size: 1.15rem; margin-bottom: 12px; }
.tool-disclaimer { font-size: .82rem; color: var(--ink-3); margin: 12px 0 0; }

/* Lookup form: ô biển số mô phỏng biển xe Việt Nam -------------------- */
.lookup-types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0 0 12px; padding: 0; }
.lookup-types label { cursor: pointer; }
.lookup-types input { position: absolute; opacity: 0; }
.lookup-types span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--ink-2); background: var(--surface); }
.lookup-types input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.lookup-types input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lookup-row { display: flex; gap: 10px; align-items: stretch; }
.plate { flex: 1; min-width: 0; display: flex; background: #fff; border: 3px solid #111; border-radius: 5px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #111; padding: 3px; }
.plate input { width: 100%; border: 0; background: transparent; font: 700 clamp(1.3rem, 1rem + 1.6vw, 1.9rem)/1 var(--font); letter-spacing: .06em; text-align: center; text-transform: uppercase; color: #111; padding: 10px 8px; min-height: 52px; }
.plate input::placeholder { color: #b7bcc8; letter-spacing: .04em; }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #111, 0 0 0 4px var(--yellow); }
.lookup-submit { min-height: 64px; padding: 0 26px; font-size: 1.05rem; }
.lookup-hint { font-size: .82rem; color: var(--ink-3); margin: 8px 0 0; }
.lookup-note { font-size: .85rem; color: var(--warn); font-weight: 500; margin: 6px 0 0; }
.lookup--compact .plate input { min-height: 44px; font-size: 1.35rem; }
.lookup--compact .lookup-submit { min-height: 56px; }
@media (max-width: 480px) {
	.lookup-row { flex-direction: column; }
	.lookup-submit { min-height: 52px; }
}

/* Scope strip --------------------------------------------------------- */
.scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 0; }
.scope > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.scope .scope-wide { grid-column: 1 / -1; }
.scope dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.scope dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.scope .scope-wide dd { font-weight: 500; color: var(--ink-2); font-size: .95rem; }

/* Result -------------------------------------------------------------- */
.lookup-result { margin-top: 16px; }
.result { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.result--found { border-color: #f1b8b3; background: #fffafa; }
.result--warn { border-color: #f3d7a1; background: #fffcf4; }
.result-head { font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.result-sub { font-size: .88rem; color: var(--ink-3); }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--good { background: var(--good-soft); color: var(--good); }
.pill--neutral { background: var(--navy-100); color: var(--navy); }
.vio { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
.vio dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin: 0; font-size: .93rem; }
.vio dt { color: var(--ink-3); }
.vio dd { margin: 0; }
@media (max-width: 520px) { .vio dl { grid-template-columns: 1fr; } .vio dt { margin-top: 6px; } }

/* Home ---------------------------------------------------------------- */
.home-hero { background: var(--navy); color: #e6eaf7; padding-block: 32px 40px; }
.home-hero h1 { color: #fff; max-width: 24ch; }
.home-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); font-weight: 700; margin-bottom: 10px; }
.home-lede { font-size: 1.05rem; max-width: 60ch; }
.home-note { font-size: .88rem; color: #b9c3e3; }
.home-note a { color: var(--yellow); }
.home-note b { color: #fff; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.store { display: inline-flex; flex-direction: column; padding: 8px 18px; border-radius: var(--radius); background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); min-width: 160px; }
.store span { font-size: .72rem; opacity: .8; }
.store b { font-size: 1.1rem; }
.store:hover { color: #fff; background: #111; }
.tool-card--home { margin-top: 0; color: var(--ink); }
@media (max-width: 900px) { .home-hero-grid { grid-template-columns: 1fr; } }

.section { padding-block: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 1.2rem; margin-bottom: 14px; }
.section-head .section-title { margin: 0; }
.section-more { font-weight: 600; font-size: .92rem; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.task { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.task b { color: var(--navy); }
.task span { font-size: .9rem; color: var(--ink-3); }
.task:hover { border-color: var(--navy); }

/* Cards --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 9; background: var(--navy-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-decoration: none; }
.card-title { font-size: 1rem; margin: 0; line-height: 1.4; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--navy); text-decoration: underline; }
.card-meta { font-size: .8rem; color: var(--ink-3); }

/* Article ------------------------------------------------------------- */
.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: var(--gap); align-items: start; padding-block: 24px 40px; }
.layout-full { padding-block: 24px 40px; }
.entry-content--wide { max-width: none; }
.entry-header--wide { padding-top: 24px; }
@media (max-width: 700px) { .entry-header--wide { padding-top: 14px; } }
.entry-content--wide h2 { scroll-margin-top: 120px; }
.layout-article > .entry { min-width: 0; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 36px); }
.tool-hero + .layout-article .entry { margin-top: 0; }
.entry-cat { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; margin-bottom: 8px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ink-3); margin-bottom: 16px; }
.entry-meta a { color: var(--ink-2); }
.entry-media { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; }
.entry-content { max-width: none; }
.entry-content > * + h2 { margin-top: 1.8em; }
.entry-content > * + h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { margin-block: 8px; }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--yellow); background: #fffbeb; border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content figure { margin: 1.2em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: 6px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.entry-content th, .entry-content td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.entry-content th { background: var(--soft); font-weight: 700; font-size: .85rem; }
.entry-content tr:last-child td { border-bottom: 0; }

.answer-box { background: var(--navy-100); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.4em; }
.answer-box p:last-child { margin: 0; }
.note, .source-box { font-size: .9rem; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 1.4em 0; color: var(--ink-2); }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 1.6em; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.vne-faq h3 { font-size: 1.05rem; margin-top: 1.2em; }

.inline-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--navy); color: #e6eaf7; border-radius: var(--radius); padding: 16px 20px; margin: 2em 0 0; }
.inline-cta strong { display: block; color: #fff; }
.inline-cta span { font-size: .9rem; }
.inline-cta .btn-primary { background: var(--yellow); color: var(--navy-900); }

/* Author -------------------------------------------------------------- */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.author-avatar { border-radius: 50%; flex: none; }
.author-name { margin: 0; font-weight: 700; }
.author-name a { color: var(--ink); text-decoration: none; }
.author-job { display: block; font-weight: 500; font-size: .88rem; color: var(--ink-3); }
.author-bio { font-size: .93rem; color: var(--ink-2); margin: 6px 0; }
.author-more { font-size: .88rem; font-weight: 600; }
.author-head-grid { display: flex; gap: 24px; align-items: flex-start; }
.author-avatar--lg { width: 128px; height: 128px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0; }
.chips li { background: var(--navy-100); color: var(--navy); padding: 4px 10px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; }
.author-exp { font-size: .93rem; color: var(--ink-2); padding-left: 1.2em; }
.author-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
@media (max-width: 600px) { .author-head-grid { flex-direction: column; } }

/* Archive ------------------------------------------------------------- */
.archive-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 24px; }
.archive-desc { color: var(--ink-2); max-width: 70ch; }
.archive-long { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.related { margin-top: 32px; }

/* Comments ------------------------------------------------------------ */
.comments { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; border-left: 2px solid var(--line); }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.comment-author { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .8rem; color: var(--ink-3); }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; }
.comment-form .submit { background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); padding: 12px 20px; font: 700 1rem var(--font); cursor: pointer; }
.comment-notes { font-size: .88rem; color: var(--ink-3); }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #b9c3e3; font-size: .92rem; padding-top: 40px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--yellow); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-list { list-style: none; padding: 0; margin: 0 0 12px; }
.footer-list li { margin-bottom: 6px; }
.footer-list a { color: #dfe4f5; text-decoration: none; }
.footer-list a:hover { color: var(--yellow); text-decoration: underline; }
.footer-list--dark a { color: var(--navy); text-decoration: underline; }
.footer-note { font-size: .82rem; color: #8f9bc2; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-block: 16px; font-size: .8rem; color: #8f9bc2; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Search form --------------------------------------------------------- */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-field { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; }
.search-form .search-submit { background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); padding: 0 16px; font: 700 .95rem var(--font); }

/* Mobile: thanh thông báo gọn, ảnh minh hoạ chung không đẩy câu trả lời xuống */
.notice-short { display: none; }
@media (max-width: 640px) {
	.notice-long { display: none; }
	.notice-short { display: inline; }
	.notice-bar .container { padding-block: 5px; }
	.category-giai-dap-giao-thong .entry-media,
	.category-xu-ly-phat-nguoi .entry-media,
	.category-huong-dan-su-dung .entry-media { display: none; }
	.layout-article { padding-block: 12px 32px; }
	.entry { padding: 16px; }
}

/* Huy hiệu tải app chính thức (Apple, Google) */
.store-row { align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 7px; transition: transform .15s, box-shadow .15s; }
.store-badge img { height: 50px; width: auto; }
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.store-badge:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 380px) { .store-badge img { height: 44px; } }

/* ==========================================================================
   Bố cục 2 cột dùng chung: mép trái/phải luôn thẳng với header & footer
   ========================================================================== */
.tool-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: var(--gap); align-items: start; }
.tool-hero-side { padding-top: 34px; }
.btn-block { display: flex; width: 100%; }

.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 16px; }
.side-box--tool { border-top-color: var(--yellow); }
.side-title { font-size: 1rem; font-weight: 700; text-transform: none; margin: 0 0 12px; color: var(--ink); }
.side-note { font-size: .88rem; color: var(--ink-2); margin: 10px 0 0; }
.side-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.side-badges .store-badge img { height: 40px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .93rem; line-height: 1.45; }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a { color: var(--ink); text-decoration: none; }
.side-list a:hover { color: var(--navy); text-decoration: underline; }
.side-list time { display: block; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.side-list--num { counter-reset: n; }
.side-list--num li { counter-increment: n; display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.side-list--num li::before { content: counter(n); font-weight: 700; color: var(--navy); }
.side-more { display: inline-block; margin-top: 10px; font-size: .88rem; font-weight: 600; }
.sidebar .lookup-types span { padding: 6px 10px; font-size: .85rem; }
.sidebar .lookup-row { flex-direction: column; }
.sidebar .lookup-submit { min-height: 44px; }
.sidebar .lookup-hint { display: none; }

@media (max-width: 1024px) {
	.layout-article, .tool-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.tool-hero-side { padding-top: 0; }
}

/* ==========================================================================
   Kiểu báo điện tử: nền trắng, bài không đóng khung, danh sách ảnh cố định tỷ lệ
   ========================================================================== */
.layout-article > .entry { background: transparent; border: 0; padding: 0; border-radius: 0; }
.tool-hero { background: var(--soft); }
.archive-head { background: var(--ground); border-bottom: 0; padding-block: 20px 0; }
.archive-head .container { border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
.archive-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); margin-bottom: 6px; }
.archive-desc { font-size: .98rem; }
.archive-desc p { margin: 0; }
.archive-main { min-width: 0; }
.archive-long { border: 0; padding: 20px 0 0; margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }

.news { min-width: 0; }
.news-thumb { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-100); border-radius: var(--radius); }
.news-thumb .thumb-img, .news-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; transition: transform .3s ease; }
.news:hover .news-thumb img { transform: scale(1.03); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.news-title { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--navy); }
.news-sapo { margin: 8px 0 0; color: var(--ink-2); font-size: .97rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-date { display: block; margin-top: 8px; font-size: .8rem; color: var(--ink-3); }

.news--featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news--featured .news-title { font-size: 1.45rem; line-height: 1.25; }
.news--featured .news-sapo { -webkit-line-clamp: 5; font-size: 1rem; }

.news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 0; padding-top: 0; }
.news--grid .news-title { font-size: 1.05rem; margin-top: 10px; }

.news-list .news--list { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.news-list .news--list:last-child { border-bottom: 0; }
.news--list .news-title { font-size: 1.12rem; }

.related .news-row { border-bottom: 0; }
.section-title { position: relative; padding-left: 12px; border-left: 4px solid var(--navy); line-height: 1.2; }

@media (max-width: 900px) {
	.news-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.news--featured { grid-template-columns: 1fr; gap: 12px; }
	.news--featured .news-title { font-size: 1.35rem; }
	.news-row { grid-template-columns: 1fr; gap: 0; padding: 0; }
	.news-row .news--grid { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
	.news-row .news--grid .news-title { margin-top: 0; }
	.news-row--4 .news--grid:last-child { border-bottom: 0; }
	.news-list .news--list { grid-template-columns: 124px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
	.news--list .news-title { font-size: 1rem; }
	.news--list .news-sapo { display: none; }
	.news--grid .news-title { font-size: .98rem; }
}

.home-hero-inner { max-width: var(--container); }
.home-hero-inner > div { max-width: 760px; }
.home-hero { padding-block: 28px 32px; }

/* Trang chủ: hero 2 cột dùng hết 1000px */
.home-hero-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.home-hero-text h1 { max-width: none; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem); }
.home-hero-text .home-lede { max-width: none; }
.hero-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 26px; color: #e6eaf7; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.app-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.app-card-label { margin: 0 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good); }
.app-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.app-card-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--navy); color: var(--yellow); border-radius: 12px; }
.app-card-icon svg { width: 32px; height: 32px; }
.app-card-name { margin: 0; font-weight: 700; font-size: 1.15rem; }
.app-card-pub { margin: 0; font-size: .85rem; color: var(--ink-3); }
.app-card .store-row { margin: 0 0 14px; gap: 8px; }
.app-card .store-badge img { height: 45px; }
.app-card-facts { margin: 0; border-top: 1px solid var(--line); }
.app-card-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.app-card-facts dt { color: var(--ink-3); }
.app-card-facts dd { margin: 0; font-weight: 500; }
.app-card-facts code { font-size: .8rem; background: var(--soft); padding: 1px 5px; border-radius: 3px; }
.app-card-warn { margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); }
.entry--wide { max-width: none; border: 0; padding: 0; background: transparent; border-radius: 0; }
@media (max-width: 900px) { .home-hero-grid2 { grid-template-columns: 1fr; gap: 24px; } }

/* Khối lỗi thường gặp */
.issues { display: grid; gap: 14px; margin: 16px 0 8px; }
.issue { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.issue h3 { margin: 0 0 6px; font-size: 1.08rem; }
.issue .issue-sign { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; }
.issue-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.issue-cols h4 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.issue-cols ul, .issue-cols ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.issue-cols li { margin-bottom: 4px; }
.issue-more { margin: 10px 0 0; font-size: .92rem; }
@media (max-width: 700px) { .issue-cols { grid-template-columns: 1fr; gap: 10px; } }

/* Câu hỏi thường gặp dạng danh sách có viền */
.vne-faq { border-top: 1px solid var(--line); margin-top: 8px; }
.vne-faq h3 { margin: 0; padding: 16px 0 6px; font-size: 1.05rem; border-top: 1px solid var(--line); }
.vne-faq h3:first-child { border-top: 0; }
.vne-faq p { margin: 0 0 14px; color: var(--ink-2); }

/* Trang chủ: 3 chuyên mục cạnh nhau kiểu tuoitre.vn */
.home-cats { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.cat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cat-col { min-width: 0; }
.cat-col-title { margin: 0 0 14px; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.cat-col-title a { color: var(--ink); text-decoration: none; }
.cat-col-title a:hover { color: var(--navy); }
.cat-lead .news-thumb { aspect-ratio: 16 / 10; border-radius: 0; }
.cat-lead-title { margin: 12px 0 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.cat-lead-title a, .cat-list a { color: var(--ink); text-decoration: none; }
.cat-lead-title a:hover, .cat-list a:hover { color: var(--navy); }
.cat-list { list-style: none; margin: 14px 0 0; padding: 0; }
.cat-list li { padding: 13px 0; border-top: 1px dashed #cfd4de; font-size: 1.02rem; line-height: 1.45; }
.cat-list li:last-child { padding-bottom: 0; }

@media (max-width: 760px) {
	.home-cats { padding-block: 8px 24px; }
	.cat-cols { grid-template-columns: 1fr; gap: 0; }
	.cat-col { padding: 20px 0; border-bottom: 1px solid var(--line); }
	.cat-col:last-child { border-bottom: 0; }
	.cat-col-title { font-size: 1.15rem; margin-bottom: 12px; }
	.cat-lead { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: start; }
	.cat-lead .news-thumb { aspect-ratio: 3 / 2; }
	.cat-lead-title { margin: 0; font-size: 1rem; }
	.cat-list { margin-top: 12px; }
	.cat-list li { padding: 11px 0; font-size: .97rem; }
}

/* Footer gọn: tiêu đề viết hoa + vạch vàng, liên kết có mũi tên */
.site-footer { padding-top: 44px; }
.footer-grid { grid-template-columns: 1.3fr 1fr 0.9fr 1.2fr; gap: 32px; }
.footer-about p { font-size: .92rem; line-height: 1.6; margin-bottom: 10px; }
.footer-contact { color: #dfe4f5; }
.footer-title { position: relative; margin: 6px 0 18px; padding-bottom: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--yellow); }
.footer-list li { margin-bottom: 9px; }
.footer-list a { position: relative; display: inline-block; padding-left: 16px; font-size: .93rem; }
.footer-list a::before { content: "›"; position: absolute; left: 0; top: -1px; color: var(--yellow); font-weight: 700; font-size: 1.05em; transition: transform .15s; }
.footer-list a:hover::before { transform: translateX(3px); }
.footer-list--dark a { padding-left: 0; }
.footer-list--dark a::before { content: none; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: start; margin-top: 32px; }
.footer-copy { margin: 0; white-space: nowrap; color: #b9c3e3; font-size: .85rem; }
.footer-legal { margin: 0; font-size: .8rem; line-height: 1.6; color: #8f9bc2; text-align: right; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
	.footer-about { grid-column: 1 / -1; }
	.footer-bottom { grid-template-columns: 1fr; }
	.footer-legal { text-align: left; }
}

/* ==========================================================================
   Căn đều 2 bên cho văn bản bài viết (trừ bảng) & ảnh căn giữa chuẩn
   ========================================================================== */
.entry-content p,
.entry-content li,
.entry-content blockquote,
.answer-box p,
.archive-desc,
.archive-long p,
.news-sapo,
.author-bio {
	text-align: justify;
	text-justify: inter-word;
}
/* Không căn đều trong bảng, tiêu đề, mục lục, câu hỏi FAQ, chú thích ảnh */
.entry-content table p, .entry-content table li, .entry-content td, .entry-content th,
.entry-content .toc li,
.entry-content figcaption, .entry-content .wp-caption-text { text-align: left; }
.entry-content .wp-caption-text, .entry-content figcaption { text-align: center; }

/* Ảnh trong bài: không khung, không viền, không nền */
.entry-content img,
.entry-content figure,
.entry-content .wp-caption { border: 0; box-shadow: none; background: none; padding: 0; border-radius: 0; }
.entry-content figure, .entry-content .wp-caption { max-width: 100% !important; margin: 1.4em 0; }

/* Ảnh / khối ảnh căn giữa */
.entry-content img.aligncenter,
.entry-content .aligncenter > img,
.entry-content .wp-caption.aligncenter img,
.entry-content figure.aligncenter img { display: block; margin-left: auto; margin-right: auto; }
.entry-content .aligncenter,
.entry-content .wp-caption.aligncenter,
.entry-content figure.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.entry-content p:has(> img.aligncenter:only-child) { text-align: center; }

/* Chú thích ảnh: căn giữa, in nghiêng */
.entry-content figcaption,
.entry-content .wp-caption-text {
	margin: 8px 0 0;
	font-size: .9rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--ink-3);
	text-align: center;
}

/* ==========================================================================
   Trang công cụ tra cứu phạt nguội (template riêng)
   ========================================================================== */
.tool-hero2 { background: var(--navy); color: #e6eaf7; padding-block: 22px 32px; }
.tool-hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; align-items: center; }
.tool-hero2 .breadcrumb, .tool-hero2 .breadcrumb a { color: #b9c3e3; }
.tool-hero2 h1 { color: #fff; margin: 4px 0 12px; }
.tool-hero2-lede { font-size: 1.02rem; line-height: 1.6; margin: 0; }
.tool-hero2 .hero-points { margin-top: 14px; }
.tool-hero2-meta { margin: 16px 0 0; font-size: .85rem; color: #b9c3e3; }
.tool-hero2-meta a { color: var(--yellow); }
.tool-card--hero { margin: 0; padding: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); border: 0; }
.tool-card--hero .tool-card-title { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tool-card--hero .lookup-row { flex-direction: column; }
.tool-card--hero .lookup-submit { min-height: 52px; width: 100%; }
.tool-card--hero .tool-disclaimer { margin-top: 10px; }

.tool-tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.tool-tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tool-tabs .container::-webkit-scrollbar { display: none; }
.tool-tabs a { flex: none; padding: 14px 12px; font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.tool-tabs a:hover { color: var(--navy); border-bottom-color: var(--yellow); }

.tool-layout .sidebar { align-self: stretch; }
.side-toc { position: sticky; top: 84px; }
.side-toc-list { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: t; }
.side-toc-list li { counter-increment: t; border-top: 1px solid var(--line-2); }
.side-toc-list li:first-child { border-top: 0; }
.side-toc-list a { display: grid; grid-template-columns: 22px 1fr; gap: 4px; padding: 8px 0; font-size: .9rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.side-toc-list a::before { content: counter(t); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-toc-list a:hover, .side-toc-list a.is-active { color: var(--navy); font-weight: 500; }
.side-toc-list a.is-active::before { color: var(--navy); }
.side-toc-cta { min-height: 42px; }

/* Thẻ 3 cách tra cứu */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.method { border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.method:first-child { border-top-color: var(--navy); }
.method h3 { margin: 4px 0 8px !important; font-size: 1.02rem; }
.method ul { margin: 0 0 10px !important; padding-left: 1.1em !important; font-size: .9rem; }
.method li { text-align: left !important; margin-bottom: 3px !important; }
.method-tag { margin: 0 !important; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left !important; }
.method-tag--main { color: var(--good); }
.method-link { margin: auto 0 0 !important; font-size: .9rem; font-weight: 500; text-align: left !important; }

/* 3 trạng thái kết quả */
.state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.state-grid .state { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.state-grid .state b { font-size: .95rem; }
.state--bad { background: var(--bad-soft); border-color: #f1c4bf !important; }
.state--bad > b { color: var(--bad); }
.state--neutral { background: var(--navy-100); }
.state--good { background: var(--good-soft); border-color: #bfe0cc !important; }
.state--good > b { color: var(--good); }
.state--neutral > b { color: var(--navy); }
.state--warn { background: var(--warn-soft); border-color: #f0dbb0 !important; }
.state--warn > b { color: var(--warn); }

/* Mốc thời gian */
.timeline { list-style: none; padding: 0 !important; margin: 16px 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 30px 10px 0 0 !important; margin: 0 !important; counter-increment: tl; text-align: left !important; }
.timeline li::before { content: counter(tl); position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 10px; left: 22px; right: 0; height: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-size: .9rem; color: var(--navy); }
.timeline span { display: block; font-size: .85rem; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }

/* Biểu đồ thanh lỗi phổ biến */
.bars { display: grid; gap: 8px; margin: 16px 0; }
.bar { display: grid; grid-template-columns: 250px minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: .9rem; }
.bar-label { color: var(--ink); }
.bar-track { height: 10px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 2px; }
.bar:nth-child(-n+3) .bar-fill { background: var(--bad); }
.bars--plain .bar-fill { background: var(--navy) !important; }
.bar-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-2); }

/* Cảnh báo lừa đảo */
.warn-box { border: 1px solid #f1c4bf; border-left: 4px solid var(--bad); background: var(--bad-soft); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0; }
.warn-box p:last-child { margin-bottom: 0; }

/* Khối danh sách mới & nguồn */
.tool-section { margin-top: 2.2em; }
.list-links { list-style: none; margin: 10px 0 0; padding: 0; }
.list-links li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed #cfd4de; }
.list-links li:last-child { border-bottom: 1px dashed #cfd4de; }
.list-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.list-links a:hover { color: var(--navy); text-decoration: underline; }
.list-links time { flex: none; font-size: .82rem; color: var(--ink-3); padding-top: 2px; }
.list-more { margin-top: 10px; font-weight: 500; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
.source-grid > div { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.source-grid > div:nth-child(1) { border-right: 1px solid var(--line-2); }
.source-grid .source-wide { grid-column: 1 / -1; }
.source-grid > div:last-child { border-bottom: 0; }
.source-grid dt { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.source-grid dd { margin: 0; font-size: .93rem; line-height: 1.6; }

@media (max-width: 900px) {
	.tool-hero2-grid { grid-template-columns: 1fr; gap: 20px; }
	.tool-hero2 .hero-points, .tool-hero2-meta { display: none; }
	.method-grid, .state-grid { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: 1fr; }
	.timeline li { padding: 0 0 14px 34px !important; }
	.timeline li::after { top: 22px; left: 10px; right: auto; width: 2px; height: calc(100% - 22px); }
	.bar { grid-template-columns: 1fr 48px; gap: 4px 10px; }
	.bar-label { grid-column: 1 / -1; }
	.source-grid { grid-template-columns: 1fr; }
	.source-grid > div:nth-child(1) { border-right: 0; }
	.side-toc { position: static; }
}

/* ==========================================================================
   Bình luận
   ========================================================================== */
.comments { margin-top: 2.4em; border-top: 2px solid var(--navy); padding-top: 18px; }
.comments-title { font-size: 1.25rem; margin: 0 0 12px; }
.comments-title span { color: var(--ink-3); font-weight: 400; }
.comment-respond { margin-bottom: 24px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes, .comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form .comment-notes { font-size: .85rem; color: var(--ink-3); }
.comment-form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; color: var(--ink-2); }
.comment-form .req { color: var(--bad); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: .95rem; background: var(--surface); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-form .form-submit { display: flex; justify-content: flex-end; }
.comment-form .submit { min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff; font: 500 .95rem var(--font); cursor: pointer; }
.comment-form .submit:hover { background: var(--navy-900); }
.comment-form-cookies-consent, .comment-form-url { display: none !important; }
#reply-title { font-size: 1rem; margin: 0 0 8px; grid-column: 1 / -1; }
#cancel-comment-reply-link { font-size: .85rem; margin-left: 8px; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 46px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.cmt-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.comment-list > .cmt:first-child > .cmt-body { border-top: 0; }
.cmt-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; background: hsl(var(--h) 45% 42%); }
.cmt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cmt-name { font-weight: 500; color: var(--ink); }
.cmt-badge { font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--navy-100); padding: 1px 6px; border-radius: var(--radius-sm); }
.cmt-date { font-size: .8rem; color: var(--ink-3); }
.cmt-text p { margin: 4px 0 0; font-size: .95rem; line-height: 1.6; text-align: left; }
.cmt-pending { margin: 4px 0 0; font-size: .82rem; color: var(--warn); }
.cmt-reply { margin-top: 4px; }
.cmt-reply a { font-size: .82rem; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.cmt-reply a:hover { color: var(--navy); }
.bypostauthor > .cmt-body .cmt-name { color: var(--navy); }

@media (max-width: 640px) {
	.comment-form { grid-template-columns: 1fr; }
	.comment-form .form-submit { justify-content: stretch; }
	.comment-form .submit { width: 100%; }
	.comment-list .children { margin-left: 18px; }
}

/* Neo mục lục không bị header dính che */
.entry-content h2[id], .tool-section[id], #comments, #cong-cu { scroll-margin-top: 84px; }

/* Trang công cụ: 1 cột rộng 1000px, thanh mục dính dưới header thay cho mục lục cột phải */
.tool-layout { padding-block: 24px 40px; }
.tool-layout > .entry { max-width: none; background: transparent; border: 0; padding: 0; border-radius: 0; }
.tool-tabs { position: sticky; top: 64px; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.tool-tabs a.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.entry-content h2[id], .tool-section[id], #comments { scroll-margin-top: 124px; }
@media (max-width: 1040px) { .tool-tabs { top: 64px; } }

.entry-content h3[id] { scroll-margin-top: 124px; }

/* Kết quả tra cứu: dải riêng dưới hero, không nằm trong ô nhập */
.result { color: var(--ink); }
.tool-result { background: var(--soft); padding-block: 24px; scroll-margin-top: 64px; }
.tool-result[hidden] { display: none; }
.tool-result .result { background: #fff; padding: 20px 22px; }
.tool-result .result--found { border-color: #f1b8b3; border-left: 4px solid var(--bad); }
.tool-result .result--none { border-left: 4px solid var(--good); }
.tool-result .result--warn { border-left: 4px solid var(--warn); }
.tool-result .result-head { font-size: 1.1rem; margin: 0 0 6px; }
.tool-result .result-head strong { font-size: 1.2rem; letter-spacing: .03em; }
.tool-result .result-sub { margin: 0 0 4px; }
.tool-result .vio { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; }
.tool-result .vio > p:first-child { margin: 0 0 8px; }
.tool-result .vio dl { grid-template-columns: 130px 1fr; gap: 6px 14px; }
.tool-result .vio { padding: 16px 18px; }
.vio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.vio-plate { font-family: Roboto, sans-serif; font-weight: 500; font-size: 1.1rem; color: var(--navy); letter-spacing: .02em; }
.vio-n { font-size: .85rem; color: var(--ink-3); }
.vio-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 24px; }
.vio-cols--handle { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.vio-cols h4 { font-family: Roboto, sans-serif; font-weight: 500; font-size: .95rem; margin: 0 0 6px; color: var(--ink); }
.vio-cols section { min-width: 0; }
.vio-cols dl { grid-template-columns: 110px 1fr !important; gap: 4px 10px !important; }
.vio-empty { margin: 0; font-size: .9rem; color: var(--ink-3); }
.vio-note { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 640px) { .vio-cols { grid-template-columns: 1fr; gap: 12px; } .vio-h-blank { display: none; } .vio-cols dl { grid-template-columns: 1fr !important; } .vio-cols dt { margin-top: 4px; } }
.tool-result .result-next { margin: 16px 0 0; }

/* Bài danh sách phạt nguội: bảng chữ lấy từ kho dữ liệu */
.vne-list-section { margin-top: 28px; }
.vne-list-source { font-size: .92rem; color: var(--ink-2); background: var(--soft); border-left: 3px solid var(--navy); padding: 8px 12px; text-align: left; }
.vne-list-top { margin: 4px 0 14px; }
.vne-list-find { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 10px; }
.vne-list-find label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 500; }
.vne-list-find input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; min-width: 220px; }
.vne-list-count { font-size: .88rem; color: var(--ink-3); }
table.vne-list { width: 100%; font-size: .9rem; text-align: left; }
table.vne-list td, table.vne-list th { text-align: left; vertical-align: top; }
table.vne-list .vne-plate { font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
table.vne-list .vne-time { white-space: nowrap; }
table.vne-list tr:target, table.vne-list tr.is-hit { background: #fff4c2; }
table.vne-list tr[id] { scroll-margin-top: 90px; }
.vne-list-ref { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 18px 0; }
.vne-list-images { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.vne-list-images summary { cursor: pointer; font-weight: 500; color: var(--navy); }
.vne-list-images img { display: block; margin: 12px auto; }
.tool-result .result-link { margin: 10px 0 2px; font-weight: 500; }

/* Footer: khi tắt bớt cột trong Cài đặt Footer, các cột còn lại dàn đều */
.footer-grid--3 { grid-template-columns: 1.3fr 1fr 1.2fr; }
.footer-grid--2 { grid-template-columns: 1.3fr 1fr; }
.footer-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 900px) { .footer-grid--3, .footer-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid--3, .footer-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Bài danh bạ Phòng CSGT 34 tỉnh (shortcode vne_csgt_lien_he) */
.vne-contacts-nav { font-size: .9rem; line-height: 1.9; color: var(--ink-3); }
.vne-contacts h3 { margin-top: 28px; scroll-margin-top: 72px; }
.vne-contact { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: .95rem; }
.vne-contact dt { color: var(--ink-3); }
.vne-contact dd { margin: 0; }
.vne-contact-note { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 520px) { .vne-contact { grid-template-columns: 1fr; gap: 2px; } .vne-contact dt { margin-top: 8px; } }

/* Trang tỉnh: panel danh bạ Phòng CSGT */
.tinh-contact { border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin: 10px 0 4px; }
.tinh-contact-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.tinh-contact-name { font-weight: 500; font-size: 1.05rem; color: var(--navy); line-height: 1.35; }
.tinh-contact-tel { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; background: var(--navy); color: #fff; border-radius: var(--radius); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.tinh-contact-tel:hover { background: var(--navy-900); color: #fff; }
.tinh-contact-tel svg { flex: 0 0 auto; opacity: .9; }
.tinh-contact-rows { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.tinh-contact-rows > div { display: contents; }
.tinh-contact-rows dt { color: var(--ink-3); margin: 0; }
.tinh-contact-rows dd { margin: 0; color: var(--ink); }
.tinh-contact-more { margin: 12px 0 0; font-size: .92rem; }
@media (max-width: 520px) { .tinh-contact-rows { grid-template-columns: 1fr; gap: 2px; } .tinh-contact-rows dt { margin-top: 8px; } }

/* Trang tỉnh: địa điểm lắp camera */
.tinh-cam { margin: 8px 0 4px; }
.tinh-cam-group { margin: 0 0 14px; }
.tinh-cam-group h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 500; color: var(--navy); scroll-margin-top: 72px; }
.tinh-cam-group ul { margin: 0; padding-left: 20px; }
.tinh-cam-group li { margin: 3px 0; font-size: .95rem; color: var(--ink); }
.tinh-cam-src { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }
.tinh-cam-src a { color: var(--ink-3); text-decoration: underline; }
.tinh-cam-official { border-left: 3px solid var(--good); background: var(--good-soft); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0 14px; }
.tinh-cam-official h3 { margin-top: 0; }
.tinh-cam-official p { margin: 4px 0 8px; font-size: .95rem; color: var(--ink); }
.tinh-cam-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; background: var(--good); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 500; letter-spacing: .02em; }
.tinh-cam-note { font-size: .93rem; color: var(--ink-2); margin: 10px 0 16px; }
.tinh-cam-sub { margin: 4px 0; font-size: 1rem; font-weight: 500; color: var(--navy); scroll-margin-top: 72px; }
.tinh-cam-ref-note { font-size: .9rem; color: var(--ink-3); margin: 0 0 8px; }
.tinh-cam-group h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }

/* Trang tỉnh: khung nội dung nổi trên nền */
body.tinh-framed { background: var(--soft); }
body.tinh-framed .entry { background: #fff; box-shadow: var(--shadow); }

/* Trang tỉnh: panel công cụ tra cứu */
.tinh-tool-desc { margin: 0 0 14px; color: var(--ink-2); font-size: .97rem; }
.tinh-tool { background: linear-gradient(180deg, var(--navy-100), var(--soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 6px 0 10px; }
.tinh-tool-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 500; font-size: 1rem; color: var(--navy); }
.tinh-tool-label::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--navy); -webkit-mask: var(--icon-search) center/contain no-repeat; mask: var(--icon-search) center/contain no-repeat; }
.tinh-tool .lookup-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tinh-tool .lookup-submit::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon-search) center/contain no-repeat; mask: var(--icon-search) center/contain no-repeat; }
.tinh-more { font-size: .92rem; color: var(--ink-2); margin: 10px 0 0; }
.tinh-intro { font-size: 1rem; color: var(--ink); margin: 0 0 1em; line-height: 1.65; }

/* Khối liên kết tra cứu theo tỉnh (trang chủ, thống kê, cuối trang tỉnh) */
.tinh-links { margin: 1.6em 0 .4em; }
.tinh-links h2 { margin: 0 0 .5em; }
.tinh-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; }
.tinh-links li { border-bottom: 1px solid var(--line-2); }
.tinh-links a { display: block; padding: 9px 2px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.tinh-links a:hover { color: var(--navy); }
.section--tinh-links { padding-block: 8px 4px; }

/* Trang tỉnh: hướng dẫn nộp phạt theo bước */
.tinh-steps { counter-reset: step; list-style: none; margin: 14px 0; padding: 0; }
.tinh-steps li { position: relative; padding: 3px 0 16px 44px; margin: 0; font-size: .97rem; line-height: 1.6; }
.tinh-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.tinh-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }

/* Trang Thống kê phạt nguội */
.stats-lede { font-size: 1.02rem; color: var(--ink-2); }
.bar-sub { color: var(--ink-3); font-weight: 400; font-size: .85em; }
.stats-hours { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin: 16px 0 4px; padding: 0 2px; }
.stats-hour { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.stats-hour-bar { width: 100%; max-width: 22px; background: var(--navy); border-radius: 2px 2px 0 0; min-height: 2px; }
.stats-hour-h { font-size: .72rem; color: var(--ink-3); }
.stats-loc { margin: 12px 0; padding: 0; list-style: none; counter-reset: loc; }
.stats-loc li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.stats-loc li::before { counter-increment: loc; content: counter(loc); flex: 0 0 22px; color: var(--navy); font-weight: 700; }
.stats-loc li > span { flex: 1; }
.stats-loc-pr { color: var(--ink-3); font-size: .88rem; }
.stats-loc b { color: var(--navy); }
.stats-method { font-size: .95rem; color: var(--ink-2); }
.stats-method li { margin: 6px 0; }
.stats-cta { margin-top: 20px; padding: 14px 18px; background: var(--soft); border-radius: var(--radius); font-weight: 500; }
@media (max-width: 520px) { .stats-hours { height: 110px; gap: 1px; } .stats-hour-h { font-size: .6rem; } }

/* Bảng biển tái phạm trên trang Thống kê */
.stats-repeat { margin: 12px 0; }
.stats-search { width: 100%; max-width: 360px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 12px; }
.stats-search:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--navy); }
.stats-table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.stats-table th, .stats-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.stats-table th { color: var(--ink-3); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { color: var(--ink-3); width: 40px; }
.stats-plate { white-space: nowrap; font-weight: 500; color: var(--navy); }
.col-times { text-align: right; white-space: nowrap; }
.stats-times { display: inline-block; font-size: .8rem; font-weight: 500; color: #fff; background: var(--bad); border-radius: 10px; padding: 1px 9px; }
.stats-empty { color: var(--ink-3); padding: 10px 0; }
.button-ghost { margin-top: 12px; background: none; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 500; padding: 8px 18px; border-radius: var(--radius-sm); cursor: pointer; font-size: .92rem; }
.button-ghost:hover { background: var(--navy); color: #fff; }
@media (max-width: 520px) { .stats-table { font-size: .86rem; } .stats-table th, .stats-table td { padding: 8px 7px; } }

/* FAQ dạng accordion (kích hoạt bằng JS, thêm class .vne-faq--acc) */
.vne-faq--acc { border-top: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.vne-faq--acc .faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.vne-faq--acc .faq-item.is-open { border-color: #e6c3bf; }
.vne-faq--acc .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; padding: 16px 18px; font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.vne-faq--acc .faq-q:hover { color: var(--navy); }
.vne-faq--acc .faq-q:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.vne-faq--acc .faq-ic { flex: none; width: 22px; height: 22px; position: relative; }
.vne-faq--acc .faq-ic::before, .vne-faq--acc .faq-ic::after { content: ""; position: absolute; background: var(--bad); border-radius: 2px; transition: opacity .18s, transform .18s; }
.vne-faq--acc .faq-ic::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.vne-faq--acc .faq-ic::after { left: 10px; top: 3px; bottom: 3px; width: 2px; }
.vne-faq--acc .faq-item.is-open .faq-ic::after { opacity: 0; transform: rotate(90deg); }
.vne-faq--acc .faq-a { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.vne-faq--acc .faq-item.is-open .faq-a { max-height: 600px; }
.vne-faq--acc .faq-a-inner { padding: 4px 18px 18px; border-top: 1px solid var(--line-2); }
.vne-faq--acc .faq-a-inner > *:first-child { margin-top: 12px; }
.vne-faq--acc .faq-a p { margin: 0 0 10px; color: var(--ink-2); }
.vne-faq--acc .faq-a p:last-child { margin-bottom: 0; }

/* Thẻ đối chiếu có vòng đếm ngược trước khi hiện kết quả */
.lookup-wait { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lookup-wait-ring { position: relative; flex: none; width: 80px; height: 80px; }
.lookup-wait-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.lookup-wait-ring .lw-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.lookup-wait-ring .lw-fg { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.lookup-wait-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Roboto, sans-serif; font-weight: 500; font-size: 1.5rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.lookup-wait-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.lookup-wait-sub { margin: 0; font-size: .92rem; color: var(--ink-3); line-height: 1.55; }
@media (max-width: 520px) { .lookup-wait { gap: 14px; padding: 18px 16px; } .lookup-wait-ring, .lookup-wait-ring svg { width: 64px; height: 64px; } .lookup-wait-num { font-size: 1.25rem; } }

/* Khối ngày cập nhật + cảnh báo luật thay đổi (bài giải đáp, hướng dẫn) */
.vne-update-note { margin-top: 24px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--navy); border-radius: var(--radius-sm); font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
