/**
 * The documentation skin.
 *
 * Scoped to `.fk-docs`, which includes/assets.php adds to every documentation
 * view. Colour, type and radius all come from the Elementor v4 Global Variables
 * the kit emits into post-8.css (`--FkBlue600`, `--FkInk900`, `--FkDisplay`, …),
 * so the docs move with the design system instead of beside it.
 *
 * Nothing here styles the header, footer or sticky CTA — those are the shared
 * chrome in fk-support/assets/css/fk-page.css and are untouched.
 *
 * Layout classes that start `.s-` are Elementor's own local-style classes: the
 * element id in the template becomes `s-<id>` in the DOM. Renaming an element
 * in the Elementor template moves the selector here with it.
 */

.fk-docs {
	--fk-doc-rail: 288px;
	--fk-doc-gap: 48px;
	--fk-doc-radius: 14px;
	--fk-doc-max: 1200px;
}

/* ---------------------------------------------------------------------------
   1. Page shell — the sidebar + article grid
   ------------------------------------------------------------------------ */

.fk-docs .s-docshell {
	display: grid;
	grid-template-columns: var(--fk-doc-rail) minmax(0, 1fr);
	gap: var(--fk-doc-gap);
	align-items: start;
	width: 100%;
	max-width: var(--fk-doc-max);
	margin-inline: auto;
}

.fk-docs .s-docside {
	position: sticky;
	top: calc(var(--fk-hdr, 80px) + 24px);
	max-height: calc(100vh - var(--fk-hdr, 80px) - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.fk-docs .s-docmain {
	min-width: 0;
}

@media (max-width: 1024px) {
	.fk-docs .s-docshell {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.fk-docs .s-docside {
		position: static;
		max-height: none;
		overflow: visible;
	}
}

/* ---------------------------------------------------------------------------
   2. Breadcrumbs
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-crumb + .fk-doc-crumb::before {
	content: "/";
	margin-inline-end: 10px;
	color: var(--FkBlueTint);
}

.fk-docs .fk-doc-crumb a {
	color: var(--FkInk600);
	text-decoration: none;
}

.fk-docs .fk-doc-crumb a:hover,
.fk-docs .fk-doc-crumb a:focus-visible {
	color: var(--FkBlue600);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fk-docs .fk-doc-crumb [aria-current="page"] {
	color: var(--FkInk900);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
   3. Sidebar navigation
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-nav {
	font-family: var(--FkBody), system-ui, sans-serif;
	background: var(--FkWhite);
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	padding: 14px 10px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

/* The Elementor kit styles every bare `button` — `.elementor-kit-8 button`
   sets background, colour, padding and radius at (0,1,1). A plain class loses
   to that, so every button in this file is written with its class twice, which
   is (0,2,0) and wins without an !important or a load-order gamble. */
.fk-docs .fk-doc-nav-toggle.fk-doc-nav-toggle {
	display: none;
	width: 100%;
	appearance: none;
	background: transparent;
	border: 0;
	font: inherit;
	font-weight: 700;
	color: var(--FkInk900);
	text-align: start;
	padding: 6px 10px;
	cursor: pointer;
}

.fk-docs .fk-doc-nav-toggle.fk-doc-nav-toggle::after {
	content: "";
	float: inline-end;
	width: 9px;
	height: 9px;
	margin-block-start: 6px;
	border-inline-end: 2px solid currentcolor;
	border-block-end: 2px solid currentcolor;
	transform: rotate(45deg);
	transition: transform 160ms ease;
}

.fk-docs .fk-doc-nav-toggle.fk-doc-nav-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg);
}

.fk-docs .fk-doc-nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-nav-root > a {
	display: block;
	padding: 8px 12px 12px;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.2px;
	color: var(--FkInk900);
	text-decoration: none;
}

.fk-docs .fk-doc-nav-sec > a {
	display: block;
	margin-block-start: 12px;
	padding: 6px 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--FkInk400);
	text-decoration: none;
}

.fk-docs .fk-doc-nav-sec > a:hover {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-nav-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--FkInk600);
	text-decoration: none;
	transition: background-color 140ms ease, color 140ms ease;
}

.fk-docs .fk-doc-nav-item > a:hover,
.fk-docs .fk-doc-nav-item > a:focus-visible {
	background: var(--FkBlue50);
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-nav-item.is-current > a {
	background: var(--FkBlue50);
	color: var(--FkBlue600);
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--FkBlue600);
}

.fk-docs .fk-doc-depth-1 > a {
	padding-inline-start: 26px;
}

.fk-docs .fk-doc-depth-2 > a {
	padding-inline-start: 38px;
}

.fk-docs .fk-doc-nav-count {
	flex: 0 0 auto;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--FkSurface2);
	color: var(--FkInk400);
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
}

@media (max-width: 1024px) {
	.fk-docs .fk-doc-nav-toggle.fk-doc-nav-toggle {
		display: block;
	}

	.fk-docs .fk-doc-nav-list {
		display: none;
		margin-block-start: 8px;
		border-block-start: 1px solid var(--FkLine);
		padding-block-start: 8px;
	}

	.fk-docs .fk-doc-nav.is-open .fk-doc-nav-list {
		display: block;
	}
}

/* ---------------------------------------------------------------------------
   4. Article body — the prose styles for Gutenberg content
   ------------------------------------------------------------------------ */

.fk-docs .s-docmain .elementor-widget-theme-post-content,
.fk-docs .fk-doc-body {
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	letter-spacing: -0.01em;
	color: var(--FkInk600);
	-webkit-font-smoothing: antialiased;
}

/* The default rhythm between blocks. Elementor's optimized markup drops
   `.elementor-widget-container`, so the blocks can be direct children of either
   node; both spellings are covered because that experiment is a site-level
   toggle the docs should not be sensitive to.
   `:where()` contributes no specificity, which is what lets the heading rules
   below raise their own top margin instead of losing to this one. */
.fk-docs :where(
	.s-docmain .elementor-widget-theme-post-content,
	.s-docmain .elementor-widget-theme-post-content > .elementor-widget-container,
	.fk-doc-body
) > * {
	margin-block: 0;
}

.fk-docs :where(
	.s-docmain .elementor-widget-theme-post-content,
	.s-docmain .elementor-widget-theme-post-content > .elementor-widget-container,
	.fk-doc-body
) > * + * {
	margin-block-start: 20px;
}

.fk-docs .s-docmain h2,
.fk-docs .fk-doc-body h2 {
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: clamp(23px, 2.2vw, 28px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.5px;
	color: var(--FkInk900);
	margin-block-start: 44px;
	scroll-margin-top: calc(var(--fk-hdr, 80px) + 24px);
}

.fk-docs .s-docmain h3,
.fk-docs .fk-doc-body h3 {
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: clamp(19px, 1.7vw, 21px);
	font-weight: 700;
	line-height: 1.34;
	letter-spacing: -0.3px;
	color: var(--FkInk900);
	margin-block-start: 34px;
	scroll-margin-top: calc(var(--fk-hdr, 80px) + 24px);
}

.fk-docs .s-docmain h4,
.fk-docs .fk-doc-body h4 {
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 17.5px;
	font-weight: 700;
	color: var(--FkInk900);
	margin-block-start: 26px;
}

.fk-docs .s-docmain strong,
.fk-docs .fk-doc-body strong {
	color: var(--FkInk900);
	font-weight: 650;
}

/* Prose links only. Scoped to the article body rather than the whole column,
   so the table of contents, previous/next and related cards keep their own
   affordances instead of all reading as inline body links. */
.fk-docs .s-docmain .elementor-widget-theme-post-content a,
.fk-docs .fk-doc-body a {
	color: var(--FkBlue600);
	text-decoration: none;
	box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--FkBlue600) 35%, transparent);
	transition: box-shadow 140ms ease, color 140ms ease;
}

.fk-docs .s-docmain .elementor-widget-theme-post-content a:hover,
.fk-docs .fk-doc-body a:hover {
	box-shadow: inset 0 -2px 0 var(--FkBlue600);
}

/* Block margins are left to the rhythm rule above — setting them here would
   outrank it and collapse the spacing around every list. */
.fk-docs .s-docmain ul,
.fk-docs .s-docmain ol,
.fk-docs .fk-doc-body ul,
.fk-docs .fk-doc-body ol {
	padding-inline-start: 22px;
}

.fk-docs .s-docmain li,
.fk-docs .fk-doc-body li {
	margin-block-start: 8px;
}

.fk-docs .s-docmain li::marker,
.fk-docs .fk-doc-body li::marker {
	color: var(--FkBlueSoft);
}

/* funnelkit.com's image values, verbatim from its `universal.css`
   `.fk-image-without-shadow`. Doc body images are opaque UI screenshots,
   the same kind the reference puts this on. */
.fk-docs .s-docmain img,
.fk-docs .fk-doc-body img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid #DEDFEA;
	box-shadow: 0 4px 44px 0 rgba(41, 71, 113, .1);
}

.fk-docs .s-docmain figure,
.fk-docs .fk-doc-body figure {
	margin-inline: 0;
}

.fk-docs .s-docmain figcaption,
.fk-docs .fk-doc-body figcaption {
	margin-block-start: 10px;
	font-size: 13.5px;
	color: var(--FkInk400);
	text-align: center;
}

.fk-docs .s-docmain blockquote,
.fk-docs .fk-doc-body blockquote {
	margin: 0;
	padding: 16px 20px;
	border-inline-start: 3px solid var(--FkBlue600);
	background: var(--FkBlue50);
	border-radius: 0 10px 10px 0;
	color: var(--FkInk900);
}

.fk-docs .s-docmain blockquote p,
.fk-docs .fk-doc-body blockquote p {
	margin: 0;
}

.fk-docs .s-docmain code,
.fk-docs .fk-doc-body code {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.88em;
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--FkSurface2);
	color: var(--FkNavy700);
	border: 1px solid var(--FkLine);
}

.fk-docs .s-docmain pre,
.fk-docs .fk-doc-body pre {
	padding: 16px 18px;
	border-radius: 8px;
	background: var(--FkNavy900);
	color: var(--FkWhite);
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.6;
}

.fk-docs .s-docmain pre code,
.fk-docs .fk-doc-body pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

.fk-docs .s-docmain table,
.fk-docs .fk-doc-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.fk-docs .s-docmain th,
.fk-docs .s-docmain td,
.fk-docs .fk-doc-body th,
.fk-docs .fk-doc-body td {
	padding: 10px 14px;
	border: 1px solid var(--FkLine);
	text-align: start;
}

.fk-docs .s-docmain th,
.fk-docs .fk-doc-body th {
	background: var(--FkSurface2);
	color: var(--FkInk900);
	font-weight: 700;
}

/* A wide table must scroll inside itself, never the page. */
.fk-docs .s-docmain .wp-block-table,
.fk-docs .fk-doc-body .wp-block-table {
	overflow-x: auto;
}

/* ---------------------------------------------------------------------------
   5. Article furniture — title, updated line, TOC
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-updated {
	margin: 0;
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 13.5px;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-toc {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	background: var(--FkWhite, #FFFFFF);
	font-family: var(--FkBody), system-ui, sans-serif;
}

.fk-docs .fk-doc-toc-h {
	display: block;
	margin-block-end: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-toc li {
	margin-block-start: 6px;
}

.fk-docs .fk-doc-toc a {
	color: var(--FkInk600);
	text-decoration: none;
	font-size: 14.5px;
	line-height: 1.5;
}

.fk-docs .fk-doc-toc a:hover {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-toc-l3 {
	padding-inline-start: 14px;
}

/* ---------------------------------------------------------------------------
   6. Previous / next
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-pnrow {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	font-family: var(--FkBody), system-ui, sans-serif;
}

.fk-docs .fk-doc-pn {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	background: var(--FkWhite);
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fk-docs .fk-doc-pn:hover,
.fk-docs .fk-doc-pn:focus-visible {
	border-color: var(--FkBlueTint);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgb(10 26 60 / 8%);
}

.fk-docs .fk-doc-pn-next {
	text-align: end;
}

.fk-docs .fk-doc-pn-lbl {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-pn-ttl {
	font-size: 16px;
	font-weight: 650;
	line-height: 1.4;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-pn-empty {
	border: 0;
	background: none;
}

@media (max-width: 767px) {
	.fk-docs .fk-doc-pnrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.fk-docs .fk-doc-pn-empty {
		display: none;
	}

	.fk-docs .fk-doc-pn-next {
		text-align: start;
	}
}

/* ---------------------------------------------------------------------------
   7. Related articles
   ------------------------------------------------------------------------ */

.fk-docs .s-docmain h2.fk-doc-related-h,
.fk-docs h2.fk-doc-related-h {
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.4px;
	color: var(--FkInk900);
	margin: 0 0 16px;
}

.fk-docs .fk-doc-rel-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fk-docs .fk-doc-rel-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	background: var(--FkWhite);
	text-decoration: none;
	font-family: var(--FkBody), system-ui, sans-serif;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fk-docs .fk-doc-rel-card:hover,
.fk-docs .fk-doc-rel-card:focus-visible {
	border-color: var(--FkBlueTint);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgb(10 26 60 / 8%);
}

.fk-docs .fk-doc-rel-cat {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-rel-ttl {
	font-size: 16.5px;
	font-weight: 650;
	line-height: 1.4;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-rel-ex {
	font-size: 14px;
	line-height: 1.6;
	color: var(--FkInk600);
}

@media (max-width: 600px) {
	.fk-docs .fk-doc-rel-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   8. Search
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-search {
	position: relative;
	display: block;
	width: min(640px, 100%);
	margin-inline: auto;
	font-family: var(--FkBody), system-ui, sans-serif;
}

.fk-docs .fk-doc-search-in {
	width: 100%;
	height: 58px;
	padding: 0 48px 0 52px;
	border-radius: 999px;
	border: 1px solid var(--FkLine);
	background: var(--FkWhite);
	color: var(--FkInk900);
	font-size: 16px;
	line-height: 1.5;
	box-shadow:
		0 0 0 0 color-mix(in srgb, var(--FkBlue600) 0%, transparent),
		0 10px 30px rgb(10 26 60 / 10%);
	/* Both states declare the same two shadow layers so the ring grows out of
	   the resting elevation instead of replacing it in one frame. */
	transition:
		border-color var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1)),
		box-shadow var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1)),
		transform var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1));
}

/* The blanket `.fk-docs input:focus-visible` rule in section 15 outranks the
   pill's own radius and squares it off to 6px, and stacks a second ring on top
   of the one this input already draws. A text input matches :focus-visible on a
   plain mouse click too, so that rule fired on every click here. The input
   keeps its own ring; the outline stays declared but transparent so
   forced-colors mode still paints one. */
.fk-docs input.fk-doc-search-in:focus-visible {
	outline: 2px solid transparent;
	outline-offset: 2px;
	border-radius: 999px;
}

.fk-docs .fk-doc-search-in::placeholder {
	color: var(--FkInk400);
}

.fk-docs .fk-doc-search-in:focus {
	outline: none;
	border-color: var(--FkBlue600);
	transform: translateY(-2px);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--FkBlue600) 18%, transparent),
		0 16px 38px rgb(10 26 60 / 16%);
}

.fk-docs .fk-doc-search-ico {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 20px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-color: var(--FkInk400);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
	transition:
		background-color var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1)),
		transform var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1));
}

.fk-docs .fk-doc-search:focus-within .fk-doc-search-ico {
	background-color: var(--FkBlue600);
	transform: translateY(calc(-50% - 2px));
}

.fk-docs .fk-doc-search-clear.fk-doc-search-clear {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 18px;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: var(--FkSurface2);
	cursor: pointer;
	/* Kept in flow and faded rather than display-toggled, so it has something to
	   animate; `visibility` still takes it out of the tab order when empty. */
	display: block;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 160ms ease,
		visibility 160ms ease,
		transform var(--fk-doc-search-ease, 220ms cubic-bezier(0.4, 0, 0.2, 1));
}

.fk-docs .fk-doc-search-clear.fk-doc-search-clear {
	transform: translateY(-50%) scale(0.8);
}

.fk-docs .fk-doc-search.has-value .fk-doc-search-clear.fk-doc-search-clear {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) scale(1);
}

.fk-docs .fk-doc-search-clear::before,
.fk-docs .fk-doc-search-clear::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	width: 10px;
	height: 2px;
	background: var(--FkInk600);
	border-radius: 2px;
}

.fk-docs .fk-doc-search-clear::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.fk-docs .fk-doc-search-clear::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.fk-docs .fk-doc-search-out {
	position: absolute;
	z-index: 40;
	inset-inline: 0;
	inset-block-start: calc(100% + 10px);
	max-height: min(60vh, 420px);
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	background: var(--FkWhite);
	box-shadow: 0 18px 44px rgb(10 26 60 / 16%);
	text-align: start;
}

