/**
 * The Finance Education — main stylesheet.
 *
 * The WordPress theme header lives in the root style.css; that file carries no
 * rules. All theme CSS is here so it can be versioned, cached and enqueued
 * independently of the metadata WordPress reads at activation.
 *
 * Load order (see inc/enqueue.php):
 *   1. Google Fonts       — families chosen in Theme Settings → Typography
 *   2. bootstrap.min.css  — vendor, unmodified
 *   3. theme.css          — this file: tokens, Bootstrap remap, components
 *   4. inline typography  — per-element rules generated from Theme Settings
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENTS
   1.  Design tokens
   2.  Bootstrap variable remap
   3.  Base
   4.  Layout primitives
   5.  Buttons
   6.  Forms
   7.  Top bar & site header
   8.  Hero
   9.  Stats
   10. Cards (category, post, author)
   11. Pills, tags & breadcrumbs
   12. Article & prose
   13. Sidebar & widgets
   14. Comments
   15. Pagination
   16. Footer
   17. WordPress core classes
   18. Elementor compatibility
   19. Utilities
   20. Motion & print

   NOTE ON CASCADE LAYERS — deliberately not used. Bootstrap ships unlayered,
   and unlayered styles beat layered ones, so wrapping this file in @layer
   would invert the intended order. The theme instead loads after Bootstrap and
   retunes it through its own `--bs-*` custom properties, which sidesteps
   specificity entirely. See inc/enqueue.php for the load order.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══ 1. DESIGN TOKENS ═════════════════════════════════════════════════════
   Single source of truth. Values marked "Customizer" are re-declared at
   runtime by inc/dynamic-css.php, so changing a colour in the Customizer
   retunes Bootstrap and the theme together.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
	/* — Brand ramp — */
	--tfe-brand: #0274be;          /* Customizer: primary */
	--tfe-brand-600: #0267a8;
	--tfe-brand-700: #023c62;      /* Customizer: deep — hero, footer, hovers */
	--tfe-brand-800: #023049;
	--tfe-brand-900: #021f30;
	--tfe-brand-200: #8ecdf0;
	--tfe-brand-300: #7fd0ff;      /* on-dark accent */

	/* — Ink — */
	--tfe-ink: #13232e;            /* Customizer: body text */
	--tfe-ink-2: #2b3947;
	--tfe-muted: #586472;
	--tfe-muted-2: #4d5a68;

	/* — Ground — */
	--tfe-bg: #f4f3f1;             /* Customizer: page background */
	--tfe-surface: #ffffff;
	--tfe-surface-2: #f8f7f6;

	/* — Blue tints, for banded sections — */
	--tfe-tint-50: #f8fbfe;
	--tfe-tint-100: #f4fafe;
	--tfe-tint-200: #e9f4fc;
	--tfe-tint-300: #cfe3f0;

	/*
	 * The hairline. Used 120+ times in the source design — a brand-tinted
	 * rule rather than a grey one, which is what keeps the layout feeling
	 * like one system instead of a stack of boxes.
	 */
	--tfe-hairline: color-mix(in srgb, var(--tfe-brand) 14%, transparent);
	--tfe-hairline-strong: color-mix(in srgb, var(--tfe-brand) 25%, transparent);
	--tfe-hairline-on-dark: rgba(255, 255, 255, 0.18);

	/* — Radii — */
	--tfe-radius-sm: 8px;
	--tfe-radius: 10px;
	--tfe-radius-lg: 16px;
	--tfe-radius-xl: 20px;
	--tfe-radius-pill: 999px;

	/* — Elevation — */
	--tfe-shadow-sm: 0 2px 8px color-mix(in srgb, var(--tfe-brand-800) 8%, transparent);
	--tfe-shadow: 0 8px 24px color-mix(in srgb, var(--tfe-brand-800) 12%, transparent);
	--tfe-shadow-lg: 0 18px 44px color-mix(in srgb, var(--tfe-brand-800) 22%, transparent);

	/* — Typography —
	   One fluid scale rather than the 21 ad-hoc clamp() values in the mockup.
	   Each step interpolates between a phone and a 1440px desktop. */
	--tfe-font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", roboto, sans-serif;

	--tfe-text-xs: 0.6875rem;                       /* 11px — eyebrows, meta */
	--tfe-text-sm: 0.75rem;                         /* 12px — pills, top bar */
	--tfe-text-base: 0.875rem;                      /* 14px — UI, nav */
	--tfe-text-body: 0.9375rem;                     /* 15px — body copy */
	--tfe-text-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	/* Heading scale — ratio 1.2 (minor third), h1 36px on desktop. Each step
	   eases from its phone size (390px viewport) to its desktop size (~1200px)
	   and holds there. These four sizes are the only heading sizes on the site;
	   Theme Settings → Typography cannot override them. */
	--tfe-text-h4: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);    /* 18 → 20px */
	--tfe-text-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);      /* 20 → 24px */
	--tfe-text-h2: clamp(1.5rem, 1.3rem + 0.85vw, 1.875rem);      /* 24 → 30px */
	--tfe-text-h1: clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);       /* 28 → 36px */
	--tfe-text-display: var(--tfe-text-h1);                        /* hero titles are h1s */

	--tfe-leading-heading: 1;                                      /* every heading */
	--tfe-leading-tight: var(--tfe-leading-heading);
	--tfe-leading-snug: 1.25;
	--tfe-leading: 1.55;
	--tfe-leading-prose: 1.75;

	--tfe-tracking-tight: -0.022em;
	--tfe-tracking-snug: -0.015em;
	--tfe-tracking-wide: 0.05em;
	--tfe-tracking-wider: 0.09em;
	--tfe-tracking-widest: 0.12em;

	/* — Space — */
	--tfe-gutter: 28px;
	--tfe-container: 1240px;
	--tfe-prose: 68ch;
	/* Vertical padding of every section: 50px on desktop, 40px on tablet and
	   phone (see the 1024px query below). `-sm` is for thin bands such as the
	   blog filter row and the stats strip. */
	--tfe-section-y: 50px;
	--tfe-section-y-sm: 40px;
	--tfe-gap: clamp(20px, 2.4vw, 32px);
	--tfe-gap-lg: clamp(32px, 4vw, 64px);

	/* — Motion — */
	--tfe-ease: cubic-bezier(0.2, 0.8, 0.3, 1);
	--tfe-duration: 220ms;

	/* Card and tile imagery sits in its own colours; hovering lifts it slightly
	   rather than revealing colour or zooming. One place to retune all of it. */
	--tfe-media-hover-filter: brightness(1.04) saturate(1.06);

	/* — Chrome — */
	--tfe-header-h: 82px;
	--tfe-z-header: 1030;
	--tfe-z-topbar: 1020;
}


/* ═══ 2. BOOTSTRAP VARIABLE REMAP ══════════════════════════════════════════
   Bootstrap 5.3 exposes its theme through custom properties, so the entire
   framework can be rebranded here without touching its stylesheet or
   compiling Sass. This is the only place Bootstrap is retuned.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
	--bs-primary: var(--tfe-brand);
	--bs-primary-rgb: 2, 116, 190;
	--bs-primary-text-emphasis: var(--tfe-brand-700);
	--bs-primary-bg-subtle: var(--tfe-tint-200);
	--bs-primary-border-subtle: var(--tfe-tint-300);

	--bs-secondary: var(--tfe-muted);
	--bs-secondary-rgb: 88, 100, 114;

	--bs-dark: var(--tfe-ink);
	--bs-dark-rgb: 19, 35, 46;

	--bs-body-bg: var(--tfe-bg);
	--bs-body-bg-rgb: 244, 243, 241;
	--bs-body-color: var(--tfe-ink);
	--bs-body-color-rgb: 19, 35, 46;
	--bs-secondary-color: var(--tfe-muted);
	--bs-emphasis-color: var(--tfe-ink);

	--bs-body-font-family: var(--tfe-font);
	--bs-body-font-size: var(--tfe-text-body);
	--bs-body-font-weight: 400;
	--bs-body-line-height: var(--tfe-leading);

	--bs-heading-color: var(--tfe-ink);
	--bs-link-color: var(--tfe-brand);
	--bs-link-color-rgb: 2, 116, 190;
	--bs-link-hover-color: var(--tfe-brand-700);
	--bs-link-decoration: none;
	--bs-link-hover-decoration: none;

	--bs-border-color: var(--tfe-hairline);
	--bs-border-radius: var(--tfe-radius);
	--bs-border-radius-sm: var(--tfe-radius-sm);
	--bs-border-radius-lg: var(--tfe-radius-lg);
	--bs-border-radius-xl: var(--tfe-radius-xl);
	--bs-border-radius-pill: var(--tfe-radius-pill);

	--bs-box-shadow-sm: var(--tfe-shadow-sm);
	--bs-box-shadow: var(--tfe-shadow);
	--bs-box-shadow-lg: var(--tfe-shadow-lg);

	--bs-focus-ring-color: color-mix(in srgb, var(--tfe-brand) 30%, transparent);
	--bs-focus-ring-width: 3px;
}


/* ═══ 3. BASE ══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

@media (max-width: 575.98px) {
	:root { --tfe-gutter: 16px; }
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Keep anchor targets clear of the sticky header. */
	scroll-padding-top: calc(var(--tfe-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--tfe-bg);
	color: var(--tfe-ink);
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-body);
	line-height: var(--tfe-leading);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-ink);
	text-wrap: balance;
}

h1, .h1 { font-size: var(--tfe-text-h1); letter-spacing: var(--tfe-tracking-tight); }
h2, .h2 { font-size: var(--tfe-text-h2); }
h3, .h3 { font-size: var(--tfe-text-h3); }
h4, .h4 { font-size: var(--tfe-text-h4); }
h5, .h5 { font-size: 1rem; }

h6, .h6 {
	font-size: var(--tfe-text-xs);
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
}

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--tfe-brand);
	text-decoration: none;
	text-underline-offset: 3px;
	transition: color var(--tfe-duration) var(--tfe-ease);
}

a:hover { color: var(--tfe-brand-700); }

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure { margin: 0; }

hr {
	height: 2px;
	margin: var(--tfe-gap) 0;
	border: 0;
	background: var(--tfe-hairline);
	opacity: 1;
}

::selection {
	background: color-mix(in srgb, var(--tfe-brand) 22%, transparent);
}

:focus { outline: none; }

:focus-visible {
	outline: 3px solid var(--tfe-brand);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Keyboard-only escape hatch to the content. */
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--tfe-brand);
	color: #fff;
	font-size: var(--tfe-text-base);
	font-weight: 800;
	border-radius: 0 0 var(--tfe-radius) var(--tfe-radius);
	transition: top var(--tfe-duration) var(--tfe-ease);
}

.skip-link:focus {
	top: 0;
	color: #fff;
}


/* ═══ 4. LAYOUT PRIMITIVES ═════════════════════════════════════════════════ */

.tfe-container {
	width: 100%;
	max-width: var(--tfe-container);
	margin-inline: auto;
	padding-inline: var(--tfe-gutter);
}

.tfe-section {
	padding-block: var(--tfe-section-y);
}

.tfe-section--sm { padding-block: var(--tfe-section-y-sm); }

@media (max-width: 1024px) {
	:root {
		--tfe-section-y: 40px;
		--tfe-section-y-sm: 32px;
	}
}
.tfe-section--flush-top { padding-block-start: 0; }

.tfe-section--tint { background: var(--tfe-tint-100); }
.tfe-section--surface { background: var(--tfe-surface); }

.tfe-rule-top { border-top: 1px solid var(--tfe-hairline); }
.tfe-rule-bottom { border-bottom: 2px solid var(--tfe-hairline); }

/* Section heading block — eyebrow / title / lead. */
.section-header { margin-bottom: var(--tfe-gap); max-width: 46rem; }
.section-header.text-center { margin-inline: auto; }

.section-eyebrow {
	margin: 0 0 10px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.section-title {
	margin: 0 0 12px;
	font-size: var(--tfe-text-h2);
	color: var(--tfe-brand);
}

.section-lead {
	margin: 0;
	font-size: var(--tfe-text-lead);
	line-height: 1.6;
	color: var(--tfe-muted);
}

/* The header row used above grids: title on the left, "view all" on the right. */
.section-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: var(--tfe-gap);
}

.section-bar .section-header { margin-bottom: 0; }

/*
 * Responsive auto-grid. Cards size themselves; no breakpoint soup.
 *
 * `minmax(min(X, 100%), 1fr)` rather than `minmax(X, 1fr)`: a bare minimum
 * cannot shrink below X, so on a viewport narrower than X the track overflows
 * and the page scrolls sideways. Wrapping it in `min()` lets the track collapse
 * to the container width instead. Every auto-fit grid here uses that form.
 */
.tfe-grid {
	display: grid;
	gap: var(--tfe-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(var(--tfe-grid-min, 280px), 100%), 1fr));
}

.tfe-grid--3 { --tfe-grid-min: 320px; }
.tfe-grid--4 { --tfe-grid-min: 240px; }

