/**
 * GutSlider blog: listing (gsl/blog-*) and article (gsl/post-*) styles.
 * Tokens, buttons and badges come from base.css.
 *
 * 1. Shared        3. Post cards       5. Article header   7. Article body
 * 2. Listing intro 4. Pagination, CTA  6. Layout and TOC   8. After the article
 */

/* 1. Shared ---------------------------------------------------------------------------------- */

.gsl-blog-page,
.gsl-post-page {
	background: var(--gsl-cream);
	color: var(--gsl-ink);
	overflow-x: clip;
}

:root:has(.gsl-post-page) {
	scroll-behavior: smooth;
}

.gsl-blog-main,
.gsl-post-main {
	--gsl-wrap: 1180px;
	margin-block: 0 !important;
}

.gsl-blog-main > *,
.gsl-post-main > *,
.gsl-post-layout > *,
.gsl-post-article > * {
	margin-block-start: 0 !important;
}

:is(.gsl-blog-page, .gsl-post-page) :is(h1, h2, h3) {
	font-family: var(--gsl-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--gsl-ink);
}

:is(.gsl-blog-page, .gsl-post-page) .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

:is(.gsl-blog-page, .gsl-post-page) :is(a, button, input, summary):focus-visible {
	outline: 2px solid var(--gsl-brand);
	outline-offset: 3px;
}

/* reading progress */
.gsl-read-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: 3px;
	transform-origin: 0 50%;
	transform: scaleX(var(--progress, 0));
	background: linear-gradient(90deg, var(--gsl-brand), #b14bff, var(--gsl-coral));
	pointer-events: none;
}

/* 2. Listing intro --------------------------------------------------------------------------- */

.gsl-bhero {
	position: relative;
	padding: clamp(56px, 8vw, 104px) var(--gsl-gutter) clamp(40px, 5vw, 64px);
	isolation: isolate;
	text-align: center;
}

.gsl-bhero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40% 60% at 15% 0%, rgba(255, 107, 91, 0.1), transparent 70%),
		radial-gradient(45% 70% at 85% 0%, rgba(139, 92, 246, 0.16), transparent 70%);
}

.gsl-bhero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 820px;
	margin-inline: auto;
}

.gsl-bhero .gsl-eyebrow {
	margin: 0;
}

.gsl-bhero__title {
	margin: 0 !important;
	font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem) !important;
	line-height: 1.04 !important;
	letter-spacing: -0.035em !important;
	text-wrap: balance;
}

.gsl-bhero__title em {
	font-style: normal;
	background: linear-gradient(100deg, var(--gsl-brand) 10%, #b14bff 55%, var(--gsl-coral) 95%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gsl-bhero__lead {
	max-width: 620px;
	margin: 0;
	color: var(--gsl-ink-2);
	font-size: 1.125rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.gsl-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(100%, 520px);
	margin-top: 8px;
	padding: 6px 6px 6px 46px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 99px;
	background: var(--gsl-white);
	box-shadow: var(--gsl-shadow-sm);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.gsl-search:focus-within {
	border-color: var(--gsl-brand);
	box-shadow: 0 0 0 4px rgba(90, 24, 230, 0.12);
}

.gsl-search > .gsl-icon {
	position: absolute;
	left: 18px;
	color: var(--gsl-ink-3);
}

.gsl-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--gsl-ink);
	font: inherit;
	font-size: 1rem;
	outline: none;
}

.gsl-search input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}

.gsl-search .gsl-btn {
	min-height: 42px;
}

.gsl-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}

.gsl-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--gsl-ink-2);
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.25s var(--gsl-ease);
}

.gsl-chips__item span {
	padding: 0 7px;
	border-radius: 99px;
	background: rgba(22, 18, 31, 0.06);
	font-size: 0.75rem;
}

.gsl-chips__item:hover {
	border-color: var(--gsl-ink);
	color: var(--gsl-ink);
}

.gsl-chips__item[aria-current] {
	border-color: var(--gsl-ink);
	background: var(--gsl-ink);
	color: #fff;
}

