﻿/* ======================================================================================
   style.css - TaxAZ (taxaz.vn 2.0) - Template Guest AZ Framework V4
   TemplateID D8B1B1D4-1F24-436C-B84C-342B4551EDA7 - phien AZUI 10/11/2026
   Chuan [WEB-GUEST] 3.5 : tien to az-template-*, mot tep, @layer. Nhan dien «to bieu mau ke toan» cua web 1.0 :
   giay / muc / xanh ky / do dau ; Be Vietnam Pro (chu), Noto Serif (dong mau so), JetBrains Mono (so).
   Sang + toi (prefers-color-scheme, data-theme) ; 390 px khong cuon ngang.
   ====================================================================================== */
@layer az-template.base, az-template.layout, az-template.components, az-template.pages;

@layer az-template.base {
	:root {
		/* he mau SoftAZ (logo dang ky nhan hieu 576322) - kinglux-web du-an/AZ-UI/brand/README.md */
		--paper: #f4f7fb; --sheet: #ffffff; --ink: #0f1e33; --ink-soft: #4b5b70; --rule: #d6dee8; --rule-strong: #b7c3d1;
		--sign: #005fb0; --on-sign: #ffffff; --sign-wash: #e6f0fa; --link: #0057a3;
		--seal: #087a40; --seal-wash: #e3f6ec; --danger: #c62f36; --danger-wash: #fbe8e9;
		--brand-blue: #006cc6; --brand-teal: #069096; --brand-green: #0cba60;
		--brand-grad: linear-gradient(45deg, #006cc6 0%, #069096 52%, #0cba60 100%);
		--ok: #087a40; --warn: #8f5400; --warn-wash: #faefdc;
		--shadow: 0 1px 0 rgba(15, 30, 51, .04), 0 18px 40px -18px rgba(15, 30, 51, .26);
		--f-sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
		--f-form: "Noto Serif", "Times New Roman", Georgia, serif;
		--f-num: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
		--wrap: 1160px; --gut: 16px; --radius: 6px;
		color-scheme: light;
	}
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
			--paper: #0b1522; --sheet: #121e2d; --ink: #e6edf5; --ink-soft: #9fb0c4; --rule: #22324a; --rule-strong: #34465f;
			--sign: #5ba7f0; --on-sign: #0b1522; --sign-wash: #13283f; --link: #5ba7f0; --seal: #4fd38f; --seal-wash: #10301f;
			--danger: #ff7b80; --danger-wash: #3b1b20; --brand-blue: #5ba7f0; --brand-teal: #46c5c0; --brand-green: #4fd38f;
			--ok: #4fd38f; --warn: #e7ad55; --warn-wash: #33260f;
			--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
			color-scheme: dark;
		}
	}
	:root[data-theme="dark"] {
		--paper: #0b1522; --sheet: #121e2d; --ink: #e6edf5; --ink-soft: #9fb0c4; --rule: #22324a; --rule-strong: #34465f;
		--sign: #5ba7f0; --on-sign: #0b1522; --sign-wash: #13283f; --link: #5ba7f0; --seal: #4fd38f; --seal-wash: #10301f;
		--danger: #ff7b80; --danger-wash: #3b1b20; --brand-blue: #5ba7f0; --brand-teal: #46c5c0; --brand-green: #4fd38f;
		--ok: #4fd38f; --warn: #e7ad55; --warn-wash: #33260f;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
	*, *::before, *::after { box-sizing: border-box; }
	html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
	body.az-template { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--f-sans); overflow-x: hidden; }
	.az-template h1, .az-template h2, .az-template h3, .az-template p, .az-template ul, .az-template ol, .az-template figure { margin: 0; }
	.az-template ul, .az-template ol { padding: 0; list-style: none; }
	.az-template a { color: var(--link); text-underline-offset: .18em; }
	.az-template a:hover { color: var(--ink); }
	.az-template img { max-width: 100%; height: auto; }
	.az-template table { border-collapse: collapse; width: 100%; }
	.az-template :focus-visible { outline: 2px solid var(--sign); outline-offset: 2px; }
	.az-template summary { cursor: pointer; }
	@media (prefers-reduced-motion: reduce) { .az-template * { transition: none !important; animation: none !important; } }
}