/* Content + sidebar. Collapses to one column below lg. */
.tfe-with-sidebar {
	display: grid;
	gap: var(--tfe-gap-lg);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
	.tfe-with-sidebar {
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: start;
	}

	.tfe-with-sidebar--narrow {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	/* Sidebar on the left. Source order stays content-first for screen
	   readers and for the single-column layout below lg. */
	.tfe-with-sidebar--left { grid-template-columns: 340px minmax(0, 1fr); }
	.tfe-with-sidebar--left > :first-child { order: 2; }
	.tfe-with-sidebar--left > :last-child { order: 1; }
}


/* ═══ 5. BUTTONS ═══════════════════════════════════════════════════════════
   The design's buttons are uppercase pills. These extend Bootstrap's .btn
   rather than replacing it, so Bootstrap's own sizing and state logic still
   applies and Elementor's button widget stays consistent.
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
	--bs-btn-font-family: var(--tfe-font);
	--bs-btn-font-weight: 500;
	--bs-btn-border-radius: var(--tfe-radius-pill);
	--bs-btn-font-size: var(--tfe-text-sm);
	--bs-btn-padding-y: 8px;
	--bs-btn-padding-x: 22px;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: var(--tfe-text-base);
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.1;
	transition:
		background-color var(--tfe-duration) var(--tfe-ease),
		color var(--tfe-duration) var(--tfe-ease),
		border-color var(--tfe-duration) var(--tfe-ease),
		transform var(--tfe-duration) var(--tfe-ease);
}

.btn:active { transform: translateY(1px); }

.btn-lg {
	--bs-btn-padding-y: 16px;
	--bs-btn-padding-x: 28px;
	--bs-btn-font-size: var(--tfe-text-base);
}

.btn-sm {
	--bs-btn-padding-y: 10px;
	--bs-btn-padding-x: 16px;
	--bs-btn-font-size: var(--tfe-text-xs);
}

.btn-primary {
	--bs-btn-bg: var(--tfe-brand-700);
	--bs-btn-border-color: var(--tfe-brand-700);
	--bs-btn-color: #fff;
	--bs-btn-hover-bg: var(--tfe-brand);
	--bs-btn-hover-border-color: var(--tfe-brand);
	--bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--tfe-brand-700);
	--bs-btn-active-border-color: var(--tfe-brand-700);
	--bs-btn-disabled-bg: var(--tfe-brand);
	--bs-btn-disabled-border-color: var(--tfe-brand);
}

/* White pill on a dark ground — the hero's primary action. */
.btn-on-dark {
	--bs-btn-bg: #fff;
	--bs-btn-border-color: #fff;
	--bs-btn-color: var(--tfe-brand);
	--bs-btn-hover-bg: var(--tfe-brand-300);
	--bs-btn-hover-border-color: var(--tfe-brand-300);
	--bs-btn-hover-color: var(--tfe-brand-700);
	--bs-btn-active-bg: var(--tfe-brand-200);
	--bs-btn-active-color: var(--tfe-brand-800);
}

.btn-outline-on-dark {
	--bs-btn-bg: transparent;
	--bs-btn-border-color: rgba(255, 255, 255, 0.45);
	--bs-btn-color: #fff;
	--bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
	--bs-btn-hover-border-color: #fff;
	--bs-btn-hover-color: #fff;
}

.btn-outline-brand {
	--bs-btn-bg: transparent;
	--bs-btn-border-color: var(--tfe-hairline-strong);
	--bs-btn-color: var(--tfe-brand);
	--bs-btn-hover-bg: var(--tfe-brand);
	--bs-btn-hover-border-color: var(--tfe-brand);
	--bs-btn-hover-color: #fff;
}

/* Solid brand-blue pill — the design's footer and contact-form buttons. */
.btn-brand {
	--bs-btn-bg: var(--tfe-brand);
	--bs-btn-border-color: var(--tfe-brand);
	--bs-btn-color: #fff;
	--bs-btn-hover-bg: var(--tfe-brand-600);
	--bs-btn-hover-border-color: var(--tfe-brand-600);
	--bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--tfe-brand-700);
	--bs-btn-active-border-color: var(--tfe-brand-700);
	--bs-btn-active-color: #fff;

	font-weight: 800;
}

/* Text link with a travelling arrow — "Read article →". */
.tfe-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--tfe-text-base);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	color: var(--tfe-brand);
}

.tfe-arrow-link::after {
	content: "\2192";
	transition: transform var(--tfe-duration) var(--tfe-ease);
}

.tfe-arrow-link:hover::after { transform: translateX(4px); }


/* ═══ 6. FORMS ═════════════════════════════════════════════════════════════ */

.form-label,
.tfe-field > span {
	display: block;
	margin-bottom: 6px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 13px 16px;
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-base);
	color: var(--tfe-ink);
	background-color: var(--tfe-surface-2);
	border: 1.5px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius);
	transition:
		border-color var(--tfe-duration) var(--tfe-ease),
		background-color var(--tfe-duration) var(--tfe-ease),
		box-shadow var(--tfe-duration) var(--tfe-ease);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
	background-color: var(--tfe-surface);
	border-color: var(--tfe-brand);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfe-brand) 18%, transparent);
}

textarea,
textarea.form-control { min-height: 120px; resize: vertical; }

/* Dropdowns: the browser's own arrow ignores padding and sits against the right
   edge, so every select draws one chevron, inset 16px, with room reserved so
   the chosen value never runs underneath it. Field rules elsewhere set only
   `background-color`, which keeps this image intact. */
select,
.form-select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23586472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	cursor: pointer;
}

select[multiple],
select[size]:not([size="1"]) {
	padding-right: 16px;
	background-image: none;
}

::placeholder { color: color-mix(in srgb, var(--tfe-muted) 70%, transparent); opacity: 1; }

.tfe-field { display: block; margin-bottom: 16px; }

.form-check-input:checked {
	background-color: var(--tfe-brand);
	border-color: var(--tfe-brand);
}

.form-check-input:focus {
	border-color: var(--tfe-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfe-brand) 18%, transparent);
}

/* The enquiry card that floats over the hero. */
.tfe-enquiry-card {
	padding: clamp(20px, 2.4vw, 30px);
	    background: #0274be8a;
    border: 0px solid #fff;
	border-radius: var(--tfe-radius-xl);
	box-shadow: var(--tfe-shadow-lg);
}

.tfe-enquiry-card__eyebrow {
	margin: 0 0 4px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.tfe-enquiry-card__title { 

margin: 0 0 17px; 

font-size: var(--tfe-text-h3);
color: #023c62;
    text-align: center;
    border-bottom: solid 1px #0274be;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 800 !important; }

.tfe-form-note {
	margin: 12px 0 0;
	font-size: var(--tfe-text-xs);
	line-height: 1.5;
	color: var(--tfe-muted);
}

/* Bare variant: the form sits inside an existing panel, so no card of its own. */
.tfe-enquiry-bare .tfe-field { margin-bottom: 12px; }
/* Visually hidden, not display:none — the field still needs a name in the
   accessibility tree; the placeholder alone is not a label. The error message
   is a sibling span inside the same label, so it has to be exempted or a failed
   submission would report nothing the visitor can see. */
.tfe-enquiry-bare .tfe-field > span:not(.tfe-field-error) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tfe-enquiry-card__intro {
	margin: 0 0 16px;
	font-size: var(--tfe-text-base);
	line-height: 1.6;
}

/* Inline validation + submission feedback, rendered by inc/enquiry.php. */
.tfe-form-message {
	margin-bottom: 16px;
	padding: 12px 16px;
	font-size: var(--tfe-text-base);
	border-radius: var(--tfe-radius);
	border: 1.5px solid transparent;
}

.tfe-form-message--success {
	background: var(--tfe-tint-200);
	border-color: var(--tfe-hairline-strong);
	color: var(--tfe-brand-700);
}

.tfe-form-message--error {
	background: #fdf2f2;
	border-color: #f3c6c6;
	color: #8c2020;
}

.tfe-field-error {
	display: block;
	margin-top: 6px;
	font-size: var(--tfe-text-xs);
	font-weight: 600;
	color: #b02a2a;
}

.form-control[aria-invalid="true"] { border-color: #b02a2a; }

/* Honeypot — visually gone, still reachable to bots that fill everything. */
.tfe-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}


/* ═══ 7. TOP BAR & SITE HEADER ═════════════════════════════════════════════ */

.tfe-topbar {
	position: relative;
	z-index: var(--tfe-z-topbar);
	background: var(--tfe-brand);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.tfe-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 28px;
	padding-block: 8px;
}

.tfe-topbar__tagline {
	font-weight: 500;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 1px;
}

.tfe-topbar__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 22px;
	color: rgba(255, 255, 255, 0.92);
}

/* A phone number must never break mid-digits. */
.tfe-topbar__contact a { white-space: nowrap; }

.tfe-topbar__contact a { color: inherit; }
.tfe-topbar__contact a:hover { color: #fff; text-decoration: underline; }
.tfe-topbar__sep { opacity: 0.4; }

/* With nothing beside it, the tagline centres instead of hugging the edge. */
.tfe-topbar__inner--solo { justify-content: center; text-align: center; }


/* ── Social icons ──────────────────────────────────────────────────────
   One markup, three grounds. The SVG inherits `currentColor`, so only the
   link colour changes between the bar, the footer and a light page.
   ────────────────────────────────────────────────────────────────────── */

.tfe-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfe-social li { margin: 0; }

/* Filled circles, never outlined: a soft tint at rest, solid brand on hover. */
.tfe-social__link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--tfe-tint-200);
	color: var(--tfe-brand);
	transition:
		background-color var(--tfe-duration) var(--tfe-ease),
		color var(--tfe-duration) var(--tfe-ease),
		transform var(--tfe-duration) var(--tfe-ease);
}

.tfe-social__link svg { width: 16px; height: 16px; fill: currentColor; }

.tfe-social__link:hover,
.tfe-social__link:focus-visible {
	background: var(--tfe-brand);
	color: #fff;
	transform: translateY(-2px);
}

/* On the blue top bar: smaller, borderless, tinted white. */
.tfe-social--bar { gap: 4px; }

.tfe-social--bar .tfe-social__link {
	width: 26px;
	height: 26px;
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
}

.tfe-social--bar .tfe-social__link svg { width: 14px; height: 14px; }

.tfe-social--bar .tfe-social__link:hover,
.tfe-social--bar .tfe-social__link:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	transform: none;
}

/* On the dark footer. */
.tfe-social--dark { margin-top: 20px; }

.tfe-footer .tfe-social--dark a.tfe-social__link {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.85);
}

.tfe-footer .tfe-social--dark a.tfe-social__link:hover,
.tfe-footer .tfe-social--dark a.tfe-social__link:focus-visible {
	background: var(--tfe-brand);
	color: #fff;
}

.tfe-contact-social { margin-top: 18px; }
.tfe-contact-social .tfe-social { margin-top: 8px; }

/* `position` is overridden to `static` by the body class when the
   "stick the header" setting is off — see inc/template-functions.php. */
.tfe-header {
	position: sticky;
	top: 0;
	z-index: var(--tfe-z-header);
	background: var(--tfe-surface);
	border-bottom: 2px solid var(--tfe-hairline);
	transition: box-shadow var(--tfe-duration) var(--tfe-ease);
}

/* Applied by assets/js/theme.js once the page has scrolled. */
.tfe-header.is-stuck { box-shadow: var(--tfe-shadow-sm); }

.tfe-header-static .tfe-header { position: static; }

.tfe-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 32px);
	min-height: var(--tfe-header-h);
}

.tfe-brand { flex: none; display: block; padding:7px 0px; }

/*
 * Sized by height so the logo always agrees with the header bar; the width
 * follows, which preserves whatever aspect ratio was uploaded. The max-width
 * stops a very wide wordmark crowding out the menu on small screens.
 */
.tfe-brand img,
.custom-logo-link img {
	height: var(--tfe-logo-h, 57px);
	width: auto;
	max-width: min(260px, 45vw);
	object-fit: contain;
}

/* Text fallback when no logo is set. */
.tfe-brand--text {
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-ink);
}

.tfe-header__actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

/* ── Menu alignment (Theme Settings → Header → Navigation) ───────────── */

/* Right: the menu sits beside the header button. */
.tfe-header__inner--right .tfe-nav { margin-left: auto; }
.tfe-header__inner--right .tfe-header__actions { margin-left: 0; }

/* Left: the menu follows the logo; the button stays far right. */
.tfe-header__inner--left .tfe-nav { margin-right: auto; }

/*
 * Centre: a three-column grid with equal outer tracks, so the menu is centred
 * against the header itself rather than against whatever the logo happens to
 * be wide.
 */
@media (min-width: 992px) {
	.tfe-header__inner--center {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.tfe-header__inner--center .tfe-header__actions { justify-self: end; margin-left: 0; }
}

.tfe-nav {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.8vw, 26px);
	min-width: 0;
}

/*
 * Bootstrap ships `.navbar-nav { flex-direction: column }` and only flips it to
 * a row inside `.navbar-expand-*`. This header is not a Bootstrap navbar, so
 * the direction has to be set explicitly — without it the links stack and then
 * wrap into columns.
 */