.gsl-chips__item[aria-current] span {
	background: rgba(255, 255, 255, 0.18);
}

/* 3. Post cards ------------------------------------------------------------------------------ */

.gsl-bposts {
	max-width: var(--gsl-wrap);
	margin-inline: auto;
	padding: 0 var(--gsl-gutter) clamp(64px, 8vw, 104px);
}

.gsl-bposts__heading {
	margin: clamp(48px, 6vw, 72px) 0 24px !important;
	font-size: 1.625rem !important;
}

.gsl-bposts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.gsl-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gsl-line);
	border-radius: 24px;
	background: var(--gsl-white);
	box-shadow: var(--gsl-shadow-sm);
	transition: transform 0.5s var(--gsl-ease), box-shadow 0.5s var(--gsl-ease), border-color 0.3s;
}

.gsl-pcard:hover {
	transform: translateY(-5px);
	border-color: rgba(90, 24, 230, 0.22);
	box-shadow: 0 28px 56px -30px rgba(50, 20, 120, 0.4);
}

.gsl-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background:
		radial-gradient(70% 90% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
		radial-gradient(70% 90% at 100% 100%, rgba(255, 107, 91, 0.12), transparent 70%),
		#f1edf8;
}

.gsl-pcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--gsl-ease);
}

.gsl-pcard:hover .gsl-pcard__media img {
	transform: scale(1.04);
}

.gsl-pcard__noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.gsl-pcard__noimg .gsl-logo__mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(145deg, #7b3bff, var(--gsl-brand) 55%, #3a0aa8);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(90, 24, 230, 0.7);
}

.gsl-pcard__noimg svg {
	width: 26px;
	height: 24px;
}

.gsl-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 22px 24px 24px;
}

.gsl-pcard__cat {
	position: relative;
	z-index: 2;
	padding: 4px 11px;
	border-radius: 99px;
	background: var(--gsl-brand-soft);
	color: var(--gsl-brand);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s, color 0.25s;
}

.gsl-pcard__cat:hover {
	background: var(--gsl-brand);
	color: #fff;
}

.gsl-pcard__title {
	margin: 0 !important;
	font-size: 1.375rem !important;
	line-height: 1.22 !important;
	text-wrap: balance;
}

.gsl-pcard__title a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.4s var(--gsl-ease);
}

/* the whole card is clickable through the title link */
.gsl-pcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gsl-pcard:hover .gsl-pcard__title a {
	background-size: 100% 1px;
}

.gsl-pcard__excerpt {
	flex: 1;
	margin: 0;
	color: var(--gsl-ink-2);
	font-size: 0.975rem;
	line-height: 1.6;
}

.gsl-pcard__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
	color: var(--gsl-ink-3);
	font-size: 0.8125rem;
}

/* docs in search results: text cards */
.gsl-pcard--doc .gsl-pcard__body {
	padding-top: 24px;
}

/* featured (latest) post */
.gsl-pcard--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	border-radius: 30px;
	box-shadow: var(--gsl-shadow);
}

.gsl-pcard--featured .gsl-pcard__media {
	aspect-ratio: auto;
	min-height: 360px;
	margin: 10px;
	border-radius: 22px;
}

.gsl-pcard--featured .gsl-pcard__body {
	justify-content: center;
	gap: 14px;
	padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 52px) clamp(14px, 2vw, 24px);
}

.gsl-pcard--featured .gsl-pcard__title {
	font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem) !important;
	line-height: 1.12 !important;
}

.gsl-pcard--featured .gsl-pcard__excerpt {
	flex: none;
	font-size: 1.0625rem;
}

.gsl-pcard__more {
	position: relative;
	z-index: 2;
	margin-top: 8px;
}

/* 4. Pagination, CTA ------------------------------------------------------------------------- */

.gsl-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 48px;
}

.gsl-pager :is(a, span) {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 14px;
	background: var(--gsl-white);
	color: var(--gsl-ink-2);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: all 0.25s var(--gsl-ease);
}

