/* ==========================================================================
   FixBox – phong cách báo in
   Mốc màn hình: < 768 mobile · 768–1199 tablet · ≥ 1200 desktop
   ========================================================================== */

/* ---------- Token ---------- */
:root {
	--fx-gutter: 16px;
	--fx-max: 1200px;
	--fx-pad: max(var(--fx-gutter), calc((100% - var(--fx-max)) / 2));
	--fx-ph-a: #E6DDC9;
	--fx-ph-b: #EDE5D4;
	--fx-video-bg: #D9CFB9;
	--fx-band: #26221E;
	--fx-band-text: #F3EDE0;
	--fx-band-muted: #D8CFBE;
	--fx-band-border: transparent;
	--fx-code-text: #EDE5D4;
	--c-paper: var(--wp--preset--color--paper, #F3EDE0);
	--c-paper-alt: var(--wp--preset--color--paper-alt, #EAE2D0);
	--c-card: var(--wp--preset--color--card, #FBF7EE);
	--c-field: var(--wp--preset--color--field, #FFFDF8);
	--c-ink: var(--wp--preset--color--ink, #26221E);
	--c-ink-2: var(--wp--preset--color--ink-2, #4A433B);
	--c-muted: var(--wp--preset--color--muted, #625A50);
	--c-line: var(--wp--preset--color--line, #CFC5B2);
	--c-line-strong: var(--wp--preset--color--line-strong, #A89E8A);
	--c-accent: var(--wp--preset--color--accent, #A6402A);
	--c-on-accent: var(--wp--preset--color--on-accent, #FBF7EE);
	--c-success: var(--wp--preset--color--success, #3E5C45);
	--f-serif: var(--wp--preset--font-family--serif, Lora, Georgia, serif);
	--f-sans: var(--wp--preset--font-family--sans, 'Be Vietnam Pro', system-ui, sans-serif);
	--f-mono: var(--wp--preset--font-family--mono, 'JetBrains Mono', ui-monospace, monospace);
	color-scheme: light;
}
@media (min-width: 768px) { :root { --fx-gutter: 32px; } }
@media (min-width: 1200px) { :root { --fx-gutter: 40px; } }

/* ---------- Chế độ tối: nền nâu than, chữ ngà ---------- */
:root[data-theme="dark"] {
	--wp--preset--color--paper: #1E1A16;
	--wp--preset--color--paper-alt: #25201B;
	--wp--preset--color--card: #2A2520;
	--wp--preset--color--field: #25201B;
	--wp--preset--color--ink: #EDE5D4;
	--wp--preset--color--ink-2: #C9BFAE;
	--wp--preset--color--muted: #A89E8A;
	--wp--preset--color--line: #3D362F;
	--wp--preset--color--line-strong: #5A5147;
	--wp--preset--color--accent: #D0674E;
	--wp--preset--color--on-accent: #1A1612;
	--wp--preset--color--success: #8DB896;
	--fx-ph-a: #2A2520;
	--fx-ph-b: #25201B;
	--fx-video-bg: #3D362F;
	--fx-band: #2A2520;
	--fx-band-text: #EDE5D4;
	--fx-band-muted: #C9BFAE;
	--fx-band-border: #3D362F;
	--fx-code-text: #EDE5D4;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--paper: #1E1A16;
		--wp--preset--color--paper-alt: #25201B;
		--wp--preset--color--card: #2A2520;
		--wp--preset--color--field: #25201B;
		--wp--preset--color--ink: #EDE5D4;
		--wp--preset--color--ink-2: #C9BFAE;
		--wp--preset--color--muted: #A89E8A;
		--wp--preset--color--line: #3D362F;
		--wp--preset--color--line-strong: #5A5147;
		--wp--preset--color--accent: #D0674E;
		--wp--preset--color--on-accent: #1A1612;
		--wp--preset--color--success: #8DB896;
		--fx-ph-a: #2A2520;
		--fx-ph-b: #25201B;
		--fx-video-bg: #3D362F;
		--fx-band: #2A2520;
		--fx-band-text: #EDE5D4;
		--fx-band-muted: #C9BFAE;
		--fx-band-border: #3D362F;
		color-scheme: dark;
	}
}

/* ---------- Nền tảng ---------- */
body { background: var(--c-paper); color: var(--c-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
button { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fx-grow { flex-grow: 1; }

.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main, .fx-main { flex: 1 0 auto; }
.fx-main > *, .fx-home > * { margin-block: 0; }
.fx-wrap { padding-inline: var(--fx-pad); box-sizing: border-box; }

@media (max-width: 767px) { .fx-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .fx-only-mobile { display: none !important; } }

/* Cuộn ngang (dải chủ đề, dải video) */
.fx-scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fx-scroll-x::-webkit-scrollbar { display: none; }
.fx-scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* Nhãn chủ đề, nhãn nhỏ */
.fx-kicker { font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.fx-kicker--accent { color: var(--c-accent); font-size: 13px; }
.fx-label { margin: 0 0 8px; font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); }
.fx-more { font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.fx-more:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--c-accent); }

/* Ảnh + khung giữ chỗ sọc chéo */
.fx-media { display: block; overflow: hidden; background: var(--fx-ph-b); }
.fx-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-ph { width: 100%; height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; background: repeating-linear-gradient(135deg, var(--fx-ph-a) 0 12px, var(--fx-ph-b) 12px 24px); border: 1px solid var(--c-line); font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); }

/* ---------- Nút ---------- */
.fx-btn, .fx-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	box-sizing: border-box; height: 48px; padding: 0 24px; border: 0; border-radius: 24px;
	font-family: var(--f-sans); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
	cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.fx-btn--accent { background: var(--c-accent); color: var(--c-on-accent); }
.fx-btn--accent:hover, .fx-btn--accent:focus-visible { background: color-mix(in srgb, var(--c-accent) 85%, var(--c-ink)); color: var(--c-on-accent); }
.fx-btn--outline, .fx-pill { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink); }
.fx-btn--outline:hover, .fx-pill:hover { background: var(--c-ink); color: var(--c-paper); }
.fx-btn--ink { background: var(--c-ink); color: var(--c-card); }
.fx-btn--ink:hover { background: var(--c-accent); color: var(--c-on-accent); }
.fx-btn--square { border-radius: 0; }
.fx-btn--sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 22px; }
.fx-btn.is-loading { opacity: .7; pointer-events: none; }
.fx-pill { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 22px; }
.fx-iconbtn { position: relative; width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--c-ink); cursor: pointer; }
.fx-iconbtn:hover { color: var(--c-accent); }

/* Nút sáng/tối: hiện mặt trăng ở chế độ sáng, mặt trời ở chế độ tối */
[data-fx-theme-toggle] .fx-icon--sun { display: none; }
:root[data-theme="dark"] [data-fx-theme-toggle] .fx-icon--sun { display: block; }
:root[data-theme="dark"] [data-fx-theme-toggle] .fx-icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) [data-fx-theme-toggle] .fx-icon--sun { display: block; }
	:root:not([data-theme="light"]) [data-fx-theme-toggle] .fx-icon--moon { display: none; }
}

/* Nút lưu bài */
.fx-save { color: var(--c-muted); }
.fx-save[aria-pressed="true"] { color: var(--c-accent); }
.fx-save[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Header ---------- */
.fx-header { position: relative; z-index: 20; background: var(--c-paper); }
.fx-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--c-line); box-sizing: border-box; }
.fx-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); min-width: 0; }
.fx-brand:hover { color: var(--c-ink); }
.fx-brand__logo { display: block; width: 38px; height: 38px; max-width: none; border-radius: 50%; flex-shrink: 0; }
/* Cỡ chữ đặt ở .fx-brand__text; tên = 1em, slogan tính theo tỉ lệ nên hai dòng luôn dài bằng nhau. */
.fx-brand__text { display: flex; flex-direction: column; gap: .25em; min-width: 0; font-size: 16px; }
.fx-brand__name { font-family: var(--f-sans); font-weight: 700; font-size: 1em; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
/* Slogan dưới tên: giãn chữ để dài bằng dòng "FIXBOX TEAM" */
.fx-brand__tag { font-family: var(--f-sans); font-weight: 600; font-size: .526em; line-height: 1; letter-spacing: .245em; text-transform: uppercase; white-space: nowrap; color: var(--c-accent); }
.fx-nav { display: none; }
.fx-nav ul, .fx-menu ul { list-style: none; margin: 0; padding: 0; }
.fx-nav ul { display: flex; align-items: center; gap: 36px; }
.fx-nav a { font-family: var(--f-sans); font-size: 15px; font-weight: 500; color: var(--c-ink); padding: 12px 0; white-space: nowrap; }
.fx-nav a.is-current, .fx-nav a:hover { color: var(--c-accent); }
.fx-header__actions { display: flex; align-items: center; }
.fx-header__yt { display: none; margin-left: 8px; }
.fx-theme-toggle.fx-hide-mobile { display: none; }
.fx-header__burger .fx-icon--close { display: none; }
.fx-header__burger[aria-expanded="true"] .fx-icon--menu { display: none; }
.fx-header__burger[aria-expanded="true"] .fx-icon--close { display: block; }

.fx-cart__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--f-sans); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.fx-menu { display: flex; flex-direction: column; padding: 8px 20px 20px; background: var(--c-card); border-bottom: 1px solid var(--c-ink); }
.fx-menu a:not(.fx-pill) { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); font-size: 17px; font-weight: 600; color: var(--c-ink); }
.fx-menu a.is-current { color: var(--c-accent); }
.fx-menu__signin { width: 100%; margin-top: 16px; }
.fx-pill--block { width: 100%; height: 48px; margin-top: 16px; border-radius: 24px; font-size: 15px; }
.fx-menu__theme { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 8px; border: 0; background: transparent; font-family: var(--f-sans); font-size: 14px; font-weight: 500; color: var(--c-muted); cursor: pointer; }

.fx-search { padding: 16px var(--fx-pad); background: var(--c-card); border-bottom: 1px solid var(--c-line); }
.fx-search form { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; }
.fx-search input { flex: 1; min-width: 0; height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--c-line-strong); background: var(--c-field); color: var(--c-ink); font-family: var(--f-sans); font-size: 16px; border-radius: 0; }
.fx-search .fx-btn { border-radius: 0; }

/* Chọn ngôn ngữ: lá cờ + danh sách thả xuống */
.fx-lang { position: relative; display: inline-block; margin-left: 4px; }
.fx-lang.fx-hide-mobile { display: none; }
.fx-lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px; border: 0; background: none; color: var(--c-ink); cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.fx-lang__btn::-webkit-details-marker { display: none; }
.fx-lang__btn:hover { color: var(--c-accent); }
.fx-lang__chev { transition: transform .15s; }
.fx-lang[open] .fx-lang__chev { transform: rotate(180deg); }
.fx-flag { display: block; flex-shrink: 0; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.fx-lang__list { position: absolute; right: 0; top: 100%; z-index: 40; min-width: 180px; margin: 4px 0 0; padding: 6px 0; list-style: none; background: var(--c-card); border: 1px solid var(--c-line); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.fx-lang__list a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-family: var(--f-sans); font-size: 14px; font-weight: 500; color: var(--c-ink); }
.fx-lang__list a:hover { background: var(--c-paper-alt); color: var(--c-accent); }
.fx-lang__list a[aria-current] { font-weight: 700; }
.fx-lang__list a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--c-accent); }
.fx-lang__name { font-family: var(--f-sans); font-size: 15px; font-weight: 600; }
.fx-lang--menu { align-self: center; margin: 12px 0 0; }
.fx-lang--menu .fx-lang__list { right: auto; left: 50%; transform: translateX(-50%); }
@media (min-width: 768px) { .fx-lang.fx-hide-mobile { display: inline-block; } }

/* Tài khoản trên header */
.fx-header__signin { display: none; margin-left: 4px; padding: 12px 8px; white-space: nowrap; font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--c-ink); }
.fx-header__signin:hover { color: var(--c-accent); }
.fx-account-btn__img { display: block; width: 32px; height: 32px; border-radius: 50%; }
.fx-account { position: absolute; right: 12px; top: 100%; z-index: 30; min-width: 200px; padding: 8px 0; background: var(--c-card); border: 1px solid var(--c-line); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font-family: var(--f-sans); }
.fx-account__name { margin: 0; padding: 10px 18px 12px; border-bottom: 1px solid var(--c-line); font-size: 14px; font-weight: 700; color: var(--c-ink); }
.fx-account a { display: block; padding: 10px 18px; font-size: 14px; color: var(--c-ink); }
.fx-account a:hover { background: var(--c-paper-alt); color: var(--c-accent); }
@media (min-width: 768px) {
	.fx-header__signin { display: inline-block; }
	.fx-account { right: var(--fx-pad); }
}