.tfe-nav .navbar-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(14px, 1.8vw, 26px);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Long menus scroll rather than wrapping the header onto a second line. */
.tfe-nav .navbar-nav > li { flex: none; }
.tfe-nav .nav-link { white-space: nowrap; }

.tfe-nav .nav-link {
	padding: 4px 0;
	font-size: var(--tfe-text-base);
	font-weight: 500;
	letter-spacing: 1px;
	color: var(--tfe-ink);
	text-transform:uppercase;
	border-bottom: 2px solid transparent;
	transition:
		color var(--tfe-duration) var(--tfe-ease),
		border-color var(--tfe-duration) var(--tfe-ease);
}

.tfe-nav .nav-link:hover,
.tfe-nav .nav-link:focus-visible,
.tfe-nav .nav-link.active {
	color: var(--tfe-brand);
	border-bottom-color: var(--tfe-brand);
}

/* Dropdowns */
.tfe-nav .dropdown-menu {
	--bs-dropdown-border-color: var(--tfe-hairline);
	--bs-dropdown-border-radius: var(--tfe-radius);
	--bs-dropdown-link-active-bg: var(--tfe-brand);
	--bs-dropdown-link-hover-bg: var(--tfe-tint-100);
	--bs-dropdown-link-hover-color: var(--tfe-brand);
	--bs-dropdown-font-size: var(--tfe-text-base);
	--bs-dropdown-padding-y: 8px;

	margin-top: 10px;
	box-shadow: var(--tfe-shadow);
}

.tfe-nav .dropdown-item { font-weight: 600; padding: 9px 18px; }

/* The header CTA is a pill, not a nav link. */
.tfe-nav__cta { flex: none; }

/* Mobile: offcanvas drawer */
.tfe-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1.5px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-sm);
	color: var(--tfe-brand);
	cursor: pointer;
}

.tfe-offcanvas {
	--bs-offcanvas-width: min(360px, 86vw);
	--bs-offcanvas-bg: var(--tfe-surface);
	--bs-offcanvas-border-color: var(--tfe-hairline);
}

.tfe-offcanvas .navbar-nav {
	flex-direction: column;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
}

.tfe-offcanvas .navbar-nav > li { flex: none; width: 100%; }

.tfe-offcanvas .nav-link {
	padding: 14px 0;
	border-bottom: 1px solid var(--tfe-hairline);
}

.tfe-offcanvas .dropdown-menu {
	position: static !important;
	transform: none !important;
	margin: 0 0 8px;
	padding-left: 14px;
	border: 0;
	box-shadow: none;
	background: var(--tfe-tint-50);
}

@media (max-width: 991.98px) {
	.tfe-nav-toggle { display: inline-flex; }
	.tfe-header__nav-desktop { display: none; }

	/* All three alignments collapse to the same bar once the menu is a drawer. */
	.tfe-header__inner,
	.tfe-header__inner--center {
		display: flex;
		justify-content: space-between;
	}

	.tfe-header__actions { margin-left: auto; }
	.tfe-topbar__tagline { display: none; }
	.tfe-header__inner { gap: 16px; }

	/* The CTA stays in the bar beside the toggle instead of moving into the
	   drawer, so it is reachable without opening the menu. Compact, so the
	   logo, the button and the toggle still fit on one line. */
	.tfe-header__actions .tfe-nav__cta .btn {
		--bs-btn-padding-y: 10px;
		--bs-btn-padding-x: 14px;
		font-size: var(--tfe-text-xs);
		letter-spacing: 0.5px;
		white-space: nowrap;
	}

	/* With the tagline gone, the contact details are the only content left,
	   so centre them rather than leaving them pinned to one edge. */
	.tfe-topbar__inner { justify-content: center; }
	.tfe-topbar__contact { justify-content: center; }
}

/* Narrow phones: the bar now carries three things, so tighten the gaps and cap
   the logo harder to keep the CTA and the toggle on the same line. */
@media (max-width: 480px) {
	.tfe-header__inner { gap: 10px; }
	.tfe-header__actions { gap: 8px; }

	.tfe-brand img,
	.custom-logo-link img { max-width: min(150px, 34vw); }

	.tfe-header__actions .tfe-nav__cta .btn {
		--bs-btn-padding-x: 12px;
		letter-spacing: 0.3px;
	}
}

/* Below ~420px the separator and the email together no longer fit on one
   line; drop the separator and let the two links stack cleanly. */
@media (max-width: 420px) {
	.tfe-topbar { font-size: var(--tfe-text-xs); }
	.tfe-topbar__sep { display: none; }
	.tfe-topbar__contact { gap: 2px 14px; }
}


/* ═══ 8. HERO ══════════════════════════════════════════════════════════════ */

.tfe-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 2px solid var(--tfe-hairline);
	/* The section carries no background of its own, but older Elementor CSS may
	   still put one here — keep it from tiling until that CSS is regenerated. */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

/* The banner's own background — colour, gradient or image — lives on a layer of
   its own rather than on the section, so that below the desktop breakpoint,
   where the enquiry form drops out of the banner, it can be pinned to the
   banner and stop short of the form. This is the selector the Elementor hero
   widget's Background control writes to. */
.tfe-hero__bg {
	position: absolute;
	inset: 0;
	background: var(--tfe-brand-700);
	/* Defaults for a background image dropped in through Elementor: fill the
	   banner once instead of tiling at its natural size. Elementor's own
	   Position / Repeat / Size settings still win when they are set. */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.tfe-hero__media {
	position: absolute;
	inset: 0;
}

.tfe-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

/* Directional scrim — keeps the headline legible whatever the photo does. */
.tfe-hero__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		95deg,
		color-mix(in srgb, var(--tfe-brand-800) 92%, transparent) 0%,
		color-mix(in srgb, var(--tfe-brand-800) 72%, transparent) 38%,
		color-mix(in srgb, var(--tfe-brand-700) 22%, transparent) 62%,
		color-mix(in srgb, var(--tfe-brand) 8%, transparent) 100%
	);
}

.tfe-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
	gap: var(--tfe-gap-lg);
	align-items: center;
	/* The `--tfe-hero-*` properties are what the Elementor widget's Layout
	   controls write to; the fallbacks are the theme's own defaults. */
	min-height: var(--tfe-hero-min-height, 0);
	padding-block: var(--tfe-hero-pad-top, clamp(44px, 5vw, 76px)) var(--tfe-hero-pad-bottom, clamp(48px, 5vw, 84px));
	padding-inline: var(--tfe-hero-pad-left, 0px) var(--tfe-hero-pad-right, 0px);
}

.tfe-hero__copy { min-width: 0; }

.tfe-hero__eyebrow {
	display: inline-block;
	margin-bottom: 22px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tfe-brand-300);
}

.tfe-hero__title {
	margin: 0 0 26px;
	font-size: var(--tfe-text-h1);
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-tight);
	color: #fff;
}

.tfe-hero__lead {
	margin: 0 0 26px;
	max-width: 38em;
	font-size: var(--tfe-text-lead);
	color: rgba(255, 255, 255, 0.82);
}

.tfe-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Below the desktop breakpoint the enquiry card leaves the banner: the copy
   keeps the photo and the scrim, the form drops onto the page background
   underneath it. The container and the inner grid are unwrapped with
   `display: contents` so the copy and the aside become rows of the section
   itself — the absolutely positioned media and scrim are then pinned to row 1
   via `grid-area`, which leaves row 2 outside the banner. */
@media (max-width: 991.98px) {
	/* Row 1 is the banner — it honours the widget's Minimum height, and the
	   background layers are pinned to it. Row 2 is the enquiry form. */
	.tfe-hero {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: minmax(var(--tfe-hero-min-height, 0px), auto) auto;
	}

	.tfe-hero > .tfe-container,
	.tfe-hero__inner { display: contents; }

	/* All four lines must be explicit. These layers are absolutely positioned,
	   and an `auto` end line on an abspos grid child resolves to the grid
	   container's padding edge — not to "span 1" — so `1 / 1` alone would let
	   them run to the bottom of the section, behind the form. */
	.tfe-hero__bg,
	.tfe-hero__media,
	.tfe-hero__scrim { grid-area: 1 / 1 / 2 / 2; }

	.tfe-hero__copy,
	.tfe-hero__aside {
		position: relative;
		z-index: 1;
		width: 100%;
		max-width: var(--tfe-container);
		margin-inline: auto;
		padding-inline: var(--tfe-gutter);
	}

	/* The copy is the banner now, so it carries the height and padding the
	   Elementor Layout controls set — `.tfe-hero__inner` is `display: contents`
	   here and cannot. Any padding the user set is added to the gutter rather
	   than replacing it, so the text stays off the screen edge. */
	.tfe-hero__copy {
		grid-area: 1 / 1;
		align-self: center;
		padding-block: var(--tfe-hero-pad-top, clamp(44px, 9vw, 72px)) var(--tfe-hero-pad-bottom, clamp(44px, 9vw, 72px));
		padding-inline:
			calc(var(--tfe-gutter) + var(--tfe-hero-pad-left, 0px))
			calc(var(--tfe-gutter) + var(--tfe-hero-pad-right, 0px));
	}

	.tfe-hero__aside {
		grid-row: 2;
		padding-block: clamp(28px, 6vw, 44px);
		/* Matches the page background. Opaque rather than transparent so a hero
		   background left on the section by older Elementor CSS cannot bleed
		   into this row. */
		background: var(--tfe-bg);
	}
}

.tfe-page-hero__title { margin: 0 0 12px; color: var(--tfe-brand); }

.tfe-page-hero__lead {
	margin: 0;
	max-width: 44rem;
	font-size: var(--tfe-text-lead);
	color: var(--tfe-muted);
}


/* Mentor profile header on an author archive. */
.tfe-author-hero__identity .tfe-page-hero__title { margin-bottom: 6px; }


/* ═══ 9. STATS ═════════════════════════════════════════════════════════════ */

/*
 * Two paintable layers: the tiles, and the strip behind them. The strip shows
 * only through the grid gaps, which is what draws the dividers — so the strip's
 * background colour is the divider colour, and the Elementor widget's controls
 * are named that way round.
 */
.tfe-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--tfe-stat-min, 180px), 100%), 1fr));
	gap: 2px;
	background: var(--tfe-hairline);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	overflow: hidden;
}

.tfe-stat {
	padding: clamp(20px, 2.6vw, 32px);
	background: var(--tfe-surface);
	text-align: center;
}

/* Tiles carrying an icon lay out horizontally; the rest are untouched, which
   keeps the theme's own stat strips (front page, author archive) as they were. */
.tfe-stat--with-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tfe-stat-icon-gap, 14px);
}

.tfe-stat__text { min-width: 0; }

.tfe-stat__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	/* Sizes an icon-font glyph; the rule below sizes an SVG or an image. */
	font-size: var(--tfe-stat-icon-size, 36px);
	color: var(--tfe-brand);
}

.tfe-stat__icon svg,
.tfe-stat__icon img {
	width: var(--tfe-stat-icon-size, 36px);
	height: var(--tfe-stat-icon-size, 36px);
	fill: currentColor;
}

.tfe-stat__value {
	font-size: var(--tfe-text-h2);
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--tfe-tracking-tight);
	color: var(--tfe-brand);
	/* Equal-width digits, so the count-up animation cannot reflow the tile. */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.tfe-stat__label {
	margin-top: 8px;
	font-size: var(--tfe-text-xs);
	font-weight: 600;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

/* Phones: two tiles per row rather than one, and the icon moves to the top and
   centres over the number — side by side leaves too little room for the label
   in a half-width tile. */
@media (max-width: 767.98px) {
	.tfe-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.tfe-stat { padding: clamp(16px, 4vw, 24px); }

	.tfe-stat--with-icon {
		flex-direction: column;
		justify-content: center;
		/* Same property as desktop, smaller fallback — so the widget's own gap
		   setting still wins if one was made. */
		gap: var(--tfe-stat-icon-gap, 10px);
		text-align: center;
	}
}


/* ── Stats: two finished designs (Stats widget → Design; About template) ──
   Both keep the one-pixel grid-gap dividers, add an icon badge, a soft
   depth shadow and generous, even tile spacing. Anything set in the widget's
   Style tab still wins, because Elementor's selectors are more specific. */

.tfe-stats--band,
.tfe-stats--card {
	--tfe-stat-icon-size: 22px;
	gap: 1px;
	border-radius: var(--tfe-radius-xl);
}

.tfe-stats--band .tfe-stat,
.tfe-stats--card .tfe-stat {
	padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.4vw, 32px);
}

/* Icon beside the figure, left-aligned; the widget's alignment control can
   still centre the text. */
.tfe-stats--band .tfe-stat--with-icon,
.tfe-stats--card .tfe-stat--with-icon {
	justify-content: flex-start;
	gap: var(--tfe-stat-icon-gap, 16px);
}

.tfe-stats--band .tfe-stat__icon,
.tfe-stats--card .tfe-stat__icon {
	width: calc(var(--tfe-stat-icon-size) + 30px);
	height: calc(var(--tfe-stat-icon-size) + 30px);
	border-radius: 50%;
	transition: transform var(--tfe-duration) var(--tfe-ease);
}

