/* ==========================================================================
   FullStack GTM Blog · Cloud Cobalt (matches the home & about pages)
   Everything is scoped to .fsg-page (front end) or the fsg-* component
   classes (also used inside the block editor).
   ========================================================================== */

.fsg-page,
.editor-styles-wrapper,
.fsg-cta,
.fsg-callout,
.fsg-stats,
.fsg-steps,
.fsg-table {
	--bg: #FFFFFF;
	--surface: #F6F8FC;
	--line: #E3E8F2;
	--line2: #D5DCEA;
	--text: #0B1220;
	--body: #26324A;
	--muted: #4A5672;
	--subtle: #6B7690;
	--accent: #2563EB;
	--accent-dk: #1D4ED8;
	--accent-soft: #E3ECFF;
	--accent-card: #EEF3FF;
	--accent-line: #A9C1FA;
	--alt: #F1F5FB;
	--alt-line: #DDE5F1;
	--alt-line2: #E8EEF6;
	--tag-bg: #DCE7FF;
	--ink: #0B1220;
	--ink-muted: #A7B0C2;
	--ink-line: #2A3348;
	--ink-accent: #8FB0FF;
	--sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--fsg-top: calc(var(--fsg-sticky-top, 24px) + 0px);
}

.fsg-page {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 400;
	line-height: 1.5;
	overflow-x: clip;
}
/* Theme typography should not leak in (weights, fonts, letter-spacing). */
.fsg-page :where(p, li, a, td, th, h1, h2, h3, h4, h5, summary, button, span, div, figcaption, blockquote, cite, em, label) { font-family: inherit; letter-spacing: inherit; }
.fsg-page :where(p, li, td, figcaption, summary, span, a) { font-weight: inherit; }
.fsg-page *, .fsg-page *::before, .fsg-page *::after { box-sizing: border-box; }
.fsg-page img { max-width: 100%; height: auto; }
.fsg-page a { color: var(--accent); }
.fsg-mono { font-family: var(--mono); }
.fsg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Shared atoms ---------- */
.fsg-label {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--subtle);
	margin: 0;
}
.fsg-tag {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	color: #fff;
	background: var(--accent);
	line-height: 1.3;
}
.fsg-tag-outline { color: var(--muted); background: transparent; border: 1px solid var(--line2); }
.fsg-badge {
	display: inline-block;
	font-family: var(--mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--line2);
	padding: 3px 8px;
	border-radius: 6px;
	white-space: nowrap;
	line-height: 1.4;
}
.fsg-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); }
.fsg-page .fsg-textlink {
	font-family: var(--mono);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--text);
	text-decoration: none;
	border-bottom: 2px solid var(--accent-line);
	padding-bottom: 2px;
	transition: border-color .25s;
}
.fsg-page .fsg-textlink:hover { border-color: var(--accent); color: var(--text); }

