/*
 * Bác Sĩ Đồng Hồ – Kiến thức đồng hồ
 *
 * Fonts and brand colours come from the Woodmart theme options through its
 * CSS custom properties (--wd-title-font, --wd-text-font, --wd-primary-color,
 * --wd-alternative-color…), so the section always matches the theme. The
 * values after the comma are only fallbacks.
 *
 * Mobile first. Palette: white, black, warm greys, a light champagne gold.
 */

.bsdh-kt {
	--bsdh-ink: var(--wd-title-color, #1d1d1f);
	--bsdh-text: var(--wd-text-color, #4a4a4a);
	--bsdh-muted: #6b6b6b;
	--bsdh-line: #e7e3db;
	--bsdh-line-strong: #d3cdc1;
	--bsdh-surface: #fff;
	--bsdh-soft: #f7f5f0;
	--bsdh-gold: var(--wd-alternative-color, #fab52c);
	--bsdh-gold-ink: #85611a;
	--bsdh-champagne: #f8f1e2;
	--bsdh-champagne-line: #ebdfc2;
	--bsdh-accent: var(--wd-primary-color, #af1f29);
	--bsdh-red-ink: #8e2b28;
	--bsdh-red-soft: #fbf3f2;
	--bsdh-red-line: #f0d9d6;
	--bsdh-radius: 12px;
	--bsdh-radius-lg: 16px;
	--bsdh-font-title: var(--wd-title-font, inherit);
	--bsdh-title-weight: var(--wd-title-font-weight, 600);
	--bsdh-font-text: var(--wd-text-font, inherit);
	--bsdh-ease: cubic-bezier(.2, .7, .2, 1);

	color: var(--bsdh-text);
	font-family: var(--bsdh-font-text);
	font-size: 16px;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}

.bsdh-kt *,
.bsdh-kt *::before,
.bsdh-kt *::after {
	box-sizing: border-box;
}

.bsdh-kt-area {
	min-width: 0;
	width: 100%;
	overflow-x: clip;
}

.bsdh-kt :is(h1, h2, h3, p, ul, ol, figure) {
	margin: 0;
}

.bsdh-kt :is(h1, h2, h3) {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-weight: var(--bsdh-title-weight);
	text-transform: none;
	line-height: 1.3;
	letter-spacing: -.005em;
}

.bsdh-kt :is(ul, ol) {
	--list-mb: 0;
	--li-pl: 0;
	--li-mb: 0;
	padding: 0;
	list-style: none;
}

.bsdh-kt a {
	color: inherit;
	text-decoration: none;
}

.bsdh-kt img {
	max-width: 100%;
	height: auto;
}

.bsdh-kt .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.bsdh-icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -.25em;
}

/* ---------- Buttons (override Woodmart's global button styles) ---------- */

.bsdh-kt .bsdh-btn {
	--btn-height: 46px;
	--btn-transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}

.bsdh-kt .bsdh-btn--primary {
	border-color: var(--bsdh-accent);
	background: var(--bsdh-accent);
	color: #fff;
}

.bsdh-kt .bsdh-btn--primary:hover {
	background: color-mix(in srgb, var(--bsdh-accent) 88%, #000);
	color: #fff;
}

.bsdh-kt .bsdh-btn--dark {
	border-color: var(--bsdh-ink);
	background: var(--bsdh-ink);
	color: #fff;
}

.bsdh-kt .bsdh-btn--dark:hover {
	background: #000;
	color: #fff;
}

.bsdh-kt .bsdh-btn--ghost {
	border-color: var(--bsdh-line-strong);
	background: var(--bsdh-surface);
}

.bsdh-kt .bsdh-btn--ghost:hover {
	border-color: var(--bsdh-ink);
	background: var(--bsdh-surface);
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-btn--text {
	padding: 0 12px;
	color: var(--bsdh-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bsdh-kt .bsdh-btn--text:hover {
	background: transparent;
	color: var(--bsdh-ink);
}

/* ---------- Section switch (detail pages) ---------- */

.bsdh-switch {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); /* the second label is longer */
	gap: 8px;
	margin: 0 0 18px;
}

.bsdh-kt .bsdh-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 42px;
	padding: 0 10px;
	border: 1px solid var(--bsdh-line-strong);
	border-radius: 999px;
	background: var(--bsdh-surface);
	color: var(--bsdh-ink);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .2s, border-color .2s, color .2s;
}

.bsdh-switch__link > span:not(.bsdh-switch__count) {
	overflow: hidden;
	text-overflow: ellipsis;
}

.bsdh-switch__link .bsdh-icon {
	flex: none;
	width: 17px;
	height: 17px;
	color: var(--bsdh-gold-ink);
}

.bsdh-kt .bsdh-switch__link:hover {
	border-color: var(--bsdh-ink);
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-switch__link.is-active {
	border-color: var(--bsdh-accent);
	background: var(--bsdh-accent);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--bsdh-accent) 25%, transparent);
	color: #fff;
}

.bsdh-switch__link.is-active .bsdh-icon {
	color: currentColor;
}

.bsdh-switch__count {
	display: none;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--bsdh-soft);
	color: var(--bsdh-muted);
	font-size: 12px;
	text-align: center;
}

.bsdh-switch__link.is-active .bsdh-switch__count {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.bsdh-switch__link:focus-visible {
	outline: 2px solid var(--bsdh-gold);
	outline-offset: 2px;
}

@media (max-width: 379px) {
	.bsdh-switch__link .bsdh-icon {
		display: none;
	}
}

@media (min-width: 480px) {
	.bsdh-switch {
		display: flex;
		flex-wrap: wrap;
	}

	.bsdh-kt .bsdh-switch__link {
		gap: 8px;
		padding: 0 18px;
		font-size: 14px;
	}

	.bsdh-switch__count {
		display: inline-block;
	}
}

/* ---------- Breadcrumb ---------- */

.bsdh-breadcrumb {
	margin: 4px 0 20px;
	font-size: 14px;
	color: var(--bsdh-muted);
}

.bsdh-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
}

.bsdh-breadcrumb li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.bsdh-breadcrumb li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 10px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .5;
}

.bsdh-breadcrumb a:hover {
	color: var(--bsdh-ink);
}

.bsdh-breadcrumb [aria-current] {
	color: var(--bsdh-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60vw;
}

/* ---------- Badges ---------- */

.bsdh-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
}

.bsdh-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: .75;
}

.bsdh-badge--normal {
	background: #eef2ee;
	color: #3c5a44;
}

.bsdh-badge--check {
	background: var(--bsdh-champagne);
	color: var(--bsdh-gold-ink);
}

.bsdh-badge--urgent {
	background: #f8eceb;
	color: var(--bsdh-red-ink);
}

.bsdh-badge--guide {
	gap: 6px;
	background: var(--bsdh-soft);
	color: var(--bsdh-muted);
}

.bsdh-badge--guide .bsdh-icon {
	width: 15px;
	height: 15px;
}

/* ---------- Hub: hero + search ---------- */

.bsdh-hub {
	margin-bottom: 56px;
}

.bsdh-hub__hero {
	position: relative;
	padding: 36px 20px 30px;
	border-radius: var(--bsdh-radius-lg);
	background:
		radial-gradient(120% 90% at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		var(--bsdh-soft);
	text-align: center;
}

.bsdh-hub__hero::before {
	content: "";
	display: block;
	width: 36px;
	height: 2px;
	margin: 0 auto 18px;
	border-radius: 2px;
	background: var(--bsdh-gold);
}

.bsdh-kt .bsdh-hub__title {
	max-width: 760px;
	margin: 0 auto;
	font-size: clamp(27px, 6.4vw, 44px);
	line-height: 1.18;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.bsdh-hub__desc {
	max-width: 620px;
	margin: 12px auto 0 !important;
	color: var(--bsdh-muted);
	font-size: 16px;
	line-height: 1.6;
}

.bsdh-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 720px;
	margin: 24px auto 0;
}

.bsdh-search__icon {
	position: absolute;
	left: 18px;
	display: flex;
	color: var(--bsdh-muted);
	pointer-events: none;
}

.bsdh-kt .bsdh-search__input {
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 52px 0 50px;
	border: 1px solid var(--bsdh-line-strong);
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-surface);
	box-shadow: 0 1px 2px rgba(28, 22, 10, .04), 0 8px 24px -16px rgba(28, 22, 10, .18);
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-text);
	font-size: 16px;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}