.tfe-stat:hover .tfe-stat__icon { transform: translateY(-2px); }

.tfe-stats--band .tfe-stat__value,
.tfe-stats--card .tfe-stat__value {
	font-size: var(--tfe-text-h2);
	letter-spacing: var(--tfe-tracking-tight);
}

.tfe-stats--band .tfe-stat__label,
.tfe-stats--card .tfe-stat__label {
	margin-top: 8px;
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: var(--tfe-tracking-wider);
}

/* Blue band: white figures on the brand colour, icons in a frosted circle. */
.tfe-stats--band {
	background: rgba(255, 255, 255, 0.16);
	border: 0;
	box-shadow: 0 24px 48px -26px color-mix(in srgb, var(--tfe-brand-800) 60%, transparent);
}

.tfe-stats--band .tfe-stat { background: var(--tfe-brand); }
.tfe-stats--band .tfe-stat__value { color: #fff; }
.tfe-stats--band .tfe-stat__label { color: rgba(255, 255, 255, 0.82); }

.tfe-stats--band .tfe-stat__icon {
	background: rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
	color: #fff;
}

/* White card: blue figures, icons in a tinted circle, hairline frame. */
.tfe-stats--card {
	background: var(--tfe-hairline);
	border: 1.5px solid var(--tfe-hairline-strong);
	box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--tfe-brand-800) 40%, transparent);
}

.tfe-stats--card .tfe-stat { background: var(--tfe-surface); }
.tfe-stats--card .tfe-stat__value { color: var(--tfe-brand); }
.tfe-stats--card .tfe-stat__label { color: var(--tfe-muted-2); }

.tfe-stats--card .tfe-stat__icon {
	background: var(--tfe-tint-200);
	color: var(--tfe-brand);
}

/* Phones: two per row, icon centred above the figure. */
@media (max-width: 767.98px) {
	.tfe-stats--band .tfe-stat,
	.tfe-stats--card .tfe-stat { padding: 22px 14px; }

	.tfe-stats--band .tfe-stat--with-icon,
	.tfe-stats--card .tfe-stat--with-icon { justify-content: center; gap: 12px; }

	.tfe-stats--band,
	.tfe-stats--card { --tfe-stat-icon-size: 20px; border-radius: var(--tfe-radius-lg); }

	/* The icon is centred above the figure here, so the text follows it. */
	.tfe-stats--start .tfe-stat { text-align: center; }
}


/* ═══ 10. CARDS ════════════════════════════════════════════════════════════ */

.tfe-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	color: inherit;
	transition:
		border-color var(--tfe-duration) var(--tfe-ease),
		box-shadow var(--tfe-duration) var(--tfe-ease),
		transform var(--tfe-duration) var(--tfe-ease);
}

.tfe-card:hover,
.tfe-card:focus-within {
	border-color: var(--tfe-hairline-strong);
	box-shadow: var(--tfe-shadow);
	transform: translateY(-3px);
	color: inherit;
}

.tfe-card__media {
	position: relative;
	overflow: hidden;
	background: var(--tfe-tint-200);
	aspect-ratio: var(--tfe-card-ratio, 16 / 10);
}

.tfe-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter var(--tfe-duration) var(--tfe-ease);
}

.tfe-card:hover .tfe-card__media img { filter: var(--tfe-media-hover-filter); }

.tfe-card__media--empty {
	display: grid;
	place-items: center;
	color: color-mix(in srgb, var(--tfe-brand) 45%, transparent);
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
}

.tfe-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: clamp(16px, 1.8vw, 22px);
}

.tfe-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

/* The category in a card meta row is a filled chip, per the design. */
.tfe-card__category {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	background: var(--tfe-brand);
	border-radius: var(--tfe-radius-pill);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
}

.tfe-card__title {
	margin: 0;
	font-size: var(--tfe-text-h4);
	line-height: var(--tfe-leading-heading);
}

.tfe-card__title a { color: inherit; }
.tfe-card:hover .tfe-card__title { color: var(--tfe-brand); }

.tfe-card__excerpt {
	margin: 0;
	flex: 1;
	font-size: var(--tfe-text-base);
	line-height: 1.6;
	color: var(--tfe-muted);
}

.tfe-card__byline {
	font-size: var(--tfe-text-xs);
	font-weight: 600;
	color: var(--tfe-muted-2);
}

/*
 * Stretched link — the whole card is clickable, but only the title is in the
 * tab order and read out, so screen-reader users get one clear link instead
 * of four overlapping ones.
 */
.tfe-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Category tile — square-ish, label over a photo. */
.tfe-cat-card { --tfe-card-ratio: 16 / 9; }

.tfe-cat-card__name {
	margin: 0;
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
}

.tfe-cat-card__desc {
	margin: 0;
	font-size: var(--tfe-text-base);
	color: var(--tfe-muted);
}

/* Featured / editor's-pick card — image beside copy on wide screens. */
.tfe-feature-card { --tfe-card-ratio: 16 / 9; border-color: var(--tfe-brand); }

@media (min-width: 768px) {
	.tfe-feature-card {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.tfe-feature-card .tfe-card__media { height: 100%; aspect-ratio: auto; }

	.tfe-feature-card .tfe-card__body {
		justify-content: center;
		padding: clamp(24px, 3vw, 44px);
		gap: 14px;
	}

	.tfe-feature-card .tfe-card__title { font-size: var(--tfe-text-h2); }
}

/* Author card */
.tfe-author-card { --tfe-card-ratio: 1 / 1; }

.tfe-author-card__name { margin: 0; font-size: var(--tfe-text-h4); }

.tfe-author-card__role {
	margin: 0;
	font-size: var(--tfe-text-base);
	color: var(--tfe-muted);
}

.tfe-author-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--tfe-hairline);
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

/* Author byline block — avatar + name + role. */
.tfe-byline {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tfe-byline__avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background: var(--tfe-brand);
	border-radius: 50%;
	color: #fff;
	font-size: var(--tfe-text-base);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.tfe-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tfe-byline__name { font-weight: 800; color: var(--tfe-ink); }

.tfe-byline__role {
	font-size: var(--tfe-text-xs);
	color: var(--tfe-muted);
}


/* ═══ 10b. CONTACT BLOCKS ═══════════════════════════════════════════ */

/* Course helplines table */
.tfe-helplines {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--tfe-hairline);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius);
	overflow: hidden;
}

.tfe-helplines li {
	margin: 0;
	padding: 14px 16px;
	background: var(--tfe-surface);
	border: 0;
}

.tfe-helplines__label {
	display: block;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.tfe-helplines__value {
	font-size: var(--tfe-text-base);
	font-weight: 700;
	color: var(--tfe-ink);
}

.tfe-helplines a { color: var(--tfe-ink); }
.tfe-helplines a:hover { color: var(--tfe-brand); }

/* Map / office photograph */
.tfe-map {
	overflow: hidden;
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	aspect-ratio: 16 / 9;
}

.tfe-map img { width: 100%; height: 100%; object-fit: cover; }


/* ═══ 10c. DESIGN-MATCH: HEROES, LIST CARDS, TINTED BLOCKS ═════════════════
   Brought in line with the approved page designs for the blog index, category,
   author and single-post views.
   ══════════════════════════════════════════════════════════════════════════ */

/* — Page hero: light variant (blog index, single post) — */

.tfe-page-hero {
	padding-block: var(--tfe-section-y);
	background: var(--tfe-bg);
	border-bottom: 0;
}

/* — Page hero: brand variant (category, author) — */

.tfe-page-hero--brand {
	background: var(--tfe-brand);
}

.tfe-page-hero--brand .tfe-page-hero__title,
.tfe-page-hero--brand :is(h1, h2, h3) { color: #fff; }

.tfe-page-hero--brand .tfe-page-hero__lead,
.tfe-page-hero--brand p { color: rgba(255, 255, 255, 0.88); }

.tfe-page-hero--brand .tfe-breadcrumb,
.tfe-page-hero--brand .tfe-breadcrumb a { color: rgba(255, 255, 255, 0.78); }

.tfe-page-hero--brand .tfe-breadcrumb a:hover,
.tfe-page-hero--brand .tfe-breadcrumb [aria-current="page"] { color: #fff; }

/* Outline pills read as white on the brand ground. */
.tfe-page-hero--brand .tfe-pill {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.tfe-page-hero--brand a.tfe-pill:hover,
.tfe-page-hero--brand a.tfe-pill:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	border-color: #fff;
	color: #fff;
}

/* Category hero: description left, topic pills right. */
.tfe-category-hero {
	display: grid;
	gap: clamp(18px, 2.4vw, 36px);
	align-items: start;
}

@media (min-width: 768px) {
	.tfe-category-hero { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
	.tfe-category-hero__tags { justify-content: flex-end; }
}


/* — Section and card titles carry the brand colour — */

.tfe-card__title a { color: var(--tfe-brand); }
.tfe-card:hover .tfe-card__title,
.tfe-card:hover .tfe-card__title a { color: var(--tfe-brand-700); }


/* — Featured "Editor's pick" card sits in a brand outline — */

.tfe-feature-card .tfe-card__title a { color: var(--tfe-brand); }


/* — Filter pill band sits on white — */

.tfe-filter-band {
	background: var(--tfe-surface);
	border-bottom: 1px solid var(--tfe-hairline);
}


/* ── Horizontal list card (category archives) ──────────────────────────── */

.tfe-list {
	display: flex;
	flex-direction: column;
}

/*
 * Sort control above a listing. Reads as the sentence the design showed —
 * "Sorted by newest" — with the select standing in for the last word.
 */
.tfe-sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.tfe-sort__label {
	font-size: var(--tfe-text-xs);
	font-weight: 600;
	letter-spacing: var(--tfe-tracking-wide);
	color: var(--tfe-muted);
}

/* The global select rule is sized for form fields; this one sits in a line of
   text, so it overrides the width, padding and type size. */
.tfe-sort__select {
	width: auto;
	padding: 7px 12px;
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	color: var(--tfe-brand);
	background-color: var(--tfe-surface);
	border-radius: var(--tfe-radius-sm);
	cursor: pointer;
}

.tfe-sort__select {
	padding-right: 32px;
	background-position: right 12px center;
}

/* Without JavaScript this is how a choice is applied; theme.js removes it and
   submits on change instead. */
.tfe-sort__go { flex: none; }
.tfe-sort--live .tfe-sort__go { display: none; }

.tfe-list-card {
	display: grid;
	gap: clamp(16px, 2.4vw, 32px);
	padding-block: clamp(20px, 2.6vw, 30px);
	border-top: 1px solid var(--tfe-hairline);
	grid-template-columns: minmax(0, 1fr);
}

.tfe-list-card:first-child { border-top: 0; padding-block-start: 0; }

@media (min-width: 576px) {
	.tfe-list-card { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); }
}

.tfe-list-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--tfe-tint-200);
	border: 1px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius);
}

.tfe-list-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter var(--tfe-duration) var(--tfe-ease);
}

.tfe-list-card:hover .tfe-list-card__media img { filter: var(--tfe-media-hover-filter); }

.tfe-list-card__media--empty {
	display: grid;
	place-items: center;
	color: color-mix(in srgb, var(--tfe-brand) 45%, transparent);
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
}

.tfe-list-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.tfe-list-card__meta {
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.tfe-list-card__title {
	margin: 0;
	font-size: var(--tfe-text-h3);
	line-height: var(--tfe-leading-heading);
}

.tfe-list-card__title a { color: var(--tfe-brand); }
.tfe-list-card:hover .tfe-list-card__title a { color: var(--tfe-brand-700); }

.tfe-list-card__excerpt {
	margin: 0;
	font-size: var(--tfe-text-base);
	line-height: 1.6;
	color: var(--tfe-muted);
}

.tfe-list-card__byline {
	font-size: var(--tfe-text-xs);
	font-weight: 600;
	color: var(--tfe-muted-2);
}


/* ── Author hero ───────────────────────────────────────────────────────── */

.tfe-author-hero {
	display: grid;
	gap: clamp(22px, 3vw, 44px);
	align-items: start;
}

@media (min-width: 992px) {
	.tfe-author-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.tfe-author-hero__identity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(16px, 2.4vw, 30px);
}

.tfe-author-hero__portrait {
	flex: none;
	display: grid;
	place-items: center;
	width: clamp(96px, 11vw, 132px);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45);
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--tfe-text-h3);
	font-weight: 800;
}

.tfe-author-hero__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.tfe-author-hero__role {
	margin: 0 0 14px;
	font-size: var(--tfe-text-base);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* The bio sits in a lighter panel beside the identity block. */
.tfe-author-hero__bio {
	margin: 0;
	padding: clamp(20px, 2.4vw, 28px);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--tfe-radius-lg);
	font-size: var(--tfe-text-base);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.tfe-author-hero__bio p:last-child { margin-bottom: 0; }
.tfe-author-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }


/* ── Single post: sidebar ──────────────────────────────────────────────── */

/* ── Single post: comments and related ─────────────────────────────────── */

/* Related blogs close the page on the deeper blue tint, ruled off from the
   white comments band above. */