@layer az-template.layout {
	.az-template-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
	.az-template-narrow { max-width: 820px; }
	.az-template-skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--sign); color: var(--on-sign); z-index: 50; }
	.az-template-skip:focus { left: 8px; }
	.az-template-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

	.az-template-strip { border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-soft); }
	.az-template-strip-in { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; }
	.az-template-strip-sales { font-family: var(--f-form); font-style: italic; }
	.az-template-strip-sales a { font-style: normal; }
	.az-template-strip-links { display: flex; gap: 22px; }
	.az-template-strip-links a { color: var(--ink-soft); text-decoration: none; }

	.az-template-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
	.az-template-header-in { min-height: 58px; display: flex; align-items: center; gap: 6px 24px; }
	.az-template-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink) !important; text-decoration: none; }
	.az-template-brand-seal { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-grad); color: #ffffff; font-size: 10px; letter-spacing: 0; }
	.az-template-brand-logo { width: 30px; height: 30px; object-fit: contain; }
	.az-template-brand-product { color: var(--brand-blue); }
	.az-template-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-left: auto; font-size: 14.7px; }
	.az-template-nav a { color: var(--ink); text-decoration: none; padding: 11px 0; }
	.az-template-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-teal); }
	.az-template-nav .az-template-nav-cta { padding: 8px 16px; color: var(--on-sign); }
	.az-template-navbtn { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font-size: 20px; }
	@media (max-width: 860px) {
		.az-template-navbtn { display: inline-grid; place-items: center; }
		.az-template-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 16px; background: var(--paper); border-bottom: 1px solid var(--rule); }
		.az-template-nav.is-open { display: flex; }
		.az-template-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
		.az-template-nav .az-template-nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
		.az-template-header-in { position: relative; }
	}

	.az-template-main { min-height: 50vh; }
	.az-template-sec { padding: 56px 0; }
	.az-template-sec-sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
	.az-template-sec-sign { background: var(--sign-wash); border-top: 3px solid transparent; border-image: var(--brand-grad) 1; }
	.az-template-pagehead { padding: 28px 0 32px; }
	.az-template-mt { margin-top: 32px !important; }

	.az-template-footer { margin-top: 0; border-top: 1px solid var(--rule); background: var(--sheet); font-size: 14.5px; padding-bottom: 72px; }
	.az-template-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 24px; }
	.az-template-footer-h { font-weight: 700; margin-bottom: 8px !important; }
	.az-template-footer li { margin: 4px 0; }
	.az-template-footer a { color: var(--ink); }
	.az-template-legal { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 24px; color: var(--ink-soft); font-size: 13.5px; }
	.az-template-legal p { margin: 2px 0; }
	@media (max-width: 860px) { .az-template-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (max-width: 520px) { .az-template-footer-grid { grid-template-columns: 1fr; } }

	.az-template-dock { display: none; }
	@media (max-width: 860px) {
		.az-template-dock { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sheet); border-top: 1px solid var(--rule-strong); padding-bottom: env(safe-area-inset-bottom); }
		.az-template-dock a { min-height: 52px; display: grid; place-items: center; text-decoration: none; color: var(--ink); font-weight: 600; border-right: 1px solid var(--rule); }
		.az-template-dock .az-template-dock-main { background: var(--sign); color: var(--on-sign); border-right: 0; }
	}
	@media (min-width: 861px) { .az-template-footer { padding-bottom: 0; } }
}

