:root {
	--bt-ink: #151515;
	--bt-muted: #686868;
	--bt-soft: #f5f5f2;
	--bt-line: #e4e4df;
	--bt-paper: #ffffff;
	--bt-accent: #0b6f68;
	--bt-accent-soft: #eaf4f2;
	--bt-radius: 22px;
	--bt-shadow: 0 18px 55px rgba(20, 20, 20, 0.07);
}

.bt-guide {
	color: var(--bt-ink);
	background: var(--bt-paper);
	font-family: inherit;
}

.bt-guide *,
.bt-guide *::before,
.bt-guide *::after {
	box-sizing: border-box;
}

.bt-guide-shell {
	width: min(1220px, calc(100% - 48px));
	margin-inline: auto;
}

.bt-guide a {
	color: inherit;
}

.bt-guide a:focus-visible,
.bt-guide summary:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bt-accent) 45%, transparent);
	outline-offset: 4px;
	border-radius: 6px;
}

.bt-guide-kicker {
	margin: 0 0 12px !important;
	color: var(--bt-accent);
	font-size: 12px !important;
	font-weight: 700;
	line-height: 1.2 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.bt-guide-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 34px;
	color: #777;
	font-size: 13px;
	line-height: 1.5;
}

.bt-guide-breadcrumb a {
	text-decoration: none;
}

.bt-guide-breadcrumb a:hover {
	color: var(--bt-accent);
}

.bt-guide-hero {
	padding: clamp(42px, 6vw, 82px) 0 36px;
	background:
		radial-gradient(circle at 88% 10%, rgba(11, 111, 104, .09), transparent 29%),
		linear-gradient(180deg, #fbfbf8 0%, #f4f4f0 100%);
	border-bottom: 1px solid var(--bt-line);
}

/* XStore category wrapper can constrain the first section. Let only the guide hero break out
   to the viewport while keeping its inner content on the normal centered shell. */
.bt-guide-archive .bt-guide-hero {
	width: 100vw;
	max-width: none;
}

.bt-guide-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
	gap: clamp(32px, 6vw, 90px);
	align-items: end;
}

.bt-guide-hero h1,
.bt-article-hero h1 {
	max-width: 920px;
	margin: 0 !important;
	color: var(--bt-ink) !important;
	font-size: clamp(38px, 5.8vw, 76px) !important;
	font-weight: 600 !important;
	line-height: .98 !important;
	letter-spacing: -.045em;
}

.bt-guide-lead {
	max-width: 730px;
	margin-top: 24px;
}

.bt-guide-lead p,
.bt-article-deck p {
	margin: 0 !important;
	color: #555;
	font-size: clamp(17px, 1.7vw, 21px) !important;
	line-height: 1.68 !important;
}

.bt-guide-hero-note {
	padding: 24px;
	background: rgba(255, 255, 255, .82);
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: var(--bt-radius);
	box-shadow: 0 10px 35px rgba(0, 0, 0, .04);
	backdrop-filter: blur(8px);
}

