/* ==========================================================================
   Spa Beauty 2026 – giao diện chính
   Nạp sau style.css của theme Best; đè lên các rule cũ khi cần.
   ========================================================================== */

:root {
	--sbs-green-900: #23362b;
	--sbs-green-800: #2f4a3a;
	--sbs-green-700: #3f5e4b;
	--sbs-green-500: #6f8f76;
	--sbs-green-100: #e7eee8;
	--sbs-cream: #faf7f2;
	--sbs-sand: #f1ebe2;
	--sbs-sand-600: #d9cdbb;
	--sbs-gold: #a8834f;
	--sbs-ink: #24292b;
	--sbs-text: #3a4043;
	--sbs-muted: #6b7275;
	--sbs-line: #e6e0d6;
	--sbs-white: #fff;

	--sbs-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sbs-serif: "Lora", Georgia, "Times New Roman", serif;

	--sbs-radius: 14px;
	--sbs-radius-sm: 8px;
	--sbs-shadow: 0 1px 2px rgba(35, 54, 43, .06), 0 8px 24px -12px rgba(35, 54, 43, .18);
	--sbs-shadow-lg: 0 2px 4px rgba(35, 54, 43, .06), 0 18px 40px -18px rgba(35, 54, 43, .28);
	--sbs-container: 1200px;
	--sbs-gutter: 20px;
	--sbs-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Nền tảng
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body.sbs {
	margin: 0;
	background: var(--sbs-cream);
	color: var(--sbs-text);
	font-family: var(--sbs-font);
	font-size: 16px;
	line-height: 1.65;
	font-weight: 400;
}
.sbs *, .sbs *::before, .sbs *::after { box-sizing: border-box; }
.sbs h1, .sbs h2, .sbs h3, .sbs h4, .sbs h5, .sbs h6 {
	font-family: var(--sbs-serif);
	color: var(--sbs-ink);
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: -.005em;
}
.sbs a { color: var(--sbs-green-700); text-decoration: none; transition: color .15s ease; }
.sbs a:hover { color: var(--sbs-gold); }
.sbs img { max-width: 100%; height: auto; }
.sbs :focus { outline: none; }
.sbs :focus-visible { outline: 2px solid var(--sbs-gold); outline-offset: 2px; border-radius: 4px; }
.sbs strong, .sbs b { font-weight: 600; }

.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;
}
.sbs-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--sbs-ink); color: #fff !important; padding: 8px 14px; border-radius: 6px; }
.sbs-skip:focus { left: 8px; }

.sbs-container { width: 100%; max-width: var(--sbs-container); margin: 0 auto; padding: 0 var(--sbs-gutter); }