@layer az-template.components {
	.az-template-h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
	.az-template-h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -.015em; font-weight: 800; margin-bottom: 20px !important; }
	.az-template-h3 { font-size: 17.5px; line-height: 1.35; font-weight: 700; margin-bottom: 6px !important; }
	.az-template-h3 a { color: var(--ink); text-decoration: none; }
	.az-template-h3 a:hover { color: var(--sign); text-decoration: underline; }
	.az-template-lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin-top: 12px !important; }
	.az-template-kicker, .az-template-form-code { font-family: var(--f-form); font-style: italic; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px !important; }
	.az-template-num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
	.az-template-muted { color: var(--ink-soft); }
	.az-template-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px !important; }
	.az-template-r { text-align: right; }
	.az-template-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }

	.az-template-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent; font: 600 15px/1.2 var(--f-sans); text-decoration: none; cursor: pointer; }
	.az-template-btn-sign { background: var(--sign); color: var(--on-sign) !important; }
	.az-template-btn-sign:hover { filter: brightness(1.08); }
	.az-template-btn-line { background: transparent; border-color: var(--rule-strong); color: var(--ink) !important; }
	.az-template-btn-line:hover { border-color: var(--sign); }
	.az-template-btn[disabled], .az-template-btn.is-busy { opacity: .6; cursor: progress; }

	.az-template-cards { display: grid; gap: 16px; }
	.az-template-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.az-template-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.az-template-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	@media (max-width: 960px) { .az-template-cards-3, .az-template-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (max-width: 600px) { .az-template-cards-2, .az-template-cards-3, .az-template-cards-4 { grid-template-columns: 1fr; } }
	.az-template-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; min-width: 0; }
	.az-template-sec-sheet .az-template-card { background: var(--paper); }
	.az-template-card-flat { box-shadow: none; }
	.az-template-card-t { font-weight: 700; margin-bottom: 6px !important; }
	.az-template-card p + p { margin-top: 8px; }
	.az-template-list li { position: relative; padding-left: 16px; margin: 4px 0; }
	.az-template-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1px; background: var(--ink-soft); }
	ol.az-template-list { counter-reset: azl; }
	ol.az-template-list li { counter-increment: azl; padding-left: 24px; }
	ol.az-template-list li::before { content: counter(azl) "."; background: none; width: auto; height: auto; top: 0; font: 12.5px/1.65 var(--f-num); color: var(--ink-soft); }
	.az-template-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--warn-wash); color: var(--warn); font-size: 12.5px; font-weight: 600; }

	.az-template-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: azs; }
	.az-template-steps > li { counter-increment: azs; border-top: 2px solid var(--ink); padding-top: 12px; }
	.az-template-steps > li::before { content: counter(azs, decimal-leading-zero); display: block; font: 600 13px var(--f-num); color: var(--sign); margin-bottom: 4px; }
	.az-template-steps-compact { grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
	@media (max-width: 860px) { .az-template-steps { grid-template-columns: 1fr; } }

	.az-template-tablewrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
	.az-template-table th, .az-template-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 14.5px; }
	.az-template-table thead th { font-weight: 700; background: var(--paper); white-space: nowrap; }
	.az-template-table tbody tr:last-child td, .az-template-table tbody tr:last-child th { border-bottom: 0; }

	.az-template-voucher { position: relative; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
	.az-template-voucher-title { font-family: var(--f-form); font-weight: 600; font-size: 18px; text-align: center; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
	.az-template-voucher table { font-size: 14px; }
	.az-template-voucher th, .az-template-voucher td { padding: 6px 8px; border-bottom: 1px dashed var(--rule-strong); text-align: left; }
	.az-template-voucher th { font-weight: 600; color: var(--ink-soft); font-size: 12.5px; }
	.az-template-seal { position: absolute; right: 16px; bottom: 34px; transform: rotate(-9deg); border: 2px solid var(--seal); color: var(--seal); padding: 2px 10px; border-radius: 4px; font: 700 13px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

	.az-template-faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
	.az-template-faq summary { font-weight: 600; min-height: 32px; }
	.az-template-faq details p { margin-top: 8px; color: var(--ink-soft); }

	.az-template-crumbs { padding-top: 16px; font-size: 13.5px; }
	.az-template-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
	.az-template-crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--ink-soft); }
	.az-template-crumbs a { color: var(--ink-soft); }

	.az-template-refs li { margin: 6px 0; padding-left: 16px; position: relative; }
	.az-template-refs li::before { content: "§"; position: absolute; left: 0; color: var(--sign); }

	.az-template-field { display: grid; gap: 4px; margin-bottom: 12px; }
	.az-template-label { font-size: 14px; font-weight: 600; }
	.az-template-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--sheet); color: var(--ink); font: 400 16px/1.4 var(--f-sans); }
	textarea.az-template-input { min-height: 96px; resize: vertical; }
	.az-template-input.is-invalid { border-color: var(--danger); background: var(--danger-wash); }
	.az-template-form-msg { min-height: 1.5em; margin-top: 10px !important; font-size: 14px; }
	.az-template-form-msg.is-error { color: var(--danger); }
	.az-template-form-done { background: var(--sheet); border: 1px solid var(--ok); border-radius: var(--radius); padding: 18px; }
}