.gsl-pager a:hover {
	border-color: var(--gsl-ink);
	color: var(--gsl-ink);
}

.gsl-pager .current {
	border-color: var(--gsl-ink);
	background: var(--gsl-ink);
	color: #fff;
}

.gsl-pager .dots {
	border: 0;
	background: none;
}

.gsl-bposts__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 520px;
	margin: 0 auto;
	padding: 56px 32px;
	border: 1px dashed var(--gsl-line-2);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.6);
	text-align: center;
}

.gsl-bposts__empty h2 {
	margin: 0 !important;
	font-size: 1.75rem !important;
}

.gsl-bposts__empty p {
	margin: 0 0 8px;
	color: var(--gsl-ink-2);
}

.gsl-bposts__empty-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--gsl-brand-soft);
	color: var(--gsl-brand);
}

.gsl-bcta {
	max-width: var(--gsl-wrap);
	margin-inline: auto;
	padding: 0 var(--gsl-gutter) clamp(64px, 8vw, 104px);
}

.gsl-bcta .gsl-bcta__inner {
	max-width: none;
}

.gsl-bcta__inner,
.gsl-promo {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	max-width: var(--gsl-wrap);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 28px;
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(255, 107, 91, 0.35), transparent 60%),
		radial-gradient(60% 120% at 0% 100%, rgba(242, 183, 5, 0.25), transparent 60%),
		linear-gradient(135deg, #6d2cff, var(--gsl-brand) 55%, #2e0a8a);
	box-shadow: 0 30px 60px -36px rgba(90, 24, 230, 0.8);
	color: #fff;
}

.gsl-bcta__mark,
.gsl-promo__mark {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.gsl-bcta__mark svg,
.gsl-promo__mark svg {
	width: 28px;
	height: 26px;
}

.gsl-bcta h2 {
	margin: 0 0 6px !important;
	color: #fff !important;
	font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem) !important;
}

.gsl-bcta p,
.gsl-promo p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.55;
}

.gsl-bcta__actions,
.gsl-promo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

:is(.gsl-bcta, .gsl-promo) .gsl-btn:not(.gsl-btn--ghost) {
	background: #fff;
	color: var(--gsl-ink);
}

:is(.gsl-bcta, .gsl-promo) .gsl-btn:not(.gsl-btn--ghost)::after {
	background: var(--gsl-sun);
}

:is(.gsl-bcta, .gsl-promo) .gsl-btn--ghost {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: none;
}

:is(.gsl-bcta, .gsl-promo) .gsl-btn--ghost::after {
	background: rgba(255, 255, 255, 0.16);
}

:is(.gsl-bcta, .gsl-promo) .gsl-btn--ghost:hover {
	border-color: #fff;
	color: #fff;
}

/* 5. Article header -------------------------------------------------------------------------- */

.gsl-phero {
	position: relative;
	padding: clamp(40px, 6vw, 80px) var(--gsl-gutter) 0;
	isolation: isolate;
}

.gsl-phero::before {
	content: "";
	position: absolute;
	inset: 0 0 30%;
	z-index: -1;
	background:
		radial-gradient(40% 70% at 10% 0%, rgba(255, 107, 91, 0.09), transparent 70%),
		radial-gradient(45% 80% at 90% 0%, rgba(139, 92, 246, 0.14), transparent 70%);
}

.gsl-phero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.gsl-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.gsl-crumbs li {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	color: var(--gsl-ink-3);
}

.gsl-crumbs li + li::before {
	content: "/";
	color: var(--gsl-line-2);
}

.gsl-crumbs a {
	padding: 3px 8px;
	border-radius: 8px;
	color: var(--gsl-ink-3);
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}

.gsl-crumbs a:hover {
	background: rgba(22, 18, 31, 0.05);
	color: var(--gsl-ink);
}

.gsl-crumbs li:last-child a {
	background: var(--gsl-brand-soft);
	color: var(--gsl-brand);
	font-weight: 500;
}

.gsl-phero__title {
	margin: 0 !important;
	font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem) !important;
	line-height: 1.06 !important;
	letter-spacing: -0.035em !important;
	text-wrap: balance;
}