.sbs-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.sbs-btn, .sbs input[type="submit"], .sbs button[type="submit"]:not(.sbs-icon-btn), .sbs .wp-block-search__button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	background: var(--sbs-green-700); color: #fff !important;
	border: 0; border-radius: 999px; cursor: pointer;
	font: 600 15px/1 var(--sbs-font);
	transition: background .15s ease, transform .15s ease;
}
.sbs-btn:hover, .sbs input[type="submit"]:hover, .sbs button[type="submit"]:not(.sbs-icon-btn):hover, .sbs .wp-block-search__button:hover { background: var(--sbs-green-900); }
.sbs-btn--ghost { background: transparent; color: var(--sbs-green-700) !important; box-shadow: inset 0 0 0 1.5px var(--sbs-green-700); }
.sbs-btn--ghost:hover { background: var(--sbs-green-700); color: #fff !important; }

.sbs input[type="text"], .sbs input[type="email"], .sbs input[type="url"], .sbs input[type="search"], .sbs textarea {
	width: 100%; min-height: 46px; padding: 10px 16px;
	background: #fff; color: var(--sbs-ink);
	border: 1px solid var(--sbs-line); border-radius: 12px;
	font: 400 16px/1.5 var(--sbs-font);
	box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.sbs textarea { min-height: 140px; }
.sbs input:focus, .sbs textarea:focus { border-color: var(--sbs-green-500); box-shadow: 0 0 0 3px var(--sbs-green-100); }
.sbs ::placeholder { color: #9aa0a2; }

.sbs-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: transparent; color: var(--sbs-ink);
	border: 0; border-radius: 999px; cursor: pointer;
	transition: background .15s ease;
}
.sbs-icon-btn:hover { background: var(--sbs-sand); }

.sbs-eyebrow {
	margin: 0 0 8px; color: var(--sbs-gold);
	font: 600 12px/1.4 var(--sbs-font); letter-spacing: .14em; text-transform: uppercase;
}

.sbs-pill {
	display: inline-block; padding: 4px 11px;
	background: var(--sbs-green-100); color: var(--sbs-green-800) !important;
	border-radius: 999px; font: 600 12px/1.5 var(--sbs-font); letter-spacing: .02em;
}
.sbs-pill:hover { background: var(--sbs-green-700); color: #fff !important; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.sbs-header {
	/* Không dùng backdrop-filter: nó biến header thành khung chứa của menu position:fixed trên mobile */
	position: sticky; top: 0; z-index: 60;
	background: rgba(250, 247, 242, .97);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.admin-bar .sbs-header { top: 32px; }
.sbs-header.is-scrolled { border-bottom-color: var(--sbs-line); box-shadow: 0 6px 20px -16px rgba(35, 54, 43, .45); }
.sbs-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--sbs-header-h); }
/* AdSense Auto ads có lúc chèn khung quảng cáo vào giữa logo và menu: làm vỡ header và gây CLS.
   Quảng cáo trong header sticky cũng trái chính sách AdSense, nên không cho hiện ở đây. */
.sbs-header .google-auto-placed, .sbs-header ins.adsbygoogle { display: none !important; }

.sbs-logo { margin: 0; font-size: inherit; line-height: 1; }
.sbs-logo a, a.sbs-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--sbs-ink) !important; }
.sbs-logo__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--sbs-green-700); color: #fff;
}
.sbs-logo__text { display: flex; flex-direction: column; gap: 2px; }
.sbs-logo__name { font: 700 20px/1 var(--sbs-serif); letter-spacing: -.01em; }
.sbs-logo__sub { font: 600 10.5px/1 var(--sbs-font); letter-spacing: .32em; text-transform: uppercase; color: var(--sbs-gold); }
.sbs-logo--light, .sbs-logo--light a { color: #fff !important; }
.sbs-logo--light .sbs-logo__mark { background: rgba(255, 255, 255, .12); }

.sbs-nav { flex: 1; }
.sbs-nav__head, .sbs-nav__search { display: none; }
.sbs-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sbs-menu > li { position: relative; margin: 0; }
.sbs-menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--sbs-ink) !important; font: 500 15px/1.2 var(--sbs-font);
}
.sbs-menu a:hover { background: var(--sbs-sand); }
.sbs-menu .current-menu-item > a, .sbs-menu .current-menu-parent > a, .sbs-menu .current-cat > a, .sbs-menu .current-post-ancestor > a {
	background: var(--sbs-green-100); color: var(--sbs-green-800) !important;
}
.sbs-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px;
	list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--sbs-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.sbs-menu li:hover > .sub-menu, .sbs-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sbs-menu .sub-menu a { border-radius: 8px; }
.sbs-sub-toggle { display: none; }

.sbs-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sbs-nav + .sbs-header__actions { margin-left: 0; }
.sbs-menu-toggle { display: none; }

.sbs-search { border-top: 1px solid var(--sbs-line); padding: 14px 0; background: var(--sbs-cream); }
.sbs-search[hidden] { display: none; }
.sbs-search form { display: flex; gap: 10px; }
.sbs-search input[type="search"] { flex: 1; border-radius: 999px; }

.sbs-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(20, 28, 24, .45); }
.sbs-overlay[hidden] { display: none; }

.sbs-header-ad { margin-top: 16px; text-align: center; }
.sbs-header-ad:empty { display: none; }

/* --------------------------------------------------------------------------
   Khung trang
   -------------------------------------------------------------------------- */
.sbs-main { display: block; padding-bottom: 56px; }
.sbs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-top: 32px; }
.sbs-content { min-width: 0; }