/* Buttons (plugin-rendered) */
.fsg-btn {
	display: inline-block;
	text-align: center;
	text-decoration: none !important;
	font-family: var(--mono);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .05em;
	line-height: 1.2;
	padding: 18px 28px;
	border-radius: 999px;
	transition: transform .25s, background-color .25s, box-shadow .25s, filter .25s;
}
.fsg-btn:hover { transform: translateY(-2px); }
.fsg-btn-primary {
	background: var(--fsg-cta-accent, var(--accent));
	color: var(--fsg-cta-btn-text, #fff) !important;
	box-shadow: 0 12px 28px -14px rgba(37, 99, 235, .7);
}
.fsg-btn-primary:hover { filter: brightness(.92); }
.fsg-btn-outline {
	color: var(--fsg-cta-text, var(--text)) !important;
	border: 1.5px solid var(--accent-line);
	background: rgba(255, 255, 255, .6);
	padding: 16.5px 24px;
}
.fsg-btn-outline:hover { border-color: var(--fsg-cta-accent, var(--accent)); background: #fff; }

/* Buttons inside block-editor patterns */
.fsg-wp-btn .wp-block-button__link {
	font-family: var(--mono);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .05em;
	padding: 18px 28px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform .25s;
}
.fsg-wp-btn .wp-block-button__link:not(.has-background) { background: var(--accent); }
.fsg-wp-btn .wp-block-button__link:not(.has-text-color) { color: #fff; }
.fsg-wp-btn .wp-block-button__link:hover { transform: translateY(-2px); }

/* Window chrome (takeaways, blueprint) */
.fsg-winbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}
.fsg-dots { display: flex; gap: 6px; flex-shrink: 0; }
.fsg-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.fsg-dots i:nth-child(1) { background: #ef4444; }
.fsg-dots i:nth-child(2) { background: #f59e0b; }
.fsg-dots i:nth-child(3) { background: #10b981; }
.fsg-wintitle {
	flex: 1;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--subtle);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Check list */
.fsg-checks { list-style: none !important; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.fsg-checks li { position: relative; padding-left: 28px !important; margin: 0 !important; font-size: 16px; line-height: 1.6; color: var(--muted); }
.fsg-checks li::before {
	content: "✓";
	position: absolute;
	left: 2px;
	top: 0;
	color: var(--fsg-cta-accent, var(--accent));
	font-weight: 700;
}
.fsg-checks li strong { color: var(--text); }

/* ---------- Reading progress ---------- */
.fsg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
.fsg-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Hero ---------- */
.fsg-hero {
	position: relative;
	padding: 56px 0 44px;
	background:
		linear-gradient(to right, rgba(37, 99, 235, .035) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(to bottom, rgba(37, 99, 235, .035) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(to bottom left, #DCE6FD 0%, #F0F4FE 22%, #F8FAFE 48%, #FFFFFF 75%);
}
.fsg-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 120px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.fsg-hero > .fsg-wrap { position: relative; z-index: 1; }
.fsg-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--subtle);
	margin-bottom: 36px;
}
.fsg-page .fsg-crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.fsg-page .fsg-crumbs a:hover { color: var(--accent); border-color: var(--accent-line); }
.fsg-crumbs [aria-current] { color: var(--subtle); font-weight: 600; }
.fsg-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.fsg-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fsg-page .fsg-title {
	font-family: var(--sans);
	font-size: clamp(34px, 4.8vw, 58px);
	line-height: 1.04;
	letter-spacing: -.045em;
	font-weight: 700;
	color: var(--text);
	max-width: 980px;
	margin: 0 0 22px;
	text-wrap: balance;
}
.fsg-page .fsg-dek {
	font-size: 20px;
	line-height: 1.6;
	color: var(--muted);
	max-width: 780px;
	margin: 0 0 32px;
	text-wrap: pretty;
}
.fsg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.fsg-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 16px 5px 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .12);
}
.fsg-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.fsg-chip span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fsg-meta-items { display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.fsg-meta-items > span:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--line2); }
.fsg-meta-items em { font-style: normal; color: var(--subtle); font-weight: 500; }


/* ---------- Featured image ---------- */
.fsg-featured { margin: 0 auto 72px; }
.fsg-featured-frame {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: 0 40px 80px -48px rgba(15, 23, 42, .35);
	background: var(--surface);
	aspect-ratio: 1200 / 630;
}
.fsg-featured-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fsg-featured figcaption { margin-top: 12px; font-size: 14px; color: var(--subtle); text-align: center; }

/* ---------- Layout ---------- */
.fsg-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 96px; }
.fsg-layout.no-toc .fsg-article { margin: 0 auto; }
.fsg-article { min-width: 0; max-width: 760px; width: 100%; }

@media (min-width: 1080px) {
	.fsg-layout.has-toc { grid-template-columns: 252px minmax(0, 760px); gap: 80px; justify-content: start; }
	.fsg-side-inner {
		position: sticky;
		top: calc(var(--fsg-top) + 8px);
		max-height: calc(100vh - var(--fsg-top) - 32px);
		overflow-y: auto;
		scrollbar-width: thin;
		padding-bottom: 16px;
	}
	.fsg-toc-toggle { display: none; }
}
@media (min-width: 1240px) {
	.fsg-layout.has-toc { gap: 112px; }
}

/* ---------- Table of contents ---------- */
.fsg-toc-title { margin-bottom: 16px; }
.fsg-toc-list, .fsg-toc-sub { list-style: none; margin: 0; padding: 0; }
.fsg-toc-list > li { margin: 0; }
.fsg-page .fsg-toc a {
	display: flex;
	gap: 10px;
	padding: 8px 0 8px 16px;
	border-left: 2px solid var(--line);
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--muted);
	text-decoration: none;
	transition: color .2s, border-color .2s, background-color .2s;
}
.fsg-page .fsg-toc a:hover { color: var(--text); border-color: var(--line2); }
.fsg-page .fsg-toc a.is-active { color: var(--text); font-weight: 600; border-color: var(--accent); }
.fsg-toc-n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); padding-top: 2px; flex-shrink: 0; }
.fsg-page .fsg-toc-sub a { padding-left: 32px; font-size: 13.5px; }
.fsg-toc-progress { margin-top: 18px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fsg-toc-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.fsg-side-cta { margin-top: 28px; padding: 20px; border-radius: 16px; border: 1px solid #D6E2FB; background: linear-gradient(180deg, #F3F7FF 0%, #E8EFFD 100%); }
.fsg-side-cta p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Share */
.fsg-share { display: flex; align-items: center; gap: 14px; }
.fsg-share-btns { display: flex; gap: 8px; }
.fsg-page .fsg-share a, .fsg-share button {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line2);
	background: #fff;
	color: var(--muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: color .2s, border-color .2s, transform .2s;
}
.fsg-page .fsg-share a:hover, .fsg-share button:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }
.fsg-copied {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--ink);
	color: #fff;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.fsg-copy.is-copied .fsg-copied { opacity: 1; }
.fsg-share-rail { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.fsg-share-row { justify-content: space-between; margin: 56px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Mobile / tablet TOC: sticky bar with a drop-down */
@media (max-width: 1079px) {
	.fsg-side {
		position: sticky;
		top: var(--fsg-top);
		z-index: 30;
		margin: 0 0 40px;
	}
	.fsg-side-cta, .fsg-share-rail, .fsg-toc-title, .fsg-toc-progress { display: none; }
	.fsg-toc { position: relative; }
	.fsg-toc-toggle {
		width: 100%;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 18px;
		border: 1px solid var(--line);
		border-radius: 14px;
		background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .35);
		cursor: pointer;
		text-align: left;
		font: inherit;
		color: var(--text);
	}
	.fsg-toc-toggle .fsg-label { color: var(--accent); flex-shrink: 0; }
	.fsg-toc-current { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fsg-toc-chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s; flex-shrink: 0; }
	.fsg-toc.is-open .fsg-toc-chev { transform: rotate(-135deg) translateY(-2px); }
	.fsg-js .fsg-toc-body {
		position: absolute;
		left: 0;
		right: 0;
		top: calc(100% + 8px);
		max-height: min(60vh, 460px);
		overflow-y: auto;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 14px;
		padding: 12px 16px;
		box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .35);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.fsg-js .fsg-toc.is-open .fsg-toc-body { opacity: 1; visibility: visible; transform: none; }
	.fsg-page:not(.fsg-js) .fsg-toc-toggle { display: none; }
}

/* ---------- Key takeaways ---------- */
.fsg-takeaways { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; margin: 0 0 48px; box-shadow: 0 24px 48px -36px rgba(15, 23, 42, .28); }
.fsg-tldr { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent-dk); background: var(--tag-bg); padding: 3px 8px; border-radius: 6px; }
.fsg-takeaways .fsg-checks { padding: 24px 28px !important; }
.fsg-takeaways .fsg-checks li { font-size: 16.5px; color: var(--body); }

/* ---------- Article typography ---------- */
.fsg-prose { font-size: 18px; line-height: 1.75; color: var(--body); }
.fsg-prose > *:first-child { margin-top: 0 !important; }
.fsg-prose p { margin: 0 0 24px; }
.fsg-prose h2, .fsg-prose h3, .fsg-prose h4 { font-family: var(--sans); color: var(--text); text-wrap: balance; scroll-margin-top: calc(var(--fsg-top) + 32px); }
.fsg-prose h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; margin: 72px 0 20px; }
.fsg-prose h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; margin: 44px 0 14px; }
.fsg-prose h4 { font-size: 18px; line-height: 1.4; font-weight: 650; margin: 32px 0 10px; }
.fsg-prose strong { color: var(--text); font-weight: 650; }
.fsg-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.fsg-prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.fsg-prose ul:not([class*="fsg-"]), .fsg-prose ol:not([class*="fsg-"]) { margin: 0 0 24px; padding-left: 1.4em; }
.fsg-prose ul:not([class*="fsg-"]) li, .fsg-prose ol:not([class*="fsg-"]) li { margin: 0 0 10px; padding-left: 4px; }
.fsg-prose ul:not([class*="fsg-"]) li::marker { color: var(--accent); }
.fsg-prose ol:not([class*="fsg-"]) li::marker { color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: .85em; }
.fsg-prose blockquote, .fsg-prose .wp-block-quote {
	margin: 40px 0;
	padding: 4px 0 4px 28px;
	border-left: 3px solid var(--accent);
	font-size: 22px;
	line-height: 1.5;
	letter-spacing: -.01em;
	color: var(--text);
	font-weight: 500;
}
.fsg-prose blockquote p:last-child { margin-bottom: 0; }
.fsg-prose blockquote cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.fsg-prose .wp-block-pullquote { border: 0; padding: 40px 0; margin: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fsg-prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.03em; font-weight: 650; text-align: left; }
.fsg-prose code { font-family: var(--mono); font-size: .86em; background: var(--surface); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.fsg-prose pre { font-family: var(--mono); font-size: 14px; line-height: 1.65; background: var(--ink); color: #E6EBF5; padding: 22px 24px; border-radius: 16px; overflow-x: auto; margin: 32px 0; }
.fsg-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.fsg-prose figure { margin: 40px 0; }
.fsg-prose img { border-radius: 16px; }
.fsg-prose figure.wp-block-image img { border: 1px solid var(--line); }
.fsg-prose figcaption, .fsg-prose .wp-element-caption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--subtle); text-align: center; }
.fsg-prose hr { border: 0; height: 1px; background: var(--line); margin: 56px 0; }
.fsg-prose .wp-block-embed { margin: 40px 0; }
.fsg-prose .wp-block-embed__wrapper iframe, .fsg-prose iframe { max-width: 100%; border-radius: 16px; }