.tfe-section--related {
	background: var(--tfe-tint-200);
	border-top: 1px solid var(--tfe-hairline-strong);
}

.tfe-section--related .section-title { margin-bottom: var(--tfe-gap); }


/* ═══ 11. PILLS, TAGS & BREADCRUMBS ════════════════════════════════════════ */

.tfe-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 15px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	border: 1.5px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-pill);
	background: var(--tfe-surface);
	color: var(--tfe-muted);
	transition:
		background-color var(--tfe-duration) var(--tfe-ease),
		border-color var(--tfe-duration) var(--tfe-ease),
		color var(--tfe-duration) var(--tfe-ease);
}

a.tfe-pill:hover,
a.tfe-pill:focus-visible {
	background: var(--tfe-tint-200);
	border-color: var(--tfe-hairline-strong);
	color: var(--tfe-brand);
}

.tfe-pill--active,
a.tfe-pill--active:hover {
	background: var(--tfe-brand);
	border-color: var(--tfe-brand);
	color: #fff;
}

.tfe-pill--accent { background: var(--tfe-tint-200); border-color: transparent; color: var(--tfe-brand-700); }

.tfe-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfe-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: var(--tfe-text-sm);
	font-weight: 600;
	color: var(--tfe-muted);
}

.tfe-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.tfe-breadcrumb li + li::before { content: "/"; opacity: 0.45; }
.tfe-breadcrumb a { color: var(--tfe-muted); }
.tfe-breadcrumb a:hover { color: var(--tfe-brand); }
.tfe-breadcrumb [aria-current="page"] { color: var(--tfe-ink); }


/* ═══ 12. ARTICLE & PROSE ══════════════════════════════════════════════════
   Scoped to .tfe-prose so editor content gets typographic defaults without
   those rules leaking into cards, widgets or Elementor sections.
   ══════════════════════════════════════════════════════════════════════════ */

.tfe-prose {
	max-width: var(--tfe-prose);
	font-size: var(--tfe-text-lead);
	line-height: var(--tfe-leading-prose);
	color: var(--tfe-ink-2);
}

.tfe-prose > * + * { margin-top: 1.25em; }

/* The Typography settings print a global `p` size; inside an article,
   paragraphs follow the prose size instead so they match the lists. */
.tfe-prose p { font-size: inherit; line-height: inherit; }

/* Section headings inside an article carry the brand colour, as the design
   does — it is what breaks a long read into scannable blocks. */
.tfe-prose :is(h2, h3, h4) {
	margin-top: 2em;
	margin-bottom: 0.6em;
	color: var(--tfe-brand);
	scroll-margin-top: calc(var(--tfe-header-h) + 24px);
}

.tfe-prose h2 {
	margin-top: 1.6em;
	font-size: var(--tfe-text-h2);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-tight);
	line-height: var(--tfe-leading-heading);
}

.tfe-prose h3 { font-size: var(--tfe-text-h3); }

.tfe-prose > :first-child { margin-top: 0; }

.tfe-prose a { font-weight: 600; text-decoration: underline; }
.tfe-prose a:hover { text-decoration-thickness: 2px; }

.tfe-prose :is(ul, ol) { padding-left: 1.3em; }
.tfe-prose li + li { margin-top: 0.5em; }
.tfe-prose li::marker { color: var(--tfe-brand); }

/* A solid brand panel, not a ruled margin. */
.tfe-prose blockquote {
	margin: 2em 0;
	padding: clamp(20px, 2.4vw, 28px);
	border: 0;
	border-radius: var(--tfe-radius-lg);
	background: var(--tfe-brand);
	font-size: var(--tfe-text-h4);
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
}

.tfe-prose blockquote p { color: #fff; }

.tfe-prose blockquote p:last-child { margin-bottom: 0; }

.tfe-prose :is(img, figure) { border-radius: var(--tfe-radius-lg); overflow: hidden; }

.tfe-prose figcaption {
	margin-top: 10px;
	font-size: var(--tfe-text-xs);
	color: var(--tfe-muted);
	text-align: center;
}

.tfe-prose code {
	padding: 2px 6px;
	font-size: 0.9em;
	background: var(--tfe-tint-200);
	border-radius: 4px;
	color: var(--tfe-brand-700);
}

.tfe-prose pre {
	padding: 20px;
	overflow-x: auto;
	background: var(--tfe-brand-800);
	border-radius: var(--tfe-radius-lg);
	color: #e7f1f8;
}

.tfe-prose pre code { background: none; color: inherit; padding: 0; }

.tfe-prose table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
	font-size: var(--tfe-text-body);
	line-height: 1.6;
}

.tfe-prose :is(th, td) {
	padding: 16px 22px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--tfe-hairline);
	border-right: 1px solid var(--tfe-hairline);
}

.tfe-prose :is(th, td):last-child { border-right: 0; }
.tfe-prose tr:last-child > td { border-bottom: 0; }

/* The first column labels the row, as in the design's comparison table. */
.tfe-prose tbody td:first-child { font-weight: 700; color: var(--tfe-ink); }

.tfe-prose th {
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
	border-bottom: 1.5px solid var(--tfe-hairline-strong);
}

/* Gutenberg wraps tables in a figure; the card is on the table itself. */
.tfe-prose .wp-block-table { overflow: visible; border-radius: 0; }

/* Phones: a wide table scrolls inside its card instead of the page. */
@media (max-width: 767.98px) {
	.tfe-prose table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.tfe-prose :is(th, td) { padding: 12px 16px; min-width: 9rem; }
}

/* Article hero image */
.tfe-article__media {
	margin-bottom: var(--tfe-gap);
	overflow: hidden;
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
	aspect-ratio: 16 / 9;
	background: var(--tfe-tint-100);
}

.tfe-article__media img { width: 100%; height: 100%; object-fit: cover; }

/* Author bio box at the foot of a post */
.tfe-author-box {
	display: grid;
	gap: clamp(18px, 2.4vw, 32px);
	margin-top: 2.5em;
	padding: clamp(22px, 2.6vw, 34px);
	background: var(--tfe-tint-100);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.tfe-author-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.tfe-author-box__header { margin-bottom: 0; align-items: flex-start; gap: 20px; }
.tfe-author-box__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Outlined monogram, larger than the byline's. */
.tfe-author-box .tfe-author-box__avatar {
	width: clamp(72px, 7vw, 104px);
	height: clamp(72px, 7vw, 104px);
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-brand);
	color: var(--tfe-brand);
	font-size: var(--tfe-text-h3);
}

.tfe-author-box .tfe-author-box__name {
	margin: 2px 0 6px;
	font-size: var(--tfe-text-h3);
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-brand);
}

.tfe-author-box .tfe-byline__role { font-size: var(--tfe-text-base); line-height: 1.5; }

/* Long names (and any unbroken string) wrap instead of running into the link. */
.tfe-author-box__identity { min-width: 0; }
.tfe-author-box .tfe-author-box__name { overflow-wrap: anywhere; }
.tfe-author-box__body .btn { white-space: nowrap; }

/* No bio: identity and link on one row, link to the right, centred vertically. */
.tfe-author-box--compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
}

.tfe-author-box--compact .tfe-author-box__header { align-items: center; flex: 1 1 320px; min-width: 0; }
.tfe-author-box--compact .tfe-author-box__body { flex: none; }

.tfe-author-box__label {
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.tfe-author-box p {
	margin: 0;
	font-size: var(--tfe-text-body);
	line-height: 1.75;
	color: var(--tfe-ink-2);
}

/* Big CTA band */
.tfe-cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tfe-gap);
	padding: clamp(28px, 3.6vw, 52px);
	background: var(--tfe-brand-700);
	border-radius: var(--tfe-radius-lg);
	color: #fff;
}

.tfe-cta-band h2 { margin: 0 0 10px; color: #fff; font-size: var(--tfe-text-h2); }
.tfe-cta-band p { margin: 0; max-width: 40em; color: rgba(255, 255, 255, 0.78); }
.tfe-cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* ═══ 13. SIDEBAR & WIDGETS ════════════════════════════════════════════════ */

.tfe-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--tfe-gap);
}

@media (min-width: 992px) {
	.tfe-sidebar--sticky {
		position: sticky;
		top: calc(var(--tfe-header-h) + 24px);
	}
}

.tfe-widget {
	padding: clamp(18px, 2vw, 24px);
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
}

.tfe-widget__title,
.tfe-widget .widget-title {
	margin: 0 0 14px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.tfe-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The divider only belongs on stacked link lists. Pill rows and social icon
 * rows are wrapping clusters, and the rule would draw lines through them.
 */
.tfe-widget ul:not(.tfe-pill-row):not(.tfe-social) li + li {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--tfe-hairline);
}

.tfe-widget :is(.tfe-pill-row, .tfe-social) li {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.tfe-widget a { font-weight: 600; color: var(--tfe-ink); }
.tfe-widget a:hover { color: var(--tfe-brand); }

.tfe-widget--accent {
	background: var(--tfe-tint-100);
	border-color: var(--tfe-hairline-strong);
}

/* The mentor prompt is a solid brand card in the design. */
/*
 * Panel variant: a brand header strip over a white body. Used where the card
 * holds a form — a full brand fill would leave the inputs fighting the ground.
 */
.tfe-widget--panel {
	padding: 0;
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-brand);
	overflow: hidden;
}

.tfe-widget--panel .tfe-widget__title {
	margin: 0;
	padding: 14px 20px;
	background: var(--tfe-brand);
	color: #fff;
	font-size: var(--tfe-text-h4);
	letter-spacing: var(--tfe-tracking-snug);
	text-transform: none;
}

.tfe-widget--panel .tfe-widget__body { padding: 18px 20px 20px; }

.tfe-widget--brand {
	background: var(--tfe-brand);
	border-color: var(--tfe-brand);
	color: #fff;
}

.tfe-widget--brand .tfe-widget__title,
.tfe-widget--brand h2,
.tfe-widget--brand h3 {
	color: #fff;
	font-size: var(--tfe-text-h4);
	letter-spacing: var(--tfe-tracking-snug);
	text-transform: none;
}

.tfe-widget--brand p { color: rgba(255, 255, 255, 0.88); }
.tfe-widget--brand a:not(.btn) { color: #fff; }

.tfe-widget--brand :is(input, select, textarea) {
	background-color: rgba(255, 255, 255, 0.96);
	border-color: transparent;
}

.tfe-widget--brand .btn {
	background: #fff;
	border-color: #fff;
	color: var(--tfe-brand);
}

.tfe-widget--brand .btn:hover {
	background: var(--tfe-brand-300);
	border-color: var(--tfe-brand-300);
	color: var(--tfe-brand-700);
}


.tfe-widget__label {
	display: block;
	margin-bottom: 3px;
	font-size: var(--tfe-text-xs);
	font-weight: 700;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.tfe-widget address { margin: 0; font-style: normal; }

/* Search form */
.tfe-search-form__row { display: flex; gap: 10px; }
.tfe-search-form__row .btn { flex: none; }

/* Numbered "most read" list */
.tfe-rank-list { counter-reset: rank; }

.tfe-rank-list a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: var(--tfe-text-base);
	line-height: 1.45;
}

.tfe-rank-list a::before {
	counter-increment: rank;
	content: counter(rank, decimal-leading-zero);
	flex: none;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	color: var(--tfe-brand);
}

/* Table of contents. Rendered by PHP (inc/toc.php) so it holds its final
   height from the first paint; JS only adds the `is-active` highlight.
   Declared after `.tfe-widget` so the plain-list treatment wins the cascade.
   The design draws one continuous brand rule down the left of the block. */
.tfe-toc {
	padding: 2px 0 2px 22px;
	background: transparent;
	border: 0;
	border-left: 2px solid var(--tfe-brand);
	border-radius: 0;
}

.tfe-toc .tfe-widget__title { margin-bottom: 14px; color: var(--tfe-brand); }

.tfe-toc__list { display: flex; flex-direction: column; gap: 14px; }

.tfe-toc a {
	display: block;
	font-size: var(--tfe-text-body);
	font-weight: 500;
	line-height: 1.4;
	color: var(--tfe-muted);
	transition: color var(--tfe-duration) var(--tfe-ease);
}

.tfe-toc a:hover { color: var(--tfe-brand); }

.tfe-toc a.is-active {
	font-weight: 800;
	color: var(--tfe-brand);
}

/* ── Single post ────────────────────────────────────────────────────────── */

/* Hero: ruled off from the body, brand breadcrumbs, filled category chip. */
.tfe-page-hero--article {
	border-bottom: 1px solid var(--tfe-hairline-strong);
}

.tfe-page-hero--article .tfe-breadcrumb {
	margin-bottom: 22px;
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
}

.tfe-page-hero--article .tfe-breadcrumb a { color: var(--tfe-brand); }
.tfe-page-hero--article .tfe-breadcrumb a:hover { color: var(--tfe-brand-700); }
.tfe-page-hero--article .tfe-breadcrumb li + li::before { color: var(--tfe-muted); }

/* The title sits directly below, so the design ends the trail at the category.
   The full trail stays in the BreadcrumbList schema. */
.tfe-page-hero--article .tfe-breadcrumb li:has(> [aria-current="page"]) { display: none; }

.tfe-article-head .tfe-card__meta {
	margin-bottom: 14px;
	color: var(--tfe-ink-2);
}

.tfe-pill--solid {
	padding: 7px 14px;
	background: var(--tfe-brand);
	border-color: var(--tfe-brand);
	color: #fff;
}

a.tfe-pill--solid:hover,
a.tfe-pill--solid:focus-visible {
	background: var(--tfe-brand-700);
	border-color: var(--tfe-brand-700);
	color: #fff;
}

.tfe-page-hero--article .tfe-page-hero__title {
	max-width: 15em;
	margin-bottom: 18px;
	font-size: var(--tfe-text-h1);
	font-weight: 800;
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-tight);
}