.bt-guide-note-label {
	display: block;
	margin-bottom: 8px;
	color: var(--bt-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bt-guide-hero-note strong {
	display: block;
	margin-bottom: 8px;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.bt-guide-hero-note p {
	margin: 0 !important;
	color: #646464;
	font-size: 14px !important;
	line-height: 1.65 !important;
}

.bt-guide-pills {
	display: flex;
	gap: 9px;
	margin-top: 42px;
	padding-bottom: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.bt-guide-pills::-webkit-scrollbar {
	display: none;
}

.bt-guide-pills a {
	flex: 0 0 auto;
	padding: 10px 15px;
	border: 1px solid #d8d8d3;
	border-radius: 999px;
	background: rgba(255,255,255,.72);
	color: #4d4d4d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.bt-guide-pills a:hover {
	transform: translateY(-1px);
	border-color: #b9b9b3;
	color: var(--bt-ink);
}

.bt-guide-pills a.is-active {
	border-color: var(--bt-ink);
	background: var(--bt-ink);
	color: #fff;
}

.bt-guide-listing {
	padding: clamp(52px, 7vw, 92px) 0 96px;
}

.bt-guide-section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
	gap: 36px;
	align-items: end;
	margin-bottom: 34px;
}

.bt-guide-section-head h2 {
	margin: 0 !important;
	color: var(--bt-ink) !important;
	font-size: clamp(27px, 3vw, 40px) !important;
	font-weight: 600 !important;
	line-height: 1.12 !important;
	letter-spacing: -.03em;
}

.bt-guide-section-head > p {
	margin: 0 !important;
	color: var(--bt-muted);
	font-size: 15px !important;
	line-height: 1.7 !important;
}

.bt-guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.bt-guide-card {
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bt-guide-card:hover {
	transform: translateY(-3px);
	border-color: #d5d5cf;
	box-shadow: var(--bt-shadow);
}

.bt-guide-card-featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.bt-guide-card-media {
	display: block;
	min-height: 250px;
	overflow: hidden;
	background: var(--bt-soft);
	text-decoration: none;
}

.bt-guide-card-featured .bt-guide-card-media {
	min-height: 380px;
}

.bt-guide-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.bt-guide-card:hover .bt-guide-card-media img {
	transform: scale(1.025);
}

.bt-guide-placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
	padding: 28px;
	background:
		linear-gradient(135deg, rgba(11,111,104,.07), transparent 56%),
		linear-gradient(180deg, #f5f5f1 0%, #eeeeea 100%);
	color: var(--bt-accent);
}

.bt-guide-placeholder > span {
	max-width: 70%;
	color: #555;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bt-guide-placeholder svg {
	align-self: flex-end;
	width: 76px;
	height: 76px;
	opacity: .55;
}

.bt-guide-card-body {
	display: flex;
	flex-direction: column;
	padding: 28px;
}

.bt-guide-card-featured .bt-guide-card-body {
	justify-content: center;
	padding: clamp(30px, 4.5vw, 58px);
}

.bt-guide-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 15px;
	align-items: center;
	margin-bottom: 15px;
	color: #777;
	font-size: 12px;
	line-height: 1.4;
}

.bt-guide-meta > * + * {
	position: relative;
}

.bt-guide-meta > * + *::before {
	position: absolute;
	left: -9px;
	top: 50%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #b8b8b2;
	content: "";
	transform: translateY(-50%);
}

.bt-guide-meta a {
	color: var(--bt-accent);
	font-weight: 650;
	text-decoration: none;
}

.bt-guide-card h3 {
	margin: 0 0 14px !important;
	color: var(--bt-ink) !important;
	font-size: clamp(22px, 2.2vw, 31px) !important;
	font-weight: 600 !important;
	line-height: 1.18 !important;
	letter-spacing: -.025em;
}

.bt-guide-card-featured h3 {
	font-size: clamp(29px, 3.3vw, 46px) !important;
	line-height: 1.08 !important;
}

.bt-guide-card h3 a {
	text-decoration: none;
}

.bt-guide-card-excerpt {
	color: var(--bt-muted);
}

.bt-guide-card-excerpt p {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
}

.bt-guide-read {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	width: fit-content;
	margin-top: 23px;
	color: var(--bt-ink) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.bt-guide-read svg {
	width: 18px;
	height: 18px;
	transition: transform .2s ease;
}

.bt-guide-read:hover svg {
	transform: translateX(3px);
}

.bt-guide-pagination {
	margin-top: 48px;
}

.bt-guide-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.bt-guide-pagination li {
	margin: 0 !important;
}

.bt-guide-pagination a,
.bt-guide-pagination span {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	place-items: center;
	border: 1px solid var(--bt-line);
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.bt-guide-pagination .current {
	border-color: var(--bt-ink);
	background: var(--bt-ink);
	color: #fff;
}

.bt-guide-empty {
	padding: 50px 0;
	text-align: center;
}

/* Single article */
.bt-reading-progress {
	position: fixed;
	z-index: 9998;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	pointer-events: none;
}

.bt-reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--bt-accent);
	transition: width .08s linear;
}

.bt-article-hero {
	padding: clamp(38px, 6vw, 76px) 0 clamp(46px, 6vw, 78px);
	background:
		radial-gradient(circle at 78% 5%, rgba(11,111,104,.08), transparent 30%),
		linear-gradient(180deg, #fbfbf8 0%, #f5f5f1 100%);
	border-bottom: 1px solid var(--bt-line);
}

.bt-article-hero-inner {
	max-width: 1040px;
}

.bt-article-category {
	display: inline-flex;
	margin-bottom: 18px;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--bt-accent-soft);
	color: var(--bt-accent) !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
}

.bt-article-hero h1 {
	max-width: 1000px;
	font-size: clamp(36px, 5.6vw, 68px) !important;
	line-height: 1.02 !important;
}

.bt-article-deck {
	max-width: 830px;
	margin-top: 24px;
}

.bt-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 26px;
	color: #737373;
	font-size: 13px;
}

.bt-article-cover {
	overflow: hidden;
	margin: 38px 0 0 !important;
	border-radius: var(--bt-radius);
	background: var(--bt-soft);
}

.bt-article-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.bt-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(220px, 290px);
	gap: clamp(42px, 6vw, 86px);
	justify-content: center;
	align-items: start;
	padding-top: clamp(44px, 7vw, 86px);
	padding-bottom: clamp(62px, 8vw, 110px);
}

.bt-article-main {
	min-width: 0;
}

.bt-article-content {
	color: #292929;
	font-size: 17px;
	line-height: 1.82;
}

.bt-article-content > :first-child {
	margin-top: 0 !important;
}

.bt-article-content p,
.bt-article-content li {
	font-size: 17px !important;
	line-height: 1.82 !important;
}

.bt-article-content p {
	margin: 0 0 1.55em !important;
}

.bt-article-content ul,
.bt-article-content ol {
	margin: 0 0 1.7em !important;
	padding-left: 1.35em !important;
}

.bt-article-content li {
	margin: .55em 0 !important;
	padding-left: .2em;
}

.bt-article-content h2,
.bt-article-content h3,
.bt-article-content h4 {
	scroll-margin-top: 110px;
	color: var(--bt-ink) !important;
	font-weight: 650 !important;
	letter-spacing: -.025em;
}

.bt-article-content h2 {
	margin: 2.35em 0 .7em !important;
	font-size: clamp(27px, 3vw, 36px) !important;
	line-height: 1.18 !important;
}

.bt-article-content h3 {
	margin: 2em 0 .65em !important;
	font-size: 23px !important;
	line-height: 1.25 !important;
}

.bt-article-content h4 {
	margin: 1.8em 0 .6em !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
}

.bt-article-content strong {
	color: #191919;
	font-weight: 700;
}

.bt-article-content a {
	color: var(--bt-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bt-article-content blockquote {
	margin: 2.2em 0 !important;
	padding: 24px 26px;
	border: 0;
	border-left: 3px solid var(--bt-accent);
	border-radius: 0 14px 14px 0;
	background: var(--bt-accent-soft);
	color: #2e4f4c;
}

.bt-article-content hr {
	margin: 42px 0 !important;
	border: 0;
	border-top: 1px solid var(--bt-line);
}

.bt-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

.bt-article-content table {
	display: block;
	width: 100%;
	margin: 28px 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 14px;
	-webkit-overflow-scrolling: touch;
}

.bt-article-content th,
.bt-article-content td {
	min-width: 130px;
	padding: 12px 14px;
	border: 1px solid var(--bt-line);
	text-align: left;
	vertical-align: top;
}

.bt-article-content th {
	background: var(--bt-soft);
	color: var(--bt-ink);
	font-weight: 700;
}

.bt-article-aside {
	position: sticky;
	top: 104px;
}

.bt-toc-card {
	padding: 23px 22px;
	border: 1px solid var(--bt-line);
	border-radius: 18px;
	background: #fff;
}

.bt-toc-card ol,
.bt-mobile-toc ol {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.bt-toc-card li,
.bt-mobile-toc li {
	margin: 0 !important;
}

.bt-toc-card li + li,
.bt-mobile-toc li + li {
	margin-top: 9px !important;
}

.bt-toc-card a,
.bt-mobile-toc a {
	display: block;
	color: #666;
	font-size: 12.5px;
	line-height: 1.45;
	text-decoration: none;
	transition: color .18s ease, transform .18s ease;
}

.bt-toc-card a:hover,
.bt-toc-card a.is-active,
.bt-mobile-toc a:hover {
	color: var(--bt-accent);
}

.bt-toc-card .is-h3,
.bt-mobile-toc .is-h3 {
	padding-left: 13px;
}

.bt-mobile-toc {
	display: none;
	margin: 0 0 34px;
	padding: 0 18px;
	border: 1px solid var(--bt-line);
	border-radius: 14px;
	background: #fff;
}

.bt-mobile-toc summary {
	padding: 15px 0;
	color: var(--bt-ink);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.bt-mobile-toc nav {
	padding: 0 0 18px;
}

.bt-article-signoff {
	display: flex;
	gap: 26px;
	align-items: center;
	justify-content: space-between;
	margin-top: 54px;
	padding: 24px 0;
	border-top: 1px solid var(--bt-line);
	border-bottom: 1px solid var(--bt-line);
}

.bt-article-signoff span {
	display: block;
	margin-bottom: 5px;
	color: var(--bt-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bt-article-signoff strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.bt-article-signoff > a {
	flex: 0 0 auto;
	color: var(--bt-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.bt-related {
	padding: clamp(56px, 7vw, 90px) 0;
	background: #f6f6f3;
	border-top: 1px solid var(--bt-line);
}

.bt-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bt-related-grid article {
	display: flex;
	flex-direction: column;
	min-height: 230px;
	padding: 25px;
	border: 1px solid var(--bt-line);
	border-radius: 18px;
	background: #fff;
}

.bt-related-grid h3 {
	margin: 0 !important;
	color: var(--bt-ink) !important;
	font-size: 21px !important;
	font-weight: 600 !important;
	line-height: 1.28 !important;
	letter-spacing: -.02em;
}

.bt-related-grid h3 a {
	text-decoration: none;
}

.bt-related-grid .bt-guide-read {
	margin-top: auto;
	padding-top: 22px;
}

@media (max-width: 980px) {
	.bt-guide-hero-grid,
	.bt-guide-section-head,
	.bt-article-layout {
		grid-template-columns: 1fr;
	}

	.bt-guide-hero-note {
		max-width: 560px;
	}

	.bt-article-layout {
		max-width: 820px;
		gap: 0;
	}

	.bt-article-aside {
		display: none;
	}

	.bt-mobile-toc {
		display: block;
	}

	.bt-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bt-guide-shell {
		width: min(100% - 28px, 1220px);
	}

	.bt-guide-hero {
		padding: 30px 0 22px;
	}

	.bt-guide-breadcrumb {
		margin-bottom: 24px;
		font-size: 12px;
	}

	.bt-guide-hero-grid {
		gap: 26px;
	}

	.bt-guide-hero h1,
	.bt-article-hero h1 {
		font-size: clamp(34px, 10.5vw, 49px) !important;
		line-height: 1.02 !important;
		letter-spacing: -.04em;
	}

	.bt-guide-lead {
		margin-top: 18px;
	}

	.bt-guide-lead p,
	.bt-article-deck p {
		font-size: 16px !important;
		line-height: 1.62 !important;
	}

	.bt-guide-hero-note {
		padding: 20px;
		border-radius: 17px;
	}

	.bt-guide-pills {
		width: calc(100% + 14px);
		margin-top: 28px;
		padding-right: 14px;
	}

	.bt-guide-listing {
		padding: 44px 0 66px;
	}

	.bt-guide-section-head {
		gap: 13px;
		margin-bottom: 24px;
	}

	.bt-guide-section-head h2 {
		font-size: 27px !important;
	}

	.bt-guide-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bt-guide-card-featured {
		display: block;
	}

	.bt-guide-card-media,
	.bt-guide-card-featured .bt-guide-card-media {
		min-height: 220px;
		aspect-ratio: 16 / 10;
	}

	.bt-guide-card-body,
	.bt-guide-card-featured .bt-guide-card-body {
		padding: 22px;
	}

	.bt-guide-card h3,
	.bt-guide-card-featured h3 {
		font-size: 23px !important;
		line-height: 1.18 !important;
	}

	.bt-guide-card-excerpt p {
		font-size: 13.5px !important;
	}

	.bt-article-hero {
		padding: 30px 0 38px;
	}

	.bt-article-deck {
		margin-top: 18px;
	}

	.bt-article-meta {
		margin-top: 20px;
		font-size: 12px;
	}

	.bt-article-cover {
		margin-top: 22px !important;
		border-radius: 16px;
	}

	.bt-article-layout {
		padding-top: 32px;
		padding-bottom: 64px;
	}

	.bt-article-content,
	.bt-article-content p,
	.bt-article-content li {
		font-size: 16.5px !important;
		line-height: 1.78 !important;
	}

	.bt-article-content h2 {
		margin-top: 2.05em !important;
		font-size: 27px !important;
	}

	.bt-article-content h3 {
		font-size: 21px !important;
	}

	.bt-article-signoff {
		display: block;
		margin-top: 42px;
	}

	.bt-article-signoff > a {
		display: inline-block;
		margin-top: 16px;
	}

	.bt-related {
		padding: 48px 0 60px;
	}

	.bt-related-grid {
		grid-template-columns: 1fr;
	}

	.bt-related-grid article {
		min-height: 190px;
	}

	.bt-reading-progress {
		height: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-guide-card,
	.bt-guide-card-media img,
	.bt-guide-read svg,
	.bt-reading-progress span {
		transition: none !important;
	}
}