.gsl-phero__dek {
	max-width: 680px;
	margin: 0;
	color: var(--gsl-ink-2);
	font-size: 1.1875rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.gsl-phero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 24px;
	margin-top: 4px;
	padding: 10px 18px 10px 10px;
	border: 1px solid var(--gsl-line);
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.75);
}

.gsl-phero__author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gsl-ink);
	font-size: 0.9375rem;
	text-align: left;
	text-decoration: none;
}

.gsl-phero__author > span {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.gsl-phero__author strong {
	font-weight: 500;
}

.gsl-phero__by {
	color: var(--gsl-ink-3);
	font-size: 0.75rem;
}

.gsl-phero__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gsl-line);
}

.gsl-phero__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--gsl-ink-3);
	font-size: 0.875rem;
}

.gsl-phero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.gsl-phero__facts .gsl-icon {
	width: 16px;
	height: 16px;
	color: var(--gsl-brand);
}

.gsl-phero__image {
	max-width: 1100px;
	margin: clamp(36px, 5vw, 56px) auto 0;
	overflow: hidden;
	border-radius: clamp(18px, 2.5vw, 30px);
	background: #ece7f4;
	box-shadow: var(--gsl-shadow-lg);
}

.gsl-phero__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

/* 6. Layout and TOC -------------------------------------------------------------------------- */

.gsl-post-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 720px);
	justify-content: center;
	gap: clamp(32px, 5vw, 72px);
	max-width: var(--gsl-wrap);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 72px) var(--gsl-gutter) clamp(56px, 7vw, 88px);
}

/* nothing to list: the article sits centred */
.gsl-post-layout:has(.gsl-ptoc:not(:has(.gsl-ptoc__box))) {
	grid-template-columns: minmax(0, 720px);
}

.gsl-ptoc {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-height: calc(100vh - 140px);
}

.gsl-post-layout:has(.gsl-ptoc:not(:has(.gsl-ptoc__box))) .gsl-ptoc {
	position: static;
	order: 2;
	max-height: none;
}

.gsl-ptoc__box {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.gsl-ptoc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--gsl-ink-3);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	list-style: none;
	cursor: default;
}

.gsl-ptoc__title::-webkit-details-marker {
	display: none;
}

.gsl-ptoc__title .gsl-icon {
	width: 16px;
	height: 16px;
}

.gsl-ptoc__list {
	position: relative;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	border-left: 1px solid var(--gsl-line-2);
	list-style: none;
	scrollbar-width: thin;
}

.gsl-ptoc__item {
	margin: 0;
}

.gsl-ptoc__item a {
	position: relative;
	display: block;
	padding: 7px 0 7px 16px;
	color: var(--gsl-ink-3);
	font-size: 0.875rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.25s;
}

.gsl-ptoc__item--h3 a {
	padding-left: 30px;
	font-size: 0.8125rem;
}

.gsl-ptoc__item a::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: -1px;
	width: 2px;
	border-radius: 2px;
	background: var(--gsl-brand);
	transform: scaleY(0);
	transition: transform 0.35s var(--gsl-ease);
}

.gsl-ptoc__item a:hover {
	color: var(--gsl-ink);
}

.gsl-ptoc__item a[aria-current] {
	color: var(--gsl-ink);
	font-weight: 500;
}

.gsl-ptoc__item a[aria-current]::before {
	transform: none;
}

.gsl-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-top: 18px;
	border-top: 1px solid var(--gsl-line);
}

.gsl-share__label {
	width: 100%;
	margin-bottom: 4px;
	color: var(--gsl-ink-3);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gsl-share__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--gsl-line-2);
	border-radius: 12px;
	background: var(--gsl-white);
	color: var(--gsl-ink-2);
	cursor: pointer;
	transition: all 0.25s var(--gsl-ease);
}

.gsl-share__btn:hover {
	border-color: var(--gsl-ink);
	background: var(--gsl-ink);
	color: #fff;
	transform: translateY(-2px);
}

