/* ==========================================================================
   Single blog post (Figma 82:22193)
   ========================================================================== */

/* Smooth jump to sections from the table of contents */
html:has(.gf-single) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(.gf-single) {
		scroll-behavior: auto;
	}
}

.gf-single__container {
	max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
	margin: 0 auto;
	padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

/* ---------- Hero ---------- */
.gf-single__hero {
	padding-top: 80px;
}

.gf-single__title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -1.28px;
	color: #151515;
}

.gf-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 26.667px;
	letter-spacing: -.36px;
	color: #070707;
}

.gf-post-meta li {
	display: flex;
	align-items: center;
	gap: 10.667px;
}

.gf-post-meta img {
	display: block;
	flex-shrink: 0;
}

.gf-single__meta {
	margin-top: 22px;
}

.gf-single__image {
	position: relative;
	aspect-ratio: 1587 / 757;
	margin: 22px 0 0;
	overflow: hidden;
	background-color: #eaeaea;
	border-radius: 6px;
}

.gf-single__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

/* ---------- Body: form (561) + article (961), 65 gap ---------- */
.gf-single__body {
	margin-top: 80px;
}

.gf-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 561fr) minmax(0, 961fr);
	gap: 50px 65px;
	align-items: start;
}

.gf-single__grid--full {
	grid-template-columns: minmax(0, 961px);
	justify-content: center;
}

.gf-single__aside {
	position: -webkit-sticky;
	position: sticky;
	top: 30px;
	align-self: start;
	z-index: 1;
}

.admin-bar .gf-single__aside {
	top: 62px;
}

.gf-single__notice {
	padding: 20px;
	border: 1px dashed #c3cad9;
	border-radius: 8px;
	font-family: var(--gf-font-body);
	font-size: 15px;
	color: #5a7184;
}

/* Article typography */
.gf-single__content {
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: -.36px;
	color: #4d4d4d;
}

.gf-single__content > :first-child {
	margin-top: 0;
}

.gf-single__content > :last-child {
	margin-bottom: 0;
}

.gf-single__content p {
	margin: 0 0 1.8em;
}

.gf-single__content h2 {
	margin: 45px 0 20px;
	font-family: var(--gf-font-alt);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -.72px;
	color: var(--gf-navy);
	scroll-margin-top: 30px;
}

.gf-single__content h3 {
	margin: 24px 0 9px;
	font-family: var(--gf-font-alt);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.43;
	letter-spacing: -.24px;
	color: #4d4d4d;
}

.gf-single__content h4,
.gf-single__content h5,
.gf-single__content h6 {
	margin: 24px 0 9px;
	font-family: var(--gf-font-alt);
	font-weight: 600;
	line-height: 1.4;
	color: #2a2a2a;
}

.gf-single__content ul,
.gf-single__content ol {
	margin: 0 0 1.8em;
	padding-left: 1.4em;
}

.gf-single__content li {
	margin-bottom: .4em;
}

.gf-single__content a {
	color: var(--gf-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gf-single__content a:hover {
	color: var(--gf-red);
}

.gf-single__content blockquote {
	margin: 0 0 1.8em;
	padding: 20px 28px;
	background: #f4f3ff;
	border-left: 4px solid var(--gf-navy);
	border-radius: 0 6px 6px 0;
	color: #2a2a2a;
}

.gf-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.gf-single__content figure {
	margin: 0 0 1.8em;
}

.gf-single__content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: #808080;
}

/* Table of contents */
.gf-toc {
	margin: 45px 0;
	padding: 13px 31px 33px;
	background-color: #f4f3ff;
	border: 1px solid #2b2668;
	border-radius: 6px;
}

.gf-single__content .gf-toc__title {
	margin: 0 0 15px;
	font-family: var(--gf-font-alt);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.43;
	letter-spacing: 0;
	color: #151515;
}

.gf-single__content .gf-toc__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding-left: 27px;
	list-style: decimal;
	font-size: 18px;
	line-height: 1.93;
	color: #4a4a4a;
}

.gf-single__content .gf-toc__list li {
	margin: 0;
	padding-left: 0;
}

.gf-single__content .gf-toc__list a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.gf-single__content .gf-toc__list a:hover,
.gf-single__content .gf-toc__list a:focus {
	color: var(--gf-navy);
	text-decoration: underline;
}

/* ---------- Related posts ---------- */
.gf-single__related {
	margin-top: 80px;
}

.gf-single__related-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-bottom: 60px;
	text-align: center;
}

