/*
Theme Name: Quảng Ngãi.si
Description: Sàn xây dựng – nội thất Quảng Ngãi: hỏi AI bằng chữ hoặc ảnh, tìm đơn vị thi công, cửa hàng vật liệu gần nhất.
Version: 1.0.0
Author: quangngaisi.com
Text Domain: qnsi
*/

/* Bố cục: một cột giữa như ứng dụng điện thoại; ô hỏi là trung tâm. Màu biển Quảng Ngãi + vàng mũ bảo hộ công trường. */
:root {
	--bg: #eef3f4;
	--surface: #ffffff;
	--sunk: #e3ebed;
	--ink: #0d2a33;
	--ink-2: #4a646e;
	--line: #d2dee1;
	--sea: #0b4f63;
	--sea-2: #0f6f86;
	--sea-tint: #d7e8ec;
	--hi: #ffc21a;
	--hi-2: #f2ab00;
	--hi-ink: #2a2000;
	--ok: #1d7a4a;
	--zalo: #0068ff;
	--danger: #b3261e;
	--font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "Roboto Mono", ui-monospace, monospace;
	--r: 16px;
	--wrap: 1080px;
	--shadow: 0 1px 2px rgba(13, 42, 51, .06), 0 8px 24px rgba(13, 42, 51, .07);
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #08171c; --surface: #10242b; --sunk: #0c1e24; --ink: #e6f0f2; --ink-2: #9db3ba; --line: #23404a;
		--sea: #6cc3d8; --sea-2: #8fd6e6; --sea-tint: #12323b; --ok: #54c48a; --danger: #ff8a80;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-2); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; margin: 0; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 1.2; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-hi { background: var(--hi); color: var(--hi-ink); }
.btn-hi:hover { background: var(--hi-2); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Đầu trang ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; font: 800 22px/1 var(--font); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo i { font-style: normal; background: var(--hi); color: var(--hi-ink); padding: 3px 7px 5px; border-radius: 8px; margin-left: 3px; font-size: 18px; transform: rotate(-3deg); display: inline-block; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.lk { color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.top nav a.lk:hover { color: var(--ink); background: var(--sunk); }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sea); color: var(--bg); font-weight: 800; font-size: 14px; }
@media (max-width: 640px) { .top nav a.lk { display: none; } .top nav .btn-line { display: none; } }

/* ---------- Trang chủ ---------- */
.hero { position: relative; text-align: center; padding-block: 44px 28px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--sea-tint) 1px, transparent 1px), linear-gradient(90deg, var(--sea-tint) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 30%, transparent 75%); opacity: .7; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sea); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(32px, 6.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 14px; }
.hero h1 mark { background: linear-gradient(transparent 60%, var(--hi) 60%); color: inherit; padding: 0 4px; }
.hero > .wrap > p { color: var(--ink-2); margin: 0 auto 28px; max-width: 46ch; font-size: 16.5px; }

