/* RunZone Experts: byline, hộp kiểm duyệt dưới bài, trang hồ sơ /tac-gia/. Chỉ nạp ở bài viết + trang hồ sơ. */
.rzex-byline, .rzex-box, .rzex-page {
	--rzex-flame: #fc4315;
	--rzex-flame-d: #d74001;
	--rzex-ink: #0a0a0a;
	--rzex-mute: #5b5b5b;
	--rzex-mist: #f4f4f4;
	--rzex-line: #e3e3e3;
	--rzex-yellow: #f5e01b;
}

/* ---------- Byline dưới H1 ---------- */
.entry-meta .rzex-byline { text-transform: none; letter-spacing: 0; font-size: .95rem; line-height: 1.6; color: var(--rzex-mute); }
.rzex-byline strong { color: var(--rzex-ink); font-weight: 600; }
.rzex-byline a { color: var(--rzex-flame); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rzex-byline a:hover { color: var(--rzex-flame-d); }
.rzex-sep { color: #b5b5b5; }

/* ---------- Dùng chung ---------- */
.rzex-avatar { display: block; flex: none; border-radius: 50%; overflow: hidden; background: var(--rzex-ink); }
.rzex-avatar__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.rzex-avatar__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--rzex-yellow); font-weight: 800; font-size: 2rem; }
.rzex-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.rzex-links li { margin: 0; }
.rzex-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 11px; border: 1px solid var(--rzex-line); border-radius: 999px; background: #fff; color: var(--rzex-ink); font-size: .82rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.rzex-links a:hover { border-color: var(--rzex-flame); color: var(--rzex-flame); }
.rzex-stats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.rzex-stats li { display: flex; flex-direction: column; margin: 0; padding: 7px 12px; border-left: 3px solid var(--rzex-yellow); background: var(--rzex-mist); border-radius: 0 8px 8px 0; }
.rzex-stats__v { font-size: 1.15rem; font-weight: 800; line-height: 1.15; color: var(--rzex-ink); font-variant-numeric: tabular-nums; }
.rzex-stats__l { font-size: .75rem; color: var(--rzex-mute); line-height: 1.3; }
.rzex-box ul.rzex-stats, .rzex-box ul.rzex-links, .rzex-page ul.rzex-stats, .rzex-page ul.rzex-links { margin-left: 0; padding-left: 0; }
.rzex-box ul.rzex-stats > li, .rzex-box ul.rzex-links > li, .rzex-page ul.rzex-stats > li, .rzex-page ul.rzex-links > li { margin-left: 0; list-style: none; }
.rzex-box a:focus-visible, .rzex-page a:focus-visible, .rzex-byline a:focus-visible { outline: 2px solid var(--rzex-flame); outline-offset: 2px; }