.fx-header--checkout .fx-header__bar { padding: 0 16px; }
.fx-header__back { font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: var(--c-ink); padding: 12px 0; }

@media (min-width: 768px) {
	.fx-header__bar { height: 84px; padding: 0 var(--fx-pad); }
	.fx-brand { gap: 14px; }
	.fx-brand__logo { width: 48px; height: 48px; }
	.fx-brand__text { font-size: 19px; }
	.fx-header__actions { gap: 8px; }
}
@media (min-width: 1024px) {
	.fx-nav { display: block; }
	.fx-nav ul { gap: 28px; }
	.fx-header__burger, .fx-menu { display: none !important; }
	.fx-theme-toggle.fx-hide-mobile { display: inline-flex; }
}
@media (min-width: 1200px) {
	.fx-nav ul { gap: 32px; }
}
/* Nút "Kênh YouTube" cần chỗ: chỉ hiện khi đủ rộng (link YouTube vẫn có ở menu mobile và chân trang). */
@media (min-width: 1536px) {
	.fx-header__yt { display: inline-flex; }
}

/* ---------- Masthead (kẻ đôi) ---------- */
.fx-masthead { padding-top: 20px; }
.fx-masthead::before { content: ""; display: block; height: 3px; border-top: 3px solid var(--c-ink); border-bottom: 1px solid var(--c-ink); }
.fx-masthead__line { gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-ink); font-family: var(--f-sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.fx-masthead__line p { margin: 0; }
@media (min-width: 768px) {
	.fx-masthead { padding-top: 40px; }
	.fx-masthead__line { padding: 12px 0; font-size: 13px; }
}

/* ---------- Dự án nổi bật ---------- */
.fx-featured { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 40px; }
.fx-featured__media { height: 230px; }
.fx-featured__body { display: flex; flex-direction: column; gap: 16px; }
.fx-featured__title { margin: 0; font-size: 31px; line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.fx-featured__title a { color: inherit; }
.fx-featured__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--c-ink-2); }
.fx-featured__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-featured__actions .fx-btn:only-child { grid-column: 1 / -1; }