.sbs-section-title {
	display: flex; align-items: center; gap: 14px;
	margin: 40px 0 20px; font-size: 24px;
}
.sbs-section-title::after { content: ""; flex: 1; height: 1px; background: var(--sbs-line); }

/* Phần giới thiệu trang chủ */
.sbs-intro { padding: 44px 0 8px; text-align: center; }
.sbs-intro__title { margin: 0 auto 12px; max-width: 720px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; }
.sbs-intro__lead { margin: 0 auto 24px; max-width: 600px; color: var(--sbs-muted); font-size: 17px; }

.sbs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sbs-chip {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
	background: #fff; color: var(--sbs-ink) !important;
	border: 1px solid var(--sbs-line); border-radius: 999px;
	font: 500 14px/1 var(--sbs-font); transition: .15s ease;
}
.sbs-chip:hover { border-color: var(--sbs-green-500); color: var(--sbs-green-800) !important; }
.sbs-chip.is-active { background: var(--sbs-green-700); border-color: var(--sbs-green-700); color: #fff !important; }

/* Đầu trang chuyên mục / tìm kiếm */
.sbs-page-head { padding: 36px 0 4px; }
.sbs-page-head__title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); }
.sbs-page-head__desc { max-width: 720px; color: var(--sbs-muted); }
.sbs-page-head__desc p { margin: 0 0 16px; }
.sbs-page-head .sbs-chips { justify-content: flex-start; margin-top: 18px; }
.sbs-searchbar { display: flex; gap: 10px; max-width: 560px; margin: 18px 0 0; }
.sbs-searchbar input { flex: 1; border-radius: 999px !important; }
.sbs-404 { text-align: center; padding: 64px 0 16px; }
.sbs-404 .sbs-page-head__desc { margin: 0 auto; }
.sbs-404 .sbs-searchbar { margin: 22px auto 16px; }
.sbs-empty { padding: 32px; background: #fff; border-radius: var(--sbs-radius); text-align: center; }

/* --------------------------------------------------------------------------
   Thẻ bài viết
   -------------------------------------------------------------------------- */
.sbs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sbs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.sbs-card {
	display: flex; flex-direction: column; overflow: hidden;
	margin: 0; padding: 0; background: #fff;
	border-radius: var(--sbs-radius); box-shadow: var(--sbs-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sbs-card:hover { transform: translateY(-3px); box-shadow: var(--sbs-shadow-lg); }
/* Ảnh đại diện của site chủ yếu là infographic 1200×630 – giữ đúng tỉ lệ để không mất chữ */
.sbs-card__media { display: block; position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--sbs-sand); }
.sbs-card__media img, .sbs-card__img {
	display: block; width: 100%; height: 100% !important; object-fit: cover;
	transition: transform .5s ease;
}
.sbs-card:hover .sbs-card__media img { transform: scale(1.04); }
.sbs-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--sbs-sand-600); }
.sbs-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; }
.sbs-card__title { margin: 0; font-size: 19px; line-height: 1.38; }
.sbs-card__title a { color: var(--sbs-ink) !important; }
.sbs-card__title a:hover { color: var(--sbs-green-700) !important; }
.sbs-card__excerpt {
	margin: 0; color: var(--sbs-muted); font-size: 15px; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sbs-card .sbs-meta { margin-top: auto; padding-top: 4px; }

.sbs-card--featured { margin-bottom: 8px; }
.sbs-card--featured .sbs-card__body { padding: 26px 30px 28px; gap: 12px; }
.sbs-card--featured .sbs-card__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.sbs-card--featured .sbs-card__excerpt { -webkit-line-clamp: 4; font-size: 16px; }
.sbs-card--featured .sbs-meta { margin-top: 6px; }

.sbs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--sbs-muted); font-size: 13.5px; }
.sbs-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sbs-meta .sbs-icon { color: var(--sbs-green-500); }