.bsdh-kt .bsdh-search__input::placeholder {
	color: #8d8a84;
	opacity: 1;
}

.bsdh-kt .bsdh-search__input:focus {
	outline: none;
	border-color: var(--bsdh-ink);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--bsdh-gold) 22%, transparent);
}

.bsdh-search__input::-webkit-search-cancel-button {
	display: none;
}

.bsdh-kt .bsdh-search__clear {
	position: absolute;
	right: 8px;
	width: 42px;
	min-height: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bsdh-muted);
}

.bsdh-kt .bsdh-search__clear:hover {
	background: var(--bsdh-soft);
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-search__clear[hidden] {
	display: none;
}

.bsdh-hub__hint {
	margin-top: 14px !important;
	color: var(--bsdh-muted);
	font-size: 14px;
}

.bsdh-hub__hint a {
	color: var(--bsdh-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ---------- Hub: tabs + chips ---------- */

.bsdh-hub__controls {
	margin-top: 28px;
}

.bsdh-tabs {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	border-bottom: 1px solid var(--bsdh-line);
	scrollbar-width: none;
}

.bsdh-tabs::-webkit-scrollbar {
	display: none;
}

.bsdh-kt .bsdh-tab {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--bsdh-muted);
	font-family: var(--bsdh-font-text);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	white-space: nowrap;
}

.bsdh-tab__more {
	display: none;
}

.bsdh-kt .bsdh-tab:hover {
	background: transparent;
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-tab::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--bsdh-ink);
	transform: scaleX(0);
	transition: transform .25s var(--bsdh-ease);
}

.bsdh-kt .bsdh-tab.is-active {
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-tab.is-active::after {
	transform: scaleX(1);
}

.bsdh-tab__count {
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--bsdh-soft);
	color: var(--bsdh-muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}

.bsdh-tab.is-active .bsdh-tab__count {
	background: var(--bsdh-champagne);
	color: var(--bsdh-gold-ink);
}

.bsdh-chips {
	display: flex;
	gap: 8px;
	margin: 16px -2px 0;
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.bsdh-chips::-webkit-scrollbar {
	display: none;
}

.bsdh-kt .bsdh-chip {
	flex: none;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--bsdh-line);
	border-radius: 999px;
	background: var(--bsdh-surface);
	box-shadow: none;
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-text);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	white-space: nowrap;
	transition: border-color .2s, background-color .2s, color .2s;
}

.bsdh-kt .bsdh-chip:hover {
	border-color: var(--bsdh-line-strong);
	background: var(--bsdh-surface);
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-chip.is-active {
	border-color: var(--bsdh-ink);
	background: var(--bsdh-ink);
	color: #fff;
}

.bsdh-kt .bsdh-chip[hidden] {
	display: none;
}

.bsdh-hub__status {
	margin: 20px 0 14px !important;
	color: var(--bsdh-muted);
	font-size: 14px;
}

/* ---------- Cards ---------- */

.bsdh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.bsdh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--bsdh-line);
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-surface);
	transition: border-color .2s, box-shadow .25s var(--bsdh-ease), transform .25s var(--bsdh-ease);
}