.fx-stats { display: grid; grid-template-columns: repeat(var(--fx-cols, 3), minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); }
.fx-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; }
.fx-stats > div + div { padding-left: 12px; border-left: 1px solid var(--c-line); }
.fx-stats dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fx-stats dd { margin: 0; font-size: 14px; font-weight: 600; }

@media (min-width: 768px) {
	.fx-featured { gap: 32px; padding-top: 48px; padding-bottom: 56px; }
	.fx-featured__media { height: auto; aspect-ratio: 16 / 9; }
	.fx-featured__body { gap: 20px; }
	.fx-featured__title { font-size: 42px; line-height: 1.12; }
	.fx-featured__lead { font-size: 20px; line-height: 1.65; }
	.fx-featured__actions { display: flex; gap: 12px; }
	.fx-stats > div { gap: 4px; padding: 14px 0; }
	.fx-stats > div + div { padding-left: 20px; }
	.fx-stats dt { font-size: 12px; letter-spacing: .08em; }
	.fx-stats dd { font-size: 15px; }
}
@media (min-width: 1200px) {
	.fx-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
	.fx-featured__media { height: 440px; aspect-ratio: auto; }
	.fx-featured__title { font-size: 50px; }
}

/* ---------- Tiêu đề khối ---------- */
.fx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fx-section-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.fx-section-head p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--c-ink-2); }
.fx-section-head--intro { align-items: flex-end; }
@media (min-width: 768px) {
	.fx-section-head h2 { font-size: 30px; }
	.fx-section-head p { margin-top: 10px; font-size: 18px; }
}

/* ---------- Bài mới + sidebar ---------- */
.fx-news { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
.fx-latest { display: contents; }
.fx-news .fx-section-head { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--c-ink); }
.fx-news .fx-section-head .fx-more { font-size: 13px; }
.fx-chips { grid-column: 1 / -1; gap: 8px; margin: 16px calc(-1 * var(--fx-gutter)) 0; padding: 0 var(--fx-gutter) 4px; }
.fx-chip { height: 44px; padding: 0 18px; border: 1px solid var(--c-line-strong); border-radius: 22px; background: transparent; color: var(--c-ink); font-family: var(--f-sans); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.fx-chip:hover { border-color: var(--c-ink); }
.fx-chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.fx-rows { grid-column: 1; display: flex; flex-direction: column; }
.fx-empty { margin: 0; padding: 32px 0; font-size: 17px; color: var(--c-muted); }

.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "kicker kicker" "title media" "meta meta"; column-gap: 14px; row-gap: 8px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.fx-row__kicker { grid-area: kicker; font-size: 11px; }
.fx-row__kicker a { color: inherit; }
.fx-row__title { grid-area: title; margin: 0; font-size: 19px; line-height: 1.32; font-weight: 700; }
.fx-row__title a { color: var(--c-ink); }
.fx-row__title a:hover { color: var(--c-accent); }
.fx-row__excerpt { grid-area: excerpt; display: none; margin: 0; font-size: 17px; line-height: 1.6; color: var(--c-ink-2); }
.fx-row__meta { grid-area: meta; display: flex; align-items: center; gap: 14px; margin: -8px 0 -12px; font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); }
.fx-row__meta .fx-save { margin-right: -12px; }
.fx-flag { display: inline-flex; align-items: center; gap: 5px; }
.fx-row__media { grid-area: media; width: 84px; height: 84px; }
.fx-row--simple .fx-row__media:empty { display: none; }

.fx-sidebar { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }
.fx-sidebar > * { margin: 0 !important; }

.fx-newsletter { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; background: var(--c-card); border: 1px solid var(--c-line); }
.fx-newsletter__title { margin: 0; font-size: 21px; font-weight: 700; }
.fx-newsletter p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--c-ink-2); }
.fx-newsletter label { font-family: var(--f-sans); font-size: 13px; font-weight: 600; }
.fx-newsletter input[type="email"] { height: 48px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: 0; background: var(--c-field); color: var(--c-ink); font-family: var(--f-sans); font-size: 16px; }
.fx-newsletter .fx-btn { width: 100%; }
.fx-newsletter__msg { font-family: var(--f-sans); font-size: 14px !important; color: var(--c-ink) !important; }
.fx-newsletter__msg.is-error { color: var(--c-accent) !important; }
.fx-wrap-inset { margin-inline: var(--fx-gutter) !important; }