/* Phân trang */
.sbs-pagination, .navigation.pagination { margin: 40px 0 0; }
.sbs-pagination .nav-links, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sbs-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	background: #fff; color: var(--sbs-ink) !important;
	border: 1px solid var(--sbs-line); border-radius: 999px;
	font: 500 15px/1 var(--sbs-font);
}
.sbs-pagination a.page-numbers:hover { border-color: var(--sbs-green-500); color: var(--sbs-green-800) !important; }
.sbs-pagination .page-numbers.current { background: var(--sbs-green-700); border-color: var(--sbs-green-700); color: #fff !important; }
.sbs-pagination .page-numbers.dots { background: transparent; border-color: transparent; }
.sbs-pagination--inline { display: flex; gap: 8px; margin: 24px 0; }

/* --------------------------------------------------------------------------
   Sidebar (markup của theme cha: aside.sidebar.c-4-12)
   -------------------------------------------------------------------------- */
.sbs .sidebar.c-4-12 { float: none; width: auto; max-width: none; padding: 0; line-height: 1.6; }
.sbs .sidebar .widget {
	float: none; width: auto; margin: 0 0 22px; padding: 22px;
	background: #fff; border-radius: var(--sbs-radius); box-shadow: var(--sbs-shadow);
	font-size: 15px;
}
.sbs .sidebar .widget:empty { display: none; }
.sbs .sidebar .widget h3, .sbs .sidebar .widget-title, .sbs .sidebar .widget p > strong:only-child {
	display: block; margin: 0 0 14px; font: 700 18px/1.3 var(--sbs-serif); color: var(--sbs-ink); text-transform: none;
}
.sbs .sidebar .widget p { margin: 0 0 12px; }
.sbs .sidebar .wp-block-group > :last-child { margin-bottom: 0; }

.sbs .wp-block-search__label { display: block; margin: 0 0 10px; font: 700 18px/1.3 var(--sbs-serif); color: var(--sbs-ink); }
.sbs .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.sbs .wp-block-search__input { flex: 1; border-radius: 999px !important; }
.sbs .wp-block-search__button { padding: 0 16px; margin: 0; }

.sbs .sidebar .wp-block-latest-posts, .sbs .sidebar .wp-block-categories, .sbs .sidebar ul { margin: 0; padding: 0; list-style: none; }
.sbs .sidebar .wp-block-latest-posts.is-grid { display: block; }
.sbs .sidebar .wp-block-latest-posts li, .sbs .sidebar .wp-block-categories li, .sbs .sidebar ul li {
	width: auto !important; margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--sbs-line); list-style: none;
}
.sbs .sidebar .wp-block-latest-posts li:last-child, .sbs .sidebar .wp-block-categories li:last-child, .sbs .sidebar ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.sbs .sidebar .wp-block-latest-posts a, .sbs .sidebar .wp-block-categories a { color: var(--sbs-ink) !important; font-weight: 500; line-height: 1.45; }
.sbs .sidebar .wp-block-latest-posts a:hover, .sbs .sidebar .wp-block-categories a:hover { color: var(--sbs-green-700) !important; }

.sbs .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sbs .wp-block-tag-cloud a, .sbs .tagcloud a {
	display: inline-block; margin: 0 !important; padding: 5px 12px !important;
	background: var(--sbs-cream) !important; color: var(--sbs-text) !important;
	border: 1px solid var(--sbs-line) !important; border-radius: 999px;
	font-size: 13px !important; line-height: 1.4;
}
.sbs .wp-block-tag-cloud a:hover, .sbs .tagcloud a:hover { border-color: var(--sbs-green-500) !important; color: var(--sbs-green-800) !important; }