.bsdh-card:hover {
	border-color: var(--bsdh-line-strong);
	box-shadow: 0 10px 28px -18px rgba(28, 22, 10, .28);
}

.bsdh-card:focus-within {
	border-color: var(--bsdh-ink);
}

.bsdh-card.is-hidden,
.bsdh-card.is-paged {
	display: none;
}

.bsdh-card__top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bsdh-kt .bsdh-card__title {
	font-size: 18px;
	line-height: 1.35;
	margin: 2px 0 0;
}

.bsdh-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.bsdh-kt .bsdh-card__link:focus-visible {
	outline: none !important;
}

.bsdh-card__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	color: var(--bsdh-muted);
	font-size: 15px;
	line-height: 1.6;
}

.bsdh-card__tags {
	color: var(--bsdh-gold-ink);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .01em;
}

.bsdh-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--bsdh-line);
	font-size: 14px;
}

.bsdh-card__cost {
	min-width: 0;
	color: var(--bsdh-muted);
}

.bsdh-card__cost strong {
	color: var(--bsdh-ink);
	font-weight: 600;
}

.bsdh-card__meta {
	min-width: 0;
	overflow: hidden;
	color: var(--bsdh-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bsdh-card__cta {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	color: var(--bsdh-ink);
	font-weight: 600;
}

.bsdh-card__cta .bsdh-icon {
	width: 16px;
	height: 16px;
	color: var(--bsdh-gold-ink);
	transition: transform .25s var(--bsdh-ease);
}

.bsdh-card:hover .bsdh-card__cta .bsdh-icon {
	transform: translateX(3px);
}

.bsdh-card--mini {
	gap: 8px;
	padding: 16px;
}

.bsdh-kt .bsdh-card--mini .bsdh-card__title {
	font-size: 16px;
}

.bsdh-card--mini .bsdh-card__foot {
	padding-top: 12px;
	font-size: 13px;
}

/* ---------- Empty / more ---------- */

.bsdh-empty {
	padding: 36px 20px;
	border: 1px dashed var(--bsdh-line-strong);
	border-radius: var(--bsdh-radius);
	text-align: center;
}

.bsdh-empty[hidden],
.bsdh-more[hidden],
.bsdh-hub__other[hidden],
.bsdh-empty__other[hidden] {
	display: none;
}

.bsdh-empty__title {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 18px;
	font-weight: var(--bsdh-title-weight);
}

.bsdh-empty__text,
.bsdh-empty__other {
	margin-top: 6px !important;
	color: var(--bsdh-muted);
	font-size: 15px;
}

.bsdh-kt .bsdh-link-btn {
	display: inline;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--bsdh-ink);
	font: inherit;
	font-weight: 600;
	text-transform: none;
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	vertical-align: baseline;
}

.bsdh-kt .bsdh-link-btn:hover {
	background: none;
	color: var(--bsdh-ink);
}

.bsdh-hub__other {
	margin-top: 16px !important;
	color: var(--bsdh-muted);
	font-size: 15px;
}

.bsdh-more {
	margin-top: 24px;
	text-align: center;
}

/* ---------- Quick check ---------- */

.bsdh-quick {
	margin-top: 48px;
	padding: 28px 20px;
	border: 1px solid var(--bsdh-line);
	border-radius: var(--bsdh-radius-lg);
	background: var(--bsdh-soft);
	scroll-margin-top: 120px;
}

.bsdh-kt .bsdh-quick__title {
	font-size: clamp(22px, 4.4vw, 28px);
}

.bsdh-quick__desc {
	margin-top: 6px !important;
	color: var(--bsdh-muted);
	font-size: 15px;
}

.bsdh-kt .bsdh-quick__form fieldset {
	min-width: 0;
	margin: 20px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.bsdh-quick__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bsdh-kt .bsdh-check {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	margin: 0;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--bsdh-line-strong);
	border-radius: 999px;
	background: var(--bsdh-surface);
	color: var(--bsdh-ink);
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
	-webkit-user-select: none;
	user-select: none;
}

.bsdh-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.bsdh-check__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--bsdh-line-strong);
	border-radius: 6px;
	background: #fff;
	color: transparent;
	transition: background-color .15s, border-color .15s;
}