/* ---------- Hộp chuyên gia dưới bài ---------- */
.rzex-box { margin: 32px 0 8px; padding: 20px; border: 1px solid var(--rzex-line); border-top: 4px solid var(--rzex-ink); border-radius: 12px; background: #fff; text-align: left; }
.rzex-box__label { display: inline-block; margin: 0 0 14px; padding: 3px 10px; background: var(--rzex-yellow); color: var(--rzex-ink); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; }
.rzex-box__main { display: flex; gap: 16px; align-items: flex-start; }
.rzex-box__avatar { width: 88px; height: 88px; }
.rzex-box__body { min-width: 0; flex: 1; }
.rzex-box p { margin: 0; }
.rzex-box__name { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.rzex-box__name a { color: var(--rzex-ink); text-decoration: none; }
.rzex-box__name a:hover { color: var(--rzex-flame); }
.rzex-box__title { margin-top: 2px !important; color: var(--rzex-mute); font-size: .9rem; font-weight: 600; }
.rzex-box__short { margin-top: 8px !important; font-size: .95rem; line-height: 1.55; }
.rzex-box__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 44px; padding: 10px 16px; background: var(--rzex-flame); color: #fff; font-weight: 700; font-size: .92rem; border-radius: 8px; text-decoration: none; }
.rzex-box__cta:hover { background: var(--rzex-flame-d); color: #fff; }
.rzex-box__note { margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--rzex-line); color: var(--rzex-mute); font-size: .82rem; line-height: 1.5; }

@media (max-width: 549px) {
	.rzex-box { padding: 16px; }
	.rzex-box__main { display: block; }
	.rzex-box__avatar { float: left; width: 60px; height: 60px; margin: 0 12px 0 0; }
	.rzex-box__name { padding-top: 6px; }
	.rzex-box__short { clear: both; padding-top: 12px; }
	.rzex-box__body::after { content: ""; display: block; clear: both; }
	.rzex-box__cta { display: flex; justify-content: center; text-align: center; }
}

/* ---------- Trang hồ sơ ---------- */
.rzex-page { padding-bottom: 48px; color: var(--rzex-ink); }
.rzex-hero { height: clamp(160px, 28vw, 320px); background: var(--rzex-ink); overflow: hidden; }
.rzex-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rzex-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
.rzex-intro.has-topics { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.rzex-intro__avatar { width: 160px; height: 160px; margin-bottom: 18px; }
.rzex-intro__name { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.rzex-intro__role { margin: 8px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--rzex-ink); }
.rzex-intro__bio { max-width: 720px; margin-top: 14px; font-size: 1.04rem; line-height: 1.7; }
.rzex-intro__bio p:last-child { margin-bottom: 0; }
.rzex-topics { padding: 18px 20px; border: 1px solid var(--rzex-line); border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); background: #fff; }
.rzex-topics__h { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rzex-mute); }
.rzex-page .rzex-topics ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.rzex-page .rzex-topics li { margin: 0; }
.rzex-topics a { color: var(--rzex-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rzex-flame); }
.rzex-topics a:hover { color: var(--rzex-flame); }
.rzex-section .rzex-stats { margin: 0 0 16px; }
.rzex-card__ex { margin-top: 6px !important; color: #333; font-size: .9rem; line-height: 1.5; }
.rzex-wrap { max-width: 1080px; }
.rzex-section { margin-top: 40px; }
.rzex-section h2 { margin: 0 0 14px; font-size: 1.35rem; font-weight: 800; }

.rzex-results { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0; }
.rzex-page .rzex-results th { padding: 10px 12px; background: var(--rzex-ink); color: #fff; font-size: .78rem; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .04em; border: 0; }
.rzex-page .rzex-results td { padding: 10px 12px; border-bottom: 1px solid var(--rzex-line); font-variant-numeric: tabular-nums; vertical-align: top; }
.rzex-results tbody tr:nth-child(even) td { background: #fafafa; }
.rzex-results__race { font-weight: 600; }
.rzex-results a { color: var(--rzex-ink); text-decoration: underline; text-decoration-color: var(--rzex-flame); text-underline-offset: 3px; }
.rzex-results a:hover { color: var(--rzex-flame); }
.rzex-source { margin: 10px 0 0; color: var(--rzex-mute); font-size: .85rem; }

.rzex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rzex-card { display: flex; flex-direction: column; border: 1px solid var(--rzex-line); border-radius: 12px; overflow: hidden; background: #fff; }
.rzex-card__img { display: block; aspect-ratio: 16 / 10; background: var(--rzex-mist); }
.rzex-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.rzex-card__body { padding: 14px 16px 16px; }
.rzex-card p { margin: 0; }
.rzex-card__cat { color: var(--rzex-flame); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.rzex-card__title { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.4; font-weight: 700; }
.rzex-card__title a { color: var(--rzex-ink); text-decoration: none; }
.rzex-card__title a:hover { color: var(--rzex-flame); }
.rzex-card__meta { margin-top: 8px !important; color: var(--rzex-mute); font-size: .82rem; }
.rzex-empty { padding: 18px 20px; background: var(--rzex-mist); border-radius: 12px; color: var(--rzex-mute); }

.rzex-pagination { margin-top: 28px; }
.rzex-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.rzex-pagination li { margin: 0; }
.rzex-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--rzex-line); border-radius: 8px; color: var(--rzex-ink); font-weight: 700; text-decoration: none; }
.rzex-pagination .page-numbers.current { background: var(--rzex-ink); border-color: var(--rzex-ink); color: #fff; }
.rzex-pagination a.page-numbers:hover { border-color: var(--rzex-flame); color: var(--rzex-flame); }

@media (max-width: 849px) {
	.rzex-intro.has-topics { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.rzex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 549px) {
	.rzex-intro { padding-top: 20px; }
	.rzex-intro__avatar { width: 112px; height: 112px; margin-bottom: 14px; }
	.rzex-grid { grid-template-columns: minmax(0, 1fr); }
	/* Bảng thành tích → thẻ xếp dọc, không cuộn ngang */
	.rzex-results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rzex-results, .rzex-results tbody, .rzex-results tr, .rzex-results td { display: block; width: 100%; }
	.rzex-results tr { margin-bottom: 10px; border: 1px solid var(--rzex-line); border-radius: 10px; overflow: hidden; }
	.rzex-page .rzex-results td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; text-align: right; }
	.rzex-results td::before { content: attr(data-label); flex: none; color: var(--rzex-mute); font-size: .78rem; font-weight: 700; text-transform: uppercase; text-align: left; }
	.rzex-results td:empty { display: none; }
	.rzex-results tbody tr:nth-child(even) td { background: #fff; }
	.rzex-results .rzex-results__race { background: var(--rzex-mist) !important; text-align: left; }
	.rzex-results .rzex-results__race::before { display: none; }
	.rzex-results tr td:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rzex-page *, .rzex-box * { transition: none !important; }
}

/* ---------- Khối nội dung bài blog (bảng, Góc RunZone, CTA) ---------- */
.single-post .entry-content .rz-table { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.single-post .entry-content .rz-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; margin: 0; }
.single-post .entry-content .rz-table th { background: #0a0a0a; color: #fff; text-align: left; padding: 9px 10px; font-weight: 700; border: 0; }
.single-post .entry-content .rz-table td { padding: 9px 10px; border-bottom: 1px solid #e3e3e3; vertical-align: top; }
.single-post .entry-content .rz-table tbody tr:nth-child(even) td { background: #fafafa; }
.single-post .entry-content .rz-table figcaption { margin-top: 6px; color: #5b5b5b; font-size: .82rem; text-align: left; }
.single-post .entry-content .rz-goc-runzone { margin: 1.8em 0; padding: 18px 20px; background: #fffbe0; border-left: 5px solid #f5e01b; border-radius: 0 12px 12px 0; }
.single-post .entry-content .rz-goc-runzone h3 { margin: 0 0 8px; font-size: 1.05rem; }
.single-post .entry-content .rz-goc-runzone p:last-child { margin-bottom: 0; }
.single-post .entry-content .rz-cta { margin: 2em 0 1.4em; padding: 22px 24px; background: #0a0a0a; color: #fff; border-radius: 14px; position: relative; overflow: hidden; }
.single-post .entry-content .rz-cta::before { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 100%; background: linear-gradient(115deg, transparent 0 30%, #f5e01b 30% 42%, transparent 42% 52%, #fc4315 52%); opacity: .9; pointer-events: none; }
.single-post .entry-content .rz-cta p { margin: 0; position: relative; max-width: calc(100% - 90px); line-height: 1.5; }
.single-post .entry-content .rz-cta strong { display: block; margin-bottom: 12px; font-size: 1.1rem; color: #fff; font-family: "Montserrat", "Segoe UI", Arial, sans-serif; }
.single-post .entry-content .rz-cta a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; background: #fc4315; color: #fff; font-weight: 700; border-radius: 8px; text-decoration: none; }
.single-post .entry-content .rz-cta a::after { content: "→"; }
.single-post .entry-content .rz-cta a:hover { background: #d74001; color: #fff; }
@media (max-width: 549px) { .single-post .entry-content .rz-cta::before { width: 56px; } .single-post .entry-content .rz-cta p { max-width: calc(100% - 40px); } }

/* ---------- [rz_products]: danh sách sản phẩm có ảnh trong bài ---------- */
.rzp { margin: 1.6em 0; }
.rzp__title { margin: 0 0 10px !important; font-weight: 800; font-family: "Montserrat", "Segoe UI", Arial, sans-serif; }
.single-post .entry-content ul.rzp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.single-post .entry-content ul.rzp__grid > li { margin: 0; }
.rzp__card { display: flex; flex-direction: column; height: 100%; padding: 10px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; color: #0a0a0a; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.rzp__card:hover { border-color: #fc4315; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rzp__media { display: block; aspect-ratio: 1; margin-bottom: 8px; border-radius: 8px; overflow: hidden; background: #f4f4f4; }
.rzp__media img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.rzp__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font-size: .86rem; font-weight: 600; line-height: 1.35; }
.rzp__price { margin-top: 6px; font-size: .92rem; font-weight: 800; color: #0a0a0a; }
.rzp__price .amount, .rzp__price span.amount { color: #0a0a0a !important; }
.rzp__price del { margin-left: 4px; font-weight: 400; color: #8a8a8a; font-size: .8rem; }
.rzp__price del .amount { color: #8a8a8a !important; }
.rzp__from { font-weight: 600; font-size: .8rem; color: #5b5b5b; }
.rzp__card .rzp__btn { display: flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 10px; padding: 0; border-radius: 8px; background: #fc4315; color: #fff; font-size: .85rem; font-weight: 700; }
.rzp__card:hover .rzp__btn { background: #d74001; }
.rzp__card:focus-visible { outline: 2px solid #fc4315; outline-offset: 2px; }
@media (max-width: 849px) { .single-post .entry-content ul.rzp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .rzp__card { transition: none; } }
.single-post .entry-content .rank-math-faq-item { padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
.single-post .entry-content .rank-math-question { margin: 0 0 6px; font-size: 1rem; }
.single-post .entry-content .rzex-related { margin: 2em 0 0; padding: 16px 20px; background: #f4f4f4; border-radius: 12px; text-align: left; }
.single-post .entry-content .rzex-related__h { margin: 0 0 8px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #5b5b5b; }
.single-post .entry-content .rzex-related ul { margin: 0; padding: 0; list-style: none; }
.single-post .entry-content .rzex-related li { margin: 0; padding: 6px 0; border-top: 1px solid #e3e3e3; }
.single-post .entry-content .rzex-related li:first-child { border-top: 0; }
.single-post .entry-content .rzex-related a { color: #0a0a0a; font-weight: 600; text-decoration: none; }
.single-post .entry-content .rzex-related a:hover { color: #fc4315; }

/* Nhãn nhỏ dùng Montserrat (theo chỉnh sửa của chủ shop trên live 18/11/2026) */
.rzex-card__cat, .rzex-topics__h, .rzex-box__label, .rzex-related__h, .rzex-intro__role, .rzex-stats__l { font-family: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif; }

/* URL dài (Tài liệu tham khảo, nguồn bảng) tự xuống dòng, không tạo cuộn ngang trên mobile */
.single-post .entry-content p, .single-post .entry-content li, .single-post .entry-content figcaption { overflow-wrap: anywhere; }