.sbs .wp-block-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sbs .wp-block-social-links .wp-social-link {
	width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
	background: var(--sbs-green-100) !important; border-radius: 999px;
}
.sbs .wp-block-social-links .wp-social-link a {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0 !important; color: var(--sbs-green-800) !important;
}
.sbs .wp-block-social-links .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.sbs .wp-block-social-links .wp-social-link:hover { background: var(--sbs-green-700) !important; }
.sbs .wp-block-social-links .wp-social-link:hover a { color: #fff !important; }

/* --------------------------------------------------------------------------
   Bài viết
   -------------------------------------------------------------------------- */
.sbs-article { background: #fff; border-radius: var(--sbs-radius); box-shadow: var(--sbs-shadow); padding: 36px 44px 32px; }
.sbs-article__head { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--sbs-line); }
.sbs-article__title { margin: 12px 0 16px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.22; }
.sbs-meta--article { font-size: 14px; }
.sbs-meta__author img { width: 28px; height: 28px !important; border-radius: 50%; }
.sbs-meta__author a { color: var(--sbs-ink) !important; font-weight: 600; }

.sbs .breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
	margin: 0 0 14px; padding: 0; overflow: visible;
	color: var(--sbs-muted); font-size: 13.5px; line-height: 1.5;
}
.sbs .breadcrumb > div { display: inline-flex; align-items: center; padding: 0; float: none; }
.sbs .breadcrumb > div:first-child { display: none; }
.sbs .breadcrumb > div:has(> .fa-caret-right) { padding: 0 8px; }
.sbs .breadcrumb .fa { display: none; }
.sbs .breadcrumb > div:has(> .fa-caret-right)::before { content: "›"; color: var(--sbs-sand-600); font-size: 16px; }
.sbs .breadcrumb a { color: var(--sbs-muted) !important; }
.sbs .breadcrumb a:hover { color: var(--sbs-green-700) !important; }
.sbs .breadcrumb > div:last-child span { color: var(--sbs-ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Nội dung bài (prose) */
.sbs-prose { color: var(--sbs-text); font-size: 17.5px; line-height: 1.8; overflow-wrap: break-word; }
.sbs-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.sbs-prose h2, .sbs-prose h3, .sbs-prose h4 { margin: 1.8em 0 .6em; scroll-margin-top: calc(var(--sbs-header-h) + 20px); }
.sbs-prose h2 { font-size: 26px; }
.sbs-prose h3 { font-size: 21px; }
.sbs-prose h4 { font-size: 18px; }
.sbs-prose h2 strong, .sbs-prose h3 strong, .sbs-prose h4 strong { font-weight: inherit; }
.sbs-prose a:not(.wp-block-button__link):not(.ez-toc-link) { color: var(--sbs-green-700); text-decoration: underline; text-decoration-color: rgba(63, 94, 75, .35); text-underline-offset: 3px; }
.sbs-prose a:not(.wp-block-button__link):not(.ez-toc-link):hover { color: var(--sbs-gold); text-decoration-color: currentColor; }
.sbs-prose ul, .sbs-prose ol { margin-left: 0; padding-left: 1.4em; }
.sbs-prose ul { list-style: disc; }
.sbs-prose ol { list-style: decimal; }
.sbs-prose li { margin: 0 0 .45em; padding-left: .2em; }
.sbs-prose li::marker { color: var(--sbs-green-500); }
.sbs-prose img, .sbs-prose .wp-block-image img { border-radius: 12px; }
.sbs-prose figure, .sbs-prose .wp-block-image { margin-left: 0; margin-right: 0; max-width: 100%; }
.sbs-prose figcaption, .sbs-prose .wp-caption-text { margin-top: 8px; color: var(--sbs-muted); font-size: 14px; text-align: center; }
.sbs-prose .wp-caption { max-width: 100% !important; }
.sbs-prose blockquote {
	margin: 1.6em 0; padding: 18px 24px;
	background: var(--sbs-cream); border-left: 3px solid var(--sbs-gold); border-radius: 0 12px 12px 0;
	font: italic 400 19px/1.65 var(--sbs-serif); color: var(--sbs-ink);
}
.sbs-prose blockquote::after { display: none; }
.sbs-prose iframe, .sbs-prose video { max-width: 100%; border-radius: 12px; }
.sbs-prose .wp-block-embed__wrapper iframe { width: 100%; }
.sbs-table-wrap, .sbs-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; }
.sbs-prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.sbs-prose th, .sbs-prose td { padding: 10px 12px; border: 1px solid var(--sbs-line); text-align: left; vertical-align: top; }
.sbs-prose th, .sbs-prose thead td { background: var(--sbs-sand); color: var(--sbs-ink); font-weight: 600; }
.sbs-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--sbs-line); }
.sbs-prose pre { overflow-x: auto; }