.gsl-share__btn .gsl-icon {
	width: 17px;
	height: 17px;
}

/* the "Link copied" note floats above the button, outside its layout */
.gsl-share__done {
	position: absolute;
}

.gsl-share__done:empty {
	display: none;
}

.gsl-share__done:not(:empty) {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--gsl-ink);
	color: #fff;
	font-size: 0.75rem;
	white-space: nowrap;
	transform: translateX(-50%);
	animation: gsl-pop 0.3s var(--gsl-ease);
}

@keyframes gsl-pop {
	from {
		opacity: 0;
		transform: translate(-50%, 4px);
	}
}

/* 7. Article body ---------------------------------------------------------------------------- */

.gsl-prose-post {
	color: #2c2735;
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.gsl-prose-post > * {
	margin-block: 0 !important;
}

.gsl-prose-post > * + * {
	margin-block-start: 1.35em !important;
}

.gsl-prose-post > :is(h2, h3, h4) {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}

.gsl-prose-post > h2 {
	margin-block-start: 2.2em !important;
	font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem) !important;
	line-height: 1.18 !important;
}

.gsl-prose-post > h3 {
	margin-block-start: 1.8em !important;
	font-size: 1.375rem !important;
	line-height: 1.3 !important;
}

.gsl-prose-post > h4 {
	margin-block-start: 1.6em !important;
	font-family: var(--gsl-body);
	font-size: 1.125rem !important;
	font-weight: 600;
}

.gsl-prose-post > :is(h2, h3, h4) + * {
	margin-block-start: 0.7em !important;
}

.gsl-prose-post > :first-child {
	margin-block-start: 0 !important;
}

.gsl-prose-post p {
	font-size: 17px;
}

.gsl-prose-post > p:first-child {
	color: var(--gsl-ink);
}

.gsl-prose-post a:not(.wp-element-button) {
	color: var(--gsl-brand);
	text-decoration: underline;
	text-decoration-color: rgba(90, 24, 230, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.25s;
}

.gsl-prose-post a:not(.wp-element-button):hover {
	text-decoration-color: currentColor;
}

.gsl-prose-post strong {
	color: var(--gsl-ink);
	font-weight: 600;
}

.gsl-prose-post :is(ul, ol) {
	padding-left: 1.4em;
}

.gsl-prose-post li {
	margin: 0;
	padding-left: 0.3em;
}

.gsl-prose-post li + li {
	margin-top: 0.55em;
}

.gsl-prose-post ul > li::marker {
	color: var(--gsl-brand);
}

.gsl-prose-post ol > li::marker {
	color: var(--gsl-brand);
	font-weight: 600;
}

.gsl-prose-post :is(.wp-block-image, figure.wp-block-embed) {
	margin-block: 2em !important;
}

.gsl-prose-post .wp-block-image img,
.gsl-prose-post > p img {
	height: auto;
	border-radius: 16px;
	box-shadow: 0 0 0 1px var(--gsl-line), 0 18px 40px -24px rgba(40, 20, 90, 0.35);
}

.gsl-prose-post figcaption {
	margin-top: 10px;
	color: var(--gsl-ink-3);
	font-size: 0.875rem;
	text-align: center;
}

.gsl-prose-post blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--gsl-brand);
	color: var(--gsl-ink);
	font-family: var(--gsl-display);
	font-size: 1.375rem;
	line-height: 1.45;
}

.gsl-prose-post blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--gsl-ink-3);
	font-family: var(--gsl-body);
	font-size: 0.9375rem;
	font-style: normal;
}

.gsl-prose-post :not(pre) > code {
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(90, 24, 230, 0.08);
	color: #4a12c4;
	font-size: 0.875em;
}

.gsl-prose-post pre {
	padding: 20px 22px;
	overflow-x: auto;
	border-radius: 16px;
	background: var(--gsl-ink);
	color: #e9e4f5;
	font-size: 0.9rem;
	line-height: 1.6;
}