.bsdh-check__box .bsdh-icon {
	width: 14px;
	height: 14px;
	stroke-width: 2.5;
}

.bsdh-kt .bsdh-check:hover {
	border-color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-check:has(input:checked) {
	border-color: var(--bsdh-ink);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--bsdh-ink);
}

.bsdh-check input:checked + .bsdh-check__box {
	border-color: var(--bsdh-ink);
	background: var(--bsdh-ink);
	color: #fff;
}

.bsdh-check input:focus-visible + .bsdh-check__box {
	outline: 2px solid var(--bsdh-ink);
	outline-offset: 2px;
}

.bsdh-quick__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

.bsdh-quick__result {
	margin-top: 24px;
	padding: 22px 20px;
	border: 1px solid var(--bsdh-line);
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-surface);
}

.bsdh-quick__result:focus {
	outline: none;
}

.bsdh-quick__result-title {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 18px;
	font-weight: var(--bsdh-title-weight);
}

.bsdh-quick__list {
	margin-top: 12px !important;
	counter-reset: bsdh-quick;
}

.bsdh-quick__list li {
	counter-increment: bsdh-quick;
	border-top: 1px solid var(--bsdh-line);
}

.bsdh-quick__list li:first-child {
	border-top: 0;
}

.bsdh-quick__list a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	padding: 12px 0;
}

.bsdh-quick__list a::before {
	content: counter(bsdh-quick);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bsdh-champagne);
	color: var(--bsdh-gold-ink);
	font-size: 13px;
	font-weight: 700;
}

.bsdh-quick__item-title {
	display: block;
	padding-top: 3px;
	color: var(--bsdh-ink);
	font-weight: 600;
	line-height: 1.4;
}

.bsdh-quick__list a:hover .bsdh-quick__item-title {
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-underline-offset: 3px;
}

.bsdh-quick__item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 4px;
	color: var(--bsdh-muted);
	font-size: 13px;
}

.bsdh-quick__list .bsdh-badge {
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 12px;
}

.bsdh-quick__empty {
	margin-top: 10px !important;
	color: var(--bsdh-muted);
}

.bsdh-quick__note {
	display: flex;
	gap: 8px;
	margin-top: 14px !important;
	padding-top: 14px;
	border-top: 1px solid var(--bsdh-line);
	color: var(--bsdh-muted);
	font-size: 14px;
	line-height: 1.5;
}

.bsdh-quick__note .bsdh-icon {
	margin-top: 1px;
	color: var(--bsdh-gold-ink);
}

/* ---------- Legend ---------- */

.bsdh-legend {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--bsdh-line);
	font-size: 14px;
	color: var(--bsdh-muted);
}

.bsdh-legend__title {
	margin-bottom: 10px !important;
	color: var(--bsdh-ink);
	font-weight: 600;
}

.bsdh-legend__list {
	display: grid;
	gap: 10px;
}

.bsdh-legend__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

/* ---------- Detail pages ---------- */

.bsdh-single {
	margin-bottom: 56px;
}

.bsdh-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.bsdh-single__main {
	min-width: 0;
	max-width: 780px;
}

.bsdh-single__header {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bsdh-line);
}