.tfe-page-hero--article .tfe-page-hero__lead {
	max-width: 48rem;
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
	line-height: 1.75;
	color: var(--tfe-ink-2);
}

/* The article column is already the measure; the prose fills it. */
.tfe-article .tfe-prose { max-width: none; color: var(--tfe-ink); }

/* Byline: outlined monogram, brand name, ruled off from the body. */
.tfe-byline--article {
	gap: 18px;
	margin-bottom: 32px;
	padding-bottom: 26px;
	border-bottom: 1.5px solid var(--tfe-hairline-strong);
}

.tfe-byline--article .tfe-byline__avatar {
	width: 64px;
	height: 64px;
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-brand);
	color: var(--tfe-brand);
	font-size: var(--tfe-text-h4);
}

.tfe-byline--article .tfe-byline__name { font-size: var(--tfe-text-h4); }
.tfe-byline--article .tfe-byline__name a { color: var(--tfe-brand); }
.tfe-byline--article .tfe-byline__name a:hover { color: var(--tfe-brand-700); }
.tfe-byline--article .tfe-byline__role { margin-top: 2px; font-size: var(--tfe-text-base); }

/* Sidebar: brand widget titles, ruled "Read next" card, compact mentor CTA. */
.tfe-sidebar--article .tfe-widget__title { color: var(--tfe-brand); }

.tfe-widget--links .tfe-widget__title {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tfe-hairline-strong);
}

.tfe-widget--links ul:not(.tfe-pill-row):not(.tfe-social) li + li {
	margin-top: 16px;
	padding-top: 16px;
	border-top-color: var(--tfe-hairline-strong);
}

.tfe-widget--links a {
	display: block;
	font-size: var(--tfe-text-body);
	font-weight: 700;
	line-height: 1.45;
	color: var(--tfe-brand);
}

.tfe-widget--links a:hover { color: var(--tfe-brand-700); }

.tfe-sidebar--article .tfe-widget--brand .tfe-widget__title {
	margin-bottom: 10px;
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: #fff;
}

.tfe-sidebar--article .tfe-widget--brand p { margin-bottom: 18px; line-height: 1.6; }

/* Comments and the form share the article column's width, not the sidebar's. */
@media (min-width: 992px) {
	.tfe-main-col { max-width: calc(100% - 340px - var(--tfe-gap-lg)); }
}


/* ═══ 14. COMMENTS ═════════════════════════════════════════════════════════ */

.tfe-comments { margin-top: 0; }

.tfe-comments .section-title { margin-bottom: 8px; }

.tfe-comments__lead {
	margin: 0 0 28px;
	font-size: var(--tfe-text-body);
	color: var(--tfe-muted);
}

/* The comments band is white, ruled off from the article above. */
.tfe-section--comments {
	background: var(--tfe-surface);
	border-top: 1px solid var(--tfe-hairline-strong);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each top-level comment is a card and its replies nest inside it. A thread
   with replies sits on the blue tint, a lone comment on white. */
.comment-list > .comment-item {
	margin-bottom: 20px;
	padding: clamp(20px, 2.2vw, 28px);
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
}

.comment-list > .comment-item.parent { background: var(--tfe-tint-100); }

.comment-list .children {
	margin-top: 22px;
	margin-left: clamp(8px, 2vw, 36px);
	padding-left: clamp(16px, 2vw, 24px);
	border-left: 2px solid var(--tfe-hairline-strong);
}

.comment-list .children .comment-item + .comment-item { margin-top: 22px; }

.comment-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.comment-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	overflow: hidden;
	background: var(--tfe-brand);
	border-radius: 50%;
	color: #fff;
	font-size: var(--tfe-text-base);
	font-weight: 800;
	letter-spacing: 0.04em;
}

/* Alternate top-level threads get the light monogram, as in the design. */
.comment-list > .even > .comment-body .comment-avatar {
	background: var(--tfe-tint-200);
	color: var(--tfe-brand);
}

.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 2px;
	font-size: var(--tfe-text-body);
	font-weight: 800;
	letter-spacing: 0;
	color: var(--tfe-brand);
}

.comment-author a { color: inherit; }

.comment-date { margin: 0; font-size: var(--tfe-text-sm); color: var(--tfe-muted); }
.comment-date a { color: inherit; }
.comment-date a:hover { color: var(--tfe-brand); }
.comment-edit { margin-left: 8px; }

.comment-awaiting {
	margin: 0 0 10px;
	font-size: var(--tfe-text-sm);
	font-weight: 700;
	color: var(--tfe-brand-700);
}

.comment-text {
	font-size: var(--tfe-text-body);
	line-height: 1.75;
	color: var(--tfe-ink);
}

.comment-text p { margin-bottom: 0.75em; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-body .reply { margin-top: 14px; }

.comment-reply-link {
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.comment-reply-link:hover { color: var(--tfe-brand-700); }

.comment-author .tfe-author-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wider);
	text-transform: uppercase;
	background: var(--tfe-brand);
	border-radius: var(--tfe-radius-pill);
	color: #fff;
}

/* Reply form */
.comment-respond {
	margin-top: var(--tfe-gap);
	padding: clamp(22px, 2.6vw, 32px);
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-brand);
	border-radius: var(--tfe-radius-lg);
}

/* No comments yet: the form opens the section, so it drops its top margin. */
.tfe-comments > .comment-respond:first-child { margin-top: 0; }

/* Replying in-thread moves the form into a comment card. */
.comment-list .comment-respond { margin-top: 18px; }

.comment-reply-title {
	margin: 0 0 6px;
	font-size: var(--tfe-text-h3);
	font-weight: 800;
	color: var(--tfe-brand);
}

.comment-reply-title small { margin-left: 10px; font-size: var(--tfe-text-sm); }

.comment-notes,
.logged-in-as {
	font-size: var(--tfe-text-sm);
	color: var(--tfe-muted);
}

.comment-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 20px;
}

.comment-form > * { grid-column: 1 / -1; }

@media (min-width: 576px) {
	.comment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.comment-form > .comment-form-author,
	.comment-form > .comment-form-email { grid-column: auto; }
}

.comment-form p { margin-bottom: 18px; }
.comment-form .comment-notes { margin-bottom: 22px; }

.comment-form label {
	display: block;
	margin-bottom: 8px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-ink-2);
}

.comment-form label span { color: var(--tfe-brand); }

.comment-form :is(input[type="text"], input[type="email"], textarea) {
	background: var(--tfe-tint-50);
	border-color: var(--tfe-hairline-strong);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-form-cookies-consent input { flex: none; width: 18px; height: 18px; margin: 0; }

.comment-form-cookies-consent label {
	margin: 0;
	font-size: var(--tfe-text-sm);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tfe-ink-2);
}

.comment-form .form-submit { margin-bottom: 0; }


/* ═══ 15. PAGINATION ═══════════════════════════════════════════════════════ */

.tfe-pagination .pagination {
	--bs-pagination-color: var(--tfe-muted);
	--bs-pagination-bg: var(--tfe-surface);
	--bs-pagination-border-color: var(--tfe-hairline);
	--bs-pagination-border-radius: var(--tfe-radius-pill);
	--bs-pagination-hover-color: var(--tfe-brand);
	--bs-pagination-hover-bg: var(--tfe-tint-200);
	--bs-pagination-hover-border-color: var(--tfe-hairline-strong);
	--bs-pagination-active-bg: var(--tfe-brand);
	--bs-pagination-active-border-color: var(--tfe-brand);
	--bs-pagination-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfe-brand) 18%, transparent);
	--bs-pagination-padding-x: 16px;
	--bs-pagination-padding-y: 9px;
	--bs-pagination-font-size: var(--tfe-text-base);

	gap: 8px;
	flex-wrap: wrap;
}

.tfe-pagination .page-link {
	font-weight: 800;
	border-width: 1.5px;
	border-radius: var(--tfe-radius-pill);
}

/* Prev/next post navigation */
.post-navigation .nav-links { gap: 16px; }

.post-navigation a {
	display: block;
	padding: 18px 22px;
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	font-weight: 700;
	color: var(--tfe-ink);
	transition: border-color var(--tfe-duration) var(--tfe-ease);
}

.post-navigation a:hover { border-color: var(--tfe-hairline-strong); color: var(--tfe-brand); }


/* ═══ 16. FOOTER ═══════════════════════════════════════════════════════════ */

/* Deep navy with a soft brand glow from the top-left corner and a thin accent
   rule along the top edge. */
.tfe-footer {
	position: relative;
	background:
		radial-gradient(110% 130% at 0% 0%, rgba(2, 116, 190, 0.3) 0%, rgba(2, 116, 190, 0) 55%),
		var(--tfe-brand-700);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--tfe-text-body);
}

.tfe-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--tfe-brand) 0%, var(--tfe-brand-300) 50%, var(--tfe-brand) 100%);
}

/* Phones: one stack. From 576px the two link columns sit side by side under
   the brand; from 992px all three share a row in a 5 : 4 : 3 split. */
.tfe-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
	padding-block: 56px 44px;
}

@media (min-width: 576px) {
	.tfe-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
	.tfe-footer__main > .tfe-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
	.tfe-footer__main {
		grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
		gap: 56px;
		padding-block: 64px 52px;
	}

	.tfe-footer__main > .tfe-footer__brand { grid-column: auto; }
}

/* — Brand block — */

/* The mark sits on a white tile so a full-colour logo reads on the dark ground. */
.tfe-footer__logo {
	display: inline-block;
	margin-bottom: 20px;
	padding: 12px 22px;
	background: #fff;
	border-radius: var(--tfe-radius);
	box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.55);
}

.tfe-footer__logo img {
	display: block;
	height: var(--tfe-footer-logo-h, 57px);
	width: auto;
	max-width: 260px;
	object-fit: contain;
}

.tfe-footer__about {
	max-width: 30em;
	margin: 0 0 20px;
	line-height: 1.7;
}

.tfe-footer__brand > :last-child { margin-bottom: 0; }

/* — Column headings — */

/* Any heading, not just the h5 element: the footer markup uses <h2 class="h5">
   so that the document outline stays correct while the size stays small. */
.tfe-footer :is(h1, h2, h3, h4, h5, h6),
.tfe-footer .widget-title {
	margin: 0 0 20px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: #fff;
}

/* A short accent bar under each link-column heading. */
.tfe-footer__col > :is(h2, .widget-title) {
	position: relative;
	padding-bottom: 12px;
}

.tfe-footer__col > :is(h2, .widget-title)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: var(--tfe-brand-300);
}

/* — Link lists — spacing comes from the grid gap, never from li margins. — */

.tfe-footer ul { margin: 0; padding: 0; list-style: none; }

.tfe-footer__col ul {
	display: grid;
	gap: 0px;
}

.tfe-footer__col li { margin: 0; }

/* Blog categories run in two even columns, filled row by row. */
.tfe-footer__col--categories ul {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}

/* `:not(.btn)` matters: .tfe-footer a is more specific than .btn, so without
   it a button in the footer inherits the white link colour and its label
   disappears against the white button face. */
.tfe-footer a:not(.btn) {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color var(--tfe-duration) var(--tfe-ease);
}