.ask { max-width: 740px; margin: 0 auto; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; padding: 10px 10px 10px 18px; box-shadow: 6px 6px 0 var(--ink); text-align: left; }
.ask-row { display: flex; gap: 8px; align-items: flex-end; }
.ask textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; resize: none; font: 500 17px/1.45 var(--font); padding: 9px 0; min-height: 54px; max-height: 180px; }
.ask textarea::placeholder { color: var(--ink-2); opacity: .9; }
.ic { width: 50px; height: 50px; flex: none; border-radius: 15px; border: 0; display: grid; place-items: center; position: relative; }
.ic svg { width: 24px; height: 24px; }
.ic-photo { background: var(--sunk); color: var(--ink); }
.ic-photo:hover { background: var(--sea-tint); }
.ic-photo .lock { position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.ic-photo .lock svg { width: 11px; height: 11px; }
.ic-send { background: var(--hi); color: var(--hi-ink); }
.ic-send:disabled { opacity: .5; cursor: progress; }
.ask-img { display: flex; align-items: center; gap: 10px; padding: 8px 0 4px; }
.ask-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.ask-img button { border: 0; background: var(--sunk); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.hint { font-size: 13.5px; color: var(--ink-2); margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; margin: 20px auto 0; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Hội thoại & kết quả ---------- */
.thread { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; padding-top: 8px; }
.msg-u { justify-self: end; max-width: 85%; background: var(--ink); color: var(--bg); border-radius: 18px 18px 4px 18px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.msg-u img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.msg-ai { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.msg-ai .by { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sea); margin-bottom: 8px; }
.msg-ai .by i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; background: var(--hi); color: var(--hi-ink); display: grid; place-items: center; font-size: 13px; }
.msg-ai .txt p { margin: 0 0 8px; }
.msg-ai .txt ul { margin: 0 0 8px; padding-left: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { background: var(--sunk); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); animation: tp 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.res-h { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 6px 2px -4px; }
.list { display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; box-shadow: var(--shadow); }
.card.pro { border: 2px solid var(--hi); }
.card .th { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--sea-tint); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--sea); }
.card .th img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-2); }
.meta .st { color: var(--ink); font-weight: 700; }
.why { font-size: 13.5px; margin: 6px 0 0; color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acts a, .acts button { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 13px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.acts .call { background: var(--ok); border-color: var(--ok); color: #fff; }
.acts .zalo { background: var(--zalo); border-color: var(--zalo); color: #fff; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; vertical-align: 2px; margin-left: 6px; }
.badge-pro { background: var(--hi); color: var(--hi-ink); }
.badge-san { background: var(--sea-tint); color: var(--sea); }
.src { font-size: 12px; color: var(--ink-2); margin: 2px 2px 0; }
.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); color: var(--ink); border-radius: 14px; padding: 12px 14px; }

/* Mã màu gợi ý */
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.code-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.code-h { display: flex; align-items: center; gap: 8px; }
.code-h small { color: var(--ink-2); margin-left: auto; font-size: 12px; }
.sw { width: 34px; height: 34px; border-radius: 9px; flex: none; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.code-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; text-decoration: none; color: var(--ink); }
a.code-row:hover { background: var(--sunk); }
.code-row .cn { display: grid; min-width: 0; }
.code-row .cn b { font-size: 14px; }
.code-row .cn small { color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-row em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }

/* ---------- Khối trang chủ ---------- */
.sec { padding-block: 44px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-h h1, .sec-h h2 { font-size: 22px; font-weight: 800; }
.sec-h a { font-size: 14px; font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px; text-align: left; display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.cat .ci { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sea-tint); color: var(--sea); }
.cat .ci svg { width: 24px; height: 24px; }
.cat b { font-size: 15px; display: block; line-height: 1.3; }
.cat small { color: var(--ink-2); font-size: 12.5px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 12px; }
.step b { display: block; margin-bottom: 4px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sellers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--r); padding: 26px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.feat { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--sea); color: #fff; border-radius: 22px; overflow: hidden; }
.feat > div { padding: 26px; }
.feat h3 { font-size: 24px; font-weight: 800; margin: 10px 0 8px; color: #fff; }
.feat p { margin: 0 0 18px; color: rgba(255, 255, 255, .86); }
.tag { display: inline-block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; padding: 4px 9px; border-radius: 7px; background: var(--hi); color: var(--hi-ink); }
.feat .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: rgba(0, 0, 0, .18); align-content: center; }
.feat .stats b { display: block; font-size: 26px; font-weight: 800; color: var(--hi); line-height: 1.1; }
.feat .stats small { color: rgba(255, 255, 255, .82); }
@media (prefers-color-scheme: dark) { .feat { background: #0d3a47; } }
.cta { margin-top: 44px; background: var(--hi); color: var(--hi-ink); border-radius: 22px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta h2 { font-size: 24px; font-weight: 800; color: var(--hi-ink); }
.cta p { margin: 6px 0 0; }

/* ---------- Biểu mẫu (đăng nhập, đăng ký, đăng bán) ---------- */
.page { padding-block: 32px 0; }
.panel { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.panel.wide { max-width: 720px; }
.panel h1, .panel .nl-h { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.panel > p.lead { color: var(--ink-2); margin: 0 0 20px; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-weight: 600; font-size: 14px; }
.f input, .f select, .f textarea { width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: 0; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--sea-2); background: var(--surface); }
.f small { color: var(--ink-2); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: 16px; }
.ok-box { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--ink-2); background: var(--bg); cursor: pointer; }
.drop b { color: var(--ink); display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ---------- Cửa sổ yêu cầu đăng nhập ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 23, 28, .6); display: grid; place-items: center; padding: 16px; }
.modal .panel { position: relative; text-align: center; }
.modal .x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sunk); font-size: 22px; line-height: 1; }
.modal .big { width: 64px; height: 64px; border-radius: 18px; background: var(--hi); color: var(--hi-ink); display: grid; place-items: center; margin: 0 auto 14px; }
.modal .big svg { width: 32px; height: 32px; }
.modal .row { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Hồ sơ người bán ---------- */
.prof-cover { height: 200px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--sea), var(--sea-2)); margin-top: 16px; }
.prof-cover img { width: 100%; height: 100%; object-fit: cover; }
.prof-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -48px; padding-inline: 18px; flex-wrap: wrap; }
.prof-av { width: 96px; height: 96px; border-radius: 24px; background: var(--surface); border: 4px solid var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 28px; color: var(--sea); flex: none; overflow: hidden; }
.prof-head h1 { font-size: 26px; font-weight: 800; }
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.box h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gal img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Trang ngành nghề ---------- */
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.tr-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.tr-head .ci { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--hi); color: var(--hi-ink); flex: none; }
.tr-head .ci svg { width: 30px; height: 30px; }
.tr-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 6px; }
.tr-head p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.tr-jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.tr-jump a { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trade { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; scroll-margin-top: 80px; display: flex; flex-direction: column; }
.trade h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.trade p { margin: 0 0 8px; color: var(--ink-2); }
.trade .when { color: var(--ink); font-size: 14px; }
.trade ul { margin: 0 0 6px; padding-left: 18px; font-size: 14px; }
.trade .acts { margin-top: auto; padding-top: 10px; }
@media (max-width: 760px) { .trades { grid-template-columns: 1fr; } }

.tr-shops { list-style: none; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 14px; }
.tr-shops a { font-weight: 600; color: var(--ink); }
.tr-shops small { color: var(--ink-2); }
.unv { margin: 14px 18px 0; font-size: 13.5px; background: var(--sunk); border-radius: 12px; padding: 10px 14px; color: var(--ink-2); }

/* ---------- Bài viết ---------- */
.post { max-width: 760px; margin: 0 auto; }
.post h1 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; margin-bottom: 8px; }
.post-meta { color: var(--ink-2); font-size: 13.5px; margin: 0 0 20px; }
.entry { font-size: 16.5px; line-height: 1.7; }
.entry h2 { font-size: 23px; font-weight: 800; margin: 32px 0 10px; }
.entry h3 { font-size: 19px; font-weight: 800; margin: 26px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.entry p { margin: 0 0 12px; }
.entry ul { padding-left: 20px; margin: 0 0 12px; }
.entry .top-facts { list-style: none; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; display: grid; gap: 4px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); display: grid; gap: 6px; align-content: start; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card b { font-size: 16px; line-height: 1.35; }
.post-card span { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Chân trang ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding-block: 24px 40px; font-size: 13.5px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--ink-2); }