.gsl-prose-post table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.gsl-prose-post :is(td, th) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--gsl-line);
	text-align: left;
}

.gsl-prose-post hr {
	width: 80px;
	margin-inline: auto;
	border: 0;
	border-top: 2px solid var(--gsl-line-2);
}

/* 8. After the article ----------------------------------------------------------------------- */

.gsl-pend {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 56px !important;
}

.gsl-pend__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gsl-pend__tags li {
	margin: 0;
}

.gsl-pend__tags a {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 99px;
	background: var(--gsl-white);
	color: var(--gsl-ink-2);
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.25s;
}

.gsl-pend__tags a:hover {
	border-color: var(--gsl-brand);
	color: var(--gsl-brand);
}

.gsl-promo {
	gap: 18px 20px;
	padding: 26px;
	border-radius: 24px;
}

.gsl-promo__mark {
	width: 52px;
	height: 52px;
	border-radius: 16px;
}

.gsl-promo__title {
	margin: 0 0 4px !important;
	color: #fff !important;
	font-family: var(--gsl-display);
	font-size: 1.375rem;
}

.gsl-promo p:not(.gsl-promo__title) {
	font-size: 0.9375rem;
}

.gsl-author {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px;
	border: 1px solid var(--gsl-line);
	border-radius: 24px;
	background: var(--gsl-white);
}

.gsl-author__avatar {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 50%;
}

.gsl-author p {
	margin: 0;
}

.gsl-author__label {
	color: var(--gsl-ink-3);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gsl-author__name {
	margin: 2px 0 6px !important;
	font-family: var(--gsl-display);
	font-size: 1.375rem;
}

.gsl-author__name a {
	color: var(--gsl-ink);
	text-decoration: none;
}

.gsl-author__bio {
	color: var(--gsl-ink-2);
	font-size: 0.975rem;
	line-height: 1.6;
}

.gsl-pnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.gsl-pnav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border: 1px solid var(--gsl-line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: all 0.3s var(--gsl-ease);
}

.gsl-pnav__link:hover {
	border-color: rgba(90, 24, 230, 0.3);
	background: var(--gsl-white);
	box-shadow: var(--gsl-shadow-sm);
}

.gsl-pnav__link--next {
	grid-column: 2;
	text-align: right;
}

.gsl-pnav__dir {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gsl-ink-3);
	font-size: 0.8125rem;
}

.gsl-pnav__link--next .gsl-pnav__dir {
	justify-content: flex-end;
}

.gsl-pnav__dir .gsl-icon {
	width: 15px;
	height: 15px;
}

.gsl-pnav__title {
	color: var(--gsl-ink);
	font-family: var(--gsl-display);
	font-size: 1.0625rem;
	line-height: 1.3;
}

/* comments */
.gsl-comments {
	margin-top: 56px !important;
}

.gsl-comments:not(:has(*)) {
	display: none;
}

.gsl-comments .wp-block-comments-title {
	font-size: 1.625rem;
}

.gsl-comment {
	gap: 14px !important;
	padding: 18px 0;
	border-bottom: 1px solid var(--gsl-line);
}

.gsl-comment .avatar {
	border-radius: 50%;
}

.gsl-comments .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 14px;
	background: var(--gsl-white);
	font: inherit;
}

.gsl-comments .comment-form :is(input, textarea):focus {
	border-color: var(--gsl-brand);
	outline: 3px solid rgba(90, 24, 230, 0.12);
}

.gsl-comments .comment-form .submit {
	padding: 12px 22px;
	border: 0;
	border-radius: 99px;
	background: var(--gsl-ink);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

/* comment form */
.gsl-comments .comment-respond {
	margin-top: 32px;
	padding: 28px;
	border: 1px solid var(--gsl-line);
	border-radius: 24px;
	background: var(--gsl-white);
}

.gsl-comments .comment-reply-title {
	margin: 0 0 8px;
	font-family: var(--gsl-display);
	font-size: 1.625rem;
	font-weight: 500;
}

.gsl-comments .comment-reply-title small a {
	margin-left: 10px;
	font-family: var(--gsl-body);
	font-size: 0.875rem;
}

.gsl-comments :is(.logged-in-as, .comment-notes) {
	margin: 0 0 18px;
	color: var(--gsl-ink-3);
	font-size: 0.9375rem;
}

.gsl-comments :is(.logged-in-as, .comment-notes, .comment-reply-title) a {
	color: var(--gsl-brand);
	text-decoration: none;
}

.gsl-comments .comment-form > p {
	margin: 0 0 16px;
}

.gsl-comments .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--gsl-ink-2);
	font-size: 0.875rem;
	font-weight: 500;
}