.tfe-footer a:not(.btn):hover,
.tfe-footer a:not(.btn):focus-visible { color: #fff; }

/* A short dash slides in ahead of a link on hover. */
.tfe-footer__col a:not(.btn) {
	display: inline-flex;
	align-items: center;
	line-height: 1.4;
}

.tfe-footer__col a:not(.btn)::before {
	content: "";
	flex: none;
	width: 0;
	height: 1.5px;
	margin-right: 0;
	background: var(--tfe-brand-300);
	transition:
		width var(--tfe-duration) var(--tfe-ease),
		margin-right var(--tfe-duration) var(--tfe-ease);
}

.tfe-footer__col a:not(.btn):hover::before,
.tfe-footer__col a:not(.btn):focus-visible::before {
	width: 12px;
	margin-right: 8px;
}

/* The current page reads as active. */
.tfe-footer__col :is(.current-menu-item, .current-cat) > a:not(.btn) { color: #fff; }

/* — Bottom bar — */

.tfe-footer__bottom {
	padding-block: 18px;
	background: rgba(0, 0, 0, 0.18);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

.tfe-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
}

/* Keep the fixed TOP button from sitting on the legal links once the
   container reaches the screen edge. */
@media (max-width: 1399.98px) {
	.tfe-footer__bottom-inner { padding-right: 96px; }
}

@media (max-width: 575.98px) {
	.tfe-footer__bottom-inner {
		justify-content: center;
		padding-right: 0;
		padding-bottom: 52px;
		text-align: center;
	}
}

.tfe-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tfe-footer .tfe-footer__legal a:not(.btn) { color: rgba(255, 255, 255, 0.6); }
.tfe-footer .tfe-footer__legal a:not(.btn):hover { color: #fff; }

/* Back-to-top, revealed by assets/js/theme.js */
.tfe-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1040;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px 0 10px;
	background: var(--tfe-brand);
	border: 0;
	border-radius: var(--tfe-radius-sm);
	color: #fff;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	box-shadow: var(--tfe-shadow);
	transition:
		opacity var(--tfe-duration) var(--tfe-ease),
		transform var(--tfe-duration) var(--tfe-ease),
		visibility var(--tfe-duration);
}

.tfe-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.tfe-to-top:hover { background: var(--tfe-brand-800); color: #fff; }


/* ═══ 16b. INNER PAGES: BANNER, PAGE, CONTACT, ABOUT ═════════════════════
   Every inner page opens on the blue banner (.tfe-page-hero--brand); only the
   single post keeps the light hero. Declared after the footer so these win
   the cascade over the generic component rules above.
   ══════════════════════════════════════════════════════════════════════════ */

/* — Blue banner — */


.tfe-page-hero--brand .tfe-breadcrumb {
	margin-bottom: 4px;
	font-weight: 600;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
}

.tfe-page-hero--brand .tfe-breadcrumb,
.tfe-page-hero--brand .tfe-breadcrumb a,
.tfe-page-hero--brand .tfe-breadcrumb [aria-current="page"] { color: #fff; }

.tfe-page-hero--brand .tfe-breadcrumb a:hover { color: var(--tfe-brand-300); }
.tfe-page-hero--brand .tfe-breadcrumb li + li::before { opacity: 0.7; }

.tfe-page-hero--brand .tfe-page-hero__title {
	max-width: 18em;
	margin-bottom: 4px;
	font-size: var(--tfe-text-h1);
	font-weight: 800;
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-tight);
}

.tfe-page-hero--brand .tfe-page-hero__lead {
	max-width: 46rem;
    font-size: 16px;
	line-height: 1.6;
	color: #fff;
}

.tfe-page-hero--brand .tfe-page-hero__lead p {
	margin: 0;
	font-size: 16px;
	line-height: inherit;
	color: inherit;
}

/* Banner image (category, page or the Theme Settings default — see
   tfe_page_hero_open()). Sits behind the copy with a navy scrim so the white
   text keeps its contrast on any photo; with no image the band stays the
   flat blue above. */
.tfe-page-hero--image {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.tfe-page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tfe-page-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(2, 31, 48, 0.68);
}

@media (min-width: 768px) {
	.tfe-page-hero--image::before {
		background: linear-gradient(90deg, rgba(2, 31, 48, 0.85) 0%, rgba(2, 31, 48, 0.6) 55%, rgba(2, 31, 48, 0.3) 100%);
	}
}

/* Enquire / Explore buttons under the category description. */
.tfe-category-hero__actions { margin-top: 13px; }


/* — Default page: full container width, no sidebar — */

.tfe-page-content .tfe-prose { max-width: none; }


/* — Contact page form (template-parts/form/contact.php) —
   Its own component, independent of the home-page hero enquiry card. */

.tfe-contact-form {
	overflow: hidden;
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-brand);
	border-radius: var(--tfe-radius-lg);
}

.tfe-contact-form__head {
	padding: clamp(18px, 2vw, 24px) clamp(22px, 2.6vw, 30px);
	background: var(--tfe-brand);
}

.tfe-contact-form__title {
	margin: 0;
	font-size: var(--tfe-text-h3);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: #fff;
}

.tfe-contact-form__body { padding: clamp(22px, 2.6vw, 30px); }

.tfe-contact-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px 18px;
	margin-bottom: 24px;
}

@media (min-width: 576px) {
	.tfe-contact-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tfe-contact-form__field--full { grid-column: 1 / -1; }
}

.tfe-contact-form__field { display: block; margin: 0; }

.tfe-contact-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-ink-2);
}

.tfe-contact-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	background-color: var(--tfe-tint-50);
	border-color: var(--tfe-hairline-strong);
}

.tfe-contact-form :is(input, select, textarea):focus { background-color: var(--tfe-surface); }

.tfe-contact-form :is(input, select, textarea)[aria-invalid="true"] { border-color: #b02a2a; }

.tfe-contact-form__note {
	margin: 18px 0 0;
	font-size: var(--tfe-text-sm);
	line-height: 1.5;
	color: var(--tfe-muted);
}


/* — Contact page — */

.tfe-contact-grid {
	display: grid;
	gap: clamp(24px, 3.4vw, 56px);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 992px) {
	.tfe-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tfe-contact-grid__aside {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tfe-contact-card {
	padding: clamp(22px, 2.6vw, 30px);
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
}

.tfe-contact-card__title {
	margin: 0 0 20px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.tfe-contact-card__title--sub {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--tfe-hairline-strong);
}

.tfe-contact-list {
	display: grid;
	gap: 20px;
	margin: 0;
}

.tfe-contact-list dt {
	margin-bottom: 4px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-widest);
	text-transform: uppercase;
	color: var(--tfe-ink-2);
}

.tfe-contact-list dd {
	margin: 0;
	font-size: var(--tfe-text-lead);
	line-height: 1.6;
	color: var(--tfe-ink);
}

.tfe-contact-list address { margin: 0; font-style: normal; }

.tfe-contact-list__link {
	font-weight: 800;
	color: var(--tfe-brand);
	overflow-wrap: anywhere;
}

.tfe-contact-list__link:hover { color: var(--tfe-brand-700); }

.tfe-contact-grid .tfe-map {
	background: var(--tfe-tint-100);
	border: 1.5px solid var(--tfe-hairline-strong);
}

.tfe-contact-content { margin-top: var(--tfe-gap-lg); max-width: none; }


/* — About page — */

/* Title beside buttons — the About template and the Page Title Banner widget. */
.tfe-about-hero,
.tfe-page-hero__row--actions {
	display: grid;
	gap: 24px;
	align-items: center;
}

@media (min-width: 992px) {
	.tfe-about-hero,
	.tfe-page-hero__row--actions { grid-template-columns: minmax(0, 1fr) auto; }
}

.tfe-about-hero .tfe-page-hero__lead,
.tfe-page-hero__row--actions .tfe-page-hero__lead { max-width: 36rem; }

.tfe-about-hero__actions,
.tfe-page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tfe-page-hero__row .tfe-page-hero__lead:last-child { margin-bottom: 0; }

/* Page Title Banner widget: centred option. */
.tfe-page-hero--center { text-align: center; }
.tfe-page-hero--center .tfe-breadcrumb { justify-content: center; }
.tfe-page-hero--center :is(.tfe-page-hero__title, .tfe-page-hero__lead) { margin-inline: auto; }
.tfe-page-hero--center .tfe-page-hero__row--actions { grid-template-columns: minmax(0, 1fr); }
.tfe-page-hero--center .tfe-page-hero__actions { justify-content: center; }

/* Light option: the widget's copy of the blog-post hero, ruled off below. */
.tfe-page-hero--light { border-bottom: 1px solid var(--tfe-hairline-strong); }

/* Stats: one white strip, figures set left as in the design. */
.tfe-stats--start .tfe-stat { text-align: left; }
.tfe-about-stats .tfe-stats { border-width: 1.5px; border-color: var(--tfe-hairline-strong); }
.tfe-about-stats .tfe-stat__label { font-weight: 700; }

.tfe-about-story {
	display: grid;
	gap: var(--tfe-gap-lg);
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
}

@media (min-width: 992px) {
	.tfe-about-story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tfe-about-story--text { grid-template-columns: minmax(0, 46rem); }
}

.tfe-about-story__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--tfe-tint-100);
	border: 1.5px solid var(--tfe-brand);
	border-radius: var(--tfe-radius-lg);
}

.tfe-about-story__media img { width: 100%; height: 100%; object-fit: cover; }

.tfe-about-story .section-header { margin-bottom: 18px; }

.tfe-about-story__body {
	font-size: var(--tfe-text-body);
	line-height: 1.8;
	color: var(--tfe-ink-2);
}

.tfe-about-story__body p { font-size: inherit; line-height: inherit; }

/* Light-blue band ruled top and bottom. */
.tfe-section--band {
	background: var(--tfe-tint-200);
	border-block: 1px solid var(--tfe-hairline-strong);
}

.tfe-value-card {
	height: 100%;
	padding: clamp(20px, 2.2vw, 26px);
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
}

.tfe-value-card__num {
	display: block;
	margin-bottom: 12px;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	color: var(--tfe-brand);
}

.tfe-value-card__title {
	margin: 0 0 10px;
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-brand);
}

.tfe-value-card__text {
	margin: 0;
	font-size: var(--tfe-text-base);
	line-height: 1.65;
	color: var(--tfe-muted-2);
}

.tfe-tint-card {
	height: 100%;
	padding: clamp(20px, 2.2vw, 26px);
	background: var(--tfe-tint-100);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-lg);
}

.tfe-tint-card__title {
	margin: 0 0 14px;
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-brand);
}

.tfe-tint-card p {
	margin: 0;
	font-size: var(--tfe-text-base);
	line-height: 1.7;
	color: var(--tfe-muted-2);
}

.tfe-pill-row--sm { gap: 8px; }

.tfe-pill--outline {
	padding: 6px 13px;
	background: var(--tfe-surface);
	border-color: var(--tfe-hairline-strong);
	color: var(--tfe-brand);
	text-transform: none;
	letter-spacing: 0.02em;
}

.tfe-author-card__tags {
	margin: 2px 0 0;
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-brand);
}

.tfe-author-card .tfe-author-card__name a { color: var(--tfe-brand); }

/* Phones: two portraits per row rather than four full-width squares. */
@media (max-width: 575.98px) {
	.tfe-about-faculty .tfe-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.tfe-about-faculty .tfe-card__body { padding: 14px; }
}

/* Closing banner: full-bleed brand band. */
.tfe-cta-section {
	padding-block: var(--tfe-section-y);
	background: var(--tfe-brand);
	color: #fff;
}

.tfe-cta-section__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px clamp(32px, 6vw, 96px);
}

.tfe-cta-section__title {
	max-width: 12em;
	margin: 0 0 14px;
	font-size: var(--tfe-text-h2);
	font-weight: 800;
	line-height: var(--tfe-leading-heading);
	letter-spacing: var(--tfe-tracking-tight);
	color: #fff;
}

.tfe-cta-section__text {
	max-width: 34em;
	margin: 0;
	font-size: var(--tfe-text-body);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}


/* — Thank-you page (page-thank-you.php) — */

.tfe-thanks {
	max-width: 780px;
	margin-inline: auto;
	padding: clamp(28px, 4vw, 48px);
	background: var(--tfe-surface);
	border: 1.5px solid var(--tfe-hairline-strong);
	border-radius: var(--tfe-radius-xl);
	box-shadow: 0 24px 50px -32px color-mix(in srgb, var(--tfe-brand-800) 40%, transparent);
	text-align: center;
}

.tfe-thanks__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--tfe-brand);
	color: #fff;
	box-shadow: 0 0 0 8px var(--tfe-tint-200);
}

/* The page content: heading and intro centred, the steps list left-aligned. */
.tfe-thanks__body { text-align: left; }

.tfe-thanks__body > h2:first-child,
.tfe-thanks__body > h2:first-child + p { text-align: center; }

.tfe-thanks__body > h2:first-child { margin-top: 0; }

/* An ordered list in the content becomes numbered step cards. */
.tfe-thanks__body ol {
	display: grid;
	gap: 12px;
	margin: 1.25em 0;
	padding: 0;
	list-style: none;
	counter-reset: tfe-step;
}

.tfe-thanks__body ol > li {
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 62px;
	background: var(--tfe-tint-100);
	border: 1px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	font-size: var(--tfe-text-body);
	line-height: 1.6;
	counter-increment: tfe-step;
}

.tfe-thanks__body ol > li::before {
	content: counter(tfe-step);
	position: absolute;
	top: 14px;
	left: 16px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tfe-brand);
	color: #fff;
	font-size: var(--tfe-text-base);
	font-weight: 800;
}

.tfe-thanks__body ol > li strong { color: var(--tfe-ink); }

.tfe-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

.tfe-thanks__contact {
	margin: 20px 0 0;
	font-size: var(--tfe-text-base);
	color: var(--tfe-muted);
}

.tfe-thanks__contact a { font-weight: 700; color: var(--tfe-brand); }

@media (max-width: 575.98px) {
	.tfe-thanks { padding: 26px 18px; }
	.tfe-thanks__body ol > li { padding: 14px 14px 14px 56px; }
	.tfe-thanks__actions .btn { flex: 1 1 100%; }
}


/* ═══ 16c. POLISH: CONSISTENCY & RESPONSIVE ════════════════════════════════
   One button for every section action, calmer spacing, and phone layouts that
   read as designed rather than merely stacked.
   ══════════════════════════════════════════════════════════════════════════ */