/* Mục lục (Easy Table of Contents) */
.sbs-prose #ez-toc-container, .sbs-prose div.ez-toc-v2_0_17 {
	width: 100%; margin: 1.5em 0 2em; padding: 18px 22px;
	background: var(--sbs-cream) !important; border: 1px solid var(--sbs-line) !important; border-radius: 12px;
	box-shadow: none !important; font-size: 15.5px;
}
.sbs-prose #ez-toc-container .ez-toc-title { font: 700 17px/1.3 var(--sbs-serif); color: var(--sbs-ink); }
.sbs-prose #ez-toc-container ul { margin: 10px 0 0; padding-left: 0; list-style: none; }
.sbs-prose #ez-toc-container li { margin: 0; padding: 4px 0; }
.sbs-prose #ez-toc-container a { color: var(--sbs-green-800) !important; text-decoration: none !important; }
.sbs-prose #ez-toc-container a:hover { color: var(--sbs-gold) !important; }

/* Cuối bài */
.sbs-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--sbs-line); }
.sbs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sbs-tags a { padding: 5px 12px; background: var(--sbs-cream); color: var(--sbs-text) !important; border: 1px solid var(--sbs-line); border-radius: 999px; font-size: 13.5px; }
.sbs-tags a:hover { border-color: var(--sbs-green-500); color: var(--sbs-green-800) !important; }