/* ---------- Tables (mobile-scrollable, sticky first column) ---------- */
.fsg-table { position: relative; margin: 36px 0; outline: none; }
.fsg-table:focus-visible .fsg-table-scroll { box-shadow: 0 0 0 3px var(--accent-soft); }
.fsg-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	scrollbar-width: thin;
	scrollbar-color: var(--line2) transparent;
}
.fsg-table::after {
	content: "";
	position: absolute;
	top: 1px;
	bottom: 1px;
	right: 1px;
	width: 36px;
	border-radius: 0 15px 15px 0;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(11, 18, 32, .08));
	pointer-events: none;
	opacity: 0;
	transition: opacity .2s;
}
.fsg-table.has-more::after { opacity: 1; }
.fsg-table.is-scrollable .fsg-table-hint { display: block; }
.fsg-table-hint { display: none; margin-top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); text-align: right; }
.fsg-prose figure.wp-block-table { margin: 0; overflow: visible; }
.fsg-prose figure.wp-block-table > .fsg-table { margin: 36px 0 0; }
.fsg-prose figure.wp-block-table figcaption { margin-bottom: 36px; }
.fsg-table table {
	width: 100%;
	min-width: 600px;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	border: 0;
}
.fsg-table th, .fsg-table td { padding: 14px 18px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); }
.fsg-table tr:last-child td { border-bottom: 0; }
.fsg-table thead th, .fsg-table tr:first-child th {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	background: var(--surface);
	white-space: nowrap;
}
.fsg-table td { color: var(--body); }
.fsg-table tbody tr:hover td { background: #FAFBFE; }
.fsg-table th:first-child, .fsg-table td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 600; color: var(--text); box-shadow: 1px 0 0 var(--line); }
.fsg-table thead th:first-child { background: var(--surface); z-index: 2; }
.fsg-table tbody tr:hover td:first-child { background: #FAFBFE; }
.fsg-table .wp-block-table__caption, .fsg-table caption { caption-side: bottom; padding: 10px; font-size: 13px; color: var(--subtle); }
@media (max-width: 600px) {
	.fsg-table table { font-size: 14.5px; }
	.fsg-table th, .fsg-table td { padding: 12px 14px; }
	.fsg-table td:first-child, .fsg-table th:first-child { max-width: 42vw; }
}

/* ---------- Callouts, stats, steps ---------- */
.fsg-callout {
	margin: 36px 0;
	padding: 22px 26px;
	border-radius: 16px;
	background: var(--accent-card);
	border: 1px solid #D6E2FB;
	border-left: 3px solid var(--accent);
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--body);
}
.fsg-callout .fsg-label { color: var(--accent); margin: 0 0 8px; }
.fsg-callout p { margin: 0 0 12px; }
.fsg-callout p:last-child { margin-bottom: 0; }
.fsg-callout.is-warning { background: #FFF7E8; border-color: #FBE3B6; border-left-color: #F59E0B; }
.fsg-callout.is-warning .fsg-label { color: #B45309; }
.fsg-callout.is-note { background: var(--surface); border-color: var(--line); border-left-color: var(--subtle); }
.fsg-callout.is-note .fsg-label { color: var(--muted); }

.fsg-stats,
.fsg-stats.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	margin: 40px 0;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
}
.fsg-stat, .fsg-stats .wp-block-column { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; margin: 0 !important; }
.fsg-stat i { width: 28px; height: 3px; border-radius: 2px; background: var(--accent); display: block; }
.fsg-stats .wp-block-column::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); display: block; }
.fsg-stat p, .fsg-stats .wp-block-column p { margin: 0 !important; font-size: 15px; line-height: 1.5; color: var(--muted); }
.fsg-page .fsg-stat .fsg-stat-n, .fsg-stats .fsg-stat-n { font-size: 38px; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--text); }