.bsdh-eyebrow {
	margin-bottom: 10px !important;
	color: var(--bsdh-gold-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bsdh-eyebrow a:hover {
	color: var(--bsdh-ink);
}

.bsdh-kt .bsdh-single__title {
	font-size: clamp(28px, 6vw, 40px);
	line-height: 1.2;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.bsdh-severity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 16px;
}

.bsdh-severity__desc {
	color: var(--bsdh-muted);
	font-size: 14px;
}

.bsdh-lead {
	margin-top: 16px !important;
	color: var(--bsdh-text);
	font-size: 18px;
	line-height: 1.65;
}

.bsdh-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px !important;
}

.bsdh-meta li {
	padding: 6px 12px;
	border: 1px solid var(--bsdh-line);
	border-radius: 999px;
	color: var(--bsdh-ink);
	font-size: 14px;
}

.bsdh-meta__label {
	color: var(--bsdh-muted);
}

.bsdh-figure {
	margin-top: 28px !important;
	overflow: hidden;
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-soft);
}

.bsdh-figure img {
	display: block;
	width: 100%;
}

.bsdh-section {
	margin-top: 36px;
	scroll-margin-top: 120px;
}

.bsdh-kt .bsdh-section__title {
	margin-bottom: 16px;
	font-size: 22px;
}

.bsdh-kt .bsdh-section__title::before {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin-bottom: 12px;
	border-radius: 2px;
	background: var(--bsdh-gold);
}

/* ---------- Section lists: WPBakery "Danh sách kiến thức" (class list-*) ----------
 * Styles are keyed on the list-* class, so a WPBakery Text Block holding a
 * bulleted list and given e.g. "list-bieu-hien" as Extra class name looks the
 * same as the element.
 */

.bsdh-body {
	margin-top: 32px;
	scroll-margin-top: 120px;
}

.bsdh-body > :first-child {
	margin-top: 0;
}

/* Normal typography for free content (Text Blocks…) in the body; the
   list-* rules below are more specific and win inside lists. */
.bsdh-kt .bsdh-body :where(p, ul, ol, figure, table, blockquote) {
	margin: 0 0 18px;
}

.bsdh-kt .bsdh-body :where(ul, ol) {
	padding-left: 22px;
	list-style: disc;
}

.bsdh-kt .bsdh-body :where(ol) {
	list-style: decimal;
}

.bsdh-kt .bsdh-body :where(li) {
	margin-bottom: 6px;
}

.bsdh-kt .bsdh-body :where(h2, h3, h4) {
	margin: 28px 0 14px;
}

.bsdh-kt .bsdh-body :where(h2, h3, h4):first-child {
	margin-top: 0;
}

.bsdh-kt .bsdh-body :where(.wpb_wrapper > :last-child) {
	margin-bottom: 0;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) {
	margin: 0 0 32px;
	scroll-margin-top: 120px;
}

.bsdh-kt .bsdh-list-block__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 22px;
}

.bsdh-list-block__title .bsdh-icon {
	width: 22px;
	height: 22px;
}

/* Open sections get the short gold rule above their title */
.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-cac-buoc, .list-thuong) > .bsdh-list-block__title {
	display: block;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-cac-buoc, .list-thuong) > .bsdh-list-block__title::before {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin-bottom: 12px;
	border-radius: 2px;
	background: var(--bsdh-gold);
}