.sbs-share { display: flex; align-items: center; gap: 6px; }
.sbs-share__label { margin-right: 4px; color: var(--sbs-muted); font-size: 13.5px; font-weight: 500; }
.sbs-share a, .sbs-share button {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	background: var(--sbs-green-100); color: var(--sbs-green-800) !important;
	border: 0; border-radius: 999px; cursor: pointer; transition: .15s ease;
}
.sbs-share a:hover, .sbs-share button:hover { background: var(--sbs-green-700); color: #fff !important; }
.sbs-share__done {
	position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
	padding: 4px 8px; background: var(--sbs-ink); color: #fff; border-radius: 6px;
	font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.sbs-share__copy.is-done .sbs-share__done { opacity: 1; }

.sbs-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px; background: var(--sbs-cream); border-radius: 12px; }
.sbs-author img { width: 72px; height: 72px !important; border-radius: 50%; flex-shrink: 0; }
.sbs-author__name { margin: 0 0 6px; font-size: 19px; }
.sbs-author p { margin: 0; color: var(--sbs-muted); font-size: 15px; }
.sbs-author .sbs-eyebrow { margin-bottom: 2px; }

.sbs-related { margin-top: 8px; }
.sbs-related .sbs-card__title { font-size: 17px; }

/* Bình luận (markup của theme cha) */
.sbs-comments { margin-top: 36px; padding: 30px 36px; background: #fff; border-radius: var(--sbs-radius); box-shadow: var(--sbs-shadow); }
.sbs-comments:not(:has(*)) { display: none; }
.sbs #comments, .sbs #commentsAdd, .sbs #respond { float: none; width: auto; margin: 0; padding: 0; background: none; border: 0; }
.sbs .total-comments, .sbs #respond h4, .sbs .comment-reply-title { margin: 0 0 16px; font: 700 21px/1.3 var(--sbs-serif); color: var(--sbs-ink); text-transform: none; }
.sbs .commentlist { margin: 0 0 24px; padding: 0; list-style: none; }
.sbs .commentlist li { margin: 0 0 16px; padding: 0; list-style: none; }
.sbs .commentlist .comment-body, .sbs .commentlist #commentbody { padding: 16px 18px; background: var(--sbs-cream); border-radius: 12px; }
.sbs .commentlist .children { margin: 12px 0 0 24px; padding: 0; }
.sbs .commentlist .avatar { border-radius: 50%; }
.sbs #commentform p { margin: 0 0 14px; }
.sbs #commentform .comment-form-author, .sbs #commentform .comment-form-email, .sbs #commentform .comment-form-url { float: none; width: auto; }
.sbs #commentform input#submit {
	min-width: 180px; height: 46px; padding: 0 24px;
	background: var(--sbs-green-700); color: #fff; border: 0; border-radius: 999px;
	font: 600 15px/1 var(--sbs-font); text-transform: none; letter-spacing: 0; box-shadow: none; float: none;
}
.sbs #commentform input#submit:hover { background: var(--sbs-green-900); }
.sbs .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--sbs-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.sbs-footer { margin-top: 40px; background: var(--sbs-green-900); color: rgba(255, 255, 255, .78); font-size: 15px; }
.sbs-footer a { color: rgba(255, 255, 255, .88) !important; }
.sbs-footer a:hover { color: #fff !important; }
.sbs-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.sbs-footer__brand p { max-width: 340px; margin: 18px 0 0; line-height: 1.7; }
.sbs .sbs-footer__title, .sbs .sbs-footer .widget h3 { margin: 0 0 16px; color: #fff; font: 600 13px/1.4 var(--sbs-font); letter-spacing: .14em; text-transform: uppercase; }
.sbs-footer__links { margin: 0; padding: 0; list-style: none; }
.sbs-footer__links li { margin: 0 0 10px; padding: 0; line-height: 1.5; list-style: none; }
.sbs-footer__links .children { display: none; }
.sbs-footer__widgets .widget { float: none; width: auto; margin: 0 0 16px; }
.sbs-footer__widgets .widget:empty { display: none; }
.sbs-footer__widgets img { display: block; }
.sbs-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }

.sbs-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 50;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; padding: 0;
	background: var(--sbs-green-700); color: #fff; border: 0; border-radius: 50%;
	box-shadow: var(--sbs-shadow-lg); cursor: pointer;
}
.sbs-to-top[hidden] { display: none; }
.sbs-to-top:hover { background: var(--sbs-green-900); }

/* Gỡ float của theme cha (.hentry, .hentry header) trên markup mới */
.sbs .sbs-card, .sbs .sbs-article, .sbs .sbs-article header, .sbs .sbs-card header { float: none; width: auto; clear: none; }
.sbs .sbs-article .sbs-article__head { padding: 0 0 22px; border-bottom: 1px solid var(--sbs-line); }
.sbs .sbs-article .sbs-article__title { margin: 12px 0 16px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.22; }

/* Thành phần của theme cha không còn dùng */
#move-to-top, .shareit, .footer-carousel-wrap, #mobile-menu-overlay { display: none !important; }
.sbs .topad, .sbs .bottomad { margin: 0 0 1.4em; text-align: center; }
.sbs ins.adsbygoogle { max-width: 100%; overflow: hidden; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.sbs-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
	.sbs-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 959px) {
	:root { --sbs-header-h: 62px; }
	.sbs-menu-toggle { display: inline-flex; }

	/* Menu dạng ngăn kéo */
	.sbs-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
		width: min(86vw, 360px); padding: 16px 20px 28px; overflow-y: auto;
		background: var(--sbs-cream); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35);
		transform: translateX(105%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.sbs-menu-open .sbs-nav { transform: none; visibility: visible; transition: transform .25s ease; }
	.sbs-menu-open .sbs-header { z-index: 90; }
	.sbs-menu-open { overflow: hidden; }
	.sbs-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
	.sbs-nav__title { font: 700 20px/1 var(--sbs-serif); color: var(--sbs-ink); }
	.sbs-menu { display: block; }
	.sbs-menu > li { border-bottom: 1px solid var(--sbs-line); }
	.sbs-menu a { padding: 15px 4px; border-radius: 0; font-size: 17px; }
	.sbs-menu a:hover { background: none; color: var(--sbs-green-700) !important; }
	.sbs-menu .current-menu-item > a, .sbs-menu .current-cat > a { background: none; color: var(--sbs-green-700) !important; font-weight: 600; }
	.sbs-menu .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.sbs-menu .menu-item-has-children > a { flex: 1; }
	.sbs-sub-toggle {
		display: inline-flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center;
		background: none; border: 0; cursor: pointer; color: var(--sbs-ink);
	}
	.sbs-sub-toggle::before { content: "+"; font-size: 22px; line-height: 1; }
	.sbs-menu .is-open > .sbs-sub-toggle::before { content: "–"; }
	.sbs-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 8px 12px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.sbs-menu .is-open > .sub-menu { display: block; }
	.sbs-menu .sub-menu a { padding: 10px 4px; font-size: 15.5px; }
	.sbs-nav__search { display: flex; gap: 8px; margin-top: 22px; }
	.sbs-nav__search input { flex: 1; border-radius: 999px; }
	.sbs-nav__search button { flex-shrink: 0; width: 46px; min-height: 46px; padding: 0; }

	.sbs-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 24px; }
	.sbs-card--featured .sbs-card__body { padding: 22px 22px 24px; }
	.sbs-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sbs-grid--3 > :nth-child(3) { display: none; }
	.sbs-article { padding: 28px 28px 26px; }
}