.fx-start { display: flex; flex-direction: column; gap: 4px; }
.fx-start .fx-label { font-size: 12px; margin-bottom: 6px; }
.fx-start__item { padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 17px; line-height: 1.45; color: var(--c-ink); }
.fx-side-community { display: flex; flex-direction: column; gap: 12px; }
.fx-side-community > * { margin: 0; }
.fx-side-community .fx-label { margin: 0; }
.fx-side-community p { font-size: 16px; line-height: 1.6; color: var(--c-ink-2); }
.fx-community { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-sans); font-size: 15px; font-weight: 600; }
.fx-community a { color: var(--c-accent); }
.fx-community a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
	.fx-news { padding-bottom: 72px; }
	.fx-news .fx-section-head { padding-top: 28px; }
	.fx-news .fx-section-head .fx-more { font-size: 14px; }
	.fx-chips { flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; overflow: visible; }
	.fx-rows { margin-top: 12px; }
	.fx-row { grid-template-columns: minmax(0, 1fr) 180px; grid-template-areas: "kicker media" "title media" "excerpt media" "meta media"; column-gap: 32px; row-gap: 10px; padding: 30px 0; }
	.fx-row__kicker { font-size: 12px; }
	.fx-row__title { font-size: 25px; line-height: 1.3; }
	.fx-row__excerpt { display: block; }
	.fx-row__meta { gap: 16px; margin: 4px 0 -12px; font-size: 13px; }
	.fx-row__media { width: 180px; height: 130px; }
	.fx-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; padding-top: 40px; }
	.fx-sidebar .fx-newsletter { grid-row: span 2; align-self: start; }
	.fx-newsletter { gap: 14px; padding: 28px; }
	.fx-newsletter__title { font-size: 22px; }
	.fx-newsletter p { line-height: 1.6; }
	.fx-newsletter input[type="email"], .fx-newsletter .fx-btn { height: 46px; font-size: 15px; }
	.fx-start .fx-label { font-size: 13px; margin-bottom: 8px; }
}
@media (min-width: 1200px) {
	.fx-news { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 80px; align-items: start; }
	.fx-sidebar { grid-column: 2; grid-row: 3; display: flex; gap: 40px; padding-top: 42px; }
}

/* ---------- Dải video ---------- */
.fx-band { background: var(--c-paper-alt); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.fx-videos { padding: 32px 0 36px; }
.fx-videos .fx-section-head { margin-bottom: 18px; }
.fx-videos .fx-section-head .fx-more { font-size: 13px; }
.fx-videos__list { gap: 14px; padding-inline: var(--fx-pad); scroll-padding-inline: var(--fx-gutter); }
.fx-video { width: 260px; display: flex; flex-direction: column; gap: 10px; color: var(--c-ink); }
.fx-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fx-video-bg); }
.fx-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-video__play { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--c-ink); color: var(--c-paper); display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.fx-video:hover .fx-video__play { background: var(--c-accent); color: var(--c-on-accent); }
.fx-video .fx-kicker { font-size: 11px; }
.fx-video__title { font-size: 17px; line-height: 1.35; font-weight: 600; }
.fx-video:hover .fx-video__title { color: var(--c-accent); }
@media (min-width: 768px) {
	.fx-videos { padding: 56px 0 64px; }
	.fx-videos .fx-section-head { margin-bottom: 28px; }
	.fx-videos .fx-section-head .fx-more { font-size: 14px; }
	.fx-videos__list { gap: 24px; }
	.fx-video { width: 300px; gap: 14px; }
	.fx-video .fx-kicker { font-size: 12px; }
	.fx-video__title { font-size: 19px; }
}
@media (min-width: 1200px) {
	.fx-videos { padding: 64px 0 72px; }
	.fx-videos .fx-section-head { margin-bottom: 32px; }
	.fx-videos__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; overflow: visible; }
	.fx-video { width: auto; }
	.fx-video__thumb { aspect-ratio: auto; height: 170px; }
	.fx-video__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

/* ---------- Cửa hàng ---------- */
.fx-shop { padding-top: 40px; padding-bottom: 40px; }
.fx-shop .fx-section-head { margin-bottom: 20px; }
.fx-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-product { display: flex; flex-direction: column; background: var(--c-card); border: 1px solid var(--c-line); min-width: 0; }
.fx-product__media { height: 150px; border-bottom: 1px solid var(--c-line); }
.fx-product__media .fx-ph { border: 0; }
.fx-product__body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; padding: 12px; }
.fx-product__name { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.fx-product__name a { color: var(--c-ink); }
.fx-product__spec { margin: 0; font-family: var(--f-mono); font-size: 11px; line-height: 1.55; color: var(--c-ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.fx-product__guide { font-size: 12px; white-space: normal; }
.fx-product__foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.fx-price { font-family: var(--f-sans); font-size: 16px; font-weight: 700; color: var(--c-ink); }
.fx-price del { font-weight: 400; font-size: .85em; color: var(--c-muted); margin-right: 6px; }
.fx-price ins { text-decoration: none; }
.fx-product__foot .fx-btn { width: 100%; padding: 0 10px; }
.fx-assure { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--f-sans); font-size: 13px; color: var(--c-ink-2); }
@media (min-width: 768px) {
	.fx-shop { padding-top: 72px; padding-bottom: 72px; }
	.fx-shop .fx-section-head { margin-bottom: 40px; }
	.fx-products { gap: 24px; }
	.fx-product__media { height: 220px; }
	.fx-product__body { gap: 10px; padding: 20px; }
	.fx-product__name { font-size: 20px; }
	.fx-product__spec { font-size: 13px; line-height: 1.6; }
	.fx-product__guide { font-size: 13px; }
	.fx-product__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-line); }
	.fx-product__foot .fx-btn { width: auto; padding: 0 18px; }
	.fx-price { font-size: 18px; }
	.fx-assure { flex-direction: row; flex-wrap: wrap; gap: 0; margin-top: 28px; font-size: 14px; }
	.fx-assure li + li::before { content: "·"; margin: 0 16px; }
}
@media (min-width: 1200px) {
	.fx-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
}

/* ---------- Khối kêu gọi (nền tối) ---------- */
.fx-cta { display: flex; flex-direction: column; gap: 14px; margin: 32px var(--fx-gutter) 0 !important; padding: 32px 24px; background: var(--fx-band); color: var(--fx-band-text); border: 1px solid var(--fx-band-border); }
.fx-cta > *, .fx-cta__text > * { margin: 0; }
.fx-cta__text { display: flex; flex-direction: column; gap: 14px; }
.fx-cta h2 { font-size: 25px; line-height: 1.25; color: var(--fx-band-text); }
.fx-cta p { font-size: 16px; line-height: 1.6; color: var(--fx-band-muted); }
.fx-cta__actions { margin-top: 6px !important; }
.fx-cta__actions .wp-block-button { width: 100%; }
.fx-btn-light .wp-block-button__link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; padding: 0 28px; background: var(--fx-band-text); color: var(--fx-band) !important; border-radius: 24px; font-family: var(--f-sans); font-size: 15px; font-weight: 600; white-space: nowrap; }
.fx-btn-light .wp-block-button__link:hover { background: var(--c-accent); color: var(--c-on-accent) !important; }
.fx-community--light { flex-direction: row; gap: 20px; font-size: 14px; }
.fx-community--light a { color: var(--fx-band-text); padding: 10px 0; }
@media (min-width: 768px) {
	.fx-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; margin: 0 var(--fx-pad) !important; padding: 56px 64px; }
	.fx-cta__text { gap: 12px; max-width: 640px; }
	.fx-cta h2 { font-size: 34px; line-height: 1.2; }
	.fx-cta p { font-size: 18px; }
	.fx-cta__actions { margin: 0 !important; flex-shrink: 0; }
	.fx-cta__actions .wp-block-button { width: auto; }
	.fx-btn-light .wp-block-button__link { height: 52px; border-radius: 26px; font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.fx-cta { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px; }
}