@layer az-template.pages {
	.az-template-hero { padding: 48px 0 56px; }
	.az-template-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
	@media (max-width: 860px) { .az-template-hero-grid { grid-template-columns: 1fr; gap: 28px; } .az-template-hero { padding: 28px 0 40px; } }

	.az-template-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
	.az-template-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.az-template-stats li { padding: 18px 12px; border-left: 1px solid var(--rule); display: grid; gap: 2px; }
	.az-template-stats li:first-child { border-left: 0; }
	.az-template-stat-v { font-size: 28px; font-weight: 600; color: var(--brand-blue); }
	.az-template-stat-l { font-size: 13.5px; color: var(--ink-soft); }
	@media (max-width: 860px) { .az-template-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .az-template-stats li:nth-child(odd) { border-left: 0; } .az-template-stats li { border-top: 1px solid var(--rule); } }

	.az-template-trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
	.az-template-form-short { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
	@media (max-width: 860px) { .az-template-trial { grid-template-columns: 1fr; } }
	.az-template-cta { text-align: center; }
	.az-template-cta .az-template-lead { margin-left: auto; margin-right: auto; }
	.az-template-cta .az-template-actions { justify-content: center; }

	.az-template-price { font-size: 24px; font-weight: 700; margin: 6px 0 10px !important; }
	.az-template-band-box { margin-top: 16px; padding: 18px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
	.az-template-limits li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.az-template-voucher-wide { max-width: 860px; }

	.az-template-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; padding-bottom: 56px; }
	.az-template-contact > div > * + * { margin-top: 16px; }
	.az-template-formbox .az-template-form { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
	@media (max-width: 860px) { .az-template-contact { grid-template-columns: 1fr; } }

	.az-template-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
	.az-template-chips a { flex: none; padding: 6px 14px; border: 1px solid var(--rule-strong); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: 14px; }
	.az-template-chips a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
	.az-template-search { display: flex; gap: 8px; margin-top: 18px; max-width: 520px; }
	.az-template-hubgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-bottom: 56px; }
	.az-template-hubgrid section + section { margin-top: 32px; }
	.az-template-hubside > * + * { margin-top: 16px; }
	@media (max-width: 960px) { .az-template-hubgrid { grid-template-columns: 1fr; } }
	.az-template-postlist li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
	.az-template-cal li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; }
	.az-template-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

	.az-template-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 16px; padding-bottom: 56px; }
	.az-template-article-main > * + * { margin-top: 28px; }
	.az-template-article-side > * { position: sticky; top: 76px; }
	.az-template-article-side > * + * { margin-top: 16px; position: static; }
	@media (max-width: 960px) { .az-template-article { grid-template-columns: 1fr; } .az-template-article-side > * { position: static; } }
	.az-template-summary { background: var(--sign-wash); border-left: 3px solid var(--sign); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
	.az-template-ontaxaz { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
	.az-template-toc, .az-template-sidecta { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; font-size: 14.5px; }
	.az-template-toc ol li { margin: 6px 0; }
	.az-template-sidecta p + p { margin-top: 10px; }

	.az-template-prose { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
	.az-template-prose > * + * { margin-top: 1em !important; }
	.az-template-prose h2 { font-size: 24px; line-height: 1.3; margin-top: 1.6em !important; }
	.az-template-prose h3 { font-size: 19px; margin-top: 1.4em !important; }
	.az-template-prose ul { list-style: disc; padding-left: 1.4em; }
	.az-template-prose ol { list-style: decimal; padding-left: 1.4em; }
	.az-template-prose li + li { margin-top: .35em; }
	.az-template-prose table { display: block; overflow-x: auto; font-size: 15px; }
	.az-template-prose th, .az-template-prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
	.az-template-prose thead th { background: var(--paper); }
	.az-template-prose blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--rule-strong); color: var(--ink-soft); }
	.az-template-prose code { font-family: var(--f-num); font-size: .92em; }
}