@media (max-width: 782px) {
	.admin-bar .sbs-header { top: 46px; }
}

@media (max-width: 640px) {
	:root { --sbs-gutter: 16px; }
	body.sbs { font-size: 15.5px; }
	.sbs-header__inner { gap: 8px; }
	.sbs-logo__mark { width: 36px; height: 36px; }
	.sbs-logo__name { font-size: 18px; }
	.sbs-logo__sub { font-size: 9.5px; }

	.sbs-intro { padding: 28px 0 0; }
	.sbs-intro__lead { font-size: 15.5px; margin-bottom: 18px; }
	.sbs-chips { flex-wrap: nowrap; justify-content: flex-start; margin: 0 calc(var(--sbs-gutter) * -1); padding: 2px var(--sbs-gutter) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.sbs-chips::-webkit-scrollbar { display: none; }
	.sbs-chip { flex-shrink: 0; }

	.sbs-grid, .sbs-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.sbs-grid--3 > :nth-child(3) { display: flex; }
	.sbs-section-title { margin: 30px 0 16px; font-size: 21px; }
	.sbs-card__body { padding: 16px 16px 18px; }
	.sbs-card__title { font-size: 18px; }
	.sbs-card--featured .sbs-card__body { padding: 18px 16px 20px; }
	.sbs-card--featured .sbs-card__excerpt { -webkit-line-clamp: 3; font-size: 15px; }

	/* Thẻ trong bài liên quan: ảnh nhỏ bên trái */
	.sbs-related .sbs-card { flex-direction: row; }
	.sbs-related .sbs-card__media { width: 38%; aspect-ratio: 1 / 1; flex-shrink: 0; }
	.sbs-related .sbs-card__body { padding: 12px 14px; gap: 6px; }
	.sbs-related .sbs-card__title { font-size: 15.5px; }
	.sbs-related .sbs-meta > span:last-child { display: none; }
	.sbs-related .sbs-pill { display: none; }

	.sbs-article { margin: 0 calc(var(--sbs-gutter) * -1); padding: 22px var(--sbs-gutter) 22px; border-radius: 0; box-shadow: none; }
	.sbs-layout--single { padding-top: 0; }
	.sbs-article__title { font-size: 26px; }
	.sbs-prose { font-size: 16.5px; line-height: 1.75; }
	.sbs-prose h2 { font-size: 22px; }
	.sbs-prose h3 { font-size: 19px; }
	.sbs-prose img, .sbs-prose .wp-block-image img { border-radius: 10px; }
	.sbs-article__foot { flex-direction: column; align-items: flex-start; }
	.sbs-author { padding: 18px; }
	.sbs-author img { width: 56px; height: 56px !important; }
	.sbs-comments { margin-left: calc(var(--sbs-gutter) * -1); margin-right: calc(var(--sbs-gutter) * -1); padding: 24px var(--sbs-gutter); border-radius: 0; box-shadow: none; }

	.sbs .sidebar .widget { padding: 18px; }
	.sbs-searchbar, .sbs-search form { flex-wrap: nowrap; }
	.sbs-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
	.sbs-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

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

@media print {
	.sbs-header, .sbs-footer, .sidebar, .sbs-share, .sbs-related, .sbs-comments, .sbs-to-top { display: none !important; }
	.sbs-layout { display: block; }
	.sbs-article { box-shadow: none; padding: 0; }
}