.fk-docs .fk-doc-hit {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-hit:hover,
.fk-docs .fk-doc-hit:focus-visible,
.fk-docs .fk-doc-hit.is-active {
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-hit-ttl {
	display: block;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
}

.fk-docs .fk-doc-hit-cat {
	display: block;
	margin-block-start: 2px;
	font-size: 12px;
	color: var(--FkBlue600);
	font-weight: 600;
}

.fk-docs .fk-doc-hit-ex {
	display: block;
	margin-block-start: 3px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--FkInk600);
}

.fk-docs .fk-doc-hit mark {
	background: color-mix(in srgb, var(--FkGoldSoft, #f6c544) 45%, transparent);
	color: inherit;
	border-radius: 4px;
	padding: 0 1px;
}

.fk-docs .fk-doc-nohit {
	padding: 14px 12px;
	font-size: 14px;
	color: var(--FkInk400);
}

/* ---------------------------------------------------------------------------
   9. Category grid
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-cats {
	display: grid;
	gap: 20px;
	width: 100%;
}

.fk-docs .fk-doc-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fk-docs .fk-doc-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fk-docs .fk-doc-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fk-docs .fk-doc-cat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px;
	border: 1px solid var(--FkLine);
	border-radius: 14px;
	background: var(--FkWhite);
	text-decoration: none;
	font-family: var(--FkBody), system-ui, sans-serif;
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fk-docs .fk-doc-cat:hover,
.fk-docs .fk-doc-cat:focus-visible {
	border-color: var(--FkBlueTint);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgb(10 26 60 / 10%);
}

.fk-docs .fk-doc-cat-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* FunnelKit draws these icons as white glyphs, so they need a coloured chip
   behind them or they vanish on a white card. The padding is inside the box
   (border-box) so the chip is exactly the size the markup declares. */
.fk-docs .fk-doc-cat-ico {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 8px;
	object-fit: contain;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(180deg, var(--FkBlue600) 0%, var(--FkNavy700) 100%);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--FkBlue600) 28%, transparent);
}

.fk-docs .fk-doc-cat-name {
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.3px;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-cat-tag {
	font-size: 14px;
	line-height: 1.6;
	color: var(--FkInk600);
}

.fk-docs .fk-doc-cat-count {
	margin-block-start: auto;
	padding-block-start: 6px;
	font-size: 13px;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-cat-count strong {
	color: var(--FkBlue600);
	font-weight: 700;
}

@media (max-width: 1024px) {
	.fk-docs .fk-doc-cols-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 880px) {
	.fk-docs .fk-doc-cols-3,
	.fk-docs .fk-doc-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.fk-docs .fk-doc-cats {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   10. Popular articles
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-pop {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
	font-family: var(--FkBody), system-ui, sans-serif;
	width: 100%;
}

.fk-docs .fk-doc-pop-item a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 140ms ease;
}

.fk-docs .fk-doc-pop-item a:hover,
.fk-docs .fk-doc-pop-item a:focus-visible {
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-pop-n {
	flex: 0 0 auto;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--FkBlueTint);
}

.fk-docs .fk-doc-pop-t {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fk-docs .fk-doc-pop-ttl {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-pop-cat {
	font-size: 12px;
	color: var(--FkInk400);
}

@media (max-width: 767px) {
	.fk-docs .fk-doc-pop {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   11. Navigation grid (documentation home)
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-navgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 28px;
	width: 100%;
	font-family: var(--FkBody), system-ui, sans-serif;
	text-align: start;
}

.fk-docs .fk-doc-navcol-h {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.2px;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-navcol-h .fk-doc-cat-ico {
	width: 28px;
	height: 28px;
	padding: 5px;
	border-radius: 8px;
	box-shadow: none;
}

.fk-docs .fk-doc-navcol ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-inline-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-navcol li {
	margin: 0;
}

.fk-docs .fk-doc-navcol li a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-inline-start: -1px;
	border-inline-start: 1px solid transparent;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--FkInk600);
	text-decoration: none;
	transition: color 140ms ease, border-color 140ms ease;
}

.fk-docs .fk-doc-navcol li a:hover,
.fk-docs .fk-doc-navcol li a:focus-visible {
	color: var(--FkBlue600);
	border-inline-start-color: var(--FkBlue600);
}

.fk-docs .fk-doc-navcol-more a {
	font-weight: 650;
	color: var(--FkBlue600);
}

@media (max-width: 880px) {
	.fk-docs .fk-doc-navgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.fk-docs .fk-doc-navgrid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
   12. Archive listing
   ------------------------------------------------------------------------ */

.fk-docs .fk-doc-archhead {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	font-family: var(--FkBody), system-ui, sans-serif;
}

.fk-docs .fk-doc-archhead .fk-doc-cat-ico {
	width: 52px;
	height: 52px;
	padding: 11px;
	border-radius: 14px;
}

.fk-docs .fk-doc-archh {
	margin: 0;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -1px;
	color: var(--FkInk900);
}

.fk-docs .fk-doc-archd {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--FkInk600);
	max-width: 60ch;
}

.fk-docs .fk-doc-archn {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--FkBlue600);
}

/* A section label, not a prose heading — it has to outrank the article-body
   `h2` rule, which is one element-selector more specific than a bare class. */
.fk-docs .s-docmain h2.fk-doc-sec-h,
.fk-docs h2.fk-doc-sec-h {
	margin: 34px 0 12px;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-sec-h a {
	color: inherit;
	text-decoration: none;
}

.fk-docs .fk-doc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-doc-radius);
	background: var(--FkWhite);
	overflow: hidden;
	width: 100%;
	font-family: var(--FkBody), system-ui, sans-serif;
}

.fk-docs .fk-doc-li + .fk-doc-li {
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	text-decoration: none;
	transition: background-color 140ms ease;
}

.fk-docs .fk-doc-li a:hover,
.fk-docs .fk-doc-li a:focus-visible {
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-li a::after {
	content: "→";
	flex: 0 0 auto;
	color: var(--FkBlueTint);
	transition: transform 140ms ease, color 140ms ease;
}

.fk-docs .fk-doc-li a:hover::after {
	color: var(--FkBlue600);
	transform: translateX(3px);
}

.fk-docs .fk-doc-li-ttl {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--FkInk900);
	min-width: 0;
}

.fk-docs .fk-doc-li-cat {
	flex: 0 1 auto;
	font-size: 12px;
	color: var(--FkInk400);
	white-space: nowrap;
}

.fk-docs .fk-doc-empty {
	padding: 28px;
	border: 1px dashed var(--FkLine);
	border-radius: var(--fk-doc-radius);
	text-align: center;
	color: var(--FkInk400);
	font-family: var(--FkBody), system-ui, sans-serif;
}

/* ---------------------------------------------------------------------------
   13. Editor placeholder — only ever visible inside Elementor
   ------------------------------------------------------------------------ */

.fk-doc-ph {
	padding: 14px 16px;
	border: 1px dashed var(--FkBlueTint, #bdcdf8);
	border-radius: 8px;
	background: var(--FkBlue50, #eef4ff);
	color: var(--FkInk600, #475569);
	font: 13px/1.5 system-ui, sans-serif;
}

/* ---------------------------------------------------------------------------
   14. Focus visibility — the docs are keyboard-heavy
   ------------------------------------------------------------------------ */

.fk-docs a:focus-visible,
.fk-docs button:focus-visible,
.fk-docs input:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: 2px;
	border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.fk-docs * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* =====================================================================
 * Docs portal: sub-header, three-column reading layout, search.
 *
 * Every colour, font, radius and step is an existing kit variable from
 * post-8.css. Nothing here introduces a token, a gradient, a glow or a
 * shadow, and the only hover effect is a colour change.
 * ================================================================== */

.fk-docs .fk-doc-subhead {
	border-block-end: 1px solid var(--FkLine);
	background: var(--FkWhite);
}

.fk-docs .fk-doc-subhead-in {
	display: flex;
	align-items: center;
	gap: var(--fk-space-xl);
	max-width: var(--fk-wrap-max);
	margin-inline: auto;
	padding: 10px 24px;
}

/* --- product tabs ------------------------------------------------- */

.fk-docs .fk-doc-tabs {
	min-width: 0;
	flex: 1 1 auto;
}

.fk-docs .fk-doc-tabs ul {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.fk-docs .fk-doc-tabs ul::-webkit-scrollbar {
	display: none;
}

.fk-docs .fk-doc-tab > a {
	display: block;
	padding: 10px 12px;
	border-block-end: 2px solid transparent;
	color: var(--FkInk600);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: var(--e-global-typography-fknav-font-size, 14.5px);
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
}

.fk-docs .fk-doc-tab > a:hover,
.fk-docs .fk-doc-tab > a:focus-visible {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-tab.is-current > a {
	border-block-end-color: var(--FkBlue600);
	color: var(--FkInk900);
	font-weight: 700;
}

/* --- search box --------------------------------------------------- */

.fk-docs .fk-doc-find {
	position: relative;
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	gap: 0;
	width: min(420px, 42vw);
}

.fk-docs .fk-doc-find-scope {
	flex: 0 0 auto;
	max-width: 132px;
	padding: 8px 8px 8px 10px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-sm) 0 0 var(--fk-radius-sm);
	border-inline-end: 0;
	background: var(--FkSurface2);
	color: var(--FkInk600);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 13.5px;
}

.fk-docs .fk-doc-find-q {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid var(--FkLine);
	border-radius: 0 var(--fk-radius-sm) var(--fk-radius-sm) 0;
	background: var(--FkWhite);
	color: var(--FkInk900);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 14.5px;
}

.fk-docs .fk-doc-find-q:focus-visible,
.fk-docs .fk-doc-find-scope:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: 1px;
}

/* --- as-you-type results ------------------------------------------ */

.fk-docs .fk-doc-find-out {
	position: absolute;
	z-index: 60;
	inset-inline: 0;
	top: calc(100% + 6px);
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-md);
	background: var(--FkWhite);
}

.fk-docs .fk-doc-find-hit {
	display: block;
	padding: 9px 10px;
	border-radius: var(--fk-radius-sm);
	color: var(--FkInk900);
	text-decoration: none;
}

.fk-docs .fk-doc-find-hit:hover,
.fk-docs .fk-doc-find-hit.is-active {
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-find-t {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

.fk-docs .fk-doc-find-t mark,
.fk-docs .fk-doc-result-t mark {
	background: none;
	color: var(--FkBlue600);
	font-weight: 800;
}

.fk-docs .fk-doc-find-s {
	display: block;
	margin-block-start: 2px;
	color: var(--FkInk400);
	font-size: 12px;
}

.fk-docs .fk-doc-find-x {
	display: block;
	margin-block-start: 2px;
	overflow: hidden;
	color: var(--FkInk600);
	font-size: 13px;
	line-height: 1.45;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.fk-docs .fk-doc-find-all {
	display: block;
	margin-block-start: 4px;
	padding: 9px 10px;
	border-block-start: 1px solid var(--FkLine);
	color: var(--FkBlue600);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.fk-docs .fk-doc-find-none {
	margin: 0;
	padding: 12px 10px;
	color: var(--FkInk600);
	font-size: 14px;
}

/* --- three columns: sidebar | content | on-this-page -------------- */

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain {
		display: grid;
		align-items: start;
		gap: 0 var(--fk-space-3xl);
		grid-template-columns: minmax(0, 1fr) 216px;
	}

	/* The table of contents is authored inside the content column in the
	 * Elementor template; placing it in a second grid track makes it the
	 * right-hand rail without the template holding a layout assumption. */
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc {
		position: sticky;
		top: calc(var(--fk-hdr, 80px) + 24px);
		grid-area: 1 / 2 / 40 / 3;
	}

	.fk-docs-single .s-docmain > *:not(.elementor-widget-fk-doc-toc) {
		grid-column: 1;
	}

	/* A comfortable measure, which is the whole point of a docs layout. */
	.fk-docs-single .s-docmain > .elementor-widget-theme-post-content {
		max-width: 74ch;
	}
}

/* --- sidebar: group headings are labels, not links ---------------- */

.fk-docs .fk-doc-nav-back > a {
	display: block;
	margin-block-end: 10px;
	color: var(--FkBlue600);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.fk-docs .fk-doc-nav-root > span {
	display: block;
	margin-block-end: 8px;
	color: var(--FkInk900);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.fk-docs .fk-doc-nav-sec > span {
	display: block;
	margin-block: 16px 6px;
	color: var(--FkInk400);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: var(--e-global-typography-fkeyebrow-font-size, 12px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* --- previous / next ---------------------------------------------- */

.fk-docs .fk-doc-prevnext {
	display: flex;
	gap: var(--fk-space-md);
	margin-block-start: var(--fk-space-3xl);
	padding-block-start: var(--fk-space-xl);
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-pn {
	flex: 1 1 0;
	padding: 12px 14px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-md);
	color: var(--FkInk900);
	text-decoration: none;
}

.fk-docs .fk-doc-pn:hover {
	border-color: var(--FkBlue600);
}

.fk-docs .fk-doc-pn-next {
	text-align: end;
}

.fk-docs .fk-doc-pn-k {
	display: block;
	color: var(--FkInk400);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fk-docs .fk-doc-pn-t {
	display: block;
	margin-block-start: 3px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

/* --- related ------------------------------------------------------ */

.fk-docs .fk-doc-related {
	margin-block-start: var(--fk-space-3xl);
}

.fk-docs .fk-doc-related-h,
.fk-docs .s-docmain .fk-doc-related-h {
	margin: 0 0 10px;
	color: var(--FkInk400);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fk-docs .fk-doc-related ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-related li {
	margin-block-start: 0;
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-related li a {
	display: block;
	padding: 9px 0;
	color: var(--FkBlue600);
	font-size: 14.5px;
	text-decoration: none;
}

/* --- hub pages ---------------------------------------------------- */

.fk-docs .fk-doc-hub-list {
	margin: var(--fk-space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-hub-item {
	margin-block-start: 0;
	padding-block: 12px;
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-hub-item > a {
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.fk-docs .fk-doc-hub-sum {
	display: block;
	margin-block-start: 3px;
	color: var(--FkInk600);
	font-size: 14px;
	line-height: 1.5;
}

/* --- staging-only source line ------------------------------------- */

.fk-docs .fk-doc-src {
	margin-block-start: var(--fk-space-3xl);
	padding-block-start: var(--fk-space-md);
	border-block-start: 1px dashed var(--FkLine);
	color: var(--FkInk400);
	font-size: 12.5px;
	word-break: break-all;
}

/* --- results page ------------------------------------------------- */

.fk-docs .fk-doc-searchpage-in {
	max-width: 860px;
	margin-inline: auto;
	padding: var(--fk-space-3xl) 24px clamp(48px, 6vw, 88px);
}

.fk-docs .fk-doc-searchpage-h {
	margin: 0 0 var(--fk-space-xl);
	color: var(--FkInk900);
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.fk-docs .fk-doc-searchpage-form {
	display: flex;
	gap: var(--fk-space-sm);
	margin-block-end: var(--fk-space-xl);
}

.fk-docs .fk-doc-searchpage-form input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-sm);
	background: var(--FkWhite);
	color: var(--FkInk900);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 15px;
}

.fk-docs .fk-doc-searchpage-form button {
	flex: 0 0 auto;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--fk-radius-sm);
	background: var(--FkCta600);
	color: var(--FkWhite);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
}

.fk-docs .fk-doc-searchpage-form button:hover {
	background: var(--FkCta700);
}

.fk-docs .fk-doc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fk-space-sm);
	margin-block-end: var(--fk-space-lg);
}

.fk-docs .fk-doc-chip {
	padding: 6px 12px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-pill);
	color: var(--FkInk600);
	font-size: 13px;
	text-decoration: none;
}

.fk-docs .fk-doc-chip:hover {
	border-color: var(--FkBlue600);
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-chip.is-current {
	border-color: var(--FkNavy900);
	background: var(--FkNavy900);
	color: var(--FkWhite);
}

.fk-docs .fk-doc-searchpage-count,
.fk-docs .fk-doc-searchpage-empty {
	margin: 0 0 var(--fk-space-lg);
	color: var(--FkInk400);
	font-size: 13.5px;
}

.fk-docs .fk-doc-results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-result {
	padding-block: var(--fk-space-lg);
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-result-t {
	display: block;
	color: var(--FkInk900);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.fk-docs .fk-doc-result-t:hover {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-result-s {
	display: block;
	margin-block-start: 4px;
	color: var(--FkInk400);
	font-size: 12.5px;
}

.fk-docs .fk-doc-result-x {
	display: block;
	margin-block-start: 6px;
	color: var(--FkInk600);
	font-size: 14.5px;
	line-height: 1.55;
}

.fk-docs .fk-doc-noresults {
	padding: var(--fk-space-xl);
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-md);
	background: var(--FkSurface2);
}

.fk-docs .fk-doc-noresults p {
	margin: 0 0 var(--fk-space-md);
	color: var(--FkInk900);
	font-size: 15.5px;
	font-weight: 600;
}

.fk-docs .fk-doc-noresults ul {
	margin: 0;
	padding-inline-start: 18px;
}

.fk-docs .fk-doc-noresults a {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-block-start: var(--fk-space-2xl);
	padding-block-start: var(--fk-space-lg);
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-pagelink {
	min-width: 34px;
	padding: 6px 10px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-sm);
	color: var(--FkInk600);
	font-size: 13.5px;
	text-align: center;
	text-decoration: none;
}

.fk-docs .fk-doc-pagelink.is-current {
	border-color: var(--FkBlue600);
	color: var(--FkBlue600);
	font-weight: 700;
}

/* --- narrow screens ----------------------------------------------- */

@media (max-width: 900px) {
	.fk-docs .fk-doc-subhead-in {
		flex-wrap: wrap;
		gap: var(--fk-space-sm);
		padding: 8px 16px;
	}

	.fk-docs .fk-doc-find {
		width: 100%;
	}

	.fk-docs .fk-doc-find-scope {
		max-width: 40%;
	}

	.fk-docs .fk-doc-prevnext {
		flex-direction: column;
	}

	.fk-docs .fk-doc-pn-next {
		text-align: start;
	}
}

/* =====================================================================
 * Reading measure.
 *
 * The shared 1200px wrap minus a 288px sidebar and a 216px rail left the
 * prose column at 528px, which measures 59 characters at 17px Inter —
 * short of the 70-80 a docs page wants. Doc pages get a wider shell and
 * slightly narrower rails; the wrap override is scoped to the single-doc
 * body class so the shared Elementor wrap class is untouched elsewhere.
 * ================================================================== */

@media (min-width: 1360px) {
	.fk-docs-single .s-docwrap {
		max-width: 1320px;
	}

	.fk-docs-single .s-docshell {
		gap: 40px;
		grid-template-columns: 264px minmax(0, 1fr);
	}

	.fk-docs-single .s-docmain {
		gap: 0 36px;
		grid-template-columns: minmax(0, 1fr) 208px;
	}
}

/* The shell carries its own 1200px cap, which is the binding constraint:
 * widening only the wrap left the prose at 612px / 59 characters. */
@media (min-width: 1360px) {
	.fk-docs-single .s-docshell {
		max-width: 1320px;
	}
}

/* =====================================================================
 * Doc-page chrome.
 *
 * Three related corrections, all measured rather than assumed:
 *
 * 1. The single-doc template opens with the full-bleed documentation hero.
 *    On a doc page that is a marketing banner above the article, and it
 *    duplicates a search box the sub-header already carries. Section 4.3
 *    rules out hero banners on doc pages, so it is hidden here and left
 *    in place on the docs home and the archive, where it belongs.
 *
 * 2. That hero carries margin-top:-80px to tuck under the header, which
 *    pulled it over the product tabs and hid them completely.
 *
 * 3. --fk-hdr is declared 80px but the header actually measures 70px, so
 *    sticky offsets are built from the real height plus the sub-header
 *    rather than from the variable.
 * ================================================================== */

.fk-docs-single {
	--fk-doc-bar: 70px;
	--fk-doc-sub: 62px;
	--fk-doc-top: calc(var(--fk-doc-bar) + var(--fk-doc-sub) + 20px);
}

.fk-docs-single .s-dochero {
	display: none;
}

.fk-docs .fk-doc-subhead {
	position: sticky;
	z-index: 880; /* under the site header's 900, over the page content */
	top: 70px;
}

.fk-docs-single .s-docside {
	top: var(--fk-doc-top);
	max-height: calc(100vh - var(--fk-doc-top) - 24px);
}

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc {
		top: var(--fk-doc-top);
	}
}

.fk-docs-single .s-docmain h2,
.fk-docs-single .s-docmain h3,
.fk-docs-single .fk-doc-body h2,
.fk-docs-single .fk-doc-body h3 {
	scroll-margin-top: calc(var(--fk-doc-top) + 8px);
}

/* With the hero gone the body section needs its own breathing room. */
.fk-docs-single .s-docbody {
	padding-block-start: var(--fk-space-2xl);
}

/* The sub-header holds ten product tabs plus the search box; at the shared
 * 1200px it clipped the last tab mid-word. It follows the doc shell width,
 * and the tab strip still scrolls on narrow screens rather than wrapping. */
@media (min-width: 1360px) {
	.fk-docs .fk-doc-subhead-in {
		max-width: 1320px;
	}
}

.fk-docs .fk-doc-find {
	width: min(380px, 40vw);
}

.fk-docs .fk-doc-tab > a {
	padding-inline: 10px;
}

/* Ten product tabs plus a search box do not fit one 1272px line, and a
 * scrolling strip that clips "API" mid-word reads as a bug rather than an
 * affordance. The tabs wrap instead, so every product is always visible.
 *
 * With a strip that can be one line or two, a sticky sub-header would need a
 * fixed height to offset the sticky sidebar against; it is not sticky, so the
 * only offset that matters is the 70px header. The brief asks for a sticky
 * sidebar and table of contents, not a sticky sub-header. */
.fk-docs .fk-doc-tabs ul {
	flex-wrap: wrap;
	overflow: visible;
}

.fk-docs .fk-doc-subhead {
	position: static;
}

.fk-docs-single {
	--fk-doc-sub: 0px;
	--fk-doc-top: calc(var(--fk-doc-bar) + 20px);
}

.fk-docs .fk-doc-subhead-in {
	align-items: center;
	padding-block: 8px;
}

/* =====================================================================
 * Full-width docs layout, the way docs.stripe.com is laid out.
 *
 * The marketing pages are a centred 1200px column; a documentation page is
 * not a marketing page. The sub-header and the reading shell both run the
 * full viewport with a gutter, so the product tabs sit on one line and the
 * sidebar and the table of contents sit at the edges where a reader expects
 * to find them.
 *
 * The prose itself stays capped: full width is for the frame, not for the
 * line length, which stays in the 70-80 character band section 4.2 asks for.
 *
 * These overrides are scoped to docs views, so the shared Elementor wrap
 * class keeps its 1200px behaviour on every other page of the site.
 * ================================================================== */

.fk-docs .fk-doc-subhead-in {
	max-width: none;
	padding-inline: clamp(16px, 2.5vw, 40px);
}

@media (min-width: 1100px) {
	.fk-docs-single .s-docwrap,
	.fk-docs-single .s-docshell {
		max-width: none;
	}

	.fk-docs-single .s-docwrap {
		padding-inline: clamp(16px, 2.5vw, 40px);
	}

	.fk-docs-single .s-docshell {
		gap: clamp(32px, 3vw, 56px);
		grid-template-columns: clamp(240px, 19vw, 300px) minmax(0, 1fr);
	}

	.fk-docs-single .s-docmain {
		gap: 0 clamp(40px, 4vw, 80px);
		grid-template-columns: minmax(0, 1fr) clamp(200px, 15vw, 260px);
	}

	/* Line length is a reading constraint, not a layout one. */
	.fk-docs-single .s-docmain > .elementor-widget-theme-post-content,
	.fk-docs-single .s-docmain > .elementor-widget-theme-post-title,
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-updated,
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-prevnext,
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-related {
		max-width: 78ch;
	}
}

/* Breadcrumbs follow the same gutter as the shell rather than the old wrap. */
@media (min-width: 1100px) {
	.fk-docs-single .fk-doc-crumbs {
		max-width: none;
	}
}

/* Capping the content widget loses to Elementor's own `max-width:100%` on
 * .elementor-widget, so the cap belongs on the grid track instead: the column
 * is at most 78ch and the layout constrains the prose with no specificity
 * fight. space-between then puts the table of contents on the right edge and
 * lets the slack fall between the two, which is how Stripe reads on a wide
 * screen. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain {
		/* was space-between, which threw the contents list at the far edge and
		 * opened a hole in the middle; the pair is centred as one block now */
		justify-content: center;
		grid-template-columns: minmax(0, 78ch) clamp(200px, 15vw, 260px);
	}
}

/* Ten tabs plus the search box fit one line from 1400px up; below that the
 * strip wraps rather than clipping or scrolling. */
.fk-docs .fk-doc-tab > a {
	padding-inline: 7px;
}

@media (min-width: 1400px) {
	.fk-docs .fk-doc-find {
		width: 360px;
	}
}

/* 78ch measured 88 characters on a 1920 screen — `ch` is the width of "0",
 * which is wider than the average lowercase letter, so the track cap has to be
 * smaller than the character target. 64ch measures 76-77 characters, inside
 * the 70-80 band, and is above the column width at every narrower breakpoint
 * so nothing below 1600px changes. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain {
		grid-template-columns: minmax(0, 64ch) clamp(200px, 15vw, 260px);
	}
}

/* A tighter gap and search box keep the ten tabs on one line down to 1366,
 * the common laptop width. */
.fk-docs .fk-doc-subhead-in {
	gap: 16px;
}

.fk-docs .fk-doc-find {
	width: 330px;
}

@media (min-width: 1500px) {
	.fk-docs .fk-doc-find {
		width: 380px;
	}
}

/* The fixed 330px search box above is a desktop measurement; on a narrow
 * screen the box still takes the full width, as section 6.1 asks. */
@media (max-width: 900px) {
	.fk-docs .fk-doc-find {
		width: 100%;
	}
}

/* On a phone, ten wrapped tabs push the article three lines down the screen.
 * The strip scrolls horizontally instead, which is the touch affordance and
 * what docs.stripe.com does at this width. Wrapping stays on desktop, where
 * there is no swipe and a clipped tab would read as a bug. */
@media (max-width: 900px) {
	.fk-docs .fk-doc-tabs ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.fk-docs .fk-doc-tab {
		scroll-snap-align: start;
	}

	.fk-docs .fk-doc-tab > a {
		padding-inline: 10px;
	}
}

/* Below the three-column breakpoint the shell stacks and the prose had no cap
 * at all: a 1024px tablet measured 100 characters a line. The stacked column
 * carries the same 64ch cap the desktop grid track does. */
@media (max-width: 1099px) {
	.fk-docs-single .s-docmain {
		max-width: 64ch;
	}
}

/* =====================================================================
 * One layout for every documentation view.
 *
 * The article template was brought to a Stripe-style full-width reading
 * layout; the archive, the category pages and the documentation home were
 * still a 1200px column under a 558px navy hero, so moving between them
 * felt like moving between two different sites. They now share the same
 * frame, gutter, sub-header and sidebar treatment.
 *
 * The hero is treated differently per view, because it holds different
 * things:
 *
 *  - archive and category: the hero is a *duplicate* branding block (its
 *    "FunnelKit Documentation" is a <p>, and the page's real <h1> sits
 *    below it). Hidden, exactly as on an article.
 *  - documentation home: the hero holds the page's only <h1>, so it is
 *    kept and restyled as a compact light header instead of a navy
 *    banner — no content is removed.
 * ================================================================== */

.fk-docs-archive .s-dochero,
.fk-docs-category .s-dochero {
	display: none;
}

/* Sticky offsets apply to every docs view, not just the article. */
.fk-docs {
	--fk-doc-bar: 70px;
	--fk-doc-top: calc(var(--fk-doc-bar) + 20px);
}

@media (min-width: 1100px) {
	.fk-docs-archive .s-docwrap,
	.fk-docs-archive .s-docshell,
	.fk-docs-category .s-docwrap,
	.fk-docs-category .s-docshell,
	.fk-docs-home .s-docwrap {
		max-width: none;
	}

	.fk-docs-archive .s-docwrap,
	.fk-docs-category .s-docwrap,
	.fk-docs-home .s-docwrap {
		padding-inline: clamp(16px, 2.5vw, 40px);
	}

	.fk-docs-archive .s-docshell,
	.fk-docs-category .s-docshell {
		gap: clamp(32px, 3vw, 56px);
		grid-template-columns: clamp(240px, 19vw, 300px) minmax(0, 1fr);
	}

	.fk-docs-archive .s-docmain,
	.fk-docs-category .s-docmain {
		max-width: 92ch;
	}
}

/* --- the documentation home, as a compact header ------------------- */

.fk-docs-home .s-dochero {
	margin-top: 0;
	padding-block: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 40px);
	border-block-end: 1px solid var(--FkLine);
	background: var(--FkWhite);
}

.fk-docs-home .s-dochero .s-docbanner,
.fk-docs-home h1.s-docbanner {
	color: var(--FkInk900);
	font-size: clamp(30px, 3.4vw, 42px);
	/* One hero leading site-wide: 1.08, the same value `fk-h1`, the kit's h1
	   default and `.fk-cs-h1` carry. This rule is what the docs home hero
	   actually renders from - the widget's own local style loses to it, so it
	   was set to 1.08 as well rather than left as a second, stale source. */
	line-height: 1.08;
}

.fk-docs-home .s-dochero .s-docleadx,
.fk-docs-home .s-dochero .fk-lead {
	color: var(--FkInk600);
}

.fk-docs-home .s-dochero .fk-trust-txt {
	color: var(--FkInk400);
}

/* =====================================================================
 * Sidebar and header, read the way Stripe's docs read.
 *
 * The navigation was a bordered white card floating in the left column.
 * A documentation sidebar is a list, not a component: it loses the card
 * and gains a single hairline separating it from the article, which is
 * what carries the column structure on docs.stripe.com. Applies to every
 * docs view, so the article, the archive and a category all match.
 * ================================================================== */

.fk-docs .fk-doc-nav {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

@media (min-width: 1100px) {
	.fk-docs .s-docside {
		padding-inline: 0 clamp(16px, 1.6vw, 28px);
		border-inline-end: 1px solid var(--FkLine);
	}
}

/* The documentation home header: the same information, a third of the
 * height, so the product grid is visible without scrolling. */
.fk-docs-home .s-dochero {
	padding-block: clamp(26px, 2.6vw, 40px) clamp(22px, 2.2vw, 32px);
}

.fk-docs-home .s-dochero .s-docleadx,
.fk-docs-home .s-dochero .fk-lead {
	margin-block: 6px 0;
}

.fk-docs-home .s-docsearch {
	margin-block-start: 18px;
}

/* The table of contents was the last bordered card on the page. With the
 * sidebar now a plain list, a boxed rail on the other side reads as the odd
 * one out; it becomes a plain list under a hairline, matching the sidebar and
 * the way docs.stripe.com sets its "On this page". */
.fk-docs .fk-doc-toc {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc {
		padding-inline-start: clamp(16px, 1.4vw, 24px);
		border-inline-start: 1px solid var(--FkLine);
	}
}

.fk-docs .fk-doc-toc a {
	display: block;
	padding-block: 3px;
}

.fk-docs .fk-doc-toc a:hover,
.fk-docs .fk-doc-toc a:focus-visible {
	color: var(--FkBlue600);
}

/* =====================================================================
 * The documentation home and hub pages, set the way docs.stripe.com sets
 * them: a left-aligned header, grouped link columns instead of a wall of
 * cards, and flat bordered cards for a section's children.
 * ================================================================== */

/* --- home header: left-aligned and compact ------------------------- */

@media (min-width: 900px) {
	.fk-docs-home .s-dochero .s-docbanner,
	.fk-docs-home .s-dochero .s-docleadx,
	.fk-docs-home .s-dochero .fk-lead,
	.fk-docs-home .s-dochero .fk-trust-txt {
		text-align: start;
	}

	.fk-docs-home .s-dochero > * {
		align-items: flex-start;
		margin-inline: 0;
	}

	.fk-docs-home .s-docsearch {
		margin-inline: 0;
	}
}

/* --- grouped link columns ----------------------------------------- */

.fk-docs .fk-doc-cols {
	display: grid;
	gap: clamp(28px, 3vw, 48px) clamp(24px, 2.6vw, 44px);
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	width: 100%;
}

.fk-docs .fk-doc-col-h,
.fk-docs h2.fk-doc-col-h {
	margin: 0 0 12px;
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.fk-docs .fk-doc-col-h a {
	color: var(--FkInk900);
	text-decoration: none;
}

.fk-docs .fk-doc-col-h a:hover {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-col li {
	margin-block-start: 0;
}

.fk-docs .fk-doc-col li a {
	display: block;
	padding-block: 5px;
	color: var(--FkBlue600);
	font-size: 14.5px;
	line-height: 1.5;
	text-decoration: none;
}

.fk-docs .fk-doc-col li a:hover,
.fk-docs .fk-doc-col li a:focus-visible {
	color: var(--FkNavy700);
	text-decoration: underline;
}

/* --- a section's children, as flat cards -------------------------- */

.fk-docs .fk-doc-cards {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin-block-start: var(--fk-space-xl);
}

.fk-docs .fk-doc-card {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-sm);
	background: var(--FkWhite);
	text-decoration: none;
}

.fk-docs .fk-doc-card:hover,
.fk-docs .fk-doc-card:focus-visible {
	border-color: var(--FkBlueTint);
}

.fk-docs .fk-doc-card-t {
	display: block;
	color: var(--FkBlue600);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
}

.fk-docs .fk-doc-card-x {
	display: block;
	margin-block-start: 6px;
	color: var(--FkInk600);
	font-size: 13.5px;
	line-height: 1.5;
	overflow-wrap: anywhere; /* 2026-11-20: long URLs in summaries overflowed hub cards at 390px */
}

/* A hub's card grid is a full-width section, not prose. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-theme-post-content .fk-doc-hub {
		max-width: none;
	}
}

/* --- sidebar groups separated by a hairline ----------------------- */

.fk-docs .fk-doc-nav-sec + .fk-doc-nav-item {
	margin-block-start: 0;
}

.fk-docs .fk-doc-nav-sec > span {
	margin-block-start: 18px;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-nav-list > .fk-doc-nav-sec:first-of-type > span {
	margin-block-start: 10px;
	padding-block-start: 0;
	border-block-start: 0;
}

/* The documentation home header, left-aligned like docs.stripe.com.
 *
 * The hero is a flex container with align-items:center and a text-align:center
 * wrapper inside it, so both have to be unset. Stripe's home keeps its content
 * in a centred container but sets the heading, lead and actions flush left
 * against it — which is what this does, rather than making the whole page
 * full-bleed the way an article is. */
@media (min-width: 900px) {
	.fk-docs-home .s-dochero {
		align-items: flex-start;
	}

	.fk-docs-home .s-dochero > * {
		text-align: start;
	}

	.fk-docs-home .s-dochero .s-docsearch {
		margin-inline-start: 0;
	}

	.fk-docs-home .s-dochero .fk-doc-search {
		max-width: 560px;
		margin-inline: 0;
	}
}

/* The gap between the header and the product columns was most of a screen. */
.fk-docs-home .s-dochero {
	padding-block-end: clamp(18px, 1.8vw, 26px);
}

.fk-docs-home .fk-doc-cols {
	margin-block-start: clamp(28px, 3vw, 44px);
}

.fk-docs-home .s-dochero + * {
	padding-block-start: clamp(24px, 2.6vw, 40px);
}

/* Each hero child carries its own `align-self: center` from Elementor, which
 * beats `align-items` on the container — so the alignment has to be set on the
 * children, not the flex parent. */
@media (min-width: 900px) {
	.fk-docs-home .s-dochero .s-docbanner,
	.fk-docs-home .s-dochero .s-docleadx,
	.fk-docs-home .s-dochero .fk-lead,
	.fk-docs-home .s-dochero .fk-trust-txt,
	.fk-docs-home .s-dochero .s-docsearch,
	.fk-docs-home .s-dochero > * > * {
		align-self: flex-start;
	}
}

/* The home header and the product columns must share one container, or the
 * heading sits at the page gutter while the columns sit in a centred 1200px
 * block. docs.stripe.com keeps both in the same centred container (its H1 and
 * its link columns share a left edge), so the home wrap is restored to that
 * width rather than made full-bleed like an article. */
.fk-docs-home .s-docwrap {
	max-width: 1200px;
	padding-inline: 20px;
}

/* Correction: `align-items: flex-start` on the hero section moved the whole
 * 1200px wrapper to the left edge (x=20) instead of left-aligning its text.
 * The wrapper stays centred, and only its children align start — which is what
 * puts the heading on the same left edge as the product columns below it. */
.fk-docs-home .s-dochero {
	align-items: center;
}

/* The hero is a flex row whose single 1200px wrapper was being vertically
 * centred, leaving 80px of slack above the heading that no padding value could
 * remove. On the home it flows as a normal block instead, with the wrapper
 * centred by its own auto margins — predictable, and it drops the header from
 * 370px to roughly 250px so the product columns are visible without scrolling. */
.fk-docs-home .s-dochero {
	display: block;
	padding-block: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 30px);
}

.fk-docs-home .elementor-element-wrap-dochero {
	margin-inline: auto;
}

/* A hub page is a directory of its section, not prose, so its track is wider
 * than the article's 64ch reading measure — wide enough for three cards.
 *
 * `1fr` was too wide: it swallowed every pixel the viewport had, so on a
 * 2000px screen the contents list was thrown out to x=1685, 1000px clear of
 * the text it describes. The track is bounded at 860px, which still fits
 * three 228px cards and their gaps, and keeps the contents list beside the
 * column it belongs to. */
@media (min-width: 1100px) {
	.fk-docs-hub .s-docmain:has(.fk-doc-cards) {
		grid-template-columns: minmax(0, 860px) clamp(200px, 15vw, 260px);
	}

	.fk-docs-hub .s-docmain > .elementor-widget-theme-post-title,
	.fk-docs-hub .s-docmain > .elementor-widget-fk-doc-updated {
		max-width: 64ch;
	}

}

/* 260px minimum fitted only two cards in a 773px track; 228px fits three,
 * which is the density docs.stripe.com uses for a section's children. */
.fk-docs .fk-doc-cards {
	grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

/* =====================================================================
 * Theme pass: make the portal read as FunnelKit, not as a default.
 *
 * Contrast was already AA everywhere (lowest 5.2:1), so this is about
 * definition and brand presence rather than legibility: a tinted docs
 * bar, a current state you can find without hunting, and brand colour
 * on the things a reader acts on. Every value is an existing kit token;
 * no gradients, glows or shadows.
 * ================================================================== */

/* --- the docs bar reads as its own surface ------------------------ */

.fk-docs .fk-doc-subhead {
	border-block-end: 1px solid var(--FkLine);
	background: var(--FkSurface2);
}

.fk-docs .fk-doc-tab > a {
	border-radius: var(--fk-radius-sm) var(--fk-radius-sm) 0 0;
	border-block-end-width: 3px;
}

.fk-docs .fk-doc-tab:not(.is-current) > a:hover,
.fk-docs .fk-doc-tab:not(.is-current) > a:focus-visible {
	border-block-end-color: var(--FkBlueTint);
	background: var(--FkWhite);
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-tab.is-current > a {
	background: var(--FkWhite);
}

.fk-docs .fk-doc-find-q,
.fk-docs .fk-doc-find-scope {
	border-color: var(--FkBlueTint);
}

/* --- sidebar: a findable current item ----------------------------- */

.fk-docs .fk-doc-nav-sec > span {
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item > a {
	border-radius: var(--fk-radius-sm);
	border-inline-start: 3px solid transparent;
	padding-inline-start: 11px;
}

.fk-docs .fk-doc-nav-item > a:hover,
.fk-docs .fk-doc-nav-item > a:focus-visible {
	background: var(--FkSurface2);
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item.is-current > a {
	border-inline-start-color: var(--FkBlue600);
	background: var(--FkBlue50);
	color: var(--FkBlue700);
	font-weight: 700;
}

.fk-docs .fk-doc-nav-back > a:hover {
	color: var(--FkNavy700);
}

/* --- contents list: the position tracker -------------------------- */

.fk-docs .fk-doc-toc a {
	border-inline-start: 2px solid transparent;
	margin-inline-start: -2px;
	padding-inline-start: 10px;
}

.fk-docs .fk-doc-toc a.is-current {
	border-inline-start-color: var(--FkBlue600);
	color: var(--FkBlue700);
	font-weight: 600;
}

.fk-docs .fk-doc-toc-h {
	color: var(--FkNavy700);
}

/* --- things a reader clicks --------------------------------------- */

.fk-docs .fk-doc-card:hover,
.fk-docs .fk-doc-card:focus-visible {
	border-color: var(--FkBlue600);
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-card:hover .fk-doc-card-t {
	color: var(--FkBlue700);
}

.fk-docs .fk-doc-col-h a {
	color: var(--FkNavy900);
}

.fk-docs .fk-doc-pn:hover,
.fk-docs .fk-doc-pn:focus-visible {
	border-color: var(--FkBlue600);
	background: var(--FkBlue50);
}

.fk-docs .fk-doc-related li a:hover {
	color: var(--FkNavy700);
	text-decoration: underline;
}

/* --- breadcrumbs: the current page is the loudest crumb ----------- */

.fk-docs .fk-doc-crumb:last-child span,
.fk-docs .fk-doc-crumb [aria-current="page"] {
	color: var(--FkInk900);
	font-weight: 600;
}

/* --- search results ----------------------------------------------- */

.fk-docs .fk-doc-result-t mark,
.fk-docs .fk-doc-find-t mark {
	background: var(--FkBlue50);
	border-radius: 4px;
	padding-inline: 2px;
}

.fk-docs .fk-doc-result:hover .fk-doc-result-t {
	color: var(--FkBlue700);
}

/* --- the staging source line, clearly an annotation --------------- */

.fk-docs .fk-doc-src {
	padding: 10px 12px;
	border: 1px dashed var(--FkBlueTint);
	border-radius: var(--fk-radius-sm);
	background: var(--FkSurface2);
}

/* --- a visible focus ring everywhere ------------------------------ */

.fk-docs a:focus-visible,
.fk-docs button:focus-visible,
.fk-docs select:focus-visible,
.fk-docs input:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: 2px;
}

/* The documentation home: a tinted header zone over a white body.
 *
 * docs.stripe.com separates its masthead from its content with a light ground
 * rather than a rule alone; the same move here joins the docs bar and the
 * header into one zone and lets the product columns sit on white. Each column
 * gets a hairline so the groups read as groups instead of floating text. */

.fk-docs-home .s-dochero {
	border-block-end: 1px solid var(--FkLine);
	background: var(--FkSurface2);
}

.fk-docs-home .fk-doc-search-in,
.fk-docs-home .s-docsearch input[type="search"] {
	border: 1px solid var(--FkBlueTint);
	background: var(--FkWhite);
}

.fk-docs .fk-doc-col {
	padding-block-start: 14px;
	border-block-start: 2px solid var(--FkLine);
}

.fk-docs .fk-doc-col-h,
.fk-docs h2.fk-doc-col-h {
	margin-block-end: 8px;
	font-size: 15px;
	letter-spacing: 0.01em;
	text-transform: none;
}

.fk-docs .fk-doc-col:hover {
	border-block-start-color: var(--FkBlue600);
}

/* The header and the columns were a screen apart. */
.fk-docs-home .s-dochero + * {
	padding-block-start: clamp(20px, 2vw, 32px);
}

/* =====================================================================
 * The documentation masthead.
 *
 * The portal no longer uses the marketing header or footer, so it carries
 * its own two-row chrome: a tinted brand row with search and actions, and
 * a white product-tab row beneath it — the arrangement docs.stripe.com
 * uses. Both rows are full width with the same gutter as the shell.
 * ================================================================== */

.fk-docs .fk-doc-mast {
	border-block-end: 1px solid var(--FkLine);
	background: var(--FkSurface2);
}

.fk-docs .fk-doc-mast-in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	max-width: none;
	margin-inline: auto;
	padding: 10px clamp(16px, 2.5vw, 40px);
}

.fk-docs .fk-doc-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 9px;
	text-decoration: none;
}

.fk-docs .fk-doc-brand .fk-doc-logo,
.fk-docs .fk-doc-brand svg {
	display: block;
	width: auto;
	height: 21px;
}

.fk-docs .fk-doc-brand-w {
	color: var(--FkBlue600);
	font-family: var(--FkDisplay), var(--FkBody), system-ui, sans-serif;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* The search sits between the brand and the actions, as on the reference. */
.fk-docs .fk-doc-mast .fk-doc-find {
	flex: 0 1 520px;
	margin-inline: auto;
}

.fk-docs .fk-doc-mast .fk-doc-find-q {
	background: var(--FkWhite);
}

.fk-docs .fk-doc-mast-act {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 14px;
}

.fk-docs .fk-doc-mast-link {
	color: var(--FkInk600);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.fk-docs .fk-doc-mast-link:hover {
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-mast-cta {
	padding: 8px 16px;
	border-radius: var(--fk-radius-pill);
	background: var(--FkCta600);
	color: var(--FkWhite);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.fk-docs .fk-doc-mast-cta:hover {
	background: var(--FkCta700);
	color: var(--FkWhite);
}

/* --- the tab row is now the white band under the masthead --------- */

.fk-docs .fk-doc-subhead {
	background: var(--FkWhite);
}

.fk-docs .fk-doc-subhead-in {
	justify-content: space-between;
}

.fk-docs .fk-doc-subhead-act {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 16px;
}

.fk-docs .fk-doc-subhead-act a {
	color: var(--FkInk600);
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.fk-docs .fk-doc-subhead-act a:hover {
	color: var(--FkBlue600);
}

/* --- the doc template's closing CTA belongs to the marketing site -- */

.fk-docs-single .s-dochero,
.fk-docs-single .elementor-element-sec-final,
.fk-docs-archive .elementor-element-sec-final,
.fk-docs-category .elementor-element-sec-final {
	display: none;
}

/* --- the home header follows the masthead, not the old hero ------- */

.fk-docs-home .s-dochero {
	background: var(--FkWhite);
}

/* --- narrow screens ----------------------------------------------- */

@media (max-width: 900px) {
	.fk-docs .fk-doc-mast-in {
		flex-wrap: wrap;
		gap: 10px;
		padding: 10px 16px;
	}

	.fk-docs .fk-doc-mast .fk-doc-find {
		order: 3;
		flex: 1 0 100%;
		margin-inline: 0;
	}

	.fk-docs .fk-doc-mast-act {
		margin-inline-start: auto;
	}

	.fk-docs .fk-doc-subhead-act {
		display: none;
	}
}

/* =====================================================================
 * One left edge for the whole page.
 *
 * Measured at 1600px before this: the masthead and tab row began at x=40,
 * the breadcrumbs and shell at x=60, the sidebar at x=70 and the article
 * text at x=428 — four different left edges, because the Elementor
 * section adds 20px of its own padding on top of the shell gutter and
 * each container inside adds another 10px.
 *
 * Zeroing those inline paddings leaves the wrap's gutter as the single
 * source of the page margin, so chrome, breadcrumbs and sidebar share one
 * edge and the article sits exactly one column across from it.
 * ================================================================== */

.fk-docs-single .s-docbody,
.fk-docs-archive .s-docbody,
.fk-docs-category .s-docbody {
	padding-inline: 0;
}

.fk-docs .s-docshell,
.fk-docs .s-docmain {
	padding-inline: 0;
}

.fk-docs .s-docside {
	padding-inline-start: 0;
}

/* The table of contents sat 191px from the text because space-between threw
 * it at the far edge. A fixed gap keeps it next to the column it describes,
 * and the slack falls as a right margin instead of a hole in the middle. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		justify-content: center;
		gap: 0 clamp(40px, 4.5vw, 80px);
	}
}

/* Left-aligning the pair left 199px of dead space at the right edge. On
 * docs.stripe.com the slack sits between the sidebar and the article instead,
 * and the content block runs to the right edge — so the pair is centred in the
 * space the sidebar leaves. */
@media (min-width: 1240px) {
	/* Centred in the space the sidebar leaves, which is what the layout is
	 * asked to do. This is only safe because the contents track above is
	 * reserved on every page; when it collapsed, centring moved the body
	 * 54px between a page with a contents list and one without. */
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		justify-content: center;
	}
}

/* The sticky sidebar scrolls, so its scrollbar track sat directly beside the
 * hairline that separates it from the article — two vertical lines a few pixels
 * apart. The thumb only appears on hover or while scrolling, leaving the
 * hairline as the single divider. */
.fk-docs .s-docside {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}

.fk-docs .s-docside:hover,
.fk-docs .s-docside:focus-within {
	scrollbar-color: var(--FkBlueTint) transparent;
}

.fk-docs .s-docside::-webkit-scrollbar {
	width: 8px;
}

.fk-docs .s-docside::-webkit-scrollbar-track {
	background: transparent;
}

.fk-docs .s-docside::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 8px;
	background: transparent;
	background-clip: content-box;
}

.fk-docs .s-docside:hover::-webkit-scrollbar-thumb,
.fk-docs .s-docside:focus-within::-webkit-scrollbar-thumb {
	background: var(--FkBlueTint);
	background-clip: content-box;
}

/* =====================================================================
 * Sticky docs chrome, and breadcrumbs removed.
 *
 * The masthead and the product tabs are one bar that stays put while the
 * article scrolls. Its height is measured into --fk-doc-bar by
 * fk-docs-toc.js, because the tab strip wraps to two lines below 1400px
 * and every other sticky offset is derived from it — a hardcoded value
 * would park the sidebar under the bar at exactly the widths where the
 * bar is tallest.
 * ================================================================== */

.fk-docs .fk-doc-chrome {
	position: sticky;
	z-index: 900;
	top: 0;
	background: var(--FkWhite);
}

/* Neither row is sticky on its own any more; the wrapper carries it. */
.fk-docs .fk-doc-mast,
.fk-docs .fk-doc-subhead {
	position: static;
}

/* Breadcrumbs are off: the widget renders nothing, so collapse its slot. */
.fk-docs .elementor-widget-fk-doc-breadcrumbs,
.fk-docs .elementor-element-docrumbs {
	display: none;
}

/* Every offset follows the measured bar. The fallback matches the common
 * one-line case so the layout is right before the script runs. */
.fk-docs {
	--fk-doc-bar: 110px;
	--fk-doc-top: calc(var(--fk-doc-bar) + 20px);
}

.fk-docs .s-docside,
.fk-docs-single .s-docside {
	top: var(--fk-doc-top);
	max-height: calc(100vh - var(--fk-doc-top) - 24px);
}

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc,
	.fk-docs-hub .s-docmain > .elementor-widget-fk-doc-toc {
		top: var(--fk-doc-top);
		max-height: calc(100vh - var(--fk-doc-top) - 24px);
		overflow-y: auto;
	}
}

.fk-docs-single .s-docmain h2,
.fk-docs-single .s-docmain h3,
.fk-docs-single .s-docmain h4,
.fk-docs-single .fk-doc-body h2,
.fk-docs-single .fk-doc-body h3,
.fk-docs-single .fk-doc-body h4 {
	scroll-margin-top: calc(var(--fk-doc-bar) + 16px);
}

/* With the breadcrumb row gone the article started hard against the bar. */
.fk-docs-single .s-docbody,
.fk-docs-archive .s-docbody,
.fk-docs-category .s-docbody {
	padding-block-start: clamp(20px, 2vw, 32px);
}

/* An earlier rule set --fk-doc-bar: 70px on .fk-docs-single, back when the
 * site header was the only sticky thing. A body-level declaration shadows the
 * value the script publishes on <html>, so the sidebar was offset against 70px
 * while the real bar is 120px. `inherit` hands those classes back to the
 * measured value instead of guessing a new number. */
.fk-docs-single,
.fk-docs-hub,
.fk-docs-archive,
.fk-docs-category,
.fk-docs-home {
	--fk-doc-bar: inherit;
	--fk-doc-sub: 0px;
	--fk-doc-top: calc(var(--fk-doc-bar) + 20px);
}

/* On a phone the sticky bar measured 204px — a fifth of the viewport — because
 * the search took a full row of its own. Section 6.1 asks for a search icon
 * that opens the field full width on mobile, which is also what keeps the bar
 * short. The icon is mobile-only; the field is always visible on desktop. */
.fk-docs .fk-doc-find-open {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--FkBlueTint);
	border-radius: var(--fk-radius-sm);
	background: var(--FkWhite);
	color: var(--FkInk600);
	cursor: pointer;
}

.fk-docs .fk-doc-find-open:hover {
	color: var(--FkBlue600);
}

@media (max-width: 900px) {
	.fk-docs .fk-doc-find-open {
		display: inline-flex;
		order: 2;
		margin-inline-start: auto;
	}

	.fk-docs .fk-doc-mast .fk-doc-find {
		display: none;
	}

	.fk-docs .fk-doc-mast .fk-doc-find.is-open {
		display: flex;
	}

	.fk-docs .fk-doc-mast-act {
		order: 3;
		margin-inline-start: 10px;
	}
}

/* At 390px the brand row still wrapped, leaving a 168px sticky bar. Dropping
 * the "Login" text link (the Get FunnelKit action remains, and Login is one tap
 * away inside it) fits brand + search icon + action on one line, which halves
 * the bar on a phone. */
@media (max-width: 560px) {
	.fk-docs .fk-doc-mast-link {
		display: none;
	}

	.fk-docs .fk-doc-mast-in {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.fk-docs .fk-doc-mast-cta {
		padding: 7px 12px;
		font-size: 13.5px;
	}

	.fk-docs .fk-doc-brand-w {
		font-size: 15px;
	}

	.fk-docs .fk-doc-mast .fk-doc-find.is-open {
		flex: 1 0 100%;
		order: 4;
	}
}

/* =====================================================================
 * One continuous chrome bar, and a right edge that lines up.
 *
 * The masthead and the tab row carried different backgrounds (Surface 2
 * over white) with a hairline between them, so the chrome read as two
 * stacked bars. They now share one ground with no internal divider; only
 * the outer edge against the article keeps a hairline.
 *
 * The right-hand items of both rows already ended at the shell's right
 * edge (1545 at 1600px) but the "On this page" column stopped 99px short,
 * so the column did not line up with the actions above it. Ending the
 * content+contents pair against the right edge aligns them, and puts the
 * slack between the sidebar and the article, as docs.stripe.com does.
 * ================================================================== */

.fk-docs .fk-doc-mast {
	border-block-end: 0;
}

.fk-docs .fk-doc-subhead {
	background: var(--FkSurface2);
}

/* With one ground behind both rows the current tab no longer needs a white
 * lift; the rule and the ink carry it. */
.fk-docs .fk-doc-tab.is-current > a,
.fk-docs .fk-doc-tab:not(.is-current) > a:hover,
.fk-docs .fk-doc-tab:not(.is-current) > a:focus-visible {
	background: transparent;
}

/* This block used to set `justify-content: end`. It was the last of three
 * conflicting declarations on the same grid, so it silently won whenever the
 * tracks did not fill — the opposite of what the two rules above intend. The
 * article is left-aligned everywhere now; see the note at the 1240 rule. */

/* Below 1100px the shell keeps Elementor's own 20px gutter while the chrome was
 * still on the fluid clamp, so the two disagreed by about 4px on a phone. The
 * chrome matches the shell at those widths. */
@media (max-width: 1099px) {
	.fk-docs .fk-doc-mast-in,
	.fk-docs .fk-doc-subhead-in {
		padding-inline: 20px;
	}
}

/* The closing marketing band belongs to the site, not to the documentation.
 *
 * It was already hidden on articles and archives via the template's element id
 * `sec-final`, but on /documentation/ the same block is a site-wide component
 * whose generated id is `1czvpjd` — so the id-based rule never matched there
 * and the 847px navy CTA was still the last thing on the docs home. The
 * `s-sec-final` class is the stable hook and is what this targets; the id is
 * kept alongside it for the template's own copy.
 *
 * The sticky CTA and the video modal are site-wide page patterns too, and are
 * explicitly held off rather than left to whatever the page data says. */
.fk-docs .s-sec-final,
.fk-docs .elementor-element-sec-final,
.fk-docs .s-sticky-cta,
.fk-docs .s-vmodal {
	display: none !important;
}

/* With the band gone the product columns are the last thing on the page, so
 * they need a closing margin of their own. */
.fk-docs-home .fk-doc-cols {
	padding-block-end: clamp(48px, 6vw, 96px);
}

/* The home header carried ~80px of slack above the heading that survived
 * display:block, zeroed margins and every padding value — the hero's own box
 * was taller than its content and the wrapper sat at the bottom of it. Moving
 * the vertical padding onto the wrapper and letting the hero size to its
 * content removes it, and with the duplicate search box gone the header is now
 * just the title and the lead. */
.fk-docs-home .s-dochero {
	display: flow-root;
	padding-block: 0;
	min-height: 0;
	height: auto;
}

.fk-docs-home .elementor-element-wrap-dochero {
	padding-block: clamp(30px, 3.2vw, 48px) clamp(24px, 2.4vw, 34px);
}

/* The 80px was a transparent `border-top`, the counterpart to the hero's
 * original `margin-top: -80px` that tucked it under the old fixed site header.
 * The negative margin was removed when the portal took over its own chrome; the
 * border was not, and a border is neither padding nor margin, which is why it
 * survived every attempt to collapse the space. */
.fk-docs-home .s-dochero {
	border-block-start: 0;
}

/* =====================================================================
 * The documentation home's hero.
 *
 * A dot field, the heading and lead, two real actions, and a card of the
 * reader's own recently viewed pages — the arrangement docs.stripe.com
 * opens with.
 *
 * The dot field is a repeating radial-gradient, which is a texture rather
 * than the decorative colour wash section 4.3 rules out: one brand tint,
 * no blur, no glow, and it fades out before the content so nothing sits
 * on a busy ground.
 * ================================================================== */

.fk-docs-home .s-dochero {
	position: relative;
	overflow: hidden;
	background-color: var(--FkSurface2);
}

.fk-docs-home .s-dochero::after {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 0;
	background-image: radial-gradient(var(--FkBlueTint) 1px, transparent 1px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 55%), transparent 72%);
	mask-image: linear-gradient(to bottom, rgb(0 0 0 / 55%), transparent 72%);
	pointer-events: none;
}

.fk-docs-home .elementor-element-wrap-dochero,
.fk-docs-home .fk-doc-herox {
	position: relative;
	z-index: 1;
}

/* Two columns: the copy and its actions on the left, the card on the right.
 * `display: contents` lets the injected wrapper hand its two children straight
 * to the hero's grid, so the actions sit under the lead rather than beside it. */
@media (min-width: 1000px) {
	.fk-docs-home .s-dochero {
		display: grid;
		align-items: start;
		gap: 0 clamp(32px, 4vw, 72px);
		grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px);
	}

	.fk-docs-home .elementor-element-wrap-dochero {
		grid-column: 1;
		grid-row: 1;
	}

	.fk-docs-home .fk-doc-herox {
		display: contents;
	}

	.fk-docs-home .fk-doc-herox-act {
		grid-column: 1;
		grid-row: 2;
	}

	.fk-docs-home .fk-doc-recent {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-block-start: clamp(30px, 3.2vw, 48px);
	}
}

/* --- actions ------------------------------------------------------- */

.fk-docs .fk-doc-herox-act {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	padding-block-end: clamp(24px, 2.4vw, 34px);
}

.fk-docs .fk-doc-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: var(--fk-radius-sm);
	background: var(--FkBlue600);
	color: var(--FkWhite);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.fk-docs .fk-doc-btn:hover,
.fk-docs .fk-doc-btn:focus-visible {
	background: var(--FkBlue700);
	color: var(--FkWhite);
}

.fk-docs .fk-doc-btn-text {
	color: var(--FkInk900);
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fk-docs .fk-doc-btn-text:hover {
	color: var(--FkBlue600);
}

/* --- recently viewed ----------------------------------------------- */

.fk-docs .fk-doc-recent {
	padding: 16px 18px;
	border: 1px solid var(--FkLine);
	border-radius: var(--fk-radius-md);
	background: var(--FkWhite);
}

.fk-docs .fk-doc-recent-h,
.fk-docs h2.fk-doc-recent-h {
	margin: 0 0 10px;
	color: var(--FkInk400);
	font-family: var(--FkBody), system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fk-docs .fk-doc-recent-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fk-docs .fk-doc-recent-list li + li {
	margin-block-start: 2px;
	padding-block-start: 8px;
	border-block-start: 1px solid var(--FkLine);
}

.fk-docs .fk-doc-recent-list a {
	display: block;
	color: var(--FkBlue600);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
}

.fk-docs .fk-doc-recent-list a:hover {
	color: var(--FkNavy700);
	text-decoration: underline;
}

@media (max-width: 999px) {
	.fk-docs .fk-doc-recent {
		margin-block-end: clamp(24px, 3vw, 36px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fk-docs-home .s-dochero::after {
		opacity: 0.6;
	}
}

/* Making the hero a grid broke the left edge it used to share with the product
 * columns: the heading fell back to the page gutter at x=40 while the columns
 * start at 213. The dot field has to stay full-bleed, so the grid is centred
 * with padding rather than a max-width — `(100% - 1160px) / 2` reproduces the
 * columns' container exactly, and the floor keeps a gutter on narrow screens. */
.fk-docs-home .s-dochero {
	padding-inline: max(20px, calc((100% - 1160px) / 2));
}

.fk-docs-home .elementor-element-wrap-dochero {
	padding-inline: 0;
}

/* The active tab's underline floated 9px above the row's bottom border — 8px of
 * container padding plus the border itself — so it read as a detached dash
 * rather than the tab sitting on the edge of the bar.
 *
 * The row keeps its top padding; the bottom padding moves onto the tab links,
 * and the strip stretches to the row's full height with the links aligned to
 * its bottom. The underline then lands directly on the border. The right-hand
 * links stay optically centred. */
.fk-docs .fk-doc-subhead-in {
	align-items: stretch;
	padding-block: 8px 0;
}

.fk-docs .fk-doc-tabs {
	display: flex;
	align-items: flex-end;
}

.fk-docs .fk-doc-tabs ul {
	width: 100%;
}

.fk-docs .fk-doc-tab > a {
	padding-block: 10px 12px;
	border-radius: var(--fk-radius-sm) var(--fk-radius-sm) 0 0;
}

.fk-docs .fk-doc-subhead-act {
	align-self: center;
	padding-block-end: 8px;
}

@media (max-width: 900px) {
	.fk-docs .fk-doc-subhead-in {
		align-items: stretch;
	}
}

/* Sidebar links were indented 14px past the group labels and the rail title —
 * a 3px current-item rule plus 11px of padding, both of which pushed the text.
 *
 * The link now hangs 12px into negative space and pays it back as padding, so
 * the text starts on the same left edge as "START" and the rail title while the
 * highlight pill and the current-item rule still have room to sit beside it.
 * The rule becomes an inset shadow so it never affects layout again. */
.fk-docs .fk-doc-nav-item > a {
	margin-inline: -12px;
	padding-inline: 12px;
	border-inline-start: 0;
}

.fk-docs .fk-doc-nav-item.is-current > a {
	box-shadow: inset 3px 0 0 var(--FkBlue600);
}

/* Nesting keeps its step, measured from the new text edge. */
.fk-docs .fk-doc-nav-item.fk-doc-depth-1 > a {
	padding-inline-start: 26px;
}

.fk-docs .fk-doc-nav-item.fk-doc-depth-2 > a {
	padding-inline-start: 40px;
}

/* The depth step, restored.
 *
 * It was flattened earlier for a good reason: depth was then derived from the
 * number of path segments, so inside one group a two-segment doc sat flush
 * while a three-segment doc was pushed right, and the indent tracked URL shape
 * rather than meaning. It read as a ragged edge, not a hierarchy.
 *
 * Depth now comes from the approved architecture's navigation tree — a real
 * parent/child relation, three levels at most, every item in a group agreeing.
 * "Installation" genuinely sits under "Get started", so it is set that way.
 * Both numbers are measured from the 12px text edge the flat rail established. */
.fk-docs .fk-doc-nav-item.fk-doc-depth-0 > a {
	padding-inline-start: 12px;
}

.fk-docs .fk-doc-nav-item.fk-doc-depth-1 > a {
	padding-inline-start: 26px;
}

.fk-docs .fk-doc-nav-item.fk-doc-depth-2 > a {
	padding-inline-start: 40px;
}

/* =====================================================================
 * The sidebar rail, set the way docs.stripe.com sets it.
 *
 * Two changes:
 *
 * 1. The rail starts flush against the bar above it. The whole body
 *    section carried the top padding, which pushed the rail 42px down
 *    and left it floating. The padding moves to the article column, so
 *    the prose keeps its breathing room and the rail meets the border.
 *
 * 2. The current item is blue text, not a tinted pill. Stripe marks
 *    position with colour alone; the pill and the inset rule were a
 *    heavier treatment than the reference, and on a 180-item rail they
 *    read as a block dropped into the list.
 * ================================================================== */

.fk-docs-single .s-docbody,
.fk-docs-archive .s-docbody,
.fk-docs-category .s-docbody {
	padding-block-start: 0;
}

.fk-docs .s-docmain {
	padding-block-start: clamp(20px, 2vw, 32px);
}

.fk-docs .s-docside {
	padding-block-start: clamp(14px, 1.4vw, 22px);
}

/* --- the list itself: tighter, quieter ---------------------------- */

.fk-docs .fk-doc-nav-item > a {
	padding-block: 6px;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.45;
}

.fk-docs .fk-doc-nav-item.is-current > a {
	background: none;
	box-shadow: none;
	color: var(--FkBlue600);
	font-weight: 600;
}

.fk-docs .fk-doc-nav-item:not(.is-current) > a:hover,
.fk-docs .fk-doc-nav-item:not(.is-current) > a:focus-visible {
	background: none;
	color: var(--FkBlue600);
}

/* --- group labels ------------------------------------------------- */

.fk-docs .fk-doc-nav-sec > span {
	margin-block-start: 22px;
	padding-block-start: 18px;
	color: var(--FkInk600);
	font-size: 12px;
	letter-spacing: 0.07em;
}

.fk-docs .fk-doc-nav-root > span {
	font-size: 14.5px;
	font-weight: 700;
}

/* The rail carries the hairline that separates it from the article, so any
 * padding on the rail itself starts that line below the bar and leaves it
 * floating. The padding moves inside, onto the nav: the divider now begins
 * exactly at the bar's border while the first link still has room to breathe. */
.fk-docs .s-docside {
	padding-block-start: 0;
}

.fk-docs .fk-doc-nav {
	padding-block-start: clamp(14px, 1.4vw, 22px);
}

/* The rail was not being pushed down by padding at all — it is `position:
 * sticky` with `top: bar + 20px`, and that offset applies at scroll 0 too, so
 * it sat 20px below the bar before the page had even moved. The shell's own
 * 10px top padding added the rest.
 *
 * The rail now pins at exactly the bar's height and the shell's top padding is
 * gone, so the rail and its hairline meet the border; the breathing room lives
 * inside the nav. The contents list keeps an offset so its first line stays
 * level with the article's first line. */
.fk-docs .s-docshell {
	padding-block-start: 0;
}

.fk-docs .s-docside,
.fk-docs-single .s-docside {
	top: var(--fk-doc-bar);
}

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc,
	.fk-docs-hub .s-docmain > .elementor-widget-fk-doc-toc {
		top: calc(var(--fk-doc-bar) + clamp(20px, 2vw, 32px));
	}
}

/* =====================================================================
 * Balance the article column.
 *
 * Two faults, both visible on a page with too few headings to earn a
 * table of contents:
 *
 * 1. The contents widget is not rendered at all on such a page, but the
 *    grid still reserved its 240px track, so the layout held space for
 *    something that does not exist.
 * 2. `justify-content: end` then pushed the text against that reserved
 *    track, leaving 247px of void after the sidebar and 312px trailing.
 *
 * The pair is centred in the space the sidebar leaves, and when there is
 * no contents list the track collapses so the article centres on its
 * own rather than being held to one side by a phantom column.
 * ================================================================== */

@media (min-width: 1240px) {
	/* Centred in the space the sidebar leaves. Safe only because the contents
	 * track is reserved on every page (see below): when it collapsed, centring
	 * moved the body 54px between a page with a contents list and one
	 * without. */
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		justify-content: center;
	}

	/* With the grid centred, an empty contents track is not neutral: it is
	 * counted in the centring, so the text on a page with no contents list
	 * ends up pushed left of centre by half the track. The track collapses
	 * when there is nothing in it, and whatever the page does have — article
	 * alone, or article plus contents list — is what gets centred. */
	.fk-docs-single .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)) {
		grid-template-columns: minmax(0, 64ch);
	}

	.fk-docs-hub .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)):has(.fk-doc-cards) {
		grid-template-columns: minmax(0, 860px);
	}
}

/* The collapse rule started at 1240px but the two-column article layout starts
 * at 1100, so between those widths a page with no contents list still reserved
 * the track: 33px of gap on the left against 250px on the right. The collapse
 * now begins where the second column does. */
@media (min-width: 1100px) {
	/* With the grid centred, an empty contents track is not neutral: it is
	 * counted in the centring, so the text on a page with no contents list
	 * ends up pushed left of centre by half the track. The track collapses
	 * when there is nothing in it, and whatever the page does have — article
	 * alone, or article plus contents list — is what gets centred. */
	.fk-docs-single .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)) {
		grid-template-columns: minmax(0, 64ch);
	}

	.fk-docs-hub .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)):has(.fk-doc-cards) {
		grid-template-columns: minmax(0, 860px);
	}
}


/* The search control's focus ring came from the theme's global focus style —
 * a 3px Ink 900 outline at -2px offset — which read as a heavy dark box
 * stamped over the field. It is replaced here, not removed: a keyboard user
 * still needs to see where they are, so the border turns brand blue and an
 * inset line thickens it. No detached ring, no glow. */
.fk-docs .fk-doc-find-q:focus,
.fk-docs .fk-doc-find-q:focus-visible,
.fk-docs .fk-doc-find-scope:focus,
.fk-docs .fk-doc-find-scope:focus-visible,
.fk-docs .fk-doc-searchpage-form input:focus,
.fk-docs .fk-doc-searchpage-form input:focus-visible {
	outline: none;
	border-color: var(--FkBlue600);
	box-shadow: inset 0 0 0 1px var(--FkBlue600);
}

/* Focusing either half should light the whole control, since they read as one. */
.fk-docs .fk-doc-find:focus-within .fk-doc-find-q,
.fk-docs .fk-doc-find:focus-within .fk-doc-find-scope {
	border-color: var(--FkBlue600);
}

/* =====================================================================
 * Collapsing the sidebar rail.
 *
 * The control sits at the top of the rail and is sticky inside it, so it
 * stays reachable while a 180-item list scrolls past. When the rail is
 * closed it is the only thing left of it — pinned at the gutter, arrow
 * flipped — which is what gives the reader the way back.
 *
 * Desktop only: below 1100px the rail is already a disclosure behind the
 * "In this section" button, and a second control would compete with it.
 * ================================================================== */

.fk-docs .fk-doc-rail-toggle {
	display: none;
}

@media (min-width: 1100px) {
	.fk-docs .fk-doc-rail-toggle {
		position: sticky;
		z-index: 2;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		margin-inline-start: auto;
		margin-block-end: 2px;
		padding: 0;
		border: 1px solid transparent;
		border-radius: var(--fk-radius-sm);
		background: var(--FkWhite);
		color: var(--FkInk400);
		cursor: pointer;
	}

	.fk-docs .fk-doc-rail-toggle:hover,
	.fk-docs .fk-doc-rail-toggle:focus-visible {
		border-color: var(--FkLine);
		background: var(--FkSurface2);
		color: var(--FkBlue600);
	}

	/* --- closed ---------------------------------------------------- */

	.fk-doc-rail-closed .fk-docs .s-docshell {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.fk-doc-rail-closed .fk-docs .s-docside {
		overflow: visible;
		padding-inline-end: 0;
		border-inline-end: 0;
	}

	.fk-doc-rail-closed .fk-docs .fk-doc-nav-list {
		display: none;
	}

	.fk-doc-rail-closed .fk-docs .fk-doc-rail-toggle {
		margin-inline-start: 0;
		transform: scaleX(-1);
	}

	/* With the rail closed the article has the room; keep it centred so the
	 * text does not jump to the far left. */
	.fk-doc-rail-closed .fk-docs-single .s-docmain,
	.fk-doc-rail-closed .fk-docs-hub .s-docmain {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.fk-docs .fk-doc-rail-toggle {
		transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
	}
}

/* Collapsed, the rail keeps its hairline.
 *
 * The first version dropped the border and shrank the track to the button's
 * own width, so the article ran straight into the gutter with nothing marking
 * where the navigation had been. On docs.stripe.com the closed rail stays as a
 * narrow strip with its divider running the full height and the expand arrow at
 * the top — the column is still legible as a column. */
@media (min-width: 1100px) {
	.fk-doc-rail-closed .fk-docs .s-docshell {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.fk-doc-rail-closed .fk-docs .s-docside {
		padding-inline-end: clamp(16px, 1.6vw, 28px);
		border-inline-end: 1px solid var(--FkLine);
	}

	/* The arrow sits at the top of the strip, not jammed against the rule. */
	.fk-doc-rail-closed .fk-docs .fk-doc-rail-toggle {
		margin-inline: 0 auto;
	}
}

/* With only a 28px button inside it, the collapsed rail was 62px tall, so its
 * hairline was a short stub rather than the full-height divider the reference
 * shows. The rail is sticky under the bar, so a viewport-height minimum makes
 * the line span the screen and keep spanning it as the article scrolls. */
@media (min-width: 1100px) {
	.fk-doc-rail-closed .fk-docs .s-docside {
		min-height: calc(100vh - var(--fk-doc-bar));
		max-height: none;
		overflow: visible;
	}
}

/* The collapse control's focus state, matched to the reference.
 *
 * Measured on docs.stripe.com: on focus the arrow itself turns the brand colour
 * (#5469D4) with `outline-style: none`, no background and no border. Ours kept
 * the arrow grey and drew a 2px ring floating 2px off the button plus a white
 * 4px halo — a detached target rather than the control lighting up.
 *
 * The arrow now turns brand blue, and the halo and the offset are gone. The one
 * deliberate deviation from the reference: a tight ring is kept for keyboard
 * focus, because #5E6E84 -> #2457E6 is only a 1.26:1 change and colour alone
 * would not be a findable focus indicator. It hugs the button, so it reads as
 * the control lighting up rather than a box drawn around it. */
.fk-docs .fk-doc-rail-toggle:focus,
.fk-docs .fk-doc-rail-toggle:focus-visible {
	box-shadow: none;
	color: var(--FkBlue600);
}

.fk-docs .fk-doc-rail-toggle:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: 0;
}

.fk-docs .fk-doc-rail-toggle:focus:not(:focus-visible) {
	outline: none;
}

/* Hover already tints the arrow; keep the two states consistent. */
.fk-docs .fk-doc-rail-toggle:hover {
	color: var(--FkBlue600);
}

/* Keyboard focus leaves the background alone, as on the reference — the arrow
 * turning brand blue plus the ring is the whole indicator. The tint stays for
 * hover, where there is no ring to carry it. */
.fk-docs .fk-doc-rail-toggle:focus-visible {
	border-color: transparent;
	background: var(--FkWhite);
}

/* The collapse control is the arrow and nothing else.
 *
 * Hover and focus were drawing a bordered, tinted box around it, which on the
 * collapsed rail read as a card floating beside the divider. All state
 * decoration is removed: no border, no background, no ring, no shadow, in any
 * state. */
.fk-docs .fk-doc-rail-toggle,
.fk-docs .fk-doc-rail-toggle:hover,
.fk-docs .fk-doc-rail-toggle:focus,
.fk-docs .fk-doc-rail-toggle:focus-visible,
.fk-docs .fk-doc-rail-toggle:active {
	outline: none;
	border-color: transparent;
	background: none;
	box-shadow: none;
	color: var(--FkInk400);
}

/* -------------------------------------------------------------------------
 * The approved information architecture
 *
 * Two shapes the earlier tab row and sidebar had no need for: a tab that sits
 * at the right-hand end of the row rather than in the product run, and a
 * sidebar row that leaves the portal.
 * ---------------------------------------------------------------------- */

/* Help is a destination, not a product. `auto` rather than a fixed gap so the
 * row still reads correctly when a product tab is added or removed. The rule
 * is dropped at the width where the row becomes a swipe strip: there, pushing
 * Help away from the other tabs just hides it past the fold. */
@media (min-width: 901px) {
	.fk-docs .fk-doc-tabs ul > .fk-doc-tab.is-right {
		margin-inline-start: auto;
	}

	.fk-docs .fk-doc-tabs ul > .fk-doc-tab.is-right + .fk-doc-tab.is-right {
		margin-inline-start: 0;
	}
}

/* An external sidebar row: same type, same hit area, with the arrow carrying
 * the difference. The arrow is sized in `em` so it tracks the label, and it is
 * aria-hidden — the screen-reader text next to it says the same thing. */
.fk-docs .fk-doc-nav-item.is-external > a {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.fk-docs .fk-doc-nav-item.is-external .fk-doc-nav-ext {
	flex: 0 0 auto;
	font-size: 0.85em;
	line-height: 1;
	color: var(--FkInk400);
	transition: color 120ms ease;
}

.fk-docs .fk-doc-nav-item.is-external > a:hover .fk-doc-nav-ext,
.fk-docs .fk-doc-nav-item.is-external > a:focus-visible .fk-doc-nav-ext {
	color: var(--FkBlue600);
}

/* A rail row that names a group of links but is not itself a page. The
 * Changelog tab has four: "Checkout", "Order bumps" and the rest group several
 * release-note links each. It takes the row geometry of a nav item so the
 * indent lines up with the links under it, and the weight of a label so it does
 * not read as something you can click. */
.fk-docs .fk-doc-nav-item.is-label > span {
	display: block;
	/* Mirror the geometry of a nav link exactly — the rail pulls its links
	 * 12px left and drops their border, so a label that sets its own box
	 * lands 15px to the right of the rows it is meant to sit above. */
	margin-inline-start: -12px;
	padding: 6px 12px;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item.is-label.fk-doc-depth-1 > span {
	padding-inline-start: 26px;
}

.fk-docs .fk-doc-nav-item.is-label.fk-doc-depth-2 > span {
	padding-inline-start: 40px;
}


/* =====================================================================
 * The collapsible rail
 *
 * Three kinds of row, as the approved architecture draws them:
 *
 *   › Create your first funnel        5     a branch that unfolds here
 *     Canvas mode                           a page, nothing under it
 *     Checkout                      180 ›   a module: another sidebar
 *
 * The disclosure arrow sits in a fixed 22px gutter to the left of the label,
 * and a row without one pads the same gutter, so every label in a group starts
 * on the same vertical line. The count is how many pages the row stands for,
 * itself included.
 * ================================================================== */

.fk-docs .fk-doc-nav-row {
	display: flex;
	align-items: center;
	gap: 0;
	margin-inline-start: 0;
}

/* One gutter, applied the same way to every kind of row. The negative margin
 * the flat rail used is dropped here: the gutter replaces it, and keeping
 * both would pull the arrow outside the rail. */
.fk-docs .fk-doc-nav-item.fk-doc-depth-0 > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-1 > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-2 > a,
.fk-docs .fk-doc-nav-item.is-label > span {
	/* The depth rules that set this before are a class more specific than a
	 * plain `.fk-doc-nav-item > a`, so the gutter has to be stated at the same
	 * specificity or the arrow-less rows keep the old 12px and their labels
	 * sit 10px left of every branch row. */
	margin-inline-start: 0;
	padding-inline-start: 22px;
}

/* The link inside a branch row is the same piece of type as any other row —
 * it is not inside `.fk-doc-nav-item > a`, so it has to say so itself. */
.fk-docs .fk-doc-nav-row > a,
.fk-docs .fk-doc-nav-row > .fk-doc-nav-l {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border: 0;
	border-radius: var(--fk-radius-sm);
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--FkInk600);
	text-decoration: none;
	transition: color 140ms ease;
}

.fk-docs .fk-doc-nav-row > a:hover,
.fk-docs .fk-doc-nav-row > a:focus-visible {
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row > a {
	font-weight: 600;
	color: var(--FkBlue700);
}

/* The arrow's 22px gutter. */
.fk-docs .fk-doc-nav-x {
	flex: 0 0 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 22px;
	min-height: 30px;
	padding: 0;
	border: 0;
	border-radius: var(--fk-radius-sm);
	background: none;
	color: var(--FkInk400);
	cursor: pointer;
}

/* The arrow is drawn rather than typed: a glyph carries the font's own
 * metrics and will not sit square in a 22px box. content-box keeps the 7px
 * the true outside measure, so the stroke is not eaten by the border box. */
.fk-docs .fk-doc-nav-x::before {
	content: "";
	box-sizing: content-box;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 140ms ease;
}

.fk-docs .fk-doc-nav-item.is-open > .fk-doc-nav-row > .fk-doc-nav-x::before {
	transform: rotate(45deg);
}

.fk-docs .fk-doc-nav-x:hover {
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-x:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: -3px;
}

/* The count: what the row stands for, never competing with the label. */
.fk-docs .fk-doc-nav-n {
	flex: 0 0 auto;
	padding-inline-start: 8px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-nav-item.is-module > a {
	display: flex;
	align-items: center;
	gap: 0;
	justify-content: flex-start;
}

.fk-docs .fk-doc-nav-item.is-module .fk-doc-nav-l {
	flex: 1 1 auto;
	min-width: 0;
}

/* The way out of this sidebar and into another one. */
.fk-docs .fk-doc-nav-go {
	flex: 0 0 auto;
	position: relative;
	width: 14px;
	height: 14px;
	margin-inline-start: 8px;
	color: var(--FkInk400);
}

.fk-docs .fk-doc-nav-go::before {
	content: "";
	box-sizing: content-box;
	position: absolute;
	inset-block-start: 3px;
	inset-inline-start: 2px;
	width: 5px;
	height: 5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

.fk-docs .fk-doc-nav-item.is-module > a:hover .fk-doc-nav-go,
.fk-docs .fk-doc-nav-item.is-module > a:focus-visible .fk-doc-nav-go {
	color: var(--FkBlue600);
}

/* Nesting carries the indent now, so the old per-level step would double it. */
.fk-docs .fk-doc-nav-sub {
	margin: 0;
	padding: 0;
	padding-inline-start: 14px;
	list-style: none;
}

.fk-docs .fk-doc-nav-sub .fk-doc-nav-item > a,
.fk-docs .fk-doc-nav-sub .fk-doc-nav-item.is-label > span,
.fk-docs .fk-doc-nav-item.fk-doc-depth-1 > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-2 > a {
	padding-inline-start: 22px;
}

/* =====================================================================
 * The migrated video embeds
 *
 * The markup came across from the source site but its CSS did not, so the
 * play button — a `position: static` div holding an SVG — stacked underneath
 * the poster at the full width of the column instead of sitting over it.
 *
 * These are the source's own three rules, ported. The only change is the
 * width: the original forces 1024px for a full-bleed page, which here is
 * just the article column, so the container fills what it is given. The
 * aspect ratio is what gives it height once the poster is taken out of the
 * flow, and it also replaces the inline `width: 750px` that used to make
 * these overflow a phone.
 * ================================================================== */

.fk-docs .fk-yt-container,
.fk-docs iframe.fk-yt-iframe-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin-inline: auto;
	border-radius: 14px;
}

.fk-docs .fk-yt-video-image {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	border-radius: 14px;
}

.fk-docs .fk-yt-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

/* Once it is playing the iframe replaces everything inside the container, so
 * it fills the 16:9 box rather than carrying the source's pixel width. */
.fk-docs .fk-yt-container > iframe.fk-yt-iframe-wrap {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 14px;
}

.fk-docs .fk-yt-play-button:focus-visible {
	outline: 3px solid var(--FkBlue600);
	outline-offset: 4px;
	border-radius: 8px;
}

/* =====================================================================
 * Rail spacing and hover, measured against the reference
 *
 * Spacing: the group headings carried a 22px top margin, an 18px top padding
 * and a divider rule, which put 57px between an item and the next heading
 * where the reference has 42, and 49px between a heading and its first item
 * where the reference has 29. The divider goes — the reference separates
 * groups with space alone — and the rest is tightened to match.
 *
 * Hover: three rules had accumulated on the same link, the last of them
 * setting `background: none`, so a row answered the pointer with a colour
 * change and nothing else. On a branch row only the label reacted, leaving
 * the arrow and the count outside the response even though clicking them
 * does something. The whole row now lights up as one target.
 * ================================================================== */

.fk-docs .fk-doc-nav-sec > span {
	margin-block: 11px 5px;
	padding-block-start: 0;
	border-block-start: 0;
}

.fk-docs .fk-doc-nav-list > .fk-doc-nav-sec:first-of-type > span {
	margin-block-start: 6px;
}

.fk-docs .fk-doc-nav-item > a,
.fk-docs .fk-doc-nav-row > a,
.fk-docs .fk-doc-nav-item.is-label > span {
	padding-block: 5px;
}

.fk-docs .fk-doc-nav-x {
	min-height: 30px;
}

/* --- hover: the row, not the word ---------------------------------- */

.fk-docs .fk-doc-nav-row {
	border-radius: var(--fk-radius-sm);
}

/* Matches the specificity of the `background: none` rule it replaces. */
.fk-docs .fk-doc-nav-item:not(.is-current) > a:hover,
.fk-docs .fk-doc-nav-item:not(.is-current) > a:focus-visible {
	background: var(--FkSurface2);
	color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover,
.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:focus-within {
	background: var(--FkSurface2);
}

.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover > a,
.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover > .fk-doc-nav-x {
	color: var(--FkNavy700);
}

/* The row carries the tint, so the pieces inside it must not stack their
 * own on top — two translucent greys read as a seam down the row. */
.fk-docs .fk-doc-nav-row > a:hover,
.fk-docs .fk-doc-nav-row > a:focus-visible,
.fk-docs .fk-doc-nav-x:hover {
	background: none;
}

/* The count follows the label rather than staying flat grey, so the row
 * reads as one thing being pointed at. */
.fk-docs .fk-doc-nav-item:not(.is-current) > a:hover .fk-doc-nav-n,
.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover .fk-doc-nav-n {
	color: var(--FkInk600);
}

/* The page being read is a filled pill, as the reference draws it. A later
 * rule had flattened it to coloured text alone (`background: none`), which
 * left the reader's own position the quietest thing in the rail. No left bar:
 * the fill is the marker. */
.fk-docs .fk-doc-nav-item.is-current > a,
.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row {
	background: var(--FkBlue50);
	box-shadow: none;
	border-radius: var(--fk-radius-sm);
}

.fk-docs .fk-doc-nav-item.is-current > a,
.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row > a {
	color: var(--FkBlue700);
	font-weight: 600;
}

.fk-docs .fk-doc-nav-item.is-current > a .fk-doc-nav-n,
.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row .fk-doc-nav-n,
.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row > .fk-doc-nav-x {
	color: var(--FkBlue600);
}

/* =====================================================================
 * Two rail details
 * ================================================================== */

/* 1. The disclosure arrow must never be painted by a theme button rule.
 *
 * The kit's accent is a dark green (#047857) and a blanket `button` style
 * reaching this element turns the arrow into a filled green pill with a white
 * chevron. The rail's collapse button already carries a block like this for
 * the same reason; the arrow gets one too. Every paint property is named in
 * every state, because a partial override loses to a blanket rule that sets
 * the rest. */
.fk-docs .fk-doc-nav-x,
.fk-docs .fk-doc-nav-x:hover,
.fk-docs .fk-doc-nav-x:focus,
.fk-docs .fk-doc-nav-x:focus-visible,
.fk-docs .fk-doc-nav-x:active,
.fk-docs .fk-doc-nav-x[aria-expanded="true"] {
	border: 0;
	background: none;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	filter: none;
}

.fk-docs .fk-doc-nav-x,
.fk-docs .fk-doc-nav-x:active,
.fk-docs .fk-doc-nav-x[aria-expanded="true"] {
	color: var(--FkInk400);
}

.fk-docs .fk-doc-nav-x:hover,
.fk-docs .fk-doc-nav-x:focus-visible {
	color: var(--FkNavy700);
}

/* The keyboard ring is the only thing that marks it, and it is drawn as an
 * outline so it cannot be mistaken for a filled button. */
.fk-docs .fk-doc-nav-x:focus-visible {
	outline: 2px solid var(--FkBlue600);
	outline-offset: -3px;
}

.fk-docs .fk-doc-nav-x:focus:not(:focus-visible) {
	outline: none;
}

/* 2. The collapse control belongs on the sidebar's edge, not inside its text.
 *
 * It sat at the right edge of the list, 34px short of the divider, reading as
 * part of the navigation. Pulling it into the column's end padding puts it on
 * the boundary it acts on. The sidebar clips at its padding box, not its
 * content box, so the button can sit in that gutter without being cut off,
 * and it stays `sticky` so it holds position while the rail scrolls. */
@media (min-width: 1100px) {
	/* The gutter to cross is the column's end padding plus the scrolling
	 * rail's scrollbar. The padding is a viewport clamp, so a fixed offset
	 * drifted — 5px past the divider at 1100 and 5px short at 2000; the same
	 * clamp is repeated here so the button tracks it exactly. `stable` keeps
	 * the scrollbar's 12px reserved whether or not the rail is scrolling, so
	 * the second term is a constant rather than a guess. */
	.fk-docs .s-docside {
		scrollbar-gutter: stable;
		overflow-x: clip;
	}

	.fk-docs .fk-doc-rail-toggle {
		/* The column's end padding only. Adding the scrollbar's width on top
		 * pushed the button past the scrollport and gave the rail its own
		 * horizontal scrollbar; this lands it on the inner edge of the
		 * scrollbar gutter, which `stable` above keeps at a constant width. */
		margin-inline-end: calc(-1 * clamp(16px, 1.6vw, 16px));
	}
}

/* =====================================================================
 * Gutters, set flat
 *
 * The page and rail gutters were viewport clamps that grew to 28px and 24px
 * on a wide screen; they are held at 16px instead. The collapse button's
 * offset above repeats the rail value, so the two stay in step.
 * ================================================================== */

.fk-docs-single .s-docwrap {
	padding-inline: clamp(16px, 2.5vw, 16px);
}

@media (min-width: 1100px) {
	.fk-docs .s-docside {
		padding-inline: 0 clamp(16px, 1.6vw, 16px);
	}
}

/* With the rail gutter down to 16px the count sat hard against the divider,
 * and the hover pill ran out from under it. The row keeps a little end
 * padding so the number has somewhere to sit. */
.fk-docs .fk-doc-nav-item > a,
.fk-docs .fk-doc-nav-row,
.fk-docs .fk-doc-nav-item.is-label > span {
	padding-inline-end: 10px;
}

.fk-docs .fk-doc-nav-row > a {
	padding-inline-end: 0;
}

/* =====================================================================
 * The search control is one object, so it takes one focus ring
 *
 * The scope select and the query field are two controls drawn as a single
 * pill. On focus each was given a blue border *and* a 1px inset shadow, so
 * whichever half had focus rendered a stroke twice as heavy as its neighbour
 * and the pill looked broken in half. The inset shadow goes; both halves keep
 * the 1px blue border they already share through :focus-within, and the ring
 * is drawn once, around the whole control.
 * ================================================================== */

.fk-docs .fk-doc-find-q:focus,
.fk-docs .fk-doc-find-q:focus-visible,
.fk-docs .fk-doc-find-scope:focus,
.fk-docs .fk-doc-find-scope:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--FkBlue600);
}

.fk-docs .fk-doc-find {
	border-radius: 8px;
}

.fk-docs .fk-doc-find:focus-within {
	box-shadow: 0 0 0 3px var(--FkBlueTint, rgba(36, 87, 230, 0.18));
}

/* The search page's own field is a single control: it keeps a ring of its
 * own rather than inheriting the split-pill treatment. */
.fk-docs .fk-doc-searchpage-form input:focus,
.fk-docs .fk-doc-searchpage-form input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--FkBlueTint, rgba(36, 87, 230, 0.18));
	border-color: var(--FkBlue600);
}

/* The hover tint is a pill, the same shape on every row.
 *
 * An earlier flat-rail pass set `border-radius: 0` on the row links, so a
 * leaf highlighted as a hard-edged block while a branch row — which got its
 * radius later — highlighted as a rounded one. Same shape for all of them,
 * and the same one the current page already uses. */
.fk-docs .fk-doc-nav-item > a,
.fk-docs .fk-doc-nav-item.is-label > span,
.fk-docs .fk-doc-nav-row {
	border-radius: var(--fk-radius-sm);
}

/* =====================================================================
 * The rail on touch
 *
 * The drawer already draws the same tree as the desktop rail. What it cannot
 * borrow is the hover: on a touch screen `:hover` latches after a tap, so a
 * row the reader has left stays highlighted. Where there is no pointer the
 * tint is driven by `:active` instead, which is the press itself and lets go
 * on its own — the same rounded pill, just tied to the right event.
 *
 * The arrow also needs a target a thumb can hit. Its 22px box is the gutter
 * the labels align to and must not grow, so the hit area is extended past it
 * with a transparent overlay: the layout is untouched and the tappable region
 * becomes 44px, the usual minimum.
 * ================================================================== */

@media (hover: none) {
	.fk-docs .fk-doc-nav-item:not(.is-current) > a:hover,
	.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover {
		background: none;
	}

	.fk-docs .fk-doc-nav-item:not(.is-current) > a:hover {
		color: var(--FkInk600);
	}

	.fk-docs .fk-doc-nav-item:not(.is-current) > a:active,
	.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:active {
		background: var(--FkSurface2);
		border-radius: var(--fk-radius-sm);
	}

	.fk-docs .fk-doc-nav-item:not(.is-current) > a:active,
	.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:active > a {
		color: var(--FkNavy700);
	}
}

@media (max-width: 1099px) {
	/* A row tall enough to tap without aiming. */
	.fk-docs .fk-doc-nav-item > a,
	.fk-docs .fk-doc-nav-row > a {
		padding-block: 8px;
	}

	.fk-docs .fk-doc-nav-x {
		position: relative;
		min-height: 36px;
	}

	/* The hit area, not the box: the arrow keeps its 22px gutter so the
	 * labels stay on the line they share with every other row. */
	.fk-docs .fk-doc-nav-x::after {
		content: "";
		position: absolute;
		inset-block: -4px;
		inset-inline: -11px;
	}

	/* The drawer's own control matches the rows it opens. */
	.fk-docs .fk-doc-nav-toggle {
		border-radius: var(--fk-radius-sm);
	}

	.fk-docs .fk-doc-nav-toggle:active {
		background: var(--FkSurface2);
	}
}

/* =====================================================================
 * The collapse control sits past the rail's edge
 *
 * It could not before: the column scrolls, and a scroll container clips at
 * its padding box, so anything inside it is trapped within the divider. The
 * scrolling moves down onto the list itself — which is all that ever needed
 * to scroll — leaving the column free to let the button overhang its border.
 *
 * Taking the button out of the flow also returns the row of empty space it
 * was holding at the top of the rail, so the context name and the links move
 * up into it.
 * ================================================================== */

@media (min-width: 1100px) {
	.fk-docs .s-docside {
		max-height: none;
		overflow: visible;
	}

	.fk-docs .fk-doc-nav {
		position: relative;
	}

	.fk-docs .fk-doc-nav-list {
		max-height: calc(100vh - var(--fk-doc-bar, 110px) - 48px);
		overflow-y: auto;
		overflow-x: clip;
		scrollbar-width: thin;
		scrollbar-gutter: stable;
	}

	.fk-docs .fk-doc-rail-toggle {
		position: absolute;
		z-index: 3;
		inset-block-start: 0;
		/* Clear of the divider, not sitting on it: the column's end padding,
		 * the scrollbar gutter, then the button's own width. */
		inset-inline-end: -44px;
		margin: 0;
	}

	/* Closed, the rail is a 28px strip and the button is the whole of it, so
	 * it goes back into the flow and centres. */
	.fk-doc-rail-closed .fk-docs .fk-doc-rail-toggle {
		position: static;
		margin-inline: 0 auto;
	}
}

/* =====================================================================
 * The column divider runs the height of the page
 *
 * It was a border on the sidebar, and the shell lays its columns out with
 * `align-items: start`, so the sidebar is only as tall as its own links —
 * on a short rail against a long article the line stopped a third of the way
 * down and the two columns stopped reading as columns.
 *
 * The line moves onto the shell, which does span the full height, drawn at
 * the grid's own column boundary. The expression is the same clamp the grid
 * uses, so the two cannot drift apart.
 * ================================================================== */

@media (min-width: 1100px) {
	.fk-docs .s-docside,
	.fk-doc-rail-closed .fk-docs .s-docside {
		border-inline-end: 0;
	}

	.fk-docs .s-docshell {
		position: relative;
	}

	.fk-docs .s-docshell::after {
		content: "";
		position: absolute;
		inset-block: 0;
		inset-inline-start: clamp(240px, 19vw, 300px);
		width: 1px;
		background: var(--FkLine);
		pointer-events: none;
	}

	.fk-doc-rail-closed .fk-docs .s-docshell::after {
		inset-inline-start: 56px;
	}

	/* The rail carried a faint drop shadow from when it was drawn as a card.
	 * Against a full-height divider it reads as a stray rule across the
	 * column, closing off a list that has not ended. */
	.fk-docs .fk-doc-nav {
		box-shadow: none;
	}
}

/* =====================================================================
 * The search control does not change on focus
 *
 * Requested: no ring, no border colour change, nothing. Several rules had
 * accumulated across the two halves and the wrapper — an outline, an inset
 * stroke, a :focus-within halo and a blue border — so each state is named
 * here and held at exactly what it looks like at rest.
 *
 * This removes the only visible indicator of keyboard focus on the control
 * (WCAG 2.4.7). Reinstating it is one rule on `.fk-doc-find:focus-within`.
 * ================================================================== */

.fk-docs .fk-doc-find:focus-within,
.fk-docs .fk-doc-find:hover {
	box-shadow: none;
	outline: none;
}

.fk-docs .fk-doc-find-q,
.fk-docs .fk-doc-find-q:hover,
.fk-docs .fk-doc-find-q:focus,
.fk-docs .fk-doc-find-q:focus-visible,
.fk-docs .fk-doc-find-q:active,
.fk-docs .fk-doc-find-scope,
.fk-docs .fk-doc-find-scope:hover,
.fk-docs .fk-doc-find-scope:focus,
.fk-docs .fk-doc-find-scope:focus-visible,
.fk-docs .fk-doc-find-scope:active,
.fk-docs .fk-doc-find:focus-within .fk-doc-find-q,
.fk-docs .fk-doc-find:focus-within .fk-doc-find-scope {
	outline: none;
	box-shadow: none;
	border-color: var(--FkBlueTint);
	/* The corners are pinned too. A theme rule rounds a focused input to a
	 * uniform 6px, which here rounded the field's inner corners and split the
	 * two halves apart — and `transition` animated it, so the pill visibly
	 * came apart on click. Each half keeps the shape that makes them one. */
	transition: none;
}

.fk-docs .fk-doc-find-scope,
.fk-docs .fk-doc-find-scope:hover,
.fk-docs .fk-doc-find-scope:focus,
.fk-docs .fk-doc-find-scope:focus-visible,
.fk-docs .fk-doc-find-scope:active,
.fk-docs .fk-doc-find:focus-within .fk-doc-find-scope {
	border-radius: var(--fk-radius-sm) 0 0 var(--fk-radius-sm);
}

.fk-docs .fk-doc-find-q,
.fk-docs .fk-doc-find-q:hover,
.fk-docs .fk-doc-find-q:focus,
.fk-docs .fk-doc-find-q:focus-visible,
.fk-docs .fk-doc-find-q:active,
.fk-docs .fk-doc-find:focus-within .fk-doc-find-q {
	border-radius: 0 var(--fk-radius-sm) var(--fk-radius-sm) 0;
}

.fk-docs .fk-doc-searchpage-form input,
.fk-docs .fk-doc-searchpage-form input:hover,
.fk-docs .fk-doc-searchpage-form input:focus,
.fk-docs .fk-doc-searchpage-form input:focus-visible,
.fk-docs .fk-doc-searchpage-form input:active {
	outline: none;
	box-shadow: none;
	border-color: var(--FkBlueTint);
	border-radius: var(--fk-radius-sm);
	transition: none;
}

/* =====================================================================
 * The branches open and close on a curve
 *
 * The panel's height is set from JavaScript, which measures it; this is the
 * easing and the clipping that make the change readable. `overflow: hidden`
 * is what stops the rows spilling out of a part-open panel, and the easing is
 * the one Stripe's rail uses — quick to start, settling at the end, so a long
 * branch does not feel slower than a short one.
 *
 * The rows fade slightly behind the height so the list appears to arrive
 * rather than be revealed by a wipe.
 * ================================================================== */

.fk-docs .fk-doc-nav-sub {
	overflow: hidden;
	transition: height 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.fk-docs .fk-doc-nav-sub > .fk-doc-nav-item {
	opacity: 1;
	transition: opacity 160ms ease 60ms;
}

.fk-docs .fk-doc-nav-item.has-kids:not(.is-open) > .fk-doc-nav-sub > .fk-doc-nav-item {
	opacity: 0;
	transition-delay: 0ms;
}

/* The arrow turns with the panel rather than ahead of it. */
.fk-docs .fk-doc-nav-x::before {
	transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
	.fk-docs .fk-doc-nav-sub,
	.fk-docs .fk-doc-nav-sub > .fk-doc-nav-item,
	.fk-docs .fk-doc-nav-x::before {
		transition: none;
	}
}

/* =====================================================================
 * The disclosure arrow paints itself
 *
 * It was drawn from `currentColor`, so anything that reached the button's
 * `color` — a theme rule for a focused or pressed button, say — repainted the
 * arrow with it, and a light value made it vanish against the row. The two
 * borders that draw it now name their own colour in every state, so the
 * arrow no longer depends on what `color` happens to be.
 * ================================================================== */

.fk-docs .fk-doc-nav-x::before,
.fk-docs .fk-doc-nav-x:focus::before,
.fk-docs .fk-doc-nav-x:focus-visible::before,
.fk-docs .fk-doc-nav-x:active::before,
.fk-docs .fk-doc-nav-x[aria-expanded="true"]::before {
	border-right-color: var(--FkInk400);
	border-bottom-color: var(--FkInk400);
}

/* `[aria-expanded]` is carried by every one of these buttons, so naming it
 * here matches the specificity of the resting rule above — without it the two
 * tie and an open branch keeps the resting colour while pointed at. */
.fk-docs .fk-doc-nav-x[aria-expanded]:hover::before,
.fk-docs .fk-doc-nav-item.has-kids:not(.is-current) > .fk-doc-nav-row:hover > .fk-doc-nav-x[aria-expanded]::before {
	border-right-color: var(--FkNavy700);
	border-bottom-color: var(--FkNavy700);
}

.fk-docs .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row > .fk-doc-nav-x::before {
	border-right-color: var(--FkBlue600);
	border-bottom-color: var(--FkBlue600);
}

/* The module row's outward arrow is drawn the same way. */
.fk-docs .fk-doc-nav-go::before {
	border-right-color: var(--FkInk400);
	border-bottom-color: var(--FkInk400);
}

.fk-docs .fk-doc-nav-item.is-module > a:hover .fk-doc-nav-go::before,
.fk-docs .fk-doc-nav-item.is-module > a:focus-visible .fk-doc-nav-go::before {
	border-right-color: var(--FkBlue600);
	border-bottom-color: var(--FkBlue600);
}

/* =====================================================================
 * Collapsing the rail is a movement, not a jump
 *
 * Three things changed in a single frame: the grid column went from ~274px
 * to 56px, the list switched to `display: none`, and the divider jumped to
 * its new position. Nothing interpolated, so the article snapped sideways
 * and the links vanished mid-stride.
 *
 * The column is animated — the two track lists have the same shape, so they
 * interpolate — and the divider follows on the same curve. `display` cannot
 * be animated at all, so the list fades on `opacity` and leaves the document
 * through `visibility`, which is delayed to the end of the fade rather than
 * applied at the start. Clipping the column keeps the full-width list from
 * spilling out while it shrinks.
 * ================================================================== */

@media (min-width: 1100px) {
	.fk-docs .s-docshell {
		transition: grid-template-columns 260ms cubic-bezier(0.32, 0.72, 0, 1);
	}

	.fk-docs .s-docshell::after {
		transition: inset-inline-start 260ms cubic-bezier(0.32, 0.72, 0, 1);
	}

	/* The clipping belongs to the list, not the column. Put it on the column
	 * and it also cuts off the collapse button, which is deliberately placed
	 * outside the divider — the list shrinks with the column and clips its own
	 * rows, which is all the shrink needed. */
	.fk-docs .fk-doc-nav-list {
		overflow-x: clip;
		opacity: 1;
		visibility: visible;
		transition: opacity 160ms ease 60ms, visibility 0s;
	}

	/* `display: none` would end the fade before it started. */
	.fk-doc-rail-closed .fk-docs .fk-doc-nav-list {
		display: block;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 140ms ease, visibility 0s linear 140ms;
	}

	.fk-docs .fk-doc-rail-toggle {
		transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1),
			color 140ms ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fk-docs .s-docshell,
	.fk-docs .s-docshell::after,
	.fk-docs .fk-doc-nav-list,
	.fk-docs .fk-doc-rail-toggle {
		transition: none;
	}
}

/* An external row's label must yield to its arrow.
 *
 * A flex item defaults to `min-width: auto`, so the label refused to shrink
 * below its text and pushed the ↗ past the rail's clip — the arrows on the
 * Changelog tab were shaved off at the edge. The label takes the leftover
 * space and wraps; the arrow is never the thing that gives way. */
.fk-docs .fk-doc-nav-item.is-external > a {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.fk-docs .fk-doc-nav-item.is-external .fk-doc-nav-l {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.fk-docs .fk-doc-nav-ext {
	flex: 0 0 auto;
}

/* The rows end where the rail ends.
 *
 * Every nav link still carried `margin-inline-end: -12px`, the other half of
 * a pull-out from the old flat rail whose start margin was already zeroed.
 * It made each row 12px wider than the column, which text rows never showed
 * — but an external row puts its ↗ hard against the right edge, so the arrow
 * was the part that fell outside the clip and got shaved off. */
.fk-docs .fk-doc-nav-item > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-0 > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-1 > a,
.fk-docs .fk-doc-nav-item.fk-doc-depth-2 > a,
.fk-docs .fk-doc-nav-item.is-label > span,
.fk-docs .fk-doc-nav-row {
	margin-inline-end: 0;
}


/* ---------------------------------------------------------------------------
   Links in doc prose need more than colour.

   Inline links in the body were distinguished from the text around them by
   hue alone, which axe reports as link-in-text-block: it fails for readers
   with colour vision deficiency and disappears entirely in greyscale. An
   underline is the distinction that survives both. Scoped to bare anchors so
   buttons and cards that happen to sit in prose keep their own treatment.
   --------------------------------------------------------------------------- */
/* `.fk-docs .s-docmain .elementor-widget-theme-post-content a` sets
   text-decoration: none at (0,3,1); these need to outrank it, so the
   body class joins the selector to reach (0,3,2). */
/* Scoped to the ARTICLE BODY, not the shell (2026-10-10). `.fk-doc-shell`
   wraps the whole docs page, so this also underlined every item in the left
   nav (they are `li > a` with no class) and every link in the documentation
   home's category columns — chrome the reference underlines nowhere. The
   reference does underline links inside doc prose, which is what this is for. */
.fk-docs .s-docmain p > a:not([class]),
.fk-docs .s-docmain li > a:not([class]),
.fk-docs .s-docmain td > a:not([class]),
.fk-docs .fk-doc-body p > a:not([class]),
.fk-docs .fk-doc-body li > a:not([class]),
.fk-docs .fk-doc-body td > a:not([class]) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* ...and the navigation that happens to sit inside `.s-docmain` is not prose:
   the on-this-page TOC, the related list and the prev/next pair are chrome,
   which the reference underlines nowhere. Matched to the rule above at
   (0,3,2) and placed after it, so source order decides. */
.fk-docs .s-docmain .fk-doc-toc li > a,
.fk-docs .s-docmain .fk-doc-related li > a,
.fk-docs .s-docmain .fk-doc-related p > a,
.fk-docs .s-docmain .fk-doc-prevnext p > a,
.fk-docs .s-docmain .fk-doc-toc a:not([class]),
.fk-docs .s-docmain .fk-doc-related a:not([class]),
.fk-docs .s-docmain .fk-doc-prevnext a:not([class]),
.fk-docs .s-docmain .fk-doc-list li > a,
.fk-docs .s-docmain .fk-doc-list a:not([class]) {
	text-decoration: none;
}

/* =====================================================================
 * The group separator, re-measured against the reference
 *
 * An earlier pass concluded docs.stripe.com "separates groups with space
 * alone" and dropped the rule. It does not: between two groups the reference
 * renders a 1px #d4dee9 strip with 8px of air either side, and the heading
 * sits 12px below that. Measured on docs.stripe.com/get-started, 2026-10-12.
 *
 * The rule belongs between groups, never above the first one — on the
 * reference the top of the rail runs straight into its first links. The
 * adjacent-sibling selector says exactly that: a heading only takes a rule
 * when a row precedes it, which is true of every group but the first and
 * stays true when a context has no ungrouped rows above its first heading.
 * ================================================================== */

.fk-docs .fk-doc-nav-item + .fk-doc-nav-sec > span {
	margin-block-start: 11px;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--FkLine);
}

/* =====================================================================
 * Re-measured against docs.stripe.com, 2026-10-12
 *
 * Reference readings taken at 1440px on docs.stripe.com/payments/accept-a-payment
 * and /get-started. Everything below is one of those numbers; nothing here is
 * a preference.
 *
 *   rail .............. 280px, article begins 48px past its divider
 *   article ........... fills the rest of the row; no centring, no cap
 *   contents .......... 202px column, 48px gap, flush with the right edge
 *   h1 ................ 32px / 40px, 700          (was 44px / 800)
 *   h2 ................ 24px / 32px, 400          (was 28px / 700)
 *   h3 ................ 16px / 24px, 600          (was 21px / 700)
 *   body .............. 16px / 26px               (was 17px / 29.75px)
 *   prose link ........ 500                       (was 600)
 *   rail item ......... 14px / 20px, current = bold ink, no pill
 *   rail heading ...... 14px / 20px, 600, no tracking   (was 12px / 700 / .07em)
 *   contents item ..... 14px / 20px, 12px apart, no left rule
 * ================================================================== */

/* --- 1. The article sits against the rail ---------------------------
 * It was `justify-content: center` over a `minmax(0, 64ch)` track, which at
 * 1440 left 74px of void on each side of the text and floated the column in
 * the middle of the row. The reference starts its article 48px past the rail
 * divider and lets it run to the contents column; with no contents list the
 * article takes the whole row. Same specificity as the rules above, later in
 * the file, so source order decides. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		justify-content: stretch;
		gap: 20px 48px;
		grid-template-columns: minmax(0, 1fr) 202px;
	}

	/* No contents list means no reserved track — the article takes the row
	 * rather than being held off one edge by a column that is not there. */
	.fk-docs-single .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)),
	.fk-docs-hub .s-docmain:not(:has(> .elementor-widget-fk-doc-toc)) {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- 2. Heading and body scale --------------------------------------
 * The title came from the template's own local style at (0,4,0); this matches
 * that weight and wins on source order. The display face stays ours. */
.fk-docs-single .elementor-element.elementor-element-doctitle .elementor-heading-title,
.fk-docs-hub .elementor-element.elementor-element-doctitle .elementor-heading-title {
	font-size: clamp(28px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.fk-docs .s-docmain .elementor-widget-theme-post-content,
.fk-docs .fk-doc-body {
	font-size: 16px;
	line-height: 1.625;
	letter-spacing: normal;
}

.fk-docs .s-docmain h2,
.fk-docs .fk-doc-body h2 {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.334;
	letter-spacing: normal;
	margin-block-start: 40px;
}

.fk-docs .s-docmain h3,
.fk-docs .fk-doc-body h3 {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	margin-block-start: 28px;
}

/* The underline stays: the reference leaves prose links undecorated, which is
 * the axe link-in-text-block failure an earlier pass fixed on purpose. Only
 * the weight is brought back to the reference's 500 — 600 read as emphasis. */
.fk-docs .s-docmain .elementor-widget-theme-post-content p > a,
.fk-docs .s-docmain .elementor-widget-theme-post-content li > a,
.fk-docs .fk-doc-body p > a,
.fk-docs .fk-doc-body li > a {
	font-weight: 500;
}

/* --- 3. The rail's current row is bold ink, not a chip ---------------
 * The reference marks the open page with weight and colour alone: no tinted
 * pill, no leading bar. Ours had both, which read as a selected control in a
 * list of links. */
.fk-docs .fk-doc-nav .fk-doc-nav-item.is-current > a,
.fk-docs .fk-doc-nav .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row {
	background: none;
	box-shadow: none;
	border-inline-start-color: transparent;
}

.fk-docs .fk-doc-nav .fk-doc-nav-item.is-current > a,
.fk-docs .fk-doc-nav .fk-doc-nav-item.has-kids.is-current > .fk-doc-nav-row > a {
	color: var(--FkBlue600);
	font-weight: 700;
}

/* Group headings are the same size as the rows they label; uppercase and
 * weight carry the distinction, as on the reference. Margins are left to the
 * separator rule below, which is more specific and still decides them. */
.fk-docs .fk-doc-nav-sec > span {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: normal;
}

/* --- 4. The contents list is a list, not a progress rail -------------
 * It carried a 2px leading rule that turned solid blue on the current
 * heading. The reference indents a sub-heading and colours the current row;
 * there is no rule. */
.fk-docs .fk-doc-toc-h {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: normal;
	color: var(--FkInk900);
	margin-block-end: 12px;
}

.fk-docs .fk-doc-toc a {
	border-inline-start: 0;
	margin-inline-start: 0;
	padding-inline-start: 0;
	padding-block: 0;
	font-size: 14px;
	line-height: 1.43;
}

.fk-docs .fk-doc-toc a.is-current {
	border-inline-start-color: transparent;
	color: var(--FkBlue600);
	font-weight: 500;
}

.fk-docs .fk-doc-toc li {
	margin-block-start: 12px;
}

.fk-docs .fk-doc-toc li:first-child {
	margin-block-start: 0;
}

.fk-docs .fk-doc-toc-l3 {
	padding-inline-start: 18px;
}

/* The contents column carried a 1px leading rule and its own inset padding,
 * which drew a second divider down the page and narrowed the list to 181px.
 * On the reference the column is gap and nothing else: 48px of air, then a
 * 202px list. The gap is now the grid's, so the padding and the rule go. */
@media (min-width: 1100px) {
	.fk-docs-single .s-docmain > .elementor-widget-fk-doc-toc,
	.fk-docs-hub .s-docmain > .elementor-widget-fk-doc-toc {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

/* Below the two-column breakpoint the article kept a 64ch cap while the rail
 * was gone, so at 880–1099px the text held the left edge and left up to 220px
 * of empty page on the right. The reference fills the width once its rail
 * collapses; the page gutters are the only margin. */
@media (max-width: 1099px) {
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		max-width: none;
	}
}

/* =====================================================================
 * The archive and category views share the article's edges and scale
 *
 * They are the same portal seen through a different template, and they were
 * drifting from it: a 36px page gutter against the article view's 16px, which
 * put their rail text 22px to the right of the masthead it should line up
 * with, and a 40px title against the article's 32px. Both numbers now come
 * from the article view, which is the one measured against the reference.
 * ================================================================== */

.fk-docs-archive .s-docwrap,
.fk-docs-category .s-docwrap,
.fk-docs-search .s-docwrap {
	padding-inline: 16px;
}

.fk-docs .fk-doc-archh {
	font-size: clamp(28px, 2.4vw, 32px);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.fk-docs .fk-doc-archd {
	font-size: 16px;
	line-height: 1.625;
}

/* The results page title is the one remaining h1 on its own scale — 800 at a
 * 1.12 leading against the article's 700 at 1.25. Same type, same page. */
.fk-docs .fk-doc-searchpage-h {
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* =====================================================================
 * The article block is capped and centred, as on the reference
 *
 * Measured on docs.stripe.com/get-started at 1280 / 1440 / 1600 / 1800 /
 * 2000px, 2026-10-12: the content container is `max-width: 1175px` with 48px
 * of horizontal padding — a 1079px inner block — centred in whatever the rail
 * leaves. Below the cap it simply fills, which is what the rules above
 * already do; this only decides what happens once there is more room than
 * the measure wants.
 *
 *   1600 → reference article x=393 (rail 280);  here x≈396 (rail 288)
 *   2000 → reference article x=593;             here x≈632 (rail 300)
 *
 * The cap is on `.s-docmain`, which is the article plus the 48px gap plus the
 * 202px contents column — the same thing the reference is capping. Centring
 * is `margin-inline: auto` inside the shell's second track, so the rail keeps
 * its own edge and only the reading block moves.
 * ================================================================== */

@media (min-width: 1100px) {
	.fk-docs-single .s-docmain,
	.fk-docs-hub .s-docmain {
		max-width: 1079px;
		margin-inline: auto;
	}
}

/* The archive and category views take the same cap. They were left-aligned
 * against the rail under a 929px Elementor max-width, so at 1920 a doc page's
 * content began at x=591 and a category page's at x=372 — one portal, two
 * left edges. The reference uses a single container width for every view. */
@media (min-width: 1100px) {
	.fk-docs-archive .s-docmain,
	.fk-docs-category .s-docmain {
		max-width: 1079px;
		margin-inline: auto;
	}
}

/* =====================================================================
 * The phone search box could not reach its own row
 *
 * Two rules disagreed below 560px. The masthead row is held to one line
 * there — `.fk-doc-mast-in { flex-wrap: nowrap }` — so the brand, the search
 * icon and the Get FunnelKit button stay together. But the search form it
 * reveals is `flex: 1 0 100%`, which only means "a row of my own" when the
 * line is allowed to wrap. With nowrap it was laid out beside the brand at
 * its full 335px, so opening the search made the bar 686px wide inside a
 * 375px viewport. Focusing the field then scrolled the window 311px sideways
 * and the article went off-screen — the page read as blank.
 *
 * Letting the row wrap is not the fix: the icon carries an `auto` inline
 * start margin to push itself and the button to the right end, and on a
 * wrapping line an auto margin absorbs all the free space, so the button is
 * dropped to a line of its own and the bar becomes three rows tall.
 *
 * So the row keeps its single line and the field is taken out of the flow
 * into a band reserved for it underneath. Nothing above it re-flows, and the
 * sticky offset follows: a ResizeObserver in fk-docs-toc.js republishes
 * --fk-doc-bar whenever the chrome changes height.
 * ================================================================== */

@media (max-width: 560px) {
	.fk-docs .fk-doc-mast-in:has(> .fk-doc-find.is-open) {
		position: relative;
		padding-block-end: 58px;
	}

	.fk-docs .fk-doc-mast .fk-doc-find.is-open {
		position: absolute;
		inset-inline: 16px;
		bottom: 10px;
		width: auto;
		max-width: none;
		flex: none;
		min-width: 0;
	}
}

/* =====================================================================
 * The bar fits a 320px phone
 *
 * Pre-existing, and visible with the search shut: the masthead row is
 * `nowrap` and every child is `flex: 0 0 auto`, so at 320px the brand (165),
 * the search icon and the Get FunnelKit button add up to 313 inside a 265px
 * content box and the button hangs 38px off the page. Nothing could give.
 *
 * Narrowed to phones below 360px so 375 and 390 keep the spacing they were
 * measured at. The brand is allowed to shrink — it is a logo and a word, both
 * of which scale — and the gutters and button come in a little. Nothing is
 * hidden: the CTA stays on the bar.
 * ================================================================== */

@media (max-width: 360px) {
	.fk-docs .fk-doc-mast-in {
		padding-inline: 12px;
		gap: 6px;
	}

	.fk-docs .fk-doc-mast-in > .fk-doc-brand {
		flex: 0 1 auto;
		min-width: 0;
	}

	.fk-docs .fk-doc-brand svg,
	.fk-docs .fk-doc-brand img {
		max-width: 100%;
		height: auto;
	}

	.fk-docs .fk-doc-mast-act .fk-doc-btn,
	.fk-docs .fk-doc-mast-act a {
		padding-inline: 12px;
		font-size: 13px;
	}

	/* The open field follows the narrower gutter. */
	.fk-docs .fk-doc-mast .fk-doc-find.is-open {
		inset-inline: 12px;
	}
}

/* =====================================================================
 * The search toggle stays itself when tapped
 *
 * It is a bare <button>, so two ancestor rules claim it:
 *   reset.css          button:hover, button:focus          → crimson fill
 *   post-8.css   .elementor-kit-8 button:hover/:focus      → #065F46 fill
 *
 * The rule above only restated `color` at (0,2,1), which is enough to beat
 * the theme's ink but leaves its background standing. On a touch screen
 * `:hover` latches after a tap, so opening the search left the icon sitting
 * in a dark green chip until the reader tapped somewhere else.
 *
 * This is a touch-only control — it is `display: none` on a mouse — so every
 * interactive state paints exactly like rest. `:focus-visible` is listed too,
 * which neutralises the fill without touching the outline the focus-ring
 * section draws, so a keyboard user still sees where they are.
 *
 * (0,3,0) against the theme's (0,2,1), so this does not depend on load order.
 * ================================================================== */

.fk-docs .fk-doc-find-open:hover,
.fk-docs .fk-doc-find-open:focus,
.fk-docs .fk-doc-find-open:focus-visible,
.fk-docs .fk-doc-find-open:active,
.fk-docs .fk-doc-find-open[aria-expanded="true"] {
	background: var(--FkWhite);
	border-color: var(--FkBlueTint);
	color: var(--FkInk600);
}

/* The glyph is painted from the button's colour, and the theme's rule set
 * `color: #fff` alongside the fill — so pin the icon to the same ink rather
 * than letting it inherit whatever reached the button. */
.fk-docs .fk-doc-find-open svg,
.fk-docs .fk-doc-find-open:hover svg,
.fk-docs .fk-doc-find-open:focus svg,
.fk-docs .fk-doc-find-open[aria-expanded="true"] svg {
	fill: currentColor;
}

/* =====================================================================
 * Archive list hover geometry — 2026-10-26
 *
 * `.fk-docs .s-docmain ul` / `li` (0,2,1) give prose lists a 22px start
 * gutter and 8px between items. The archive list is chrome, not prose, and
 * its own reset (0,2,0) lost to them: the hover fill started 22px inside the
 * card, ran into the card's right edge, and stopped 8px short of each
 * divider. Reset both at higher specificity so a row fills edge to edge.
 * ================================================================== */
.fk-docs .s-docmain ul.fk-doc-list {
	padding-inline-start: 0;
}

.fk-docs .s-docmain .fk-doc-list > .fk-doc-li {
	margin-block-start: 0;
}


/* =====================================================================
 * 2026-11-22 mobile audit fixes (report nw5v89r0xv).
 * P1-05: the masthead row is nowrap on phones, so the 38px search button was
 * squeezed to 20px wide. It no longer shrinks and is 44px; the brand links,
 * the Get FunnelKit action and the section toggle reach 44px tall.
 * P1-03: search fields at 16px so iOS Safari does not zoom on focus.
 * ===================================================================== */
@media (max-width: 900px) {
	.fk-docs .fk-doc-find-open { width: 44px; height: 44px; flex: 0 0 44px; }
	.fk-docs .fk-doc-brand-home,
	.fk-docs .fk-doc-brand-w,
	.fk-docs .fk-doc-mast-cta { display: inline-flex; align-items: center; min-height: 44px; }
	.fk-docs .fk-doc-nav-toggle.fk-doc-nav-toggle { min-height: 44px; }
}
@media (max-width: 768px) {
	.fk-docs input[type="search"],
	.fk-docs input[type="text"],
	#fk-doc-pq { font-size: 16px; }
}

/* 2026-11-22 follow-up: with the 44px search button the nowrap masthead was 9px
   wider than a 375px screen. Trim the action's inset and the button's side padding
   on narrow phones. Result titles get a 44px row. */
@media (max-width: 420px) {
	.fk-docs .fk-doc-mast-act { margin-inline-start: 4px; }
	.fk-docs .fk-doc-mast-cta { padding-inline: 9px; }
}
@media (max-width: 1024px) {
	.fk-docs .fk-doc-result-t { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 2026-11-22 follow-up 2: inline-flex let long result titles size to their text
   (378px at 375). Block-level flex keeps the 44px row inside the column. The
   Login text link in the masthead reaches 44px where it shows (561 to 1024px). */
@media (max-width: 1024px) {
	.fk-docs .fk-doc-result-t { display: flex; max-width: 100%; overflow-wrap: anywhere; }
	.fk-docs .fk-doc-mast-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* 2026-11-22 follow-up 3: correct follow-up 2. Flex split highlighted words in
   result titles into separate columns, so the 44px row comes from padding on a
   block link instead. The Login rule is limited to the widths where Login is
   shown (it is hidden at 560px and below). */
@media (max-width: 1024px) {
	.fk-docs .fk-doc-result-t { display: block; min-height: 44px; padding-block: 10px; overflow-wrap: break-word; }
}
@media (max-width: 560px) {
	.fk-docs .fk-doc-mast-link { display: none; }
}


/* 2026-11-24: doc notes (Prashant: "design of note is not fine, same as notes on funnelkit site").
   Doc content carries funnelkit.com's note markup: .fk-site-blog-message plus .fk-site-info (168),
   .fk-site-notice (26) or .fk-site-alert (5), with the icon as the first <img> of the <p>. Nothing on
   fknew styled it, so the icon sat inline in a ring and the text ran on flat. Same shape as
   funnelkit.com universal.css: 1px border with a 4px left edge, 12px radius, icon hung in a 28px gutter.
   Colours are the site tokens; the alert red has no token, so it keeps funnelkit.com's hex. */
.fk-docs .fk-site-blog-message{
	margin:32px 0;
	padding:14px 18px;
	border:1px solid var(--FkLine);
	border-left-width:4px;
	border-radius:12px;
	background:color-mix(in srgb, var(--FkBlue50) 55%, var(--FkWhite));
}
.fk-docs .fk-site-blog-message.fk-site-info{border-color:var(--FkLine);border-left-color:var(--FkBlueTint);}
.fk-docs .fk-site-blog-message.fk-site-notice{border-color:color-mix(in srgb, var(--FkGoldSoft) 60%, var(--FkWhite));border-left-color:var(--FkGoldSoft);background:var(--FkGold50);}
.fk-docs .fk-site-blog-message.fk-site-alert{border-color:#F3B8AB;border-left-color:#E15334;background:#FFF1EF;}
.fk-docs .fk-site-blog-message .fk-site-grid-template{display:block;}
.fk-docs .fk-site-blog-message .fk-site-content{position:relative;display:block;padding:0 0 0 30px;color:var(--FkInk900);font-size:16px;line-height:1.6;text-align:left;}
.fk-docs .fk-site-blog-message .fk-site-content p{margin:0;font-size:inherit;line-height:inherit;color:inherit;}
.fk-docs .fk-site-blog-message .fk-site-content p + p{margin-top:8px;}
.fk-docs .fk-site-blog-message .fk-site-content p > img:first-child{position:absolute;left:0;top:3px;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.fk-docs .fk-site-blog-message .fk-site-bold-text{font-weight:600;color:var(--FkInk900);}
.fk-docs .fk-site-blog-message a{font-size:inherit;}