/* Items */
.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) :is(ul, ol) {
	--list-mb: 0;
	--li-pl: 0;
	--li-mb: 0;
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) li {
	position: relative;
	margin: 0;
	padding-left: 36px;
	color: var(--bsdh-text);
	line-height: 1.6;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) li a {
	color: var(--bsdh-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bsdh-kt :is(.list-bieu-hien, .list-nguyen-nhan, .list-nen-lam, .list-khong-nen, .list-khi-nao, .list-cac-buoc, .list-luu-y, .list-thuong) li img {
	display: block;
	margin-top: 12px;
	border-radius: var(--bsdh-radius);
}

/* Dots: nguyên nhân, khi nào, lưu ý, thường */
.bsdh-kt :is(.list-nguyen-nhan, .list-khi-nao, .list-luu-y, .list-thuong) li {
	padding-left: 26px;
}

.bsdh-kt :is(.list-nguyen-nhan, .list-khi-nao, .list-luu-y, .list-thuong) li::before {
	top: 10px;
	left: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bsdh-gold);
}

/* Tick: biểu hiện */
.bsdh-kt .list-bieu-hien li::before {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bsdh-champagne) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385611a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Numbers: bạn nên làm gì */
.bsdh-kt .list-nen-lam :is(ul, ol) {
	counter-reset: bsdh-num;
}

.bsdh-kt .list-nen-lam li {
	counter-increment: bsdh-num;
}

.bsdh-kt .list-nen-lam li::before {
	content: counter(bsdh-num);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bsdh-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* Cross: không nên */
.bsdh-kt .list-khong-nen li {
	color: #3d2b2a;
	font-weight: 500;
}

.bsdh-kt .list-khong-nen li::before {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f6e3e1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e2b28' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Steps: các bước */
.bsdh-kt .list-cac-buoc :is(ul, ol) {
	gap: 0;
	counter-reset: bsdh-step;
}

.bsdh-kt .list-cac-buoc li {
	counter-increment: bsdh-step;
	min-height: 44px;
	padding: 2px 0 28px 60px;
	scroll-margin-top: 120px;
}

.bsdh-kt .list-cac-buoc li:last-child {
	padding-bottom: 0;
}

.bsdh-kt .list-cac-buoc li::before {
	content: counter(bsdh-step);
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bsdh-ink);
	border-radius: 50%;
	background: var(--bsdh-surface);
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 18px;
	font-weight: var(--bsdh-title-weight);
}

.bsdh-kt .list-cac-buoc li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 48px;
	bottom: 4px;
	left: 21.5px;
	width: 1px;
	background: var(--bsdh-line-strong);
}

.bsdh-kt .list-cac-buoc li > :is(strong, b):first-of-type {
	display: block;
	margin-bottom: 4px;
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 18px;
	font-weight: var(--bsdh-title-weight);
	line-height: 1.35;
}

.bsdh-kt .list-cac-buoc li > :is(strong, b):first-of-type + br {
	display: none;
}

.bsdh-step-label {
	display: block;
	color: var(--bsdh-gold-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Boxes: nên làm, không nên, khi nào, lưu ý */
.bsdh-kt :is(.list-nen-lam, .list-khong-nen, .list-khi-nao, .list-luu-y) {
	padding: 22px 20px;
	border: 1px solid var(--bsdh-line);
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-soft);
}

.bsdh-kt :is(.list-nen-lam, .list-khong-nen, .list-khi-nao, .list-luu-y) > .bsdh-list-block__title {
	font-size: 20px;
}

.bsdh-kt :is(.list-nen-lam, .list-khi-nao, .list-luu-y) .bsdh-list-block__title .bsdh-icon {
	color: var(--bsdh-gold-ink);
}

.bsdh-kt .list-nen-lam {
	border-color: var(--bsdh-champagne-line);
	background: #fcf9f2;
}

.bsdh-kt .list-khong-nen {
	border-color: var(--bsdh-red-line);
	border-left: 4px solid var(--bsdh-red-ink);
	background: var(--bsdh-red-soft);
}

.bsdh-kt .list-khong-nen > .bsdh-list-block__title,
.bsdh-kt .list-khong-nen :is(h2, h3, h4) {
	color: var(--bsdh-red-ink);
}

/* Note under a list (e.g. nguyên nhân) */
.bsdh-list-block__note {
	display: flex;
	gap: 8px;
	margin: 16px 0 0 !important;
	color: var(--bsdh-muted);
	font-size: 14px;
	line-height: 1.55;
}

.bsdh-list-block__note .bsdh-icon {
	margin-top: 1px;
	color: var(--bsdh-gold-ink);
}

/* "Xử lý & chi phí": ways the workshop handles the issue, with prices */
.bsdh-kt .bsdh-fix {
	margin: 0 0 32px;
	padding: 22px 20px;
	border: 1px solid var(--bsdh-champagne-line);
	border-radius: var(--bsdh-radius);
	background: linear-gradient(180deg, #fcf9f2, #fff 240px);
	scroll-margin-top: 120px;
}

.bsdh-kt .bsdh-fix > .bsdh-fix__title {
	margin-bottom: 8px;
	font-size: 20px;
}

.bsdh-fix__title .bsdh-icon {
	color: var(--bsdh-gold-ink);
}

.bsdh-kt .bsdh-fix .bsdh-fix__desc {
	margin: 0 0 18px;
	color: var(--bsdh-muted);
	font-size: 15px;
	line-height: 1.55;
}

.bsdh-fix__cost {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--bsdh-champagne-line);
	border-left: 3px solid var(--bsdh-gold);
	border-radius: 10px;
	background: var(--bsdh-surface);
}

.bsdh-fix__cost-label {
	color: var(--bsdh-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bsdh-fix__cost-value {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 20px;
	font-weight: var(--bsdh-title-weight);
	line-height: 1.3;
}

.bsdh-fix__cost-note {
	color: var(--bsdh-text);
	font-size: 14px;
	line-height: 1.5;
}

.bsdh-kt .bsdh-fix .bsdh-fix__list {
	display: grid;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.bsdh-kt .bsdh-fix .bsdh-fix__item {
	margin: 0;
	padding: 16px 0;
}

.bsdh-fix__item + .bsdh-fix__item {
	border-top: 1px solid var(--bsdh-line);
}

.bsdh-fix__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 16px;
}

.bsdh-kt .bsdh-fix .bsdh-fix__name {
	flex: 1 1 200px;
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
}

.bsdh-kt .bsdh-fix__name a {
	color: var(--bsdh-ink);
	text-decoration: none;
}

.bsdh-fix__name .bsdh-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	vertical-align: -2px;
	color: var(--bsdh-gold-ink);
	transition: transform .2s var(--bsdh-ease);
}

.bsdh-kt .bsdh-fix__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-underline-offset: 3px;
}

.bsdh-fix__name a:hover .bsdh-icon {
	transform: translateX(3px);
}

.bsdh-fix__price {
	color: var(--bsdh-ink);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.bsdh-fix__price.is-empty {
	color: var(--bsdh-muted);
	font-size: 14px;
	font-weight: 400;
}

.bsdh-kt .bsdh-fix .bsdh-fix__text {
	margin: 4px 0 0;
	color: var(--bsdh-muted);
	font-size: 14px;
	line-height: 1.55;
}

.bsdh-kt .bsdh-fix .bsdh-fix__rows {
	display: grid;
	margin: 10px 0 0;
	padding: 0;
	border: 1px solid var(--bsdh-line);
	border-radius: 10px;
	background: var(--bsdh-surface);
	list-style: none;
}

.bsdh-kt .bsdh-fix .bsdh-fix__rows li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 8px 12px;
	color: var(--bsdh-text);
	font-size: 14px;
	line-height: 1.45;
}

.bsdh-kt .bsdh-fix .bsdh-fix__rows li + li {
	border-top: 1px solid var(--bsdh-line);
}

.bsdh-fix__row-price {
	flex: none;
	color: var(--bsdh-ink);
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

.bsdh-kt .bsdh-fix .bsdh-fix__meta {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 8px 0 0;
	color: var(--bsdh-text);
	font-size: 13px;
}

.bsdh-fix__meta .bsdh-icon {
	flex: none;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	color: var(--bsdh-gold-ink);
}

.bsdh-kt .bsdh-fix .bsdh-fix__note {
	display: flex;
	gap: 8px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--bsdh-line);
	color: var(--bsdh-muted);
	font-size: 13px;
	line-height: 1.55;
}

.bsdh-kt .bsdh-fix .bsdh-fix__cost + .bsdh-fix__note {
	margin-top: 14px;
	padding-top: 0;
	border-top: 0;
}

.bsdh-fix__note .bsdh-icon {
	margin-top: 2px;
	color: var(--bsdh-gold-ink);
}

/* Content, video, FAQ */

.bsdh-content > :first-child {
	margin-top: 0;
}

.bsdh-video__frame {
	overflow: hidden;
	border-radius: var(--bsdh-radius);
	background: #000;
}

.bsdh-video__frame :is(iframe, video, .wp-video) {
	display: block;
	width: 100% !important;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.bsdh-faq__list {
	border-top: 1px solid var(--bsdh-line);
}

.bsdh-faq__item {
	border-bottom: 1px solid var(--bsdh-line);
}

.bsdh-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 0;
	color: var(--bsdh-ink);
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
}

.bsdh-faq__item summary::-webkit-details-marker {
	display: none;
}

.bsdh-faq__item summary:focus-visible {
	outline: 2px solid var(--bsdh-ink);
	outline-offset: 2px;
}

.bsdh-faq__toggle {
	position: relative;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid var(--bsdh-line-strong);
	border-radius: 50%;
}

.bsdh-faq__toggle::before,
.bsdh-faq__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1.5px;
	background: var(--bsdh-ink);
	transform: translate(-50%, -50%);
	transition: transform .2s;
}

.bsdh-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.bsdh-faq__item[open] .bsdh-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.bsdh-faq__answer {
	padding: 0 44px 18px 0;
	color: var(--bsdh-text);
}

.bsdh-faq__answer p {
	margin-bottom: 8px !important;
}

.bsdh-faq__answer p:last-child {
	margin-bottom: 0 !important;
}

/* Aside panels */

.bsdh-single__aside {
	min-width: 0;
}

.bsdh-aside__inner {
	display: grid;
	gap: 16px;
}

.bsdh-panel {
	padding: 22px 20px;
	border: 1px solid var(--bsdh-line);
	border-radius: var(--bsdh-radius);
	background: var(--bsdh-surface);
	scroll-margin-top: 120px;
}

.bsdh-panel__title {
	margin-bottom: 10px !important;
	color: var(--bsdh-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bsdh-cta {
	background: var(--bsdh-soft);
}

.bsdh-kt .bsdh-cta .bsdh-panel__title {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 18px;
	font-weight: var(--bsdh-title-weight);
	letter-spacing: 0;
	text-transform: none;
}

.bsdh-cta__text {
	color: var(--bsdh-muted);
	font-size: 14px;
	line-height: 1.55;
}

.bsdh-cta__actions {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.bsdh-cta__actions .bsdh-btn {
	width: 100%;
}

.bsdh-toc__list {
	counter-reset: bsdh-toc;
}

.bsdh-toc__list li {
	counter-increment: bsdh-toc;
}

.bsdh-toc__list a {
	display: flex;
	gap: 10px;
	padding: 7px 0;
	color: var(--bsdh-text);
	font-size: 15px;
	line-height: 1.4;
}

.bsdh-toc__list a::before {
	content: counter(bsdh-toc) ".";
	flex: none;
	min-width: 18px;
	color: var(--bsdh-gold-ink);
	font-weight: 600;
}

.bsdh-toc__list a:hover {
	color: var(--bsdh-ink);
}

/* Related issues / guides in the aside of an issue page */

.bsdh-kt .bsdh-side__title {
	margin-bottom: 4px;
	font-size: 18px;
}

.bsdh-side__list li + li {
	border-top: 1px solid var(--bsdh-line);
}

.bsdh-kt .bsdh-side__link {
	display: grid;
	justify-items: start;
	gap: 6px;
	padding: 14px 0;
}

.bsdh-kt .bsdh-side__list li:last-child .bsdh-side__link {
	padding-bottom: 2px;
}

.bsdh-side__link:focus-visible {
	outline: 2px solid var(--bsdh-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.bsdh-side__name {
	color: var(--bsdh-ink);
	font-family: var(--bsdh-font-title);
	font-size: 15px;
	font-weight: var(--bsdh-title-weight);
	line-height: 1.4;
}

.bsdh-side__link:hover .bsdh-side__name {
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-underline-offset: 3px;
}

.bsdh-side .bsdh-badge {
	padding: 2px 9px 2px 8px;
	font-size: 12px;
}

.bsdh-side__guide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bsdh-muted);
	font-size: 12px;
	font-weight: 600;
}

.bsdh-side__guide .bsdh-icon {
	width: 14px;
	height: 14px;
}

/* 1.1 "Nội dung dưới mục" blocks (now shown in place) */

.bsdh-slot > :last-child {
	margin-bottom: 0;
}

/* Related */

.bsdh-related {
	margin-top: 48px;
}

.bsdh-related__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 80%);
	gap: 12px;
	padding: 2px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.bsdh-related__track > * {
	scroll-snap-align: start;
}

.bsdh-back {
	margin-top: 40px !important;
	font-size: 15px;
}

.bsdh-back a {
	color: var(--bsdh-ink);
	font-weight: 600;
}

.bsdh-back a:hover {
	text-decoration: underline;
	text-decoration-color: var(--bsdh-gold);
	text-underline-offset: 4px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
	.bsdh-tabs {
		gap: 28px;
	}

	.bsdh-kt .bsdh-tab {
		font-size: 16px;
	}

	.bsdh-tab__count {
		min-width: 26px;
		padding: 1px 8px;
		font-size: 12px;
	}

	.bsdh-tab__more {
		display: inline;
	}

	.bsdh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.bsdh-hub__hero {
		padding: 52px 40px 40px;
	}

	.bsdh-hub__desc {
		font-size: 17px;
	}

	.bsdh-kt .bsdh-search__input {
		height: 62px;
		font-size: 17px;
	}

	.bsdh-quick,
	.bsdh-panel,
	.bsdh-kt .bsdh-fix,
	.bsdh-kt :is(.list-nen-lam, .list-khong-nen, .list-khi-nao, .list-luu-y) {
		padding-left: 28px;
		padding-right: 28px;
	}

	.bsdh-quick {
		padding-top: 36px;
		padding-bottom: 36px;
	}

	.bsdh-fix__cost-value {
		font-size: 24px;
	}

	.bsdh-related__track {
		grid-auto-columns: minmax(260px, 46%);
	}

	.bsdh-legend__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.bsdh-legend__list li {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 768px) {
	.bsdh-chips {
		flex-wrap: wrap;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.bsdh-aside__inner--flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}
}

@media (min-width: 1024px) {
	.bsdh-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}

	.bsdh-card {
		padding: 22px;
	}

	.bsdh-hub__hero {
		padding: 64px 48px 48px;
	}

	.bsdh-single__layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 48px;
		align-items: start;
	}

	/* Next to the aside the content uses the whole column (no gap between them). */
	.bsdh-single__layout:not(.bsdh-single__layout--full) > .bsdh-single__main {
		max-width: none;
	}

	.bsdh-single__layout--full {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Full height column, so its sticky content can follow the scroll. */
	.bsdh-single__aside {
		align-self: stretch;
	}

	.bsdh-aside__inner {
		position: sticky;
		top: calc(var(--wd-admin-bar-h, 0px) + 110px);
	}

	/* Related lists: sticky only when they fit the window (set by the script). */
	.bsdh-aside__inner--flow {
		position: static;
	}

	.bsdh-aside__inner--flow.is-sticky {
		position: sticky;
	}

	.bsdh-related__track {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-auto-columns: auto;
		gap: 16px;
		overflow: visible;
		padding: 0;
	}

	.bsdh-quick {
		padding: 44px 48px;
	}
}

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