/* ---------- Footer ---------- */
.fx-footer-part { margin-top: auto !important; }
.fx-footer { margin-top: 40px; padding-top: 36px; padding-bottom: 32px; border-top: 3px double var(--c-ink); font-family: var(--f-sans); }
.fx-footer p { margin: 0; }
.fx-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.fx-footer__about { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.fx-footer__about > * { margin: 0; }
.fx-footer__about .fx-brand__logo { width: 44px; height: 44px; }
.fx-footer__about p { font-family: var(--f-serif); font-size: 15px; line-height: 1.6; color: var(--c-ink-2); max-width: 380px; }
.fx-footer__col { display: flex; flex-direction: column; gap: 10px; }
.fx-footer__col > * { margin: 0; }
.fx-footer .fx-label { margin: 0; font-size: 11px; color: var(--c-muted); }
.fx-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fx-footer__links > * { margin: 0 !important; }
.fx-footer__links a { color: var(--c-ink); }
.fx-footer__links a:hover { color: var(--c-accent); }
.fx-footer__bottom { display: flex; flex-direction: column-reverse; gap: 6px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.fx-footer__bottom > * { margin: 0 !important; }
.fx-footer--mini { display: flex; flex-direction: column; gap: 12px; margin-top: 0; padding-top: 28px; padding-bottom: 28px; font-size: 12px; color: var(--c-muted); }
.fx-footer--mini > * { margin: 0 !important; }
.fx-footer__mini-brand { display: flex; align-items: center; gap: 12px; }
.fx-footer__mini-brand > * { margin: 0 !important; }
.fx-footer__mini-brand img { border-radius: 50%; display: block; }
.fx-footer__links--row { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.fx-footer__links--row a { color: var(--c-muted); padding: 6px 0; }
@media (min-width: 768px) {
	.fx-footer { margin-top: 72px; padding-top: 64px; padding-bottom: 48px; }
	.fx-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
	.fx-footer__about { grid-column: auto; gap: 14px; }
	.fx-footer__about .fx-brand__logo { width: 56px; height: 56px; }
	.fx-footer__about .fx-brand__text { font-size: 18px; }
	.fx-footer__about p { font-size: 16px; }
	.fx-footer .fx-label { font-size: 12px; }
	.fx-footer__bottom { flex-direction: row; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; font-size: 13px; }
	.fx-footer--mini { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 0; padding-top: 40px; padding-bottom: 40px; font-size: 13px; }
	.fx-footer__links--row { gap: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.fx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fx-footer__about { grid-column: 1 / -1; }
}

/* ---------- Cảnh báo an toàn (pattern) ---------- */
.fx-warning { position: relative; padding: 20px 24px 20px 66px; background: var(--c-card); border: 1.5px solid var(--c-accent); }
.fx-warning::before { content: ""; position: absolute; left: 24px; top: 20px; width: 26px; height: 26px; background: var(--c-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx-warning > * { margin: 0 !important; font-size: 17px; line-height: 1.6; }
.fx-warning > * + * { margin-top: 6px !important; }
.fx-warning__title { font-family: var(--f-sans); font-size: 15px !important; font-weight: 700; color: var(--c-accent); }
@media (max-width: 767px) {
	.fx-warning { padding: 16px 16px 16px 52px; }
	.fx-warning::before { left: 16px; top: 16px; width: 24px; height: 24px; }
	.fx-warning > * { font-size: 16px; }
}

/* ---------- Thông báo nhỏ (toast) ---------- */
.fx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100% - 32px); padding: 12px 20px; background: var(--c-ink); color: var(--c-paper); font-family: var(--f-sans); font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; pointer-events: none; }
.fx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fx-toast a { color: inherit; text-decoration: underline; pointer-events: auto; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Trang bài viết
   ========================================================================== */
.fx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); }
.fx-crumbs li + li::before { content: "/"; margin-right: 6px; }
.fx-crumbs a { color: var(--c-muted); }
.fx-crumbs a:hover { color: var(--c-accent); }
.fx-crumbs [aria-current] { color: var(--c-accent); font-weight: 600; }

.fx-article-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; padding: 24px var(--fx-gutter) 20px; box-sizing: content-box; }
.fx-article-head__title { margin: 0; font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.fx-article-head__lead { margin: 0; font-size: 18px; line-height: 1.55; font-style: italic; color: var(--c-ink-2); }
.fx-byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); }
.fx-byline__avatar { width: 38px; height: 38px; border-radius: 50%; display: block; }
.fx-byline__text { display: flex; flex-direction: column; gap: 2px; }
.fx-byline__name { font-size: 14px; font-weight: 600; }
.fx-byline__meta { font-size: 12px; color: var(--c-muted); }
.fx-share { color: var(--c-muted); }

.fx-article-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--fx-gutter); }
.fx-article-side, .fx-article-rail { display: none; }
.fx-article { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 720px; width: 100%; margin: 0 auto; }
.fx-article > * { margin: 0 !important; }

