/* Marketing guides. TOC, prose, and tables follow the documentation article
   styles in documentation.css. This file fits them into the marketing shell. */

.guide-page {
	color: var(--bs-gray-800);
	background: #fff;
}

.guide-page .docs-read {
	max-width: 1120px;
	margin: 0 auto;
	padding: 56px 40px 88px;
	grid-template-columns: minmax(0, 760px) 210px;
	column-gap: 56px;
	justify-content: center;
}

.guide-page .docs-article h1 {
	margin: 0 0 12px;
	color: var(--bs-gray-900);
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.guide-kicker {
	margin: 0 0 14px;
	color: var(--bs-gray-600);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.guide-kicker a {
	color: var(--bs-gray-600);
	text-decoration: none;
}

.guide-kicker a:hover {
	color: var(--bs-primary);
}

.guide-updated {
	margin: 0 0 22px;
	color: var(--bs-gray-600);
	font-size: 14px;
}

.guide-callout {
	max-width: 72ch;
	margin: 0 0 36px;
	padding: 16px 18px 16px 20px;
	border-left: 3px solid var(--bs-primary);
	border-radius: 0 12px 12px 0;
	background: #f4f8ff;
	color: var(--bs-gray-800);
	font-size: 16.5px;
	line-height: 1.7;
}

.guide-callout p:last-child {
	margin-bottom: 0;
}

.guide-callout strong {
	color: var(--bs-gray-900);
}

.guide-page .docs-body {
	max-width: none;
	color: var(--bs-gray-700);
	font-size: 17px;
	line-height: 1.75;
}

.guide-page .docs-body > p,
.guide-page .docs-body > ul,
.guide-page .docs-body > ol,
.guide-page .docs-body > blockquote,
.guide-page .docs-body > h2,
.guide-page .docs-body > h3,
.guide-page .docs-body > h4,
.guide-page .docs-body > pre {
	max-width: 72ch;
}

.guide-page .docs-body h2,
.guide-page .docs-body h3,
.guide-page .docs-body h4 {
	color: var(--bs-gray-900);
	font-weight: 700;
	scroll-margin-top: 110px;
}

.guide-page .docs-body h2 {
	margin-top: 44px;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.guide-page .docs-body h3 {
	font-size: 20px;
}

.guide-page .docs-body a {
	color: var(--bs-primary);
}

.guide-page .docs-body blockquote {
	border-left-color: var(--bs-primary);
	background: #f4f8ff;
}

.guide-page .guide-table-scroll {
	width: 100%;
	max-width: 100%;
	margin: 0 0 28px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.guide-page .guide-table-scroll table {
	width: 100%;
	min-width: 680px;
	margin-bottom: 0;
}

.guide-page .docs-body th {
	background: var(--bs-gray-100) !important;
	color: var(--bs-gray-900) !important;
}

.guide-page .docs-body td:first-child,
.guide-page .docs-body th:first-child {
	color: var(--bs-gray-900);
	font-weight: 600;
}

.guide-page .docs-toc {
	top: 96px;
}

.guide-page .docs-toc a.is-active {
	border-left-color: var(--bs-primary);
	color: var(--bs-gray-900);
	font-weight: 600;
}

.guide-toc-mobile {
	display: none;
}

.guide-end {
	max-width: 72ch;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--bs-gray-200);
}

.guide-end-title {
	margin: 0 0 8px;
	color: var(--bs-gray-900);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.guide-end-copy {
	margin: 0 0 18px;
	color: var(--bs-gray-600);
	font-size: 15px;
	line-height: 1.6;
}

.guide-end-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.guide-end-pricing {
	color: var(--bs-gray-800);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.guide-end-pricing:hover {
	color: var(--bs-primary);
}

.guide-more-label {
	margin: 0 0 8px;
	color: var(--bs-gray-600);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.guide-more ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.guide-more li + li {
	margin-top: 6px;
}

.guide-more a {
	color: var(--bs-gray-900);
	font-weight: 600;
	text-decoration: none;
}

.guide-more a:hover {
	color: var(--bs-primary);
}

.guide-index-wrap {
	padding-top: 64px;
	padding-bottom: 88px;
}

.guide-index h1 {
	margin: 0 0 12px;
	color: var(--bs-gray-900);
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.guide-index-intro {
	max-width: 62ch;
	margin: 0 0 36px;
	color: var(--bs-gray-600);
	font-size: 18px;
	line-height: 1.6;
}

.guide-index-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.guide-card {
	display: block;
	padding: 22px 24px 18px;
	border: 1px solid var(--bs-gray-200);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(7, 20, 55, 0.04);
	color: inherit;
	text-decoration: none;
}

.guide-card:hover {
	border-color: var(--bs-gray-300);
	box-shadow: 0 10px 28px rgba(7, 20, 55, 0.06);
	text-decoration: none;
}

.guide-card h2 {
	margin: 0 0 8px;
	color: var(--bs-gray-900);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.guide-card p {
	margin: 0;
	color: var(--bs-gray-600);
	font-size: 15px;
	line-height: 1.55;
}

.guide-card-meta {
	margin-top: 14px !important;
	color: var(--bs-gray-500) !important;
	font-size: 13px !important;
}

@media (max-width: 1100px) {
	.guide-page .docs-read {
		grid-template-columns: minmax(0, 72ch) 190px;
		column-gap: 36px;
		padding: 40px 24px 72px;
	}

	.guide-page .docs-article,
	.guide-page .docs-toc {
		grid-column: auto;
		grid-row: auto;
	}

	.guide-page .docs-toc {
		position: sticky;
		top: 96px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.guide-page .docs-toc nav {
		border-left: 1px solid #ececef;
	}
}

@media (max-width: 991.98px) {
	.guide-page .docs-read {
		grid-template-columns: minmax(0, 1fr);
		padding: 28px 20px 64px;
	}

	.guide-page .docs-article h1 {
		font-size: 32px;
	}

	.guide-page .docs-toc {
		display: none !important;
	}

	.guide-toc-mobile {
		display: block;
		margin: 0 0 22px;
		padding: 12px 14px;
		border: 1px solid var(--bs-gray-200);
		border-radius: 12px;
		background: var(--bs-gray-100);
	}

	.guide-toc-mobile summary {
		color: var(--bs-gray-900);
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
	}

	.guide-toc-mobile nav {
		display: flex;
		flex-direction: column;
		gap: 6px;
		margin-top: 12px;
	}

	.guide-toc-mobile a {
		color: var(--bs-gray-700);
		font-size: 14px;
		line-height: 1.4;
		text-decoration: none;
	}

	.guide-toc-mobile a.is-active {
		color: var(--bs-gray-900);
		font-weight: 600;
	}

	.guide-index h1 {
		font-size: 36px;
	}

	.guide-index-wrap {
		padding-top: 36px;
		padding-bottom: 56px;
	}
}

/* Guides index. Article pages do not use these rules. */

.guide-index .guide-index-wrap {
	padding-top: 72px;
	padding-bottom: 88px;
}

.guide-index h1 {
	margin: 0 0 12px;
	color: var(--bs-gray-900);
	font-size: 64px;
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.guide-hero {
	max-width: 740px;
	margin-bottom: 8px;
}

.guide-stats {
	display: flex;
	justify-content: center;
	gap: 0;
	width: 100%;
	margin: 36px 0 72px;
	padding: 28px 0;
	border-top: 1px solid var(--bs-gray-200);
	border-bottom: 1px solid var(--bs-gray-200);
	list-style: none;
}

.guide-stats li {
	flex: 1 1 0;
	max-width: 240px;
	padding: 0 36px;
	text-align: center;
}

.guide-stats li + li {
	border-left: 1px solid var(--bs-gray-200);
}

.guide-stat-value,
.guide-stat-label {
	margin: 0;
}

.guide-stat-value {
	color: var(--bs-gray-900);
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.guide-stat-label {
	margin-top: 8px;
	color: var(--bs-gray-600);
	font-size: 14px;
	font-weight: 600;
}

.guide-section-label {
	margin: 0 0 28px;
	color: var(--bs-gray-900);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	text-align: center;
}

.guide-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}

.guide-shot {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--bs-gray-200);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(7, 20, 55, 0.04);
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guide-shot:hover {
	transform: translateY(-4px);
	border-color: var(--bs-gray-300);
	box-shadow: 0 16px 40px rgba(7, 20, 55, 0.08);
	color: inherit;
	text-decoration: none;
}

.guide-shot:focus-visible {
	outline: 2px solid var(--bs-primary);
	outline-offset: 3px;
}

.guide-shot-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--bs-gray-100);
}

.guide-shot-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.3s ease;
}

.guide-shot:hover .guide-shot-media img {
	transform: scale(1.04);
}

.guide-shot-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 18px 20px 16px;
}

.guide-topic {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f4f8ff;
	color: var(--bs-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.guide-shot h3 {
	margin: 0 0 8px;
	color: var(--bs-gray-900);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.guide-shot-body p {
	margin: 0;
	color: var(--bs-gray-600);
	font-size: 14.5px;
	line-height: 1.55;
}

.guide-shot-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
}

.guide-index .guide-card-meta {
	margin: 0 !important;
	color: var(--bs-gray-500);
	font-size: 13px;
	line-height: 1.4;
}

/* Card link only. Article pages put guide-read on the docs grid wrapper. */
.guide-shot-read {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 6px;
	color: var(--bs-gray-900);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.guide-shot-read i {
	transition: transform 0.3s ease;
}

.guide-shot:hover .guide-shot-read i {
	transform: translateX(3px);
}

@media (min-width: 768px) {
	.guide-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

@media (max-width: 767.98px) {
	.guide-index .guide-index-wrap {
		padding-top: 36px;
		padding-bottom: 56px;
	}

	.guide-index h1 {
		font-size: 36px;
	}

	.guide-stats {
		margin: 24px 0 40px;
		padding: 20px 0;
	}

	.guide-stats li {
		max-width: none;
		padding: 0 16px;
	}

	.guide-stat-value {
		font-size: 32px;
	}

	.guide-stat-label {
		font-size: 13px;
	}

	.guide-section-label {
		margin-bottom: 18px;
		font-size: 24px;
		text-align: left;
	}

	.guide-shot-foot {
		flex-direction: column;
		align-items: flex-start;
	}
}