@media (max-width: 860px) {
	.cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.feat, .prof-grid { grid-template-columns: 1fr; }
	.sellers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.steps { grid-template-columns: 1fr; }
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ask { box-shadow: 4px 4px 0 var(--ink); padding-left: 14px; }
	.two { grid-template-columns: 1fr; }
	.panel { padding: 22px 18px; }
	.card { grid-template-columns: 64px minmax(0, 1fr); }
	.card .th { width: 64px; height: 64px; }
	.gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Mục lục, danh sách nhanh, bài liên quan */
.entry h2, .entry h3 { scroll-margin-top: 84px; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--sea); text-decoration: underline; }
.toc { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 10px; padding: 14px 18px; margin: 18px 0 24px; font-size: 15px; }
.toc strong { display: block; font-size: 16px; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc ol ol { margin: 4px 0 6px; padding-left: 4px; font-size: 14px; list-style: none; }
.toc li { margin: 3px 0; }
.toc a { color: var(--sea); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.entry .top-quick { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 34px; }
.entry .top-quick a { font-weight: 700; color: var(--ink); }
.rel { margin-top: 32px; padding-top: 18px; border-top: 2px solid var(--line); }
.rel h2 { font-size: 20px; margin: 0 0 8px; }
.rel ul { padding-left: 20px; margin: 0 0 10px; line-height: 1.6; }
.rel a { color: var(--sea); }
.res-more { margin: 6px 0 12px; font-size: 14px; }
.res-more a { color: var(--sea); font-weight: 600; }
.cn-group { margin-top: 26px; scroll-margin-top: 84px; }
.cn-group h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.cn-group h2 a { color: var(--ink); }

/* ===== Công cụ tìm mã màu ===== */
.lk-mau { color: var(--ink) !important; font-weight: 700; }
.hero-mau { padding-bottom: 36px; }
.hero-ai { border-top: 1px solid var(--line); background: var(--surface); }
.hero-ai::before { display: none; }
.hero-h2 { font-size: clamp(24px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.hero-h2 mark { background: linear-gradient(transparent 60%, var(--hi) 60%); color: inherit; padding: 0 4px; }
.mt-head { text-align: center; margin: 4px auto 22px; max-width: 760px; }
.mt-head h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.mt-head h1 mark { background: linear-gradient(transparent 60%, var(--hi) 60%); color: inherit; padding: 0 4px; }
.mt-head p { color: var(--ink-2); }
.mt { max-width: 980px; margin: 0 auto; text-align: left; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 14px; }
.mt-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mt-tabs button { border: 0; background: var(--sunk); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.mt-tabs button.on { background: var(--ink); color: var(--bg); }
.mt-drop { display: grid; place-items: center; gap: 4px; text-align: center; border: 2px dashed var(--line); border-radius: 18px; padding: 38px 16px; cursor: pointer; background: var(--bg); }
.mt-drop:hover { border-color: var(--sea); }
.mt-drop b { font-size: 18px; background: var(--hi); color: var(--hi-ink); border-radius: 999px; padding: 10px 20px; }
.mt-drop span { color: var(--ink-2); font-size: 14px; }
.mt-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .mt-work { grid-template-columns: minmax(0, 1fr); } }
.mt-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--sunk); line-height: 0; }
.mt-stage canvas { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: manipulation; }
.mt-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #000, 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.mt-loupe { position: absolute; width: 44px; height: 44px; margin: -60px 0 0 8px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none; }
.mt-side { display: grid; gap: 10px; }
.mt-step { font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; margin: 0; }
.mt-step b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; }
.mt-picked { display: flex; gap: 10px; align-items: center; }
.mt-picked .sw { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--sunk) 0 25%, var(--surface) 0 50%) 0 0/12px 12px; }
.mt-picked b { font-family: var(--mono); font-size: 17px; display: block; }
.mt-picked small { color: var(--ink-2); font-size: 12.5px; }
.mt-wb { border: 1px dashed var(--line); background: transparent; color: var(--ink-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; text-align: left; }
.mt-wb.on { border-color: var(--sea); color: var(--sea); background: var(--sea-tint); }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-chips button { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; }
.mt-chips button.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.mt-chips.mt-sm button { font-size: 12.5px; padding: 5px 10px; }
.mt-new { border: 0; background: none; color: var(--ink-2); font-size: 13px; text-decoration: underline; justify-self: center; }
.mt-note { color: var(--ink-2); font-size: 12.5px; margin: 10px 0 0; }
.mt-search { display: flex; gap: 8px; }
.mt-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 500 16px var(--font); background: var(--bg); color: var(--ink); }
.mt-out:not(:empty) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mt-busy { color: var(--ink-2); }
.mt-res-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mt-res-h .sw { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mt-card { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; position: relative; min-width: 0; }
.mt-card:hover { border-color: var(--ink); }
.mt-sw { flex: none; width: 58px; height: 58px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.mt-t { display: grid; min-width: 0; line-height: 1.3; }
.mt-t small { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-t b { font-size: 14.5px; overflow-wrap: anywhere; }
.mt-t span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-card em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
.mt-card em.g1 { background: #d8f2e3; color: #11613a; }
.mt-card em.g2 { background: #fff1c7; color: #6b4e00; }
.mt-card em.g3 { background: var(--sunk); color: var(--ink-2); }
.mt-shops { display: grid; gap: 8px; margin-top: 16px; }
.mt-shops h3 { font-size: 16px; font-weight: 800; }
.mt-shop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mt-shop a:first-child { font-weight: 700; color: var(--ink); }
.mt-shop small { display: block; color: var(--ink-2); font-size: 12.5px; }
.mt-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mt-brands a { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.mt-brands a:hover { border-color: var(--ink); }
.mt-brands small { color: var(--ink-2); font-size: 12.5px; }
.mt-faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.mt-faq h3 { font-size: 16.5px; margin: 16px 0 4px; }
.mt-faq p { color: var(--ink-2); max-width: 70ch; }
.mc-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; margin: 6px 0 10px; }
@media (max-width: 600px) { .mc-head { grid-template-columns: minmax(0, 1fr); } }
.mc-sw { display: block; width: 100%; max-width: 180px; aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mc-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.mc-head .kv { margin-bottom: 12px; }
.mc-h { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.mono { font-family: var(--mono); }
.mt-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.mt-pages a, .mt-pages span { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.mt-pages span { background: var(--ink); color: var(--bg); }
.feat-mini { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: var(--r); background: var(--sea-tint); }
@media (max-width: 640px) { .top nav a.lk.lk-mau { display: inline-block; font-size: 13.5px; } }
.mt-card:has(em) .mt-t { padding-right: 58px; }
.mt-out { scroll-margin-top: 80px; }
.dh-h { font-size: 17px; font-weight: 800; margin: 14px 0 6px; }
.dh-list { margin: 0 0 16px; padding-left: 20px; line-height: 1.7; }
.mt-box { position: absolute; border: 2px solid #fff; outline: 2px solid #000; box-shadow: 0 0 0 9999px rgba(0,0,0,.28); border-radius: 4px; pointer-events: none; }
.mt-stage canvas { touch-action: none; }
.mt-kd { display: block; color: var(--sea) !important; font-weight: 700; }
div.mt-card { flex-wrap: wrap; }
.mt-main { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; flex: 1; min-width: 0; }
.mt-hang { position: absolute; right: 8px; bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--sea); text-decoration: none; }
.mt-hang:hover { text-decoration: underline; }
div.mt-card .mt-t { padding-bottom: 14px; }
.mt-zoom { width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line); flex: none; background: var(--sunk); image-rendering: auto; }
.mt-picked > span { display: grid; gap: 2px; min-width: 0; }
.mt-picked .mt-kd { font-family: var(--font); font-size: 16px; }
.mt-cc { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.mt-cc i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); background: var(--sunk); }
.sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sp-item { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.sp-item:hover { border-color: var(--ink); }
.sp-item b { font-size: 14px; }
.sp-item small { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.sp-item span { color: var(--ink-2); font-size: 12.5px; }