/* Khung thông tin dự án */
.fx-stats--box { border: 1px solid var(--c-ink); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-stats--box > div { padding: 12px; }
.fx-stats--box > div + div { padding-left: 12px; }
.fx-stats--box > div:nth-child(odd) { border-left: 0; }
.fx-stats--box > div:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
.fx-stats--box[style*="--fx-cols:3"] > div:nth-child(3), .fx-stats--box[style*="--fx-cols:1"] > div { grid-column: 1 / -1; border-left: 0; border-bottom: 0; }

/* Mục lục */
.fx-toc ol { list-style: none; margin: 0; padding: 0; }
.fx-toc--inline { border: 1px solid var(--c-line); background: var(--c-card); font-family: var(--f-sans); }
.fx-toc--inline summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.fx-toc--inline summary::-webkit-details-marker { display: none; }
.fx-toc__sign::before { content: "+"; font-size: 18px; font-weight: 400; }
.fx-toc--inline[open] .fx-toc__sign::before { content: "−"; }
.fx-toc--inline ol { padding: 0 16px 12px; }
.fx-toc--inline a { display: block; padding: 10px 0; border-top: 1px solid var(--c-line); font-size: 15px; color: var(--c-ink); }
.fx-toc--side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; font-family: var(--f-sans); }
.fx-toc--side .fx-label { font-size: 12px; margin-bottom: 8px; }
.fx-toc--side a { display: block; min-height: 24px; padding: 8px 0 8px 12px; border-left: 2px solid var(--c-line); font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.fx-toc--side a:hover { color: var(--c-ink); }
.fx-toc--side a[aria-current] { border-left-color: var(--c-accent); color: var(--c-ink); font-weight: 600; }

/* Cột phải */
.fx-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.fx-rail .fx-label { font-size: 12px; margin: 0; }

/* Video YouTube (facade) */
.fx-yt { position: relative; aspect-ratio: 16 / 9; background: var(--fx-band); overflow: hidden; }
.fx-yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fx-yt__btn img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.fx-yt__play { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); display: flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s; }
.fx-yt__btn:hover .fx-yt__play, .fx-yt__btn:focus-visible .fx-yt__play { background: var(--c-accent); color: var(--c-on-accent); }
.fx-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-bleed { margin-inline: calc(-1 * var(--fx-gutter)) !important; }

/* ---------- Nội dung bài (prose) ---------- */
.fx-prose { font-size: 18px; line-height: 1.75; }
.fx-prose > * { margin-block: 0 !important; }
.fx-prose > * + * { margin-top: 20px !important; }
.fx-prose > h2 { margin-top: 32px !important; font-size: 25px; line-height: 1.25; scroll-margin-top: 24px; }
.fx-prose > h3 { margin-top: 28px !important; font-size: 21px; }
.fx-prose a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fx-prose ul, .fx-prose ol { padding-left: 1.3em; }
.fx-prose li + li { margin-top: 6px; }
.fx-prose img { display: block; }
.fx-prose figure { margin-inline: 0; }
.fx-prose figcaption, .fx-prose .wp-element-caption { margin-top: 8px; font-family: var(--f-sans); font-size: 13px; line-height: 1.5; color: var(--c-muted); text-align: left; }
.fx-prose .alignwide, .fx-prose .alignfull { margin-inline: calc(-1 * var(--fx-gutter)); }
.fx-prose .alignwide figcaption, .fx-prose .alignfull figcaption { padding: 0 var(--fx-gutter); }
.fx-prose .wp-block-image.alignwide img { width: 100%; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-card); }
.fx-prose blockquote, .fx-prose .wp-block-quote { margin-inline: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--c-ink); font-size: 19px; line-height: 1.55; font-style: italic; color: var(--c-ink-2); }
.fx-prose blockquote p { margin: 0; }
.fx-prose blockquote cite { display: block; margin-top: 8px; font-family: var(--f-sans); font-size: 13px; font-style: normal; color: var(--c-muted); }
.fx-prose pre, .fx-prose .wp-block-code, .fx-prose .is-style-spec { margin-inline: calc(-1 * var(--fx-gutter)); padding: 16px var(--fx-gutter); background: var(--fx-band); color: var(--fx-code-text); border: 1px solid var(--fx-band-border); font-family: var(--f-mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-x: auto; border-radius: 0; }
.fx-prose code { font-family: var(--f-mono); font-size: .85em; }
.fx-prose :not(pre) > code { padding: 1px 5px; background: var(--c-paper-alt); }
.fx-prose hr { border: 0; border-top: 1px solid var(--c-line); }
.fx-prose .wp-block-embed iframe { max-width: 100%; }

/* Bảng: cuộn ngang được trên điện thoại */
.fx-prose .wp-block-table, .fx-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-prose table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: 15px; line-height: 1.5; }
.fx-prose .wp-block-table table { min-width: 520px; border-top: 2px solid var(--c-ink); }
.fx-prose th { padding: 12px 8px; border-bottom: 1px solid var(--c-ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--c-muted); }
.fx-prose td { padding: 14px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.fx-prose th:first-child, .fx-prose td:first-child { padding-left: 0; }
.fx-prose .wp-block-table thead { border-bottom: 0; }
.fx-prose .wp-block-table td, .fx-prose .wp-block-table th { border-left: 0; border-right: 0; }
.fx-prose .wp-block-table a { font-weight: 600; text-decoration: none; }

/* Bảng BOM: cột thông số mono; trên điện thoại chuyển thành danh sách */
.is-style-bom td:first-child { font-weight: 600; }
.is-style-bom td:nth-child(2) { font-family: var(--f-mono); font-size: 13px; }
@media (max-width: 767px) {
	.fx-prose .is-style-bom { overflow: visible; }
	.fx-prose .is-style-bom table { min-width: 0; border-top: 2px solid var(--c-ink); }
	.is-style-bom thead { display: none; }
	.is-style-bom tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; row-gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
	.is-style-bom td { padding: 0 !important; border: 0 !important; }
	.is-style-bom td:nth-child(1) { grid-column: 1 / 4; font-size: 15px; }
	.is-style-bom td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--c-ink-2); }
	.is-style-bom td:nth-child(3) { grid-column: 2; grid-row: 2; font-family: var(--f-mono); font-size: 12px; color: var(--c-ink-2); white-space: nowrap; }
	.is-style-bom td:nth-child(3)::before { content: " a0· SL "; }
	.is-style-bom td:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; align-self: center; padding-left: 12px !important; font-size: 13px; white-space: nowrap; color: var(--c-muted); }
}

/* Tài liệu tải về */
.fx-downloads { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--c-paper-alt); font-family: var(--f-sans); scroll-margin-top: 24px; }
.fx-downloads .fx-label { margin: 0; font-size: 12px; }
.fx-downloads__list { display: flex; flex-direction: column; gap: 10px; }
.fx-download { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; box-sizing: border-box; border: 1.5px solid var(--c-ink); background: var(--c-card); color: var(--c-ink); font-size: 14px; font-weight: 600; }
.fx-download:hover { background: var(--c-ink); color: var(--c-paper); }