.gf-single__related-title {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 64px;
	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -1.28px;
	color: var(--gf-navy);
}

.gf-single__related-desc {
	max-width: 1045px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -.36px;
	color: #6e6e6e;
}

.gf-related.swiper {
	overflow: hidden;
}

.gf-related__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: auto;
}

.gf-related__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 334 / 313;
	overflow: hidden;
	background-color: #f6f6f6;
	border-radius: 9px;
}

.gf-related__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.gf-related__item:hover .gf-related__img {
	transform: scale(1.05);
}

.gf-related__title {
	display: -webkit-box;
	min-height: calc(3 * 1.43em);
	margin: 26px 0 0;
	overflow: hidden;
	font-family: var(--gf-font-alt);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.43;
	letter-spacing: -.4px;
	color: #151515;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gf-related__title a {
	color: inherit;
	text-decoration: none;
}

.gf-related__title a:hover {
	color: var(--gf-navy);
}

.gf-related__meta.gf-post-meta {
	margin-top: 25px;
	font-size: 16px;
	letter-spacing: -.32px;
}

.gf-related__more {
	margin-top: 25px;
	font-family: var(--gf-font-body);
	font-size: 20px;
	line-height: 1.43;
	letter-spacing: -.4px;
	color: #000;
	text-decoration: underline;
	text-underline-position: from-font;
}

.gf-related__more:hover {
	color: var(--gf-red);
}

.gf-related__controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 31px;
	margin-top: 31px;
}

.gf-related__progress {
	position: relative;
	width: 100%;
	height: 6px;
	overflow: hidden;
	background-color: #d9d9d9;
}

.gf-related__progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 21.7%;
	height: 100%;
	background-color: #2a2282;
	transition: width .35s ease;
}

.gf-related__nav {
	display: flex;
	gap: 12px;
}

.gf-related__arrow {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	padding: 0;
	border: 1px solid;
	border-radius: 50%;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.gf-related__arrow img {
	display: block;
	pointer-events: none;
}

.gf-related__arrow--prev,
.gf-related__arrow--prev:hover,
.gf-related__arrow--prev:focus {
	background-color: var(--gf-white);
	border-color: #cfcfcf;
}

.gf-related__arrow--prev img {
	transform: rotate(180deg);
}

.gf-related__arrow--next,
.gf-related__arrow--next:hover,
.gf-related__arrow--next:focus {
	background-color: #2a2282;
	border-color: #433ba1;
}

.gf-related__arrow:hover {
	transform: scale(1.06);
}

.gf-related__arrow.swiper-button-disabled {
	cursor: default;
	opacity: .45;
	transform: none;
}

/* ---------- Bottom FAQ ---------- */
.gf-single__faq {
	padding: 80px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1440px) {
	.gf-single__title,
	.gf-single__related-title {
		font-size: 56px;
	}
}

@media (max-width: 1199px) {
	.gf-single__grid {
		grid-template-columns: 1fr;
	}

	.gf-single__aside {
		position: static;
		order: 2;
	}

	.gf-single__article {
		order: 1;
	}
}

@media (max-width: 1024px) {
	.gf-single__hero {
		padding-top: 40px;
	}

	.gf-single__title,
	.gf-single__related-title {
		font-size: 44px;
	}

	.gf-single__body,
	.gf-single__related {
		margin-top: 60px;
	}

	.gf-single__faq {
		padding: 60px 0;
	}
}

@media (max-width: 767px) {
	.gf-single__hero {
		padding-top: 24px;
	}

	.gf-single__title,
	.gf-single__related-title {
		font-size: 32px;
		letter-spacing: -.64px;
	}

	.gf-post-meta {
		gap: 6px 20px;
		font-size: 15px;
	}

	.gf-single__image {
		aspect-ratio: 4 / 3;
	}

	.gf-single__body,
	.gf-single__related {
		margin-top: 40px;
	}

	.gf-single__content {
		font-size: 16px;
	}

	.gf-single__content h2 {
		margin-top: 32px;
		font-size: 26px;
	}

	.gf-single__content h3 {
		font-size: 20px;
	}

	.gf-toc {
		padding: 12px 18px 22px;
	}

	.gf-single__content .gf-toc__list {
		font-size: 16px;
		line-height: 1.6;
	}

	.gf-single__related-head {
		margin-bottom: 32px;
	}

	.gf-single__related-desc {
		font-size: 15px;
	}

	.gf-related__arrow {
		width: 56px;
		height: 56px;
	}

	.gf-single__faq {
		padding: 50px 0;
	}
}