ol.fsg-steps { list-style: none !important; counter-reset: fsg-step; padding: 0 !important; margin: 36px 0; display: flex; flex-direction: column; gap: 0; }
ol.fsg-steps > li { counter-increment: fsg-step; position: relative; padding: 20px 0 20px 60px !important; margin: 0 !important; border-top: 1px solid var(--line); }
ol.fsg-steps > li:last-child { border-bottom: 1px solid var(--line); }
ol.fsg-steps > li::before {
	content: counter(fsg-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 20px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- CTAs ---------- */
.fsg-cta { position: relative; margin: 56px 0; border-radius: 24px; color: var(--fsg-cta-text, var(--text)); }
.fsg-cta .fsg-cta-label { color: var(--fsg-cta-accent, var(--accent)); margin: 0 0 12px; }
.fsg-cta .fsg-cta-heading {
	font-family: var(--sans);
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.15;
	letter-spacing: -.035em;
	font-weight: 700;
	color: var(--fsg-cta-text, var(--text));
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	text-wrap: balance;
}
.fsg-cta .fsg-cta-heading::before { content: none !important; }
.fsg-cta .fsg-cta-text, .fsg-cta .fsg-cta-text p { font-size: 16.5px; line-height: 1.65; color: var(--fsg-cta-text, var(--muted)); margin: 0 0 12px; }
.fsg-cta .fsg-cta-text p:last-child { margin-bottom: 0; }
.fsg-cta .fsg-cta-text strong { color: var(--fsg-cta-text, var(--text)); }
.fsg-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.fsg-cta-actions.wp-block-buttons { margin-top: 22px; }

/* Text colour chosen in the block editor wins over defaults */
.fsg-cta.has-text-color .fsg-cta-heading,
.fsg-cta.has-text-color .fsg-cta-text,
.fsg-cta.has-text-color .fsg-checks li,
.fsg-cta.has-text-color p { color: inherit; }

/* Panel: mild (default) */
.fsg-cta-panel { padding: 40px; overflow: hidden; }
.fsg-cta-mild { background: var(--fsg-cta-bg, linear-gradient(180deg, #F3F7FF 0%, #E8EFFD 100%)); border: 1px solid #D6E2FB; }
.fsg-cta-mild.has-background { border-color: transparent; }
/* Panel: solid accent */
.fsg-cta-solid { background: var(--fsg-cta-bg, var(--accent)); --fsg-cta-text-d: #fff; color: var(--fsg-cta-text, #fff); }
.fsg-cta-solid .fsg-cta-heading, .fsg-cta-solid .fsg-cta-text, .fsg-cta-solid .fsg-cta-text p, .fsg-cta-solid .fsg-cta-text strong { color: var(--fsg-cta-text, #fff); }
.fsg-cta-solid .fsg-cta-text, .fsg-cta-solid .fsg-cta-text p { opacity: .88; }
.fsg-cta-solid .fsg-cta-label, .fsg-cta-solid .fsg-cta-note { color: var(--fsg-cta-text, #DCE7FF); opacity: .85; }
.fsg-cta-solid .fsg-btn-primary { background: var(--fsg-cta-accent, #fff); color: var(--fsg-cta-btn-text, var(--text)) !important; box-shadow: none; }
.fsg-cta-solid .fsg-btn-outline, .fsg-cta-dark .fsg-btn-outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--fsg-cta-text, #fff) !important; }
.fsg-cta-solid::before, .fsg-cta-end.fsg-cta-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .16), transparent 70%), radial-gradient(500px 280px at 90% 100%, rgba(11, 18, 32, .16), transparent 70%);
}
.fsg-cta-end.fsg-cta-mild::before { background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(500px 280px at 90% 100%, rgba(37, 99, 235, .08), transparent 70%); }
.fsg-cta-panel > * { position: relative; }
/* Panel: dark ink */
.fsg-cta-dark { background: var(--fsg-cta-bg, var(--ink)); }
.fsg-cta-dark .fsg-cta-heading, .fsg-cta-dark .fsg-cta-text strong { color: var(--fsg-cta-text, #F3F5F9); }
.fsg-cta-dark .fsg-cta-text, .fsg-cta-dark .fsg-cta-text p { color: var(--fsg-cta-text, var(--ink-muted)); }
.fsg-cta-dark .fsg-cta-label { color: var(--fsg-cta-accent, var(--ink-accent)); }
.fsg-cta-dark .fsg-cta-note { color: var(--ink-muted); }
.fsg-cta-dark .fsg-btn-primary { background: var(--fsg-cta-accent, var(--accent)); }

/* Slim banner */
.fsg-cta-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
	padding: 22px 26px;
	border-radius: 18px;
	background: var(--fsg-cta-bg, var(--accent-card));
	border: 1px solid #D6E2FB;
}
.fsg-cta-banner .fsg-banner-copy { flex: 1 1 320px; }
.fsg-cta-banner .fsg-cta-label { margin-bottom: 6px; }
.fsg-cta-banner .fsg-cta-heading { font-size: 20px; margin: 0; }
.fsg-cta-banner .fsg-cta-text, .fsg-cta-banner .fsg-cta-text p { font-size: 15px; margin: 6px 0 0; }
.fsg-cta-banner .fsg-cta-actions { margin: 0; }
.fsg-cta-banner .fsg-btn { padding: 15px 22px; font-size: 13px; }

/* Blueprint card */
.fsg-cta-blueprint {
	background: var(--fsg-cta-bg, #fff);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 40px 80px -48px rgba(15, 23, 42, .3);
}
.fsg-cta-blueprint .fsg-winbar, .fsg-winbar-p {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 14px 20px !important;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	font-family: var(--mono) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--subtle) !important;
	line-height: 1.4 !important;
}
.fsg-winbar-p::before {
	content: "";
	width: 46px;
	height: 10px;
	flex-shrink: 0;
	background:
		radial-gradient(circle 5px at 5px 5px, #ef4444 98%, transparent) 0 0 / 16px 10px no-repeat,
		radial-gradient(circle 5px at 5px 5px, #f59e0b 98%, transparent) 16px 0 / 16px 10px no-repeat,
		radial-gradient(circle 5px at 5px 5px, #10b981 98%, transparent) 32px 0 / 16px 10px no-repeat;
}
.fsg-bp-body, .fsg-bp-body.wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; margin: 0 !important; align-items: center; }
.fsg-cta-blueprint.has-media .fsg-bp-body { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: stretch; }
.fsg-bp-media, .fsg-bp-body .wp-block-column { margin: 0 !important; }
.fsg-cta-blueprint.has-media .fsg-bp-media { position: relative; min-height: 340px; }
.fsg-bp-media figure { margin: 0; }
.fsg-bp-media img, .fsg-bp-media figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 12px; border: 1px solid var(--line); margin: 0; }
.fsg-cta-blueprint.has-media .fsg-bp-media img, .fsg-cta-blueprint.has-media .fsg-bp-media figure { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.fsg-bp-media figure { margin: 0; }
.fsg-bp-copy .fsg-checks { margin: 16px 0 0; }
.fsg-bp-copy .fsg-checks li { font-size: 15.5px; }
.fsg-cta-blueprint .fsg-btn { padding: 16px 24px; font-size: 13px; }
@media (max-width: 720px) {
	.fsg-cta-blueprint.has-media .fsg-bp-body, .fsg-bp-body.wp-block-columns { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
	.fsg-cta-blueprint .fsg-bp-media { display: none; }
	.fsg-cta-panel { padding: 30px 24px; }
}

/* End-of-article CTA (full width band, like the home page) */
.fsg-end { padding: 0 24px 24px; }
.fsg-end .fsg-cta {
	max-width: 1240px;
	margin: 0 auto;
	border-radius: 32px;
	padding: 96px 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}
.fsg-end .fsg-cta .fsg-cta-heading { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; max-width: 920px; margin: 0 0 16px; }
.fsg-end .fsg-cta .fsg-cta-text, .fsg-end .fsg-cta .fsg-cta-text p { font-size: 19px; line-height: 1.6; max-width: 760px; }
.fsg-end .fsg-cta-actions { justify-content: center; margin-top: 18px; }
.fsg-end .fsg-btn { padding: 20px 30px; }
.fsg-end .fsg-btn-outline { padding: 18.5px 26px; }
.fsg-cta-note { margin-top: 18px; }
@media (max-width: 760px) {
	.fsg-end { padding: 0 16px 16px; }
	.fsg-end .fsg-cta { padding: 64px 22px; border-radius: 24px; }
	.fsg-end .fsg-cta .fsg-cta-text, .fsg-end .fsg-cta .fsg-cta-text p { font-size: 17px; }
}

/* ---------- FAQ ---------- */
.fsg-faq { margin: 72px 0 0; scroll-margin-top: calc(var(--fsg-top) + 32px); }
.fsg-faq-head { margin-bottom: 20px; }
.fsg-faq-head .fsg-tag { margin-bottom: 14px; }
.fsg-page .fsg-faq h2 { font-size: clamp(27px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; margin: 0; color: var(--text); padding: 0; border: 0; }
.fsg-page .fsg-faq h2::before { content: none; }
.fsg-faq-list { border-top: 1px solid var(--line); }
.fsg-faq-item { border-bottom: 1px solid var(--line); }
.fsg-faq-item summary {
	list-style: none;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 22px;
	gap: 12px;
	align-items: start;
	padding: 22px 0;
	cursor: pointer;
}
.fsg-faq-item summary::-webkit-details-marker { display: none; }
.fsg-faq-n { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 4px; }
.fsg-faq-q { font-size: 18.5px; line-height: 1.45; font-weight: 650; letter-spacing: -.01em; color: var(--text); transition: color .2s; }
.fsg-faq-item summary:hover .fsg-faq-q { color: var(--accent); }
.fsg-faq-icon { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); margin-top: 3px; transition: background-color .2s, border-color .2s; }
.fsg-faq-icon::before, .fsg-faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); transition: transform .25s; }
.fsg-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.fsg-faq-item[open] .fsg-faq-icon { background: var(--accent); border-color: var(--accent); }
.fsg-faq-item[open] .fsg-faq-icon::before, .fsg-faq-item[open] .fsg-faq-icon::after { background: #fff; }
.fsg-faq-item[open] .fsg-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.fsg-faq-a { padding: 0 34px 24px 46px; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.fsg-faq-a p { margin: 0 0 12px; }
.fsg-faq-a p:last-child { margin-bottom: 0; }
.fsg-faq-a ul, .fsg-faq-a ol { margin: 0 0 12px; padding-left: 1.3em; }
@media (max-width: 600px) {
	.fsg-faq-item summary { grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 10px; }
	.fsg-faq-a { padding: 0 0 22px 38px; }
	.fsg-faq-q { font-size: 17px; }
}

/* ---------- Cards ---------- */
.fsg-card { min-width: 0; }
.fsg-page .fsg-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--alt-line);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: var(--text);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.fsg-page .fsg-card-link:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .28); border-color: var(--accent-line); }
.fsg-card-img { aspect-ratio: 1200 / 630; background: var(--surface); border-bottom: 1px solid var(--alt-line); overflow: hidden; }
.fsg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; border-radius: 0; }
.fsg-card-link:hover .fsg-card-img img { transform: scale(1.03); }
.fsg-card-ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(to right, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(to bottom, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(to bottom left, #DCE6FD, #F8FAFE 60%);
}
.fsg-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fsg-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fsg-page .fsg-card-title { font-family: var(--sans); font-size: 18px; line-height: 1.35; letter-spacing: -.015em; font-weight: 650; margin: 0; color: var(--text); padding: 0; border: 0; }
.fsg-card-foot { margin-top: auto; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }


/* ---------- Author ---------- */
.fsg-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; margin: 56px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.fsg-author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .3); }
.fsg-author-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.fsg-author-role { font-size: 14.5px; color: var(--subtle); margin-top: 2px; }
.fsg-author p { margin: 12px 0 16px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.fsg-author-links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 520px) { .fsg-author { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; } }

/* ---------- Recently published rail ---------- */
.fsg-recent { padding: 104px 0 112px; }
.fsg-recent-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.fsg-recent-head .fsg-tag { margin-bottom: 16px; }
.fsg-page .fsg-h2 { font-family: var(--sans); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 0; color: var(--text); }
.fsg-recent-nav { display: flex; align-items: center; gap: 10px; }
.fsg-recent-nav .fsg-textlink { margin-right: 14px; }
.fsg-arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--line2);
	background: #fff;
	color: var(--text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.fsg-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.fsg-arrow:disabled { opacity: .35; cursor: default; }
.fsg-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 40px) / 3);
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 24px;
	padding: 4px 2px 20px;
	scrollbar-width: thin;
	scrollbar-color: var(--line2) transparent;
	outline: none;
}
.fsg-rail > .fsg-card { scroll-snap-align: start; }
@media (max-width: 1000px) { .fsg-rail { grid-auto-columns: calc((100% - 20px) / 2.15); } }
@media (max-width: 640px) {
	.fsg-rail { grid-auto-columns: 84%; gap: 14px; }
	.fsg-recent { padding: 72px 0 80px; }
	.fsg-arrow { display: none; }
}

.fsg-comments { max-width: 760px; padding-bottom: 72px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.fsg-hero { padding: 36px 0 28px; }
	.fsg-crumbs { margin-bottom: 24px; }
	.fsg-page .fsg-dek { font-size: 18px; }
	.fsg-featured { margin-bottom: 40px; }
	.fsg-featured-frame { border-radius: 16px; }
	.fsg-prose { font-size: 17px; }
	.fsg-prose h2 { margin-top: 56px; }
	.fsg-layout { padding-bottom: 64px; }
}
@media (max-width: 520px) {
	.fsg-wrap { padding: 0 16px; }
	.fsg-meta-items > span:not(:last-child)::after { margin: 0 8px; }
	.fsg-btn { width: 100%; padding: 17px 20px; font-size: 13px; }
	.fsg-cta-banner .fsg-cta-actions { width: 100%; }
	.fsg-share-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.fsg-page *, .fsg-cta * { transition: none !important; }
}

@media print {
	.fsg-progress, .fsg-side, .fsg-share, .fsg-end, .fsg-recent, .fsg-cta { display: none !important; }
	.fsg-layout { display: block; }
}

/* ---------- Block editor niceties ---------- */
.editor-styles-wrapper .fsg-cta { font-family: var(--sans); }
.editor-styles-wrapper .fsg-cta-blueprint .fsg-bp-body.wp-block-columns { display: grid; }
.fsg-cta.has-background { background-image: none; }

/* Beat core/theme table styles (e.g. .wp-block-table td { border: 1px solid }) */
.fsg-page .fsg-table table, .fsg-page .fsg-table thead, .fsg-page .fsg-table tbody, .fsg-page .fsg-table tfoot, .fsg-page .fsg-table tr { border: 0; border-collapse: separate; }
.fsg-page .fsg-table th, .fsg-page .fsg-table td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.fsg-page .fsg-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .fsg-page .fsg-table th, .fsg-page .fsg-table td { padding: 12px 14px; } }
.fsg-page .fsg-crumbs a { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
	.fsg-crumbs > span:nth-last-of-type(2), .fsg-crumbs [aria-current] { display: none; }
}
.fsg-toc-toggle:focus { outline: none; }
.fsg-toc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Keep theme button styles out of the template's own controls (some themes use very specific button selectors) */
.fsg-page .fsg-share .fsg-copy, .fsg-page .fsg-recent .fsg-arrow {
	background: #fff !important; color: var(--muted) !important; border: 1px solid var(--line2) !important; box-shadow: none !important;
	text-decoration: none; text-transform: none; min-height: 0; min-width: 0; padding: 0 !important; outline-offset: 2px;
}
.fsg-page .fsg-recent .fsg-arrow { color: var(--text) !important; }
.fsg-page .fsg-share .fsg-copy:hover { color: var(--accent) !important; border-color: var(--accent-line) !important; }
.fsg-page .fsg-recent .fsg-arrow:hover:not(:disabled) { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.fsg-page .fsg-toc .fsg-toc-toggle { text-transform: none; letter-spacing: normal; font-weight: inherit; min-height: 0; color: var(--text) !important; background: rgba(255, 255, 255, .94) !important; }

/* ==========================================================================
   Site header offset (the theme's header is sticky)
   ========================================================================== */
.fsg-page { --fsg-sticky-top: 88px; }
.admin-bar .fsg-page { --fsg-sticky-top: 120px; }
@media (max-width: 782px) { .admin-bar .fsg-page { --fsg-sticky-top: 134px; } }
@media (max-width: 640px) { .fsg-page, .admin-bar .fsg-page { --fsg-sticky-top: 76px; } }

.fsg-acc { color: var(--accent); }
.fsg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fsg-page a.fsg-tag { text-decoration: none; color: #fff; transition: background-color .2s; }
.fsg-page a.fsg-tag:hover { background: var(--accent-dk); color: #fff; }
.fsg-page a.fsg-chip { text-decoration: none; color: var(--text); transition: border-color .2s; }
.fsg-page a.fsg-chip:hover { border-color: var(--accent-line); }
.fsg-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.fsg-post-tags .fsg-label { margin-right: 6px; }
.fsg-page .fsg-post-tags a.fsg-badge { text-decoration: none; }
.fsg-page .fsg-post-tags a.fsg-badge:hover { color: var(--accent); border-color: var(--accent-line); }
.fsg-post-tags + .fsg-share-row { margin-top: 24px; }
.fsg-card-excerpt { margin: -2px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   Blog listing
   ========================================================================== */
.fsg-list-hero { padding: 88px 0 56px; }
.fsg-list-hero .fsg-crumbs { margin-bottom: 28px; }
.fsg-list-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: end; }
@media (min-width: 1000px) { .fsg-list-hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.fsg-list-hero-copy .fsg-tag { margin-bottom: 24px; }
.fsg-page .fsg-list-title {
	font-family: var(--sans);
	font-size: clamp(40px, 6.2vw, 80px);
	line-height: 1;
	letter-spacing: -.05em;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 24px;
	max-width: 880px;
	text-wrap: balance;
}
.fsg-list-hero .fsg-dek { margin-bottom: 0; max-width: 680px; }

.fsg-search { display: flex; flex-direction: column; gap: 10px; }
.fsg-search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 18px;
	background: #fff;
	border: 1px solid var(--line2);
	border-radius: 999px;
	box-shadow: 0 12px 28px -20px rgba(15, 23, 42, .35);
	color: var(--subtle);
	transition: border-color .2s, box-shadow .2s;
}
.fsg-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fsg-page .fsg-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	outline: none;
	box-shadow: none !important;
	background: transparent !important;
	font: 500 15.5px/1.4 var(--sans);
	color: var(--text);
	padding: 10px 0 !important;
	-webkit-appearance: none;
	appearance: none;
}
.fsg-search input::placeholder { color: var(--subtle); }
.fsg-page .fsg-search .fsg-search-btn {
	border: 0 !important;
	cursor: pointer;
	border-radius: 999px;
	background: var(--accent) !important;
	color: #fff !important;
	font: 700 13px/1 var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 14px 18px !important;
	transition: background-color .2s;
	min-height: 0;
}
.fsg-page .fsg-search .fsg-search-btn:hover { background: var(--accent-dk) !important; }

.fsg-list-body { padding-bottom: 104px; }

/* Topic filter */
.fsg-topics { margin: 0 0 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fsg-topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fsg-page a.fsg-topic {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--line2);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s, border-color .2s, background-color .2s;
}
.fsg-topic span { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--subtle); }
.fsg-page a.fsg-topic:hover { color: var(--text); border-color: var(--accent-line); }
.fsg-page a.fsg-topic[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fsg-page a.fsg-topic[aria-current] span { color: var(--ink-accent); }
@media (max-width: 760px) {
	.fsg-topics { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 0; }
	.fsg-topic-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 16px; scroll-snap-type: x proximity; }
	.fsg-topic-list::-webkit-scrollbar { display: none; }
	.fsg-topic { scroll-snap-align: start; }
}

/* Featured (newest or sticky) post */
.fsg-feature { margin: 0 0 72px; }
.fsg-page .fsg-feature-link {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--alt-line);
	border-radius: 28px;
	overflow: hidden;
	text-decoration: none;
	color: var(--text);
	box-shadow: 0 40px 80px -56px rgba(15, 23, 42, .4);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.fsg-page .fsg-feature-link:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 40px 80px -48px rgba(15, 23, 42, .45); }
.fsg-feature-img { display: flex; align-items: center; background: #F8FAFE; border-right: 1px solid var(--alt-line); overflow: hidden; }
.fsg-feature-img img, .fsg-feature-img .fsg-card-ph { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .6s; }
.fsg-feature-link:hover .fsg-feature-img img { transform: scale(1.025); }
.fsg-feature-body { display: flex; flex-direction: column; gap: 14px; padding: 32px 40px; justify-content: center; }
.fsg-page .fsg-feature-title { font-family: var(--sans); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.04em; font-weight: 700; margin: 0; color: var(--text); text-wrap: balance; }
.fsg-feature-excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.fsg-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--alt-line2); }
.fsg-feature-foot .fsg-card-foot { margin: 0; }
.fsg-badge.is-new { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) {
	.fsg-page .fsg-feature-link { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
	.fsg-feature-img { border-right: 0; border-bottom: 1px solid var(--alt-line); }
	.fsg-feature-body { padding: 26px 24px 28px; }
	.fsg-feature { margin-bottom: 56px; }
}

/* Grid */
.fsg-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 20px; }
.fsg-page h2.fsg-list-head-title, .fsg-page .fsg-list-head h2.fsg-label { font-size: 12px; margin: 0; padding: 0; border: 0; color: var(--text); }
.fsg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fsg-grid .fsg-card-body { padding: 22px 24px 24px; gap: 14px; }
.fsg-grid .fsg-card-title { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
@media (max-width: 1000px) { .fsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fsg-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* Pagination */
.fsg-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 64px; }
.fsg-page .fsg-pagination .page-numbers {
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line2);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.fsg-page .fsg-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.fsg-page .fsg-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.fsg-page .fsg-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* Empty state */
.fsg-empty { max-width: 640px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.fsg-empty-body { padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fsg-empty-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.fsg-empty-body p:not(.fsg-empty-title) { margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }

@media (max-width: 760px) {
	.fsg-list-hero { padding: 56px 0 36px; }
	.fsg-list-body { padding-bottom: 72px; }
}

/* Comments */
.fsg-comments-area { padding: 48px 0 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); }
.fsg-comment-list { list-style: none; padding: 0; margin: 20px 0 40px; display: flex; flex-direction: column; gap: 20px; }
.fsg-comments-area input[type="text"], .fsg-comments-area input[type="email"], .fsg-comments-area input[type="url"], .fsg-comments-area textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; font: inherit; }
.fsg-comments-area .submit { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 560px) { .fsg-stats, .fsg-stats.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Conversion helpers: LinkedIn banner, early CTA, mobile action bar
   ========================================================================== */

/* LinkedIn visitors (shown by JS only when the visit came from LinkedIn) */
.fsg-li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	max-width: 860px;
	margin: 0 0 30px;
	padding: 14px 52px 14px 14px;
	border: 1px solid #D6E2FB;
	border-radius: 18px;
	background: linear-gradient(180deg, #F3F7FF 0%, #E8EFFD 100%);
	box-shadow: 0 16px 32px -24px rgba(37, 99, 235, .45);
	animation: fsg-li-in .45s cubic-bezier(.2, .7, .2, 1) both;
}
.fsg-li[hidden] { display: none; }
.fsg-li-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #0A66C2; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fsg-page .fsg-li-text { flex: 1 1 300px; margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 500; color: var(--text); }
.fsg-li .fsg-btn { padding: 14px 20px; font-size: 13px; }
.fsg-page .fsg-li .fsg-li-close {
	position: absolute; top: 10px; right: 10px;
	width: 30px; height: 30px; padding: 0 !important; min-height: 0;
	border: 0 !important; border-radius: 50%; background: transparent !important;
	color: var(--subtle) !important; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none !important;
}
.fsg-page .fsg-li .fsg-li-close:hover { background: rgba(255, 255, 255, .7) !important; color: var(--text) !important; }
@keyframes fsg-li-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.fsg-li { padding: 14px 44px 16px 14px; }
	.fsg-li .fsg-btn { width: 100%; }
}

/* Early CTA at the bottom of the key takeaways box */
.fsg-take-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 16px 28px;
	border-top: 1px solid var(--line);
	background: var(--accent-card);
}
.fsg-page .fsg-take-cta p { margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 500; color: var(--text); }
.fsg-take-cta .fsg-textlink { white-space: nowrap; }
@media (max-width: 600px) { .fsg-take-cta { padding: 16px 20px; } }

/* Mobile action bar (phones and tablets only) */
.fsg-bar { display: none; }
@media (max-width: 1079px) {
	.fsg-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
		background: rgba(11, 18, 32, .96);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: 0 -16px 40px -20px rgba(11, 18, 32, .5);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
	}
	.fsg-bar.is-shown { transform: none; visibility: visible; }
	.fsg-bar-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
	.fsg-bar-copy b { font-size: 15px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: #fff; }
	.fsg-bar-copy span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fsg-page .fsg-bar .fsg-btn { width: auto; flex-shrink: 0; padding: 13px 18px; font-size: 12.5px; box-shadow: none; }
	.fsg-page .fsg-bar .fsg-bar-close {
		flex-shrink: 0; width: 28px; height: 28px; padding: 0 !important; min-height: 0;
		border: 0 !important; border-radius: 50%; background: transparent !important; box-shadow: none !important;
		color: var(--ink-muted) !important; font-size: 18px; line-height: 1; cursor: pointer;
	}
	/* Keep the sticky TOC bar and bottom content clear of the action bar */
	.fsg-single .fsg-recent { padding-bottom: 140px; }
}
@media (prefers-reduced-motion: reduce) { .fsg-bar, .fsg-li { transition: none; animation: none; } }