/* Sản phẩm trong bài */
.fx-inposts { display: flex; flex-direction: column; gap: 12px; }
.fx-inpost { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--c-card); border: 1px solid var(--c-line); }
.fx-inpost__media { width: 72px; height: 72px; flex-shrink: 0; }
.fx-inpost__media .fx-ph { border: 1px solid var(--c-line); }
.fx-inpost__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fx-inpost .fx-kicker { font-size: 10px; font-weight: 700; }
.fx-inpost__name { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.fx-inpost .fx-more { font-size: 13px; white-space: normal; }

/* Hữu ích + chia sẻ */
.fx-helpful { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); }
.fx-helpful__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--c-ink); border-radius: 22px; background: transparent; color: var(--c-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.fx-helpful__btn[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.fx-helpful__btn[aria-pressed="true"] svg { fill: currentColor; }
.fx-helpful__count { padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor; font-weight: 500; }
.fx-helpful__ask { font-size: 14px; color: var(--c-muted); }
.fx-helpful__link { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--c-ink); cursor: pointer; display: inline-flex; align-items: center; }
.fx-helpful__link:hover { color: var(--c-accent); }
.fx-circle { border: 1.5px solid var(--c-ink); border-radius: 50%; }

/* Tác giả */
.fx-author { display: flex; gap: 18px; align-items: flex-start; }
.fx-author img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.fx-author__body { display: flex; flex-direction: column; gap: 6px; }
.fx-author__name { font-family: var(--f-sans); font-size: 17px; font-weight: 700; }
.fx-author p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--c-ink-2); }