.gsl-comments .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.gsl-comments .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.gsl-comments .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.gsl-comments .comment-form .submit:hover {
	background: var(--gsl-brand);
}

/* related */
.gsl-prelated {
	padding: clamp(56px, 7vw, 88px) var(--gsl-gutter);
	border-top: 1px solid var(--gsl-line);
	background: var(--gsl-paper);
}

.gsl-prelated__inner {
	max-width: var(--gsl-wrap);
	margin-inline: auto;
}

.gsl-prelated__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
}

.gsl-prelated__head h2 {
	margin: 0 !important;
	font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem) !important;
}

.gsl-prelated__head a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gsl-brand);
	font-weight: 500;
	text-decoration: none;
}

.gsl-prelated__head a .gsl-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s var(--gsl-ease);
}

.gsl-prelated__head a:hover .gsl-icon {
	transform: translateX(3px);
}

/* Responsive --------------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.gsl-post-layout {
		grid-template-columns: minmax(0, 720px);
	}

	/* the contents fold into a box above the article */
	.gsl-ptoc {
		position: static;
		max-height: none;
	}

	.gsl-ptoc__box {
		padding: 16px 18px;
		border: 1px solid var(--gsl-line);
		border-radius: 18px;
		background: var(--gsl-white);
	}

	.gsl-ptoc__title {
		margin: 0;
		cursor: pointer;
	}

	.gsl-ptoc__title::after {
		content: "";
		width: 8px;
		height: 8px;
		margin-left: auto;
		border-right: 1.6px solid currentColor;
		border-bottom: 1.6px solid currentColor;
		transform: rotate(45deg) translateY(-3px);
		transition: transform 0.3s;
	}

	.gsl-ptoc__box[open] .gsl-ptoc__title::after {
		transform: rotate(-135deg) translateY(-1px);
	}

	.gsl-ptoc__box[open] .gsl-ptoc__title {
		margin-bottom: 12px;
	}

	.gsl-share {
		padding-top: 0;
		border-top: 0;
	}

	.gsl-share__label {
		width: auto;
		margin: 0 6px 0 0;
	}

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

	.gsl-pcard--featured {
		grid-template-columns: 1fr;
	}

	.gsl-pcard--featured .gsl-pcard__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gsl-pcard--featured .gsl-pcard__body {
		padding: 8px 28px 30px;
	}
}

@media (max-width: 760px) {
	.gsl-bposts__grid {
		grid-template-columns: 1fr;
	}

	.gsl-chips {
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: calc(100% + var(--gsl-gutter) * 2);
		margin-inline: calc(var(--gsl-gutter) * -1);
		padding-inline: var(--gsl-gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.gsl-chips__item {
		flex: none;
	}

	.gsl-bcta__inner,
	.gsl-promo {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.gsl-bcta__actions .gsl-btn,
	.gsl-promo__actions .gsl-btn {
		flex: 1;
	}

	.gsl-phero__meta {
		border-radius: 22px;
		padding: 12px 16px;
	}

	.gsl-pnav {
		grid-template-columns: 1fr;
	}

	.gsl-pnav__link--next {
		grid-column: auto;
	}

	.gsl-author {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.gsl-blog-page, .gsl-post-page) *,
	:is(.gsl-blog-page, .gsl-post-page) *::before,
	:is(.gsl-blog-page, .gsl-post-page) *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	:root:has(.gsl-post-page) {
		scroll-behavior: auto;
	}
}
