/*
 * FunnelKit Training — front end.
 *
 * Scoped `.fkt-page .fk-tr-*`: two classes, because the component sits inside
 * the theme's own content and a single class loses to rules like
 * `.elementor a { color: … }`. The body class is added by Frontend\Renderer.
 *
 * Colours come from the site's design tokens with a literal fallback, so the
 * section looks like the rest of the site without depending on it.
 */
/*
 * The training hub on /training/.
 *
 * Loaded only on the page carrying [fk_training] (see includes/training.php)
 * and only after assets/css/fk-page.css, so every rule here wins at equal
 * specificity and no other page is touched.
 *
 * Nothing in here is expressible as a Global Class: the whole hub is shortcode
 * markup, not Elementor elements, so there is no element to hang a class on.
 * Colour, type and spacing still come from the design tokens in the
 * `var(--Token, #hex)` form fk-page.css uses, which keeps the render identical
 * if a variable ever goes missing.
 *
 * Local tokens, declared once on .fk-tr, do two jobs: they name the three
 * surfaces this component keeps re-using, and they give the navy views a
 * single place to flip the ink. Everything they resolve to is a site token.
 */

.fkt-page .fk-tr {
	--tr-ink: var(--FkInk900, #0f172a);
	--tr-muted: var(--FkInk600, #475569);
	--tr-faint: var(--FkInk400, #5e6e84);
	--tr-line: var(--FkLine, #e6ebf2);
	--tr-surface: var(--FkWhite, #fff);
	--tr-sunk: var(--FkSurface2, #f4f7fc);
	--tr-blue: var(--FkBlue600, #2457e6);
	--tr-blue-soft: var(--FkBlue50, #eef4ff);
	--tr-navy: var(--FkNavy900, #0a1a3c);
	--tr-on-navy: var(--FkBlueTint, #bdcdf8);
	--tr-on-navy-dim: var(--FkBlueSoft, #9db4ff);
	--tr-go: var(--FkCta600, #047857);
	--tr-gold: var(--FkGold, #b45309);
	--tr-gold-soft: var(--FkGold50, #fdf5e7);
	--tr-radius: 14px;

	width: 100%;
	/* The shortcode is the only child of its section, and the section is set
	   to full width with no padding: these views carry their own full-bleed
	   navy bands, so any gutter above them would print a white margin down
	   both sides of the hero. */
	margin: 0;
	font-family: var(--FkBody, Inter), system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tr-ink);
	background: var(--tr-sunk);
}

.fkt-page .fk-tr *,
.fkt-page .fk-tr *::before,
.fkt-page .fk-tr *::after {
	box-sizing: border-box;
}

.fkt-page .fk-tr [hidden] {
	display: none !important;
}

/* :where() so this reset contributes no specificity of its own. Written as
   `.fkt-page .fk-tr a` it is (0,3,0) and beats every component rule below that
   colours a link - which is exactly how the sub-nav tabs came out navy on
   navy. */
.fkt-page .fk-tr :where(a) {
	color: inherit;
	text-decoration: none;
}

.fkt-page .fk-tr :where(button) {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

/* The site's focus ring, not the UA's: every page in this system answers the
   keyboard the same way. */
.fkt-page .fk-tr :focus-visible {
	outline: 2px solid var(--tr-blue);
	outline-offset: 2px;
	border-radius: 8px;
}

.fkt-page .fk-tr-hero :focus-visible {
	outline-color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr mark {
	padding: 0 2px;
	border-radius: 3px;
	background: var(--FkGold50, #fdf5e7);
	color: inherit;
}

/* Tabular figures for every duration, timestamp and count, so a column of
   them lines up. The site ships no mono face, and one loaded for timestamps
   would be a second font download for twelve characters. */
.fkt-page .fk-tr-num {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.fkt-page .fk-tr-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

@media (max-width: 480px) {
	.fkt-page .fk-tr-wrap { padding-inline: 16px; }
}

/* ------------------------------------------------------------------ type */
.fkt-page .fk-tr-h1,
.fkt-page .fk-tr-h2,
.fkt-page .fk-tr-h3 {
	margin: 0;
	font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: inherit;
}

.fkt-page .fk-tr-h1 {
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.08;
}

.fkt-page .fk-tr-h2 {
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.18;
}

.fkt-page .fk-tr-h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.012em;
}

.fkt-page .fk-tr p {
	margin: 0;
}

.fkt-page .fk-tr-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-eyebrow-go {
	color: var(--FkGreenSoft, #34d399);
}

.fkt-page .fk-tr-lead {
	font-size: 16px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-link {
	font-weight: 600;
	white-space: nowrap;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-link:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------- buttons */
.fkt-page .fk-tr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--tr-go);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 16px -8px rgba(4, 120, 87, 0.6);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--FkWhite, #fff);
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.fkt-page .fk-tr-btn:hover,
.fkt-page .fk-tr-btn:focus-visible {
	background: var(--FkCta700, #065f46);
	color: var(--FkWhite, #fff);
	transform: translateY(-1px);
}

.fkt-page .fk-tr-btn-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--tr-line);
	border-radius: 10px;
	background: var(--tr-surface);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--tr-ink);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.fkt-page .fk-tr-btn-line:hover,
.fkt-page .fk-tr-btn-line:focus-visible {
	border-color: var(--tr-blue);
	color: var(--tr-ink);
}

/* ------------------------------------------------------------------- hero */
.fkt-page .fk-tr-hero {
	padding-block: 52px 34px;
	/* The same radial the site's navy sections use: a lighter navy pooled
	   behind the headline rather than a flat block. */
	background: radial-gradient(1200px 420px at 50% -10%, var(--FkNavy700, #15295c), var(--tr-navy) 70%);
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-hero > .fk-tr-wrap {
	display: grid;
	justify-items: center;
	gap: 16px;
	text-align: center;
}

.fkt-page .fk-tr-hero-mid { padding-block: 44px 34px; }

.fkt-page .fk-tr-hero-mid .fk-tr-h1 { font-size: clamp(28px, 3.6vw, 40px); }

.fkt-page .fk-tr-kicker {
	font-size: 14px;
	font-weight: 600;
	color: var(--tr-on-navy-dim);
}

/* The one highlighted phrase in the headline. A gradient underline rather
   than a highlighter block: the block tints the descenders too and reads as a
   selection. */
.fkt-page .fk-tr-h1 em {
	font-style: normal;
	background: linear-gradient(transparent 80%, var(--FkGoldSoft, #f6c544) 80%, var(--FkGoldSoft, #f6c544) 92%, transparent 92%);
}

.fkt-page .fk-tr-lede {
	max-width: 58ch;
	font-size: 17.5px;
	color: var(--tr-on-navy);
}

.fkt-page .fk-tr-lede a {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-ticks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--tr-on-navy);
}

.fkt-page .fk-tr-ticks li::before {
	content: "\2713";
	margin-right: 6px;
	font-weight: 700;
	color: var(--FkGreenSoft, #34d399);
}

.fkt-page .fk-tr-ticks-left { justify-content: flex-start; }

/* ----------------------------------------------------------------- search */
.fkt-page .fk-tr-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(680px, 100%);
	padding: 6px 6px 6px 16px;
	border-radius: 14px;
	background: var(--FkWhite, #fff);
	box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
	color: var(--tr-ink);
}

.fkt-page .fk-tr-search:focus-within {
	box-shadow: 0 0 0 4px rgba(157, 180, 255, 0.4), 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}

.fkt-page .fk-tr-search-ic {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-search-in {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: none;
	font: inherit;
	/* 16px: anything smaller and iOS zooms the page on focus. */
	font-size: 16px;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-search-in:focus { outline: none; }

.fkt-page .fk-tr-search-in::placeholder { color: var(--tr-faint); }

/* --------------------------------------------------------------- sub-nav */
.fkt-page .fk-tr-sub {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--tr-navy);
}

.fkt-page .fk-tr-sub > .fk-tr-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
}

.fkt-page .fk-tr-sub-a {
	padding: 14px 16px;
	border-bottom: 2px solid transparent;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tr-on-navy-dim);
	transition: color 0.18s ease, border-color 0.18s ease;
}

.fkt-page .fk-tr-sub-a:hover { color: var(--FkWhite, #fff); }

.fkt-page .fk-tr-sub-a[aria-current="page"] {
	border-bottom-color: var(--FkGoldSoft, #f6c544);
	color: var(--FkWhite, #fff);
}

/* ------------------------------------------------------------------- main */
.fkt-page .fk-tr-main {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 44px 24px 80px;
}

@media (max-width: 480px) {
	.fkt-page .fk-tr-main { padding-inline: 16px; }
}

.fkt-page .fk-tr-section {
	display: grid;
	gap: 22px;
	margin-top: 64px;
}

.fkt-page .fk-tr-section:first-child { margin-top: 0; }

.fkt-page .fk-tr-shead {
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.fkt-page .fk-tr-shead-left {
	grid-template-columns: 1fr auto;
	align-items: end;
	justify-items: start;
	max-width: none;
	margin-inline: 0;
	text-align: left;
}

.fkt-page .fk-tr-shead-left > div {
	display: grid;
	gap: 8px;
}

@media (max-width: 640px) {
	.fkt-page .fk-tr-shead-left { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- stages + goals */
/* Five stages on one rule, like a progress track. The rule is drawn behind
   the dots and inset at both ends so it never runs out past the first and
   last of them. */
.fkt-page .fk-tr-stages {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	width: 100%;
	max-width: 940px;
	margin-inline: auto;
}

.fkt-page .fk-tr-stages::before {
	content: "";
	position: absolute;
	top: 10px;
	right: 9%;
	left: 9%;
	height: 1px;
	background: var(--tr-line);
}

.fkt-page .fk-tr-stage {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 0 4px;
	text-align: center;
	color: inherit;
}

.fkt-page .fk-tr-stage i {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-bottom: 8px;
	border: 1px solid var(--tr-faint);
	border-radius: 50%;
	background: var(--tr-sunk);
	transition: border-color 0.18s ease;
}

.fkt-page .fk-tr-stage i::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tr-faint);
	transition: background-color 0.18s ease;
}

.fkt-page .fk-tr-stage b {
	font-size: 15px;
	font-weight: 700;
}

.fkt-page .fk-tr-stage span {
	font-size: 13px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-stage:hover i { border-color: var(--tr-blue); }

.fkt-page .fk-tr-stage[aria-current="true"] i {
	border: 2px solid var(--tr-blue);
}

.fkt-page .fk-tr-stage[aria-current="true"] i::after { background: var(--tr-blue); }

@media (max-width: 700px) {
	.fkt-page .fk-tr-stages {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 16px;
	}
	.fkt-page .fk-tr-stages::before { display: none; }
}

.fkt-page .fk-tr-goals {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
	gap: 12px;
}

.fkt-page .fk-tr-goal {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 4px 14px;
	padding: 16px 18px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fkt-page .fk-tr-goal:hover { border-color: var(--tr-blue); }

.fkt-page .fk-tr-goal[aria-current="true"] {
	border-color: var(--tr-blue);
	box-shadow: 0 0 0 3px var(--tr-blue-soft);
}

.fkt-page .fk-tr-goal .fk-tr-ic {
	display: grid;
	grid-row: span 3;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tr-line);
	border-radius: 10px;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-goal strong {
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.fkt-page .fk-tr-goal > span:not(.fk-tr-ic) {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-goal em {
	font-size: 12.5px;
	font-style: normal;
	font-weight: 600;
	color: var(--tr-blue);
}

/* ----------------------------------------------------------- course cards */
.fkt-page .fk-tr-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
	gap: 16px;
}

.fkt-page .fk-tr-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	box-shadow: 0 1px 2px rgba(15, 26, 49, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fkt-page .fk-tr-card:hover {
	border-color: var(--FkBlueSoft, #9db4ff);
	box-shadow: 0 14px 30px -18px rgba(15, 26, 49, 0.3);
	transform: translateY(-2px);
}

.fkt-page .fk-tr-card-h {
	margin: 0;
	font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.fkt-page .fk-tr-card-p {
	flex: 1 1 auto;
	font-size: 14.5px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-tagline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fkt-page .fk-tr-tagline .fk-tr-ic {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--tr-line);
	border-radius: 8px;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-tagline small {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-tagline small + small {
	padding-left: 10px;
	border-left: 1px solid var(--tr-line);
	color: var(--tr-faint);
}

.fkt-page .fk-tr-checks {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.fkt-page .fk-tr-checks li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 8px;
}

.fkt-page .fk-tr-checks li::before {
	content: "\2713";
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 1px solid var(--FkBlueSoft, #9db4ff);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-size: 13px;
	color: var(--tr-muted);
}

/* Level, lesson count, runtime and the call to action on one line. The meta
   is allowed to wrap as a block - when the three facts do not fit beside the
   link, the link drops below them rather than sitting next to a two-line
   stack, which is what left one card in three with a ragged footer. */
.fkt-page .fk-tr-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 10px;
	padding-top: 12px;
	border-top: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-card-foot .fk-tr-meta {
	flex: 1 1 auto;
	gap: 6px 11px;
	font-size: 12.5px;
}

/* ------------------------------------------------------------------ chips */
.fkt-page .fk-tr-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--tr-sunk);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-lvl-beginner {
	background: var(--FkBlue50, #eef4ff);
	color: var(--FkBlue600, #2457e6);
}

.fkt-page .fk-tr-lvl-intermediate {
	background: var(--FkBlueTint, #bdcdf8);
	color: var(--FkBlue700, #1b45c0);
}

.fkt-page .fk-tr-lvl-advanced {
	background: var(--FkNavy900, #0a1a3c);
	color: #ffffff;
}

.fkt-page .fk-tr-chip-age {
	background: var(--tr-gold-soft);
	color: var(--FkGold, #b45309);
}

.fkt-page .fk-tr-chip-tx {
	background: var(--tr-blue-soft);
	color: var(--tr-blue);
}

.fkt-page .fk-tr-bar {
	display: block;
	height: 6px;
	overflow: hidden;
	border-radius: 9px;
	background: var(--tr-sunk);
}

.fkt-page .fk-tr-bar i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 9px;
	background: var(--tr-go);
	transition: width 0.35s ease;
}

/* -------------------------------------------------------------- story card */
.fkt-page .fk-tr-story {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 18px;
	align-items: center;
	max-width: 620px;
	margin-top: 18px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--tr-radius);
	background: rgba(255, 255, 255, 0.06);
	color: var(--FkWhite, #fff);
	transition: background-color 0.18s ease;
}

.fkt-page .fk-tr-story:hover { background: rgba(255, 255, 255, 0.11); }

.fkt-page .fk-tr-story-thumb {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--FkNavy700, #15295c), #060d1f);
}

.fkt-page .fk-tr-story-thumb b {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.6);
	font-size: 11px;
	font-weight: 500;
}

.fkt-page .fk-tr-play {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-story-body {
	display: grid;
	gap: 6px;
}

.fkt-page .fk-tr-story-q {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.fkt-page .fk-tr-story-who {
	font-size: 13px;
	color: var(--tr-on-navy);
}

.fkt-page .fk-tr-story-who b { color: var(--FkWhite, #fff); }

.fkt-page .fk-tr-story .fk-tr-link {
	font-size: 13.5px;
	color: var(--tr-on-navy-dim);
}

@media (max-width: 560px) {
	.fkt-page .fk-tr-story { grid-template-columns: 1fr; }
	.fkt-page .fk-tr-story-thumb { display: none; }
}

/* ------------------------------------------------------------------- rows */
.fkt-page .fk-tr-rows {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
}

.fkt-page .fk-tr-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 18px;
	border-top: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-row:first-child { border-top: 0; }

.fkt-page .fk-tr-row:hover { background: var(--tr-sunk); }

.fkt-page .fk-tr-row-d {
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-row-t {
	min-width: 0;
	font-weight: 600;
}

.fkt-page .fk-tr-row-t small {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-row-r {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--tr-faint);
}

@media (max-width: 580px) {
	.fkt-page .fk-tr-row { grid-template-columns: minmax(0, 1fr) auto; }
	.fkt-page .fk-tr-row-d { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------- course page */
.fkt-page .fk-tr-hero-compact { padding-block: 24px 28px; }

.fkt-page .fk-tr-hero-compact > .fk-tr-wrap {
	justify-items: start;
	text-align: left;
}

.fkt-page .fk-tr-crumbs {
	width: 100%;
	font-size: 13.5px;
	color: var(--tr-on-navy-dim);
}

.fkt-page .fk-tr-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fkt-page .fk-tr-crumbs li + li::before {
	content: "\203A";
	margin-right: 8px;
	color: var(--tr-on-navy-dim);
}

.fkt-page .fk-tr-crumbs a:hover {
	color: var(--FkWhite, #fff);
	text-decoration: underline;
}

.fkt-page .fk-tr-crumbs [aria-current="page"] { color: var(--FkWhite, #fff); }

.fkt-page .fk-tr-course-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	width: 100%;
	margin-top: 6px;
	padding-bottom: 8px;
}

.fkt-page .fk-tr-course-copy {
	display: grid;
	justify-items: start;
	gap: 12px;
}

@media (max-width: 900px) {
	.fkt-page .fk-tr-course-head {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.fkt-page .fk-tr-panel {
	display: grid;
	gap: 14px;
	padding: 22px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.5);
	color: var(--tr-ink);
}

.fkt-page .fk-tr-panel-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-panel-top b {
	font-size: 20px;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-modules {
	display: grid;
	gap: 16px;
}

.fkt-page .fk-tr-module {
	overflow: hidden;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
}

.fkt-page .fk-tr-module > header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
}

.fkt-page .fk-tr-module small {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-module h3 {
	margin: 0;
	font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.fkt-page .fk-tr-lesson {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 12px 20px;
	border-top: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-lesson:hover { background: var(--tr-sunk); }

.fkt-page .fk-tr-lesson-t {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	min-width: 0;
	font-weight: 500;
}

.fkt-page .fk-tr-lesson-d {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-num-badge {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--tr-line);
	border-radius: 50%;
	background: var(--tr-surface);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-num-badge.is-done {
	border-color: var(--tr-go);
	background: var(--tr-go);
	color: var(--FkWhite, #fff);
}

/* ----------------------------------------------------------- lesson page */
.fkt-page .fk-tr-stagebar {
	padding-block: 22px 28px;
	background: var(--tr-navy);
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-watch {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
	margin-top: 16px;
}

@media (max-width: 1040px) {
	.fkt-page .fk-tr-watch { grid-template-columns: 1fr; }
}

.fkt-page .fk-tr-player {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: #060d1f;
}

/* The facade. Nothing is requested from YouTube until this button is pressed,
   which keeps a third-party player off the critical path of a page whose job
   is the list of lessons beside it. */
.fkt-page .fk-tr-screen {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: radial-gradient(600px 300px at 50% 40%, #13265a, #060d1f);
}

.fkt-page .fk-tr-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* YouTube's hqdefault is 4:3 with black bars; cover crops them off. */
	object-fit: cover;
	opacity: 0.72;
	transition: opacity 0.25s ease, transform 0.4s ease;
}

.fkt-page .fk-tr-screen:hover .fk-tr-poster {
	opacity: 0.82;
	transform: scale(1.02);
}

.fkt-page .fk-tr-bigplay {
	position: relative;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: var(--tr-go);
	box-shadow: 0 10px 30px -8px rgba(4, 120, 87, 0.8);
	color: var(--FkWhite, #fff);
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.fkt-page .fk-tr-screen:hover .fk-tr-bigplay {
	background: var(--FkCta700, #065f46);
	transform: scale(1.06);
}

/* The IFrame API REPLACES this node with the iframe rather than filling it. It
   carries the class across and stamps width="640" height="360" on the result,
   and a presentational height beats aspect-ratio — so the box came out
   1150x360, 3.19:1, and YouTube pillarboxed the 16:9 video inside it with black
   down both sides. It showed up once the transcript closed and the player took
   the full row; split in two it was only 2.08:1 and read as a crop.
   height: auto hands the height back to the ratio.

   The rule has to match the element itself: after the swap there is no
   `.fk-tr-mount iframe` to match, because the iframe IS .fk-tr-mount. The
   descendant rule below only covers a nested variant. */
.fkt-page .fk-tr-mount {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.fkt-page .fk-tr-mount iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.fkt-page .fk-tr-nojs {
	padding: 10px 14px;
	background: #0b142b;
	font-size: 13px;
}

.fkt-page .fk-tr-nojs a {
	color: var(--tr-on-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fkt-page .fk-tr-nojs a:hover { color: var(--FkWhite, #fff); }

/* -------------------------------------------------------------- transcript */
.fkt-page .fk-tr-trpanel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: 560px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--tr-surface);
	color: var(--tr-ink);
}

@media (max-width: 1040px) {
	.fkt-page .fk-tr-trpanel { max-height: 440px; }
}

.fkt-page .fk-tr-trhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-trhead b { font-size: 15px; }

.fkt-page .fk-tr-follow {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--tr-muted);
	cursor: pointer;
}

.fkt-page .fk-tr-follow input {
	margin: 0;
	accent-color: var(--tr-blue);
}

.fkt-page .fk-tr-trfind {
	padding: 10px 16px;
	border-bottom: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-trfind input {
	width: 100%;
	padding: 7px 11px;
	border: 1px solid var(--tr-line);
	border-radius: 9px;
	background: var(--tr-sunk);
	font: inherit;
	font-size: 14px;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-trbody {
	flex: 1 1 auto;
	min-height: 0;
	padding: 8px 6px 16px;
	overflow: auto;
	scroll-behavior: smooth;
	overscroll-behavior: contain;
}

.fkt-page .fk-tr-para {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 10px;
}

.fkt-page .fk-tr-ts {
	align-self: start;
	padding: 2px 0 0;
	border: 0;
	background: none;
	font-size: 12px;
	font-weight: 500;
	text-align: left;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-ts:hover { text-decoration: underline; }

.fkt-page .fk-tr-para p {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-para.is-now { background: var(--tr-sunk); }

.fkt-page .fk-tr-para.is-now p { color: var(--tr-ink); }

.fkt-page .fk-tr-ln {
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fkt-page .fk-tr-ln:hover { background: var(--tr-blue-soft); }

.fkt-page .fk-tr-ln.is-on {
	background: var(--FkGold50, #fdf5e7);
	box-shadow: 0 0 0 2px var(--FkGoldSoft, #f6c544);
	color: var(--tr-ink);
}

.fkt-page .fk-tr-ln.is-hit { background: var(--FkGold50, #fdf5e7); }

/* .fk-tr-trempty and .fk-tr-skel used to dress the "no transcript yet" panel —
   a centred message and a line skeleton. That panel was removed when the
   transcript became opt-in, and nothing has emitted either class since; they
   were 40 lines of stylesheet going to every visitor for markup that no longer
   exists. */

/* ------------------------------------------------------------ lesson body */
.fkt-page .fk-tr-main-lesson { padding-top: 0; }

.fkt-page .fk-tr-lesson-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	margin-top: 34px;
}

@media (max-width: 1040px) {
	.fkt-page .fk-tr-lesson-body { grid-template-columns: 1fr; }
}

.fkt-page .fk-tr-lesson-main {
	display: grid;
	gap: 26px;
	min-width: 0;
}

.fkt-page .fk-tr-lesson-head {
	display: grid;
	gap: 12px;
}

.fkt-page .fk-tr-note {
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--tr-gold-soft);
	font-size: 14px;
	color: var(--FkGold, #b45309);
}

.fkt-page .fk-tr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fkt-page .fk-tr-done.is-done {
	background: var(--FkGreenSoft, #34d399);
	box-shadow: none;
	color: var(--FkCta700, #065f46);
}

.fkt-page .fk-tr-done.is-done:hover {
	background: var(--FkGreenSoft, #34d399);
	color: var(--FkCta700, #065f46);
	transform: none;
}

.fkt-page .fk-tr-block {
	display: grid;
	gap: 10px;
}

/* The light-theme chapter list that used to sit under the player is gone —
   chapters live in the navy column beside it now, styled further down. Its
   .is-now painted var(--tr-blue-soft), a near-white, which on navy was a white
   block with navy-dark text in it. */

.fkt-page .fk-tr-prose {
	max-width: 68ch;
	font-size: 15.5px;
	white-space: pre-line;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-outline {
	position: sticky;
	/* --fk-wn-top is the LIVE height of the pinned site bar, measured by
	   fk-training.js. --fk-hdr reads 80px while the bar is 70px, which parks
	   the first outline row under it. The literal is the pre-script fallback. */
	top: calc(var(--fk-wn-top, 70px) + 14px);
	max-height: calc(100vh - var(--fk-wn-top, 70px) - 34px);
	overflow: auto;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
}

@media (max-width: 1040px) {
	.fkt-page .fk-tr-outline {
		position: static;
		max-height: 420px;
	}
}

.fkt-page .fk-tr-oh {
	display: grid;
	gap: 8px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--tr-line);
}

.fkt-page .fk-tr-oh-t {
	font-weight: 700;
}

.fkt-page .fk-tr-oh-t:hover { color: var(--tr-blue); }

.fkt-page .fk-tr-om {
	padding: 12px 18px 4px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-ol {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 10px;
	padding: 7px 18px;
	font-size: 13.5px;
	line-height: 1.4;
}

.fkt-page .fk-tr-ol:hover { background: var(--tr-sunk); }

.fkt-page .fk-tr-ol[aria-current="true"] {
	background: var(--tr-blue-soft);
	font-weight: 600;
}

.fkt-page .fk-tr-ol .fk-tr-num-badge {
	width: 22px;
	height: 22px;
	font-size: 11px;
}

.fkt-page .fk-tr-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.fkt-page .fk-tr-pager a {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	font-weight: 600;
	transition: border-color 0.18s ease;
}

.fkt-page .fk-tr-pager a:hover { border-color: var(--FkBlueSoft, #9db4ff); }

.fkt-page .fk-tr-pager-next { text-align: right; }

.fkt-page .fk-tr-pager span {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tr-faint);
}

@media (max-width: 580px) {
	.fkt-page .fk-tr-pager { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- library */
.fkt-page .fk-tr-lib {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.fkt-page .fk-tr-facets {
	display: grid;
	/* The groups carry their own separation now, so the container adds none —
	   a gap here would stack on top of the rule between them. */
	gap: 0;
	position: sticky;
	top: calc(var(--fk-wn-top, 70px) + 14px);
	max-height: calc(100vh - var(--fk-wn-top, 70px) - 34px);
	overflow: auto;
	/* No padding on top: the sticky head supplies it. Measured, `top: 0` on a
	   sticky child resolves against this box's CONTENT edge, not its padding
	   edge, so an 18px padding-top left an 18px transparent band above the
	   pinned head that rows scrolled up into. Zeroing it makes the two edges
	   the same place, and the offset unambiguous. */
	padding: 0 18px 18px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
}

/* The column scrolls, so the head stays put: what this is, how many filters
   are on, and the way out of all of them. */
.fkt-page .fk-tr-facet-top {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	/* Full-bleed sideways so the rule under it spans the card; no negative
	   margin on top any more, because there is no padding left to escape. */
	margin: 0 -18px 0;
	padding: 14px 18px 10px;
	border-bottom: 1px solid var(--tr-line);
	background: var(--tr-surface);
}

.fkt-page .fk-tr-facet-title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-facet-title b {
	min-width: 18px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--tr-blue);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
	text-align: center;
	color: #fff;
}

.fkt-page .fk-tr-facet-clear {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: var(--tr-blue);
	text-decoration: none;
}

.fkt-page .fk-tr-facet-clear:hover,
.fkt-page .fk-tr-facet-clear:focus-visible { text-decoration: underline; }

.fkt-page .fk-tr-facet {
	margin: 0;
	padding: 0;
	border: 0;
}

/* A hairline between groups, so nine goals and five product areas do not read
   as one fourteen-item list. The first group needs none — the head draws it. */
.fkt-page .fk-tr-facet-top + .fk-tr-facet { margin-top: 14px; }

.fkt-page .fk-tr-facet + .fk-tr-facet {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--tr-line);
}

/* A legend is laid out by the UA unless it is told otherwise; width:100% is
   what lets the Clear link sit out at the right of the group name. */
.fkt-page .fk-tr-facet-h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	float: none;
	width: 100%;
	margin-bottom: 7px;
	padding: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-facet-rows {
	display: grid;
	gap: 1px;
}

/* The row is the control, not the box inside it: full-width hit area, its own
   hover, and a resting state that says "on" without relying on the tick. */
.fkt-page .fk-tr-facet-row {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px;
	margin-inline: -8px;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--tr-muted);
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.fkt-page .fk-tr-facet-row:hover { background: var(--tr-sunk); }

.fkt-page .fk-tr-facet-row.is-on {
	background: var(--tr-blue-soft);
	font-weight: 600;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-facet-row:focus-within {
	outline: 2px solid var(--tr-blue);
	outline-offset: 1px;
}

.fkt-page .fk-tr-facet-l { min-width: 0; }

/* Tabular figures and a floor on the width, so the counts form a column
   instead of stepping in and out as the digits change. */
.fkt-page .fk-tr-facet-row em {
	min-width: 1.6em;
	padding-top: 1px;
	font-size: 12px;
	font-style: normal;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-facet-row.is-on em { color: var(--tr-blue); }

/* Ticked and matching nothing. The row stays — removing it would hide the
   reason the results are empty — but it stops looking live. */
.fkt-page .fk-tr-facet-row.is-zero {
	color: var(--tr-faint);
	font-weight: 400;
}

.fkt-page .fk-tr-facet-row.is-zero em { color: var(--tr-gold); }

/* The native box is 15px of UA chrome that cannot take the brand blue on every
   platform, and it sat centred against a two-line label. This one is drawn
   here and pinned to the first line. */
.fkt-page .fk-tr-facet-row input {
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	appearance: none;
	-webkit-appearance: none;
	/* --tr-line is a divider weight; an unticked box at that value reads as
	   absent rather than empty. Mixed off the text colour so it tracks the
	   palette, with the literal first for anything without color-mix. */
	border: 1.5px solid #c6d0e2;
	border-color: color-mix(in srgb, var(--tr-faint) 42%, var(--tr-surface));
	border-radius: 5px;
	background: var(--tr-surface);
	cursor: pointer;
	transition: border-color 0.12s ease, background-color 0.12s ease;
}

.fkt-page .fk-tr-facet-row:hover input { border-color: var(--tr-blue); }

.fkt-page .fk-tr-facet-row input:checked {
	border-color: var(--tr-blue);
	background-color: var(--tr-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: 10px 8px;
}

/* The row carries the focus ring, so the box must not draw a second one. */
.fkt-page .fk-tr-facet-row input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.fkt-page .fk-tr-facet-row,
	.fkt-page .fk-tr-facet-row input { transition: none; }
}

.fkt-page .fk-tr-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.fkt-page .fk-tr-toolbar-l {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.fkt-page .fk-tr-sortlab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fkt-page .fk-tr-toolbar select {
	padding: 7px 10px;
	border: 1px solid var(--tr-line);
	border-radius: 9px;
	background: var(--tr-surface);
	font: inherit;
	font-size: 14px;
	color: var(--tr-ink);
}

.fkt-page .fk-tr-active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fkt-page .fk-tr-pill {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tr-blue-soft);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-pill:hover { background: var(--FkBlueTint, #bdcdf8); }

.fkt-page .fk-tr-pill-clear {
	background: var(--tr-sunk);
	color: var(--tr-muted);
}

.fkt-page .fk-tr-results {
	display: grid;
	gap: 12px;
}

.fkt-page .fk-tr-res {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 18px;
	padding: 14px;
	border: 1px solid var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	transition: border-color 0.18s ease;
}

.fkt-page .fk-tr-res:hover { border-color: var(--FkBlueSoft, #9db4ff); }

.fkt-page .fk-tr-res-thumb {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--FkNavy700, #15295c), var(--tr-navy));
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-res-thumb::before {
	content: "";
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.fkt-page .fk-tr-res-thumb::after {
	content: "";
	position: absolute;
	margin-left: 3px;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid #fff;
}

.fkt-page .fk-tr-res-thumb b {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.62);
	font-size: 11px;
	font-weight: 500;
}

.fkt-page .fk-tr-res-thumb s {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--FkGoldSoft, #f6c544);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	color: #3b2400;
}

.fkt-page .fk-tr-res-body {
	display: block;
	min-width: 0;
}

.fkt-page .fk-tr-res-h {
	display: block;
	font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: -0.012em;
}

.fkt-page .fk-tr-res-where {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-res .fk-tr-meta { margin-top: 8px; }

.fkt-page .fk-tr-snip {
	display: block;
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 9px;
	background: var(--tr-sunk);
	font-size: 14px;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-snip-k {
	margin-right: 6px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tr-blue);
}

.fkt-page .fk-tr-empty {
	padding: 40px;
	border: 1px dashed var(--tr-line);
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	text-align: center;
	color: var(--tr-muted);
}

.fkt-page .fk-tr-more {
	margin-top: 16px;
	font-size: 13.5px;
	text-align: center;
	color: var(--tr-faint);
}

.fkt-page .fk-tr-facet-toggle { display: none; }

@media (max-width: 900px) {
	.fkt-page .fk-tr-lib { grid-template-columns: 1fr; }
	.fkt-page .fk-tr-facets {
		position: static;
		display: none;
		grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
		max-height: none;
	}
	.fkt-page .fk-tr-facets.is-open { display: grid; }
	.fkt-page .fk-tr-facet-toggle { display: inline-flex; }
}

@media (max-width: 540px) {
	.fkt-page .fk-tr-res { grid-template-columns: 1fr; }
	.fkt-page .fk-tr-res-thumb { display: none; }
}

/* ---------------------------------------------------------------- updates */
.fkt-page .fk-tr-seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
}

.fkt-page .fk-tr-seg-a {
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tr-on-navy);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fkt-page .fk-tr-seg-a:hover { color: var(--FkWhite, #fff); }

.fkt-page .fk-tr-seg-a[aria-current="true"] {
	background: var(--FkWhite, #fff);
	color: var(--tr-ink);
}

.fkt-page .fk-tr-tl {
	display: grid;
	gap: 34px;
}

.fkt-page .fk-tr-year {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 24px;
}

.fkt-page .fk-tr-year > .fk-tr-h3 {
	font-weight: 500;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	color: var(--tr-faint);
}

@media (max-width: 620px) {
	.fkt-page .fk-tr-year {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
	.fkt-page .fk-tr *,
	.fkt-page .fk-tr *::before,
	.fkt-page .fk-tr *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.fkt-page .fk-tr-trbody { scroll-behavior: auto; }
	.fkt-page .fk-tr-card:hover,
	.fkt-page .fk-tr-btn:hover,
	.fkt-page .fk-tr-bigplay,
	.fkt-page .fk-tr-screen:hover .fk-tr-poster { transform: none; }
}

/* ------------------------------------------------- the Elementor section */
/* `fk-section` is the shared section shell: 64-116px of vertical padding and
   `align-items: center`. Both are wrong for this one widget - these views
   carry their own full-bleed navy bands and their own 1200px wrap, so the
   padding prints a white margin above the hero and the centring shrinks the
   whole hub to its widest line.
 *
 * The attribute selector is (0,3,0) against the global rule's (0,2,0), so it
 * wins without !important and without a second Global Class - which could not
 * win anyway, since two classes on one element are decided by the byte order
 * Elementor writes them in, not by the order of the element's class list. */
.fkt-page .elementor-element[data-id="sec-training"] {
	align-items: stretch;
	max-width: none;
	padding-block: 0;
	padding-inline: 0;
	background: var(--FkSurface2, #f4f7fc);
}

.fkt-page .elementor-element[data-id="sec-training"] > .elementor-widget,
.fkt-page .elementor-element[data-id="sec-training"] .elementor-widget-container,
.fkt-page .elementor-element[data-id="sec-training"] .elementor-shortcode {
	width: 100%;
	max-width: none;
	margin: 0;
}


/* The Elementor section holding the shortcode is a plain full-bleed shell:
   these views carry their own navy bands and their own 1200px wrap, so the
   section's padding would print a white gutter down both sides of the hero.
   The attribute selector is (0,3,0) against the global rule's (0,2,0). */
.fkt-page .elementor-element[data-id="sec-training"],
.fkt-page .fkt-shell {
	align-items: stretch;
	max-width: none;
	padding-block: 0;
	padding-inline: 0;
	background: var(--FkSurface2, #f4f7fc);
}

.fkt-page .elementor-element[data-id="sec-training"] > .elementor-widget,
.fkt-page .elementor-element[data-id="sec-training"] .elementor-widget-container,
.fkt-page .elementor-element[data-id="sec-training"] .elementor-shortcode {
	width: 100%;
	max-width: none;
	margin: 0;
}

/* The embed-failure state on the facade. */
.fkt-page .fk-tr-embederr {
	display: grid;
	gap: 6px;
	padding: 20px;
	text-align: center;
	color: #dbe4f7;
}

.fkt-page .fk-tr-embederr strong { font-size: 17px; color: #fff; }
.fkt-page .fk-tr-embederr span { font-size: 13px; color: #a9b8d8; }

/* ============================================================================
   The transcript is opt-in
   ----------------------------------------------------------------------------
   The panel used to be a permanent second column, so a lesson with no
   transcript spent half the width of its player saying so. Now the player owns
   the row until a reader asks for the transcript, and the split only happens
   when there is something to split for.
   ========================================================================== */
.fkt-page .fk-tr-watch {
	--fk-tx-col: 380px;
	--fk-tx-gap: 20px;
	gap: var(--fk-tx-gap);
	/* No column by default. A lesson with neither chapters nor a transcript —
	   36 of 140 — has nothing to put beside the video, and reserving the space
	   anyway left 380px of permanent blank. */
	grid-template-columns: minmax(0, 1fr);
}

/* One column, held open whether the transcript is showing or not, because the
   chapters live in it. The player is then the same size and in the same place
   on every lesson that has a side, and toggling the transcript moves nothing —
   the panel opens underneath the chapters, inside the column that was already
   there. */
.fkt-page .fk-tr-watch.has-side {
	grid-template-columns: minmax(0, 1fr) var(--fk-tx-col);
}

@media (max-width: 1040px) {
	.fkt-page .fk-tr-watch.has-side { grid-template-columns: minmax(0, 1fr); }
}

.fkt-page .fk-tr-side {
	display: grid;
	gap: 12px;
	align-content: start;
	min-width: 0;
}

/* Chapters: a scroller of its own, so a 20-chapter lesson does not push the
   transcript toggle off the bottom of the column. */
.fkt-page .fk-tr-chapbox {
	display: flex;
	flex-direction: column;
	min-height: 0;
	/* The player is ~477px tall at the widths this column exists at, and the
	   Up next card below takes ~105 of it, so the chapters get the rest and
	   scroll inside. The column then ends level with the video rather than
	   driving the row taller than it. */
	max-height: 360px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
}

.fkt-page .fk-tr-sidehead {
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 14px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tr-on-navy-dim);
}

.fkt-page .fk-tr-side .fk-tr-chapters {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	/* A long cue title was widening the list instead of wrapping, which put a
	   horizontal scrollbar under it and clipped the last line. */
	overflow-x: hidden;
	margin: 0;
	padding: 6px;
	list-style: none;
}

.fkt-page .fk-tr-side .fk-tr-chapters li { margin: 0; }

.fkt-page .fk-tr-side .fk-tr-chapters button {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	font: inherit;
	font-size: 13.5px;
	line-height: 1.35;
	text-align: left;
	color: var(--tr-on-navy);
	cursor: pointer;
}

.fkt-page .fk-tr-side .fk-tr-chapters button:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--FkWhite, #fff);
}

.fkt-page .fk-tr-side .fk-tr-chapters button span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.fkt-page .fk-tr-side .fk-tr-chapters button .fk-tr-num {
	font-variant-numeric: tabular-nums;
	font-size: 12px;
	color: var(--tr-on-navy-dim);
}

/* Up next: the one card that is on every lesson, so the column is never
   reserved blank. A thumbnail and a running time — the two things that decide
   whether you click it — and nothing else. */
.fkt-page .fk-tr-upnext {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.fkt-page .fk-tr-upcard {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 12px 12px;
	text-decoration: none;
	color: inherit;
}

.fkt-page .fk-tr-upend {
	grid-template-columns: minmax(0, 1fr);
	padding-block: 12px;
}

.fkt-page .fk-tr-upend .fk-tr-uptitle { -webkit-line-clamp: 3; }

.fkt-page .fk-tr-upcard + .fk-tr-upcard { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.fkt-page .fk-tr-upcard:hover { background: rgba(255, 255, 255, 0.07); }

.fkt-page .fk-tr-upthumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
}

.fkt-page .fk-tr-upthumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fkt-page .fk-tr-upbody {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.fkt-page .fk-tr-uptitle {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--FkWhite, #fff);
	/* Two lines, then stop: a long title must not push the card past the
	   video it sits beside. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fkt-page .fk-tr-upcard:hover .fk-tr-uptitle { text-decoration: underline; }

.fkt-page .fk-tr-upmeta {
	font-size: 12px;
	color: var(--tr-on-navy-dim);
}

/* With the transcript open the two share the column, so the chapters give up
   most of their height rather than the pair running past the video. :has is the
   only way to know the panel is showing from CSS; without it the chapters keep
   560px and the column simply runs long, which is the harmless end of this. */
.fkt-page .fk-tr-side:has(.fk-tr-trpanel:not([hidden])) .fk-tr-chapbox {
	max-height: 200px;
}

/* The cue the player is inside. The class is what the player sets as it runs;
   aria-current is set alongside it so the state is announced and not only
   seen. Styling only [aria-current] was a dead rule — the highlight never
   appeared, because the painting code writes .is-now. */
.fkt-page .fk-tr-side .fk-tr-chapters button.is-now {
	background: rgba(255, 255, 255, 0.14);
	font-weight: 600;
	color: var(--FkWhite, #fff);
	box-shadow: inset 2px 0 0 var(--FkCta600, #12824A);
}

.fkt-page .fk-tr-side .fk-tr-chapters button.is-now .fk-tr-num { color: var(--FkWhite, #fff); }

/* The player bar carries both actions: the toggle at the left, the YouTube
   link at the right, so the two never look like one control. */
.fkt-page .fk-tr-nojs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
}

.fkt-page .fk-tr-trtoggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	font-size: 13px;
	font-weight: 600;
	color: var(--FkBlueTint, #bdcdf8);
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fkt-page .fk-tr-trtoggle:hover,
.fkt-page .fk-tr-trtoggle:focus-visible {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.fkt-page .fk-tr-trtoggle[aria-expanded="true"] {
	border-color: var(--FkGoldSoft, #f6c544);
	color: #fff;
}

.fkt-page .fk-tr-trtoggle .fk-tr-num {
	font-size: 12px;
	opacity: 0.75;
}

/* ============================================================================
   Real video stills
   ----------------------------------------------------------------------------
   The cards drew a navy gradient with a CSS play glyph, which told a reader
   nothing about the video. They carry YouTube's own frame now; the gradient
   stays underneath as the loading ground, so a still that is slow or missing
   still leaves a card that looks deliberate rather than broken.
   ========================================================================== */
.fkt-page .fk-tr-still {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	/* YouTube pads 4:3 stills with black bars; cover crops them away. */
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fkt-page .fk-tr-still.is-loaded { opacity: 1; }

/* The badges and the play mark sit above the frame. */
.fkt-page .fk-tr-res-thumb b,
.fkt-page .fk-tr-res-thumb s,
.fkt-page .fk-tr-res-thumb .fk-tr-playmark,
.fkt-page .fk-tr-story-thumb b,
.fkt-page .fk-tr-story-thumb .fk-tr-play {
	z-index: 2;
}

/* The CSS play glyph is replaced by a real mark that reads on any frame. */
.fkt-page .fk-tr-res-thumb::before,
.fkt-page .fk-tr-res-thumb::after { content: none; }

.fkt-page .fk-tr-playmark {
	position: relative;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(10, 26, 60, 0.55);
	box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.5);
	color: #fff;
	font-style: normal;
	transition: background-color 0.16s ease, transform 0.16s ease;
}

.fkt-page .fk-tr-res:hover .fk-tr-playmark {
	background: var(--FkCta600, #047857);
	transform: scale(1.08);
}

/* A still is a detail of the row, not its subject, so it stays quiet until
   the row is hovered. */
.fkt-page .fk-tr-res .fk-tr-still { filter: saturate(0.92) brightness(0.92); }
.fkt-page .fk-tr-res:hover .fk-tr-still { filter: none; }

.fkt-page .fk-tr-poster {
	opacity: 0;
}

.fkt-page .fk-tr-poster.is-loaded { opacity: 0.72; }

.fkt-page .fk-tr-screen:hover .fk-tr-poster.is-loaded {
	opacity: 0.82;
	transform: scale(1.02);
}

/* ============================================================================
   Continue where you left off
   ----------------------------------------------------------------------------
   The one thing a returning learner wants is the lesson they stopped at. It is
   drawn from this browser's own progress after load, so the cached HTML stays
   identical for everyone, and the block is hidden outright on a first visit —
   an empty "continue" band is worse than none.
   ========================================================================== */
.fkt-page .fk-tr-resume {
	margin-bottom: 44px;
}

.fkt-page .fk-tr-resume-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 20px 24px;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-left: 4px solid var(--FkCta600, #047857);
	border-radius: var(--tr-radius, 14px);
	background: var(--FkWhite, #fff);
	box-shadow: 0 10px 30px -24px rgba(15, 26, 49, 0.5);
}

.fkt-page .fk-tr-resume-copy {
	display: grid;
	gap: 6px;
	min-width: 0;
	flex: 1 1 320px;
}

.fkt-page .fk-tr-resume-copy .fk-tr-eyebrow { color: var(--FkCta600, #047857); }
.fkt-page .fk-tr-resume-copy .fk-tr-bar { max-width: 360px; }
.fkt-page .fk-tr-resume .fk-tr-btn { flex: 0 0 auto; }

@media (max-width: 560px) {
	.fkt-page .fk-tr-resume-in { padding: 16px; }
	.fkt-page .fk-tr-resume .fk-tr-btn { width: 100%; }
}

/* A card that has been started earns its rail; the rest stay quiet. */
.fkt-page .fk-tr-card .fk-tr-bar { margin-top: 2px; }


/* The training pages ran their own heading scale: the hero at 46/800 against
   the site's 60/800, and section headings at 30/800 against 44/600. Same two
   clamps as everywhere else now, so a visitor moving between /training/ and
   the rest of the site does not cross a type change. */
.fkt-page .fk-tr-h1 {
	font-size: clamp(36px, 5.4vw, 60px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.fkt-page .fk-tr-h2 {
	font-size: clamp(30px, 3.8vw, 44px);
	font-weight: 600;
	line-height: 1.36;
	letter-spacing: normal;
}