/* ---------- Bình luận / hỏi đáp ---------- */
.fx-comments { display: flex; flex-direction: column; gap: 14px; margin-top: 16px !important; scroll-margin-top: 24px; }
.fx-comments__title { margin: 0; font-size: 23px; font-weight: 700; }
.fx-comments .comment-respond { margin: 0; }
.fx-comments__reply-title { margin: 0 0 8px; font-family: var(--f-sans); font-size: 14px; font-weight: 600; }
.fx-comments__reply-title:empty { display: none; }
.fx-comments__reply-title small { margin-left: 8px; }
.fx-comments__reply-title small a { color: var(--c-accent); }
.fx-comment-gate__box { display: flex; align-items: flex-start; box-sizing: border-box; width: 100%; min-height: 104px; padding: 12px; border: 1px solid var(--c-line-strong); background: var(--c-field); color: var(--c-muted); font-family: var(--f-serif); font-size: 16px; line-height: 1.5; text-align: left; cursor: pointer; }
.fx-comment-gate__box:hover { border-color: var(--c-ink); }
.fx-comment-gate__note { margin: 10px 0 0; font-family: var(--f-sans); font-size: 14px; color: var(--c-muted); }
.fx-comment-gate__note a { font-weight: 600; color: var(--c-accent); }
.fx-comment-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fx-comment-form > * { margin: 0; }
.fx-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.fx-field label { font-family: var(--f-sans); font-size: 13px; font-weight: 600; }
.fx-optional { font-weight: 400; color: var(--c-muted); }
.fx-field input, .fx-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: 0; background: var(--c-field); color: var(--c-ink); font-family: var(--f-sans); font-size: 16px; }
.fx-field textarea { padding: 12px; font-family: var(--f-serif); line-height: 1.5; resize: vertical; }
.fx-comment-form .form-submit { margin: 0; }
.fx-comment-form .fx-btn { width: 100%; height: 48px; }
.fx-comment-form .comment-form-cookies-consent { display: none; }
.fx-comment-list, .fx-comment-list .children { list-style: none; margin: 0; padding: 0; }
.fx-comment { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.fx-comment .children { margin: 6px 0 0 12px; padding-left: 12px; border-left: 2px solid var(--c-line); }
.fx-comment .children .fx-comment { border-top: 0; padding: 4px 0; }
.fx-comment__head { font-family: var(--f-sans); font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fx-comment__time { font-weight: 400; color: var(--c-muted); }
.fx-badge { padding: 2px 8px; border-radius: 10px; background: var(--c-ink); color: var(--c-paper); font-size: 10px; font-weight: 600; }
.fx-comment__text { font-size: 16px; line-height: 1.55; }
.fx-comment__text p { margin: 0; }
.fx-comment__text p + p { margin-top: 8px; }
.fx-comment__pending { font-family: var(--f-sans); font-size: 13px; color: var(--c-accent); }
.fx-comment__reply a { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--c-accent); }

/* ---------- Đọc tiếp ---------- */
.fx-related { margin-top: 32px; padding: 32px 0; }
.fx-related h2 { margin: 0 0 8px; font-size: 23px; }
.fx-cards { display: flex; flex-direction: column; }
.fx-card { display: flex; flex-direction: row-reverse; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.fx-card__media { width: 72px; height: 72px; flex-shrink: 0; }
.fx-card__media .fx-ph { border: 0; }
.fx-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fx-card .fx-kicker { font-size: 11px; }
.fx-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.fx-card:hover .fx-card__title { color: var(--c-accent); }

@media (min-width: 768px) {
	.fx-article-head { gap: 18px; padding-top: 48px; padding-bottom: 40px; }
	.fx-article-head__title { font-size: 42px; line-height: 1.14; }
	.fx-article-head__lead { font-size: 22px; }
	.fx-byline { gap: 14px; padding: 16px 0; }
	.fx-byline__avatar { width: 44px; height: 44px; }
	.fx-byline__name { font-size: 15px; }
	.fx-byline__meta { font-size: 13px; }
	.fx-article { gap: 28px; }
	.fx-stats--box { grid-template-columns: repeat(var(--fx-cols, 4), minmax(0, 1fr)); }
	.fx-stats--box > div { padding: 16px; border-bottom: 0 !important; grid-column: auto !important; }
	.fx-stats--box > div + div { padding-left: 16px; border-left: 1px solid var(--c-line) !important; }
	.fx-stats--box dt { font-size: 11px; }
	.fx-bleed { margin-inline: 0 !important; }
	.fx-yt__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
	.fx-prose { font-size: 20px; }
	.fx-prose > * + * { margin-top: 28px !important; }
	.fx-prose > h2 { margin-top: 44px !important; font-size: 32px; }
	.fx-prose > h3 { font-size: 24px; }
	.fx-prose blockquote, .fx-prose .wp-block-quote { padding-left: 24px; font-size: 22px; line-height: 1.6; }
	.fx-prose pre, .fx-prose .wp-block-code, .fx-prose .is-style-spec { margin-inline: 0; padding: 20px 24px; font-size: 14px; }
	.fx-prose .alignwide, .fx-prose .alignfull { margin-inline: 0; }
	.fx-prose .alignwide figcaption { padding: 0; }
	.fx-prose .wp-block-image.alignwide img { border: 1px solid var(--c-line); }
	.fx-prose figcaption, .fx-prose .wp-element-caption { font-size: 14px; }
	.fx-downloads { gap: 14px; padding: 24px; }
	.fx-downloads .fx-label { font-size: 13px; }
	.fx-downloads__list { flex-direction: row; flex-wrap: wrap; gap: 12px; }
	.fx-download { padding: 0 18px; }
	.fx-inpost { gap: 20px; padding: 20px; }
	.fx-inpost__media { width: 110px; height: 110px; }
	.fx-inpost .fx-kicker { font-size: 11px; }
	.fx-inpost__name { font-size: 20px; }
	.fx-helpful { gap: 12px; padding: 20px 0; }
	.fx-author img { width: 64px; height: 64px; }
	.fx-author p { font-size: 17px; }
	.fx-comments { gap: 20px; }
	.fx-comments__title { font-size: 28px; }
	.fx-comment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fx-field--wide, .fx-comment-form .form-submit, .fx-comments__reply-title { grid-column: 1 / -1; }
	.fx-field textarea { font-size: 17px; }
	.fx-comment-form .form-submit { display: flex; justify-content: flex-end; }
	.fx-comment-form .fx-btn { width: auto; height: 44px; padding: 0 22px; font-size: 14px; }
	.fx-comment { gap: 8px; padding: 18px 0; }
	.fx-comment .children { margin: 8px 0 0 24px; padding-left: 18px; }
	.fx-comment__head { font-size: 14px; }
	.fx-badge { font-size: 11px; margin-left: 2px; }
	.fx-comment__text { font-size: 17px; line-height: 1.6; }
	.fx-related { margin-top: 80px; padding: 56px 0; }
	.fx-related h2 { margin-bottom: 28px; font-size: 28px; }
	.fx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
	.fx-card { flex-direction: column; gap: 12px; padding: 0; border: 0; }
	.fx-card__media { width: 100%; height: 180px; }
	.fx-card__media .fx-ph { background: repeating-linear-gradient(135deg, #DCD2BD 0 10px, #E4DBC8 10px 20px); }
	.fx-card .fx-kicker { font-size: 11px; }
	.fx-card__title { font-size: 21px; }
}
@media (min-width: 1200px) {
	.fx-article-head { padding-top: 56px; }
	.fx-article-head__title { font-size: 48px; }
	.fx-article-grid { grid-template-columns: 200px 720px 200px; gap: 80px; justify-content: center; padding: 0 40px; }
	.fx-article-side, .fx-article-rail { display: block; }
	.fx-toc--inline { display: none; }
	.fx-article { margin: 0; }
	.fx-prose .alignwide { margin-inline: -120px; }
	.fx-prose .alignwide figcaption { padding: 0 120px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.fx-cards { gap: 24px; }
	.fx-card__title { font-size: 19px; }
}

/* ---------- Trang lưu trữ, tìm kiếm, bài đã lưu ---------- */
.fx-archive { padding-top: 32px; padding-bottom: 48px; }
.fx-archive__head { display: flex; flex-direction: column; gap: 8px; }
.fx-archive__head > * { margin: 0; }
.fx-archive__title { margin: 0; font-size: 30px; line-height: 1.2; }
.fx-archive__desc { font-size: 17px; line-height: 1.6; color: var(--c-ink-2); }
.fx-archive__desc p { margin: 0; }
.fx-archive .fx-chips { display: flex; margin: 16px calc(-1 * var(--fx-gutter)) 0; padding: 0 var(--fx-gutter) 4px; gap: 8px; }
a.fx-chip { display: inline-flex; align-items: center; box-sizing: border-box; color: var(--c-ink); }
a.fx-chip[aria-current] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.fx-rows--archive { margin-top: 8px; border-top: 1px solid var(--c-ink); }
.fx-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-family: var(--f-sans); font-size: 15px; }
.fx-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--c-line-strong); color: var(--c-ink); }
.fx-pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.fx-pagination .dots { border: 0; }
.fx-page { padding-top: 32px; padding-bottom: 48px; }
.fx-page__title { margin: 0 0 24px; font-size: 31px; }
.fx-page .fx-prose { max-width: 720px; }
@media (min-width: 768px) {
	.fx-archive { padding-top: 48px; padding-bottom: 72px; }
	.fx-archive__title { font-size: 42px; }
	.fx-archive .fx-chips { margin: 24px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; gap: 10px; }
	.fx-page { padding-top: 56px; }
	.fx-page__title { font-size: 42px; }
}
@media (min-width: 1200px) {
	.fx-rows--archive { max-width: 880px; }
}
.fx-prose .fx-download { color: var(--c-ink); text-decoration: none; }
.fx-prose .fx-download:hover { color: var(--c-paper); }
.fx-prose .fx-downloads { margin-inline: 0; }

/* ---------- Quảng cáo (AdSense) ---------- */
/* Chừa sẵn chiều cao để trang không bị giật khi quảng cáo tải xong. */
.fx-ad { display: block; margin: 32px 0; text-align: center; }
.fx-ad__label { display: block; margin-bottom: 6px; font-family: var(--f-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.fx-ad .adsbygoogle, .fx-ad__demo { min-height: 280px; }
.fx-ad--sidebar .adsbygoogle, .fx-ad--sidebar .fx-ad__demo { min-height: 250px; }
.fx-ad--list { padding: 8px 0 24px; margin: 0; border-bottom: 1px solid var(--c-line); }
.fx-ad__demo { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--c-line-strong); background: repeating-linear-gradient(135deg, var(--fx-ph-a) 0 12px, var(--fx-ph-b) 12px 24px); font-family: var(--f-sans); font-size: 13px; color: var(--c-muted); }

/* Nhãn PRO (FixBox One Click Pro) — ảnh đại diện header, menu tài khoản, trang tài khoản, trang FixBox Tools */
.fx-pro-badge { display: inline-block; padding: 2px 8px; background: linear-gradient(135deg, #E0A33A, #A6402A); color: #fff; font: 800 11px/1.4 var(--f-sans); letter-spacing: .08em; border-radius: 3px; vertical-align: middle; }
.fx-account-btn { position: relative; }
.fx-pro-dot { position: absolute; right: -6px; bottom: -3px; padding: 0 3px; background: linear-gradient(135deg, #E0A33A, #A6402A); color: #fff; font: 800 8px/1.5 var(--f-sans); letter-spacing: .04em; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--c-paper); pointer-events: none; }
/* Trang song ngữ viết tay (vd Chính sách quyền riêng tư): hiện đúng một ngôn ngữ theo <html lang>. */
html[lang^="en"] .fx-lang-vi, html:not([lang^="en"]) .fx-lang-en { display: none; }