/* — Section actions ("All articles", "All categories", "View author profiles")
     are the header's navy pill; they never stretch or wrap. — */
.tfe-view-all {
	flex: none;
	white-space: nowrap;
}

.section-bar { align-items: flex-end; }
.section-bar .section-header { max-width: 46rem; }

.tfe-view-all-row {
	margin-top: var(--tfe-gap);
	text-align: center;
}

/* Phones: heading first, button under it, left-aligned — not squeezed beside. */
@media (max-width: 575.98px) {
	.section-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

/* — Featured "Read article" button inside the stretched-link card — */
.tfe-card__cta {
	align-self: flex-start;
	margin-top: 6px;
	pointer-events: none;   /* the whole card is the link */
}

.tfe-card:hover .tfe-card__cta {
	--bs-btn-bg: var(--tfe-brand);
	--bs-btn-border-color: var(--tfe-brand);
}

/* — Cards: one title colour, one rhythm — */
.tfe-cat-card__name a { color: var(--tfe-brand); }
.tfe-cat-card:hover .tfe-cat-card__name a { color: var(--tfe-brand-700); }

.tfe-cat-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.55;
}

.tfe-card__body > .tfe-card__byline { margin-top: auto; padding-top: 4px; }

/* — Category archive list: keep the thumbnail at the card ratio (16:10) so
     the title text designed into the artwork is not cropped. — */
.tfe-list-card__media { aspect-ratio: 16 / 10; }

@media (min-width: 576px) {
	.tfe-list-card { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); align-items: center; }
}

/* — Blog filter pills: one scrollable row on phones instead of two ragged lines — */
@media (max-width: 767.98px) {
	.tfe-filter-band .tfe-pill-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(var(--tfe-gutter) * -1);
		padding-inline: var(--tfe-gutter);
		padding-block: 2px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	.tfe-filter-band .tfe-pill-row::-webkit-scrollbar { display: none; }
	.tfe-filter-band .tfe-pill-row li { flex: none; scroll-snap-align: start; }
}

/* — Page banner on phones: tighter gap under the breadcrumbs — */
@media (max-width: 767.98px) {
	.tfe-page-hero--brand .tfe-breadcrumb { margin-bottom: 14px; }
}

/* — Touch targets: the small pill is at least 40px tall on touch screens — */
@media (pointer: coarse) {
	.btn-sm { min-height: 40px; }
}


/* ═══ 17. WORDPRESS CORE CLASSES ═══════════════════════════════════════════
   Required for the Theme Check / accessibility-ready standard.
   ══════════════════════════════════════════════════════════════════════════ */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip-path: none;
	background: var(--tfe-surface);
	color: var(--tfe-brand);
	font-size: var(--tfe-text-base);
	font-weight: 800;
	border-radius: var(--tfe-radius);
	box-shadow: var(--tfe-shadow);
}

.alignleft {
	float: left;
	margin: 0.4em 1.6em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.6em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
}

.alignwide {
	width: min(100vw - (var(--tfe-gutter) * 2), 1100px);
	max-width: none;
	margin-inline: calc(50% - min(100vw - (var(--tfe-gutter) * 2), 1100px) / 2);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	border-radius: 0;
}

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--tfe-text-xs); color: var(--tfe-muted); text-align: center; }
.sticky .tfe-card { border-color: var(--tfe-brand); }
.gallery-caption { font-size: var(--tfe-text-xs); }
.bypostauthor { display: block; }

.wp-block-image img { border-radius: var(--tfe-radius-lg); }

.wp-block-button__link {
	border-radius: var(--tfe-radius-pill);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wider);
	text-transform: uppercase;
}


/* ═══ 18. ELEMENTOR ═════════════════════════════════════════════════════════
   Two jobs: stop the theme and the builder fighting over width, and make
   Elementor's OWN widgets inherit the brand, so a page built from stock
   elements matches a page built from theme templates.

   The theme deliberately does not reimplement Image Box, Icon Box, Heading,
   Button, Divider, Accordion, Tabs or Form — Elementor ships those, and a
   second copy would mean two things to maintain and two places an editor has
   to learn. They are restyled here instead. Only widgets that read WordPress
   data or theme meta (reading time, mentor profiles, category images, the
   enquiry handler) are registered by the theme; see inc/elementor/widgets/.
   ══════════════════════════════════════════════════════════════════════════ */

/* — Width — */

.tfe-elementor-full .tfe-container,
.elementor-page .tfe-content-area > .tfe-container {
	max-width: none;
	padding-inline: 0;
}

.elementor-widget-container > .tfe-prose { max-width: none; }

/*
 * Bootstrap's reboot sets `img { max-width: 100% }`, which Elementor's
 * absolutely-positioned shape dividers and background overlays do not expect.
 */
.elementor-shape svg,
.elementor-background-overlay { max-width: none; }

.elementor-editor-active .tfe-section:empty { min-height: 80px; }


/* — Heading & text — */

.elementor-widget-heading .elementor-heading-title {
	font-family: var(--tfe-font);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-ink);
}

.elementor-widget-text-editor { color: var(--tfe-muted); line-height: 1.7; }
.elementor-widget-text-editor a { color: var(--tfe-brand); font-weight: 600; }


/* — Button: pill, uppercase, brand — */

.elementor-widget-button .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-sm);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wider);
	text-transform: uppercase;
	line-height: 1.1;
	padding: 14px 22px;
	border-radius: var(--tfe-radius-pill);
	background: var(--tfe-brand);
	color: #fff;
	transition:
		background-color var(--tfe-duration) var(--tfe-ease),
		color var(--tfe-duration) var(--tfe-ease),
		transform var(--tfe-duration) var(--tfe-ease);
}

.elementor-widget-button .elementor-button:hover { background: var(--tfe-brand-700); color: #fff; }
.elementor-widget-button .elementor-button:active { transform: translateY(1px); }


/* — Image Box: use this for the design's "story" section — */

.elementor-widget-image-box .elementor-image-box-wrapper { align-items: center; }

.elementor-widget-image-box .elementor-image-box-img {
	overflow: hidden;
	border-radius: var(--tfe-radius-lg);
	border: 2px solid var(--tfe-hairline);
}

.elementor-widget-image-box .elementor-image-box-img img {
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: filter var(--tfe-duration) var(--tfe-ease);
}

.elementor-widget-image-box:hover .elementor-image-box-img img {
	filter: var(--tfe-media-hover-filter);
}

.elementor-widget-image-box .elementor-image-box-title {
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-h2);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	line-height: var(--tfe-leading-heading);
	color: var(--tfe-ink);
}

.elementor-widget-image-box .elementor-image-box-description {
	font-size: var(--tfe-text-lead);
	line-height: 1.7;
	color: var(--tfe-muted);
}


/* — Icon Box: use this for the numbered feature grid and value cards — */

.elementor-widget-icon-box .elementor-icon-box-wrapper {
	height: 100%;
	padding: clamp(20px, 2.4vw, 28px);
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	transition: border-color var(--tfe-duration) var(--tfe-ease);
}

.elementor-widget-icon-box:hover .elementor-icon-box-wrapper {
	border-color: var(--tfe-hairline-strong);
}

.elementor-widget-icon-box .elementor-icon { color: var(--tfe-brand); }

.elementor-widget-icon-box .elementor-icon-box-title {
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-ink);
}

.elementor-widget-icon-box .elementor-icon-box-description {
	font-size: var(--tfe-text-base);
	line-height: 1.65;
	color: var(--tfe-muted);
}

/*
 * Optional variants, applied by typing the class into Elementor's
 * Advanced → CSS Classes box. This is how the design's numbered "01 / 02 / 03"
 * cards and its tinted mission/vision row are built from the stock widget.
 */
.elementor-widget-icon-box.tfe-tinted .elementor-icon-box-wrapper {
	background: var(--tfe-tint-100);
}

.elementor-widget-icon-box.tfe-numbered .elementor-icon {
	font-size: var(--tfe-text-h3);
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--tfe-tracking-tight);
	color: color-mix(in srgb, var(--tfe-brand) 35%, transparent);
}


/* — Icon List, Divider, Social Icons — */

.elementor-widget-icon-list .elementor-icon-list-item { font-size: var(--tfe-text-base); }

.elementor-widget-icon-list .elementor-icon-list-icon i,
.elementor-widget-icon-list .elementor-icon-list-icon svg {
	color: var(--tfe-brand);
	fill: var(--tfe-brand);
}

.elementor-widget-icon-list .elementor-icon-list-text { color: var(--tfe-muted); }

.elementor-widget-divider { --divider-color: var(--tfe-hairline); }

.elementor-widget-social-icons .elementor-social-icon {
	background: var(--tfe-brand);
	border-radius: 50%;
}

.elementor-widget-social-icons .elementor-social-icon:hover { background: var(--tfe-brand-700); }


/* — Accordion / Toggle: the FAQ pattern — */

.elementor-widget-accordion .elementor-accordion-item,
.elementor-widget-toggle .elementor-toggle-item {
	margin-bottom: 10px;
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	overflow: hidden;
}

.elementor-widget-accordion .elementor-tab-title,
.elementor-widget-toggle .elementor-tab-title {
	padding: 16px 20px;
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	background: var(--tfe-surface);
	color: var(--tfe-ink);
}

.elementor-widget-accordion .elementor-tab-title.elementor-active,
.elementor-widget-toggle .elementor-tab-title.elementor-active {
	background: var(--tfe-tint-100);
	color: var(--tfe-brand);
}

.elementor-widget-accordion .elementor-tab-content,
.elementor-widget-toggle .elementor-tab-content {
	padding: 4px 20px 20px;
	font-size: var(--tfe-text-base);
	line-height: 1.7;
	color: var(--tfe-muted);
	border: 0;
}


/* — Elementor Pro: Posts, Form, Call to Action — */

.elementor-widget-posts .elementor-post__card {
	background: var(--tfe-surface);
	border: 2px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius-lg);
	overflow: hidden;
}

.elementor-widget-posts .elementor-post__title,
.elementor-widget-posts .elementor-post__title a {
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-h4);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
	color: var(--tfe-ink);
}

.elementor-widget-posts .elementor-post__excerpt p { color: var(--tfe-muted); }

.elementor-widget-posts .elementor-post__meta-data {
	color: var(--tfe-muted);
	font-size: var(--tfe-text-xs);
}

.elementor-widget-form .elementor-field-group > label {
	font-size: var(--tfe-text-xs);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wide);
	text-transform: uppercase;
	color: var(--tfe-muted);
}

.elementor-widget-form .elementor-field-textual {
	padding: 13px 16px;
	font-family: var(--tfe-font);
	font-size: var(--tfe-text-base);
	background: var(--tfe-surface-2);
	border: 1.5px solid var(--tfe-hairline);
	border-radius: var(--tfe-radius);
}

.elementor-widget-form .elementor-field-textual:focus {
	background: var(--tfe-surface);
	border-color: var(--tfe-brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tfe-brand) 18%, transparent);
}

.elementor-widget-form .elementor-button[type="submit"] {
	border-radius: var(--tfe-radius-pill);
	background: var(--tfe-brand);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-wider);
	text-transform: uppercase;
}

.elementor-widget-call-to-action .elementor-cta__title {
	font-family: var(--tfe-font);
	font-weight: 800;
	letter-spacing: var(--tfe-tracking-snug);
}

.elementor-widget-call-to-action .elementor-cta__button {
	border-radius: var(--tfe-radius-pill);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: var(--tfe-tracking-wider);
}


/* ═══ 19. UTILITIES ═══════════════════════════════════════════════════════
   The first three are used by templates. The rest are for editors to type into
   Elementor's Advanced → CSS Classes box; Bootstrap covers everything else.
   ═════════════════════════════════════════════════════════════════════════ */

.tfe-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tfe-muted { color: var(--tfe-muted); }
.tfe-prose-width { max-width: var(--tfe-prose); }

.tfe-grayscale { filter: grayscale(1) contrast(1.08); }

.tfe-section--dark { background: var(--tfe-brand-700); color: #fff; }
.tfe-section--dark :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.tfe-section--dark p,
.tfe-section--dark .section-lead { color: rgba(255, 255, 255, 0.78); }
.tfe-section--dark .section-eyebrow { color: var(--tfe-brand-300); }

/* Reveal-on-scroll. The class is added by JS, never in markup: if the script
   fails the content is simply visible rather than stuck at opacity 0. */
.tfe-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 500ms var(--tfe-ease),
		transform 500ms var(--tfe-ease);
}

.tfe-reveal.is-visible { opacity: 1; transform: none; }


/* ═══ 20. MOTION & PRINT ═══════════════════════════════════════════════════ */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.tfe-reveal { opacity: 1; transform: none; }
	.tfe-card:hover { transform: none; }
}

@media print {
	.tfe-topbar,
	.tfe-header,
	.tfe-footer,
	.tfe-sidebar,
	.tfe-to-top,
	.tfe-cta-band,
	.comment-respond { display: none !important; }

	body { background: #fff; font-size: 11pt; }
	.tfe-prose { max-width: none; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
