/*
 * jointforlife-new - main stylesheet (design D, MIOT logo colours)
 * File: wp-content/themes/jointforlife-new/assets/css/main.css
 */

:root {
	--jfl-blue: #006cb8;        /* MIOT logo blue */
	--jfl-blue-dark: #00467f;   /* deep logo blue */
	--jfl-blue-deeper: #003560;
	--jfl-blue-photo: #0a5a98;
	--jfl-gold: #fdb912;        /* MIOT logo yellow */
	--jfl-gold-hover: #ffc93f;
	--jfl-gold-dark: #8a5a00;
	--jfl-tint-blue: #e8f2fa;
	--jfl-tint-gold: #fff4d6;
	--jfl-bg-soft: #f4f8fb;
	--jfl-text: #1c2b39;
	--jfl-muted: #4a5b6b;
	--jfl-border: #e1ebf3;
	--jfl-on-dark: #d3e2f0;
	--jfl-danger: #b3261e;
	--jfl-radius: 24px;
	--jfl-radius-lg: 32px;
	--jfl-shadow: 0 16px 44px rgba(16, 34, 51, 0.12);
	--jfl-container: 1300px;
	--jfl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--jfl-serif: "Outfit", "DM Sans", Arial, sans-serif;
	--jfl-header-h: 96px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--jfl-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--jfl-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--jfl-blue);
}

a:hover,
a:focus-visible {
	color: var(--jfl-blue-dark);
}

:focus-visible {
	outline: 3px solid var(--jfl-gold);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	color: var(--jfl-blue-dark);
	line-height: 1.2;
}

.jfl-container {
	width: 100%;
	max-width: var(--jfl-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.jfl-skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	color: var(--jfl-blue-dark);
}

/* ---------- Buttons & links ---------- */
.jfl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jfl-btn--gold {
	background: var(--jfl-gold);
	color: var(--jfl-blue-dark);
}

.jfl-btn--gold:hover,
.jfl-btn--gold:focus-visible {
	background: var(--jfl-gold-hover);
	color: var(--jfl-blue-deeper);
}

.jfl-btn--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.jfl-btn--ghost:hover,
.jfl-btn--ghost:focus-visible {
	background: #fff;
	color: var(--jfl-blue-dark);
}

.jfl-btn--deep {
	background: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-btn--deep:hover,
.jfl-btn--deep:focus-visible {
	background: var(--jfl-blue-deeper);
	color: #fff;
}

.jfl-btn--white {
	background: #fff;
	color: var(--jfl-blue);
}

.jfl-btn--white:hover,
.jfl-btn--white:focus-visible {
	background: var(--jfl-gold);
	color: var(--jfl-blue-dark);
}

.jfl-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.jfl-link-strong {
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.jfl-link-strong:hover {
	text-decoration: underline;
}

/* ---------- Text helpers ---------- */
.jfl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--jfl-blue);
}

.jfl-eyebrow--light {
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	letter-spacing: 0.02em;
	text-transform: none;
}

.jfl-eyebrow--onblue {
	color: #cfe3f5;
}

.jfl-eyebrow__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jfl-gold);
}

.jfl-heading {
	margin: 0 0 18px;
	font-family: var(--jfl-serif);
	font-size: 46px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--jfl-blue-dark);
}

.jfl-heading--sm {
	font-size: 34px;
	margin-bottom: 14px;
}

.jfl-heading--light {
	color: #fff;
}

/* ---------- Top bar ---------- */
.jfl-topbar {
	background: var(--jfl-bg-soft);
	border-bottom: 1px solid var(--jfl-border);
	font-size: 13px;
	color: var(--jfl-muted);
}

.jfl-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 9px;
	padding-bottom: 9px;
}

.jfl-topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-topbar a {
	color: var(--jfl-muted);
	text-decoration: none;
}

.jfl-topbar a:hover {
	color: var(--jfl-blue);
}

.jfl-topbar__right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.jfl-topbar .jfl-topbar__emergency {
	margin-right: 8px;
	font-weight: 800;
	color: var(--jfl-danger);
}

.jfl-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--jfl-border);
}

.jfl-topbar .jfl-social {
	color: var(--jfl-blue);
}

.jfl-topbar .jfl-social:hover {
	background: var(--jfl-blue);
	border-color: var(--jfl-blue);
	color: #fff;
}

/* ---------- Header ---------- */
.jfl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--jfl-border);
	transition: box-shadow 0.2s ease;
}

.admin-bar .jfl-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .jfl-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .jfl-header {
		top: 0;
	}
}

.jfl-header.is-stuck {
	box-shadow: 0 6px 24px rgba(16, 34, 51, 0.1);
}

.jfl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0 16px;
	min-height: var(--jfl-header-h);
}

.jfl-logo {
	flex-shrink: 0;
}

.jfl-logo img {
	display: block;
	width: auto;
	max-height: 72px;
}

.jfl-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.jfl-header__cta {
	white-space: nowrap;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Desktop menu ---------- */
.jfl-menu,
.jfl-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-menu {
	display: flex;
	align-items: center;
	gap: 0;
}

.jfl-menu li {
	position: relative;
}

.jfl-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--jfl-text);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jfl-menu > li:hover > a,
.jfl-menu > li:focus-within > a {
	background: var(--jfl-tint-blue);
	color: var(--jfl-blue-dark);
}

.jfl-menu > li.current-menu-item > a,
.jfl-menu > li.current-menu-ancestor > a {
	color: var(--jfl-blue);
	background: var(--jfl-tint-blue);
}

.jfl-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 50;
	min-width: 260px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--jfl-border);
	border-radius: 18px;
	box-shadow: var(--jfl-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Invisible bridge so the submenu does not close while moving the mouse to it */
.jfl-menu > li > .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}

.jfl-menu .sub-menu .sub-menu {
	top: -8px;
	left: calc(100% + 6px);
}

.jfl-menu li:hover > .sub-menu,
.jfl-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.jfl-menu .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--jfl-text);
	text-decoration: none;
}

.jfl-menu .sub-menu a:hover,
.jfl-menu .sub-menu a:focus-visible,
.jfl-menu .sub-menu .current-menu-item > a {
	background: var(--jfl-tint-blue);
	color: var(--jfl-blue-dark);
}

.jfl-menu .sub-menu .menu-item-has-children > a::after {
	content: "";
	float: right;
	width: 6px;
	height: 6px;
	margin-top: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.jfl-menu-toggle,
.jfl-sub-toggle {
	display: none;
}

/* ---------- Mobile menu ---------- */
@media (max-width: 1320px) {
	.jfl-header__inner {
		min-height: 80px;
		flex-wrap: wrap;
	}

	.jfl-logo img {
		max-height: 60px;
	}

	.jfl-menu-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 48px;
		height: 48px;
		padding: 0 13px;
		background: var(--jfl-tint-blue);
		border: 0;
		border-radius: 14px;
		cursor: pointer;
	}

	.jfl-menu-toggle__line {
		display: block;
		height: 2px;
		border-radius: 2px;
		background: var(--jfl-blue-dark);
	}

	.jfl-menu-toggle[aria-expanded="true"] {
		background: var(--jfl-blue-dark);
	}

	.jfl-menu-toggle[aria-expanded="true"] .jfl-menu-toggle__line {
		background: #fff;
	}

	.jfl-nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		width: 100%;
		max-height: calc(100vh - 130px);
		overflow-y: auto;
		padding: 8px 0 20px;
	}

	.jfl-nav.is-open {
		display: flex;
	}

	.jfl-menu {
		display: block;
		border-top: 1px solid var(--jfl-border);
	}

	.jfl-menu > li > a {
		min-height: 48px;
		padding: 12px 56px 12px 4px;
		border-radius: 0;
		border-bottom: 1px solid var(--jfl-border);
		white-space: normal;
	}

	.jfl-menu > li:hover > a,
	.jfl-menu > li:focus-within > a {
		background: none;
	}

	.jfl-menu .sub-menu,
	.jfl-menu .sub-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 4px 0 8px 14px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.jfl-menu > li > .sub-menu::before {
		display: none;
	}

	.jfl-menu li.is-open > .sub-menu {
		display: block;
	}

	.jfl-menu .sub-menu a {
		padding: 10px 56px 10px 8px;
	}

	.jfl-menu .sub-menu .menu-item-has-children > a::after {
		display: none;
	}

	.jfl-sub-toggle {
		display: block;
		position: absolute;
		top: 2px;
		right: 0;
		width: 48px;
		height: 44px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.jfl-sub-toggle::before {
		content: "";
		display: block;
		width: 8px;
		height: 8px;
		margin: 0 auto;
		border-right: 2px solid var(--jfl-blue-dark);
		border-bottom: 2px solid var(--jfl-blue-dark);
		transform: rotate(45deg);
		transition: transform 0.2s ease;
	}

	.jfl-sub-toggle[aria-expanded="true"]::before {
		transform: rotate(-135deg);
	}

	.jfl-topbar__item--address {
		display: none;
	}
}

/* ---------- Carousel (shared) ---------- */
.jfl-carousel {
	position: relative;
	overflow: hidden;
}

.jfl-carousel__track {
	display: flex;
	transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.jfl-carousel__track > * {
	flex: 0 0 100%;
	min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
	.jfl-carousel__track {
		transition: none;
	}
}

.jfl-carousel__prev,
.jfl-carousel__next {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.jfl-carousel__prev { left: 14px; }
.jfl-carousel__next { right: 14px; }

.jfl-carousel__prev:hover,
.jfl-carousel__next:hover {
	background: var(--jfl-gold);
}

.jfl-carousel__prev::before,
.jfl-carousel__next::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	margin: 0 auto;
	border-top: 2px solid var(--jfl-blue-dark);
	border-right: 2px solid var(--jfl-blue-dark);
}

.jfl-carousel__prev::before { transform: translateX(2px) rotate(-135deg); }
.jfl-carousel__next::before { transform: translateX(-2px) rotate(45deg); }

.jfl-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.jfl-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.jfl-carousel__dot.is-active {
	width: 26px;
	background: var(--jfl-gold);
}

/* ---------- Home: hero ---------- */
.jfl-hero {
	background: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 52px;
	padding-top: 80px;
	padding-bottom: 140px;
}

.jfl-hero__text {
	flex: 1 1 480px;
	min-width: 0;
}

.jfl-hero__title {
	margin: 8px 0 22px;
	font-family: var(--jfl-serif);
	font-size: 76px;
	font-weight: 400;
	line-height: 1.02;
	color: #fff;
}

.jfl-hero__accent {
	color: var(--jfl-gold);
}

.jfl-hero__lead {
	max-width: 540px;
	margin: 0 0 30px;
	font-size: 18px;
	line-height: 1.7;
	color: var(--jfl-on-dark);
}

.jfl-hero__media {
	flex: 1 1 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.jfl-hero__slider {
	border-radius: var(--jfl-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	background: var(--jfl-blue-photo);
}

.jfl-hero__slide {
	aspect-ratio: 16 / 11;
}

.jfl-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jfl-hero__badge {
	position: relative;
	z-index: 3;
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: -44px 0 0 28px;
	padding: 16px 22px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.jfl-hero__badge-num {
	font-family: var(--jfl-serif);
	font-size: 34px;
	line-height: 1;
	color: var(--jfl-blue);
}

.jfl-hero__badge-text {
	font-size: 14px;
	line-height: 1.4;
	color: var(--jfl-muted);
}

/* ---------- Home: highlight boxes ---------- */
.jfl-boxes {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: -72px 0 0;
	padding: 0;
	list-style: none;
	border-radius: var(--jfl-radius);
	overflow: hidden;
	box-shadow: var(--jfl-shadow);
}

.jfl-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 34px 32px;
	color: #fff;
}

.jfl-box--deep { background: var(--jfl-blue-deeper); }
.jfl-box--blue { background: var(--jfl-blue); }
.jfl-box--gold { background: var(--jfl-gold); color: var(--jfl-blue-dark); }

.jfl-box__title {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 28px;
	font-weight: 400;
	color: inherit;
}

.jfl-box__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #e3effa;
}

.jfl-box--gold .jfl-box__text {
	color: #1f3a52;
}

.jfl-box__btn {
	align-self: flex-start;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.jfl-box__btn:hover,
.jfl-box__btn:focus-visible {
	background: #fff;
	color: var(--jfl-blue-dark);
}

.jfl-box--gold .jfl-box__btn {
	border-color: var(--jfl-blue-dark);
	color: var(--jfl-blue-dark);
}

.jfl-box--gold .jfl-box__btn:hover,
.jfl-box--gold .jfl-box__btn:focus-visible {
	background: var(--jfl-blue-dark);
	color: #fff;
}

/* ---------- Home: stats ---------- */
.jfl-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 40px 0 0;
	padding: 30px 34px;
	list-style: none;
	border-radius: var(--jfl-radius);
	background: #fff;
	box-shadow: var(--jfl-shadow);
}

.jfl-stats__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jfl-stats__num {
	font-family: var(--jfl-serif);
	font-size: 40px;
	line-height: 1.1;
	color: var(--jfl-blue);
}

.jfl-stats__label {
	font-size: 14px;
	color: var(--jfl-muted);
}

/* ---------- Sections ---------- */
.jfl-section {
	padding: 96px 0;
}

.jfl-section--tint {
	background: var(--jfl-bg-soft);
}

.jfl-section-head {
	margin-bottom: 40px;
}

.jfl-section-head--center {
	text-align: center;
}

.jfl-section-head--center .jfl-heading {
	margin-bottom: 10px;
}

.jfl-section-head__lead {
	margin: 0;
	font-size: 17px;
	color: var(--jfl-muted);
}

.jfl-section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.jfl-section-head--split > div {
	max-width: 680px;
}

.jfl-section-head--split .jfl-heading {
	margin-bottom: 0;
}

.jfl-split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}

.jfl-split--top {
	align-items: flex-start;
}

.jfl-split__media,
.jfl-split__text {
	flex: 1 1 460px;
	min-width: 0;
}

.jfl-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--jfl-radius-lg);
	background: var(--jfl-tint-blue);
}

/* ---------- Home: joint picker ---------- */
.jfl-joints {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.jfl-joint {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
	border-radius: 28px;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jfl-joint:hover,
.jfl-joint:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--jfl-shadow);
	color: inherit;
}

.jfl-joint--blue { background: var(--jfl-tint-blue); }
.jfl-joint--gold { background: var(--jfl-tint-gold); }

.jfl-joint__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: #fff;
	color: var(--jfl-blue);
}

.jfl-joint--gold .jfl-joint__icon,
.jfl-joint--gold .jfl-joint__more {
	color: var(--jfl-gold-dark);
}

.jfl-joint__title {
	margin-top: 4px;
	font-size: 23px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-joint__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--jfl-muted);
}

.jfl-joint__more {
	margin-top: auto;
	font-weight: 800;
	color: var(--jfl-blue);
}

/* ---------- Home: journey ---------- */
.jfl-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: var(--jfl-radius);
	background: #fff;
	border: 1px solid var(--jfl-border);
}

.jfl-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--jfl-blue);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.jfl-step__title {
	margin: 4px 0 0;
	font-size: 18px;
	font-weight: 800;
}

.jfl-step__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jfl-muted);
}

/* ---------- Home: why MIOT ---------- */
.jfl-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.jfl-feature {
	display: flex;
	gap: 14px;
}

.jfl-feature__icon {
	flex: 0 0 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--jfl-tint-gold);
	color: var(--jfl-gold-dark);
}

.jfl-feature__title {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-feature__text {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: var(--jfl-muted);
}

/* ---------- Home: patient stories ---------- */
.jfl-stories {
	background: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-stories__inner {
	max-width: 980px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding-top: 96px;
	padding-bottom: 96px;
	text-align: center;
}

.jfl-stories__quote {
	font-family: var(--jfl-serif);
	font-size: 90px;
	line-height: 0.6;
	color: var(--jfl-gold);
}

.jfl-stories__title {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 38px;
	font-weight: 400;
	line-height: 1.3;
	color: #fff;
}

.jfl-stories__link {
	font-weight: 800;
	color: var(--jfl-gold);
	text-decoration: none;
}

.jfl-stories__link:hover,
.jfl-stories__link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Home: international panel + news ---------- */
.jfl-panel {
	padding: 40px;
	border-radius: 30px;
}

.jfl-panel--blue {
	background: var(--jfl-blue);
	color: #fff;
}

.jfl-panel__text {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.65;
	color: #e3effa;
}

.jfl-news-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.jfl-news {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-news__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 0;
	border-bottom: 1px solid var(--jfl-border);
	text-decoration: none;
}

.jfl-news__date {
	font-size: 13px;
	color: var(--jfl-muted);
}

.jfl-news__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--jfl-blue-dark);
}

.jfl-news__item:hover .jfl-news__title,
.jfl-news__item:focus-visible .jfl-news__title {
	color: var(--jfl-blue);
	text-decoration: underline;
}

/* ---------- Home: enquiry banner ---------- */
.jfl-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 96px;
	padding: 48px;
	border-radius: 30px;
	background: var(--jfl-gold);
}

.jfl-cta__text {
	flex: 1 1 520px;
	min-width: 0;
}

.jfl-cta__text p {
	margin: 0;
	font-size: 17px;
	color: #2a3a4a;
}

.jfl-cta__text a {
	color: var(--jfl-blue-dark);
}

/* ---------- Footer ---------- */
.jfl-footer {
	background: var(--jfl-blue-dark);
	color: var(--jfl-on-dark);
}

.jfl-footer a {
	color: var(--jfl-on-dark);
	text-decoration: none;
}

.jfl-footer a:hover,
.jfl-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.jfl-footer__cols {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
	gap: 36px;
	padding: 64px 0 44px;
	font-size: 14px;
	line-height: 1.85;
}

.jfl-footer__brand {
	margin: 0 0 8px;
	font-family: var(--jfl-serif);
	font-size: 28px;
	line-height: 1.2;
	color: #fff;
}

.jfl-footer__col p {
	margin: 0 0 10px;
}

.jfl-footer__heading {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
}

.jfl-footer__address {
	margin: 0 0 10px;
	font-style: normal;
}

.jfl-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-footer .jfl-footer__emergency {
	font-weight: 800;
	color: #ffb4ab;
}

.jfl-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 20px 0 28px;
	border-top: 1px solid #1d5c93;
	font-size: 13px;
}

.jfl-footer__copy {
	margin: 0;
}

.jfl-footer .jfl-footer__top {
	font-weight: 700;
}

/* ---------- Inner pages (General Content and others) ---------- */
.jfl-page-title {
	background: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-page-title__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 48px;
	padding-bottom: 52px;
}

.jfl-page-title__heading {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.1;
	color: #fff;
}

.jfl-breadcrumbs {
	font-size: 14px;
	color: var(--jfl-on-dark);
}

.jfl-breadcrumbs a {
	color: var(--jfl-on-dark);
	text-decoration: none;
}

.jfl-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.jfl-breadcrumbs__sep {
	margin: 0 8px;
	color: var(--jfl-gold);
}

.jfl-page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 80px;
}

.jfl-page-layout--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
}

.jfl-content {
	font-size: 16px;
	line-height: 1.8;
	color: #33465a;
}

.jfl-content h2 { font-family: var(--jfl-serif); font-weight: 400; font-size: 32px; margin: 36px 0 14px; }
.jfl-content h3 { font-size: 21px; font-weight: 800; margin: 28px 0 12px; }
.jfl-content h4 { font-size: 18px; font-weight: 800; margin: 24px 0 10px; }
.jfl-content p { margin: 0 0 18px; }
.jfl-content ul,
.jfl-content ol { margin: 0 0 18px; padding-left: 22px; }
.jfl-content li { margin-bottom: 6px; }
.jfl-content img { max-width: 100%; height: auto; border-radius: 16px; }
.jfl-content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.jfl-content th,
.jfl-content td { padding: 12px 14px; border: 1px solid var(--jfl-border); text-align: left; vertical-align: top; }
.jfl-content th { background: var(--jfl-tint-blue); color: var(--jfl-blue-dark); }
.jfl-content iframe { max-width: 100%; border: 0; border-radius: 16px; }
.jfl-content blockquote { margin: 0 0 18px; padding: 18px 22px; border-radius: 16px; background: var(--jfl-tint-gold); }

.jfl-page-content__image {
	margin-bottom: 28px;
}

.jfl-page-content__image img {
	border-radius: var(--jfl-radius);
}

.jfl-page-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.jfl-widget {
	padding: 26px;
	border-radius: var(--jfl-radius);
	background: var(--jfl-bg-soft);
}

.jfl-widget__title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-widget--gold {
	background: var(--jfl-gold);
	color: var(--jfl-blue-dark);
}

.jfl-side-menu,
.jfl-side-menu .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-side-menu .children {
	padding-left: 14px;
}

.jfl-side-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--jfl-text);
	text-decoration: none;
}

.jfl-side-menu a:hover,
.jfl-side-menu a:focus-visible {
	background: #fff;
	color: var(--jfl-blue-dark);
}

.jfl-side-menu .current_page_item > a {
	background: var(--jfl-blue);
	color: #fff;
}

.jfl-enquiry {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.jfl-enquiry li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 70, 127, 0.18);
	font-size: 15px;
}

.jfl-enquiry a {
	color: var(--jfl-blue-dark);
	word-break: break-word;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.jfl-hero__title { font-size: 60px; }
	.jfl-heading { font-size: 38px; }
	.jfl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-page-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.jfl-boxes,
	.jfl-joints {
		grid-template-columns: minmax(0, 1fr);
	}

	.jfl-hero__inner {
		padding-top: 52px;
		padding-bottom: 112px;
	}
}

@media (max-width: 600px) {
	body { font-size: 15px; }
	.jfl-container { padding-left: 16px; padding-right: 16px; }
	.jfl-section { padding: 64px 0; }
	.jfl-hero__title { font-size: 48px; }
	.jfl-hero__lead { font-size: 16px; }
	.jfl-heading { font-size: 32px; }
	.jfl-heading--sm { font-size: 28px; }
	.jfl-stories__title { font-size: 28px; }
	.jfl-page-title__heading { font-size: 36px; }
	.jfl-steps,
	.jfl-features,
	.jfl-footer__cols { grid-template-columns: minmax(0, 1fr); }
	.jfl-stats { padding: 24px; }
	.jfl-stats__num { font-size: 32px; }
	.jfl-box,
	.jfl-panel,
	.jfl-cta { padding: 28px 24px; }
	.jfl-cta { margin-bottom: 64px; }
	.jfl-hero__badge { margin-left: 16px; }
	.jfl-topbar__item--mail { display: none; }
	.jfl-split { gap: 36px; }
}

/* =====================================================================
 * Light colour scheme
 * Replaces the deep blue backgrounds with light logo-colour tints.
 * ===================================================================== */

/* Hero */
.jfl-hero {
	background: var(--jfl-tint-blue);
	color: var(--jfl-text);
}

.jfl-hero__title {
	color: var(--jfl-blue-dark);
}

.jfl-hero__accent {
	color: var(--jfl-blue);
	background-image: linear-gradient(var(--jfl-gold), var(--jfl-gold));
	background-repeat: no-repeat;
	background-size: 100% 0.16em;
	background-position: 0 92%;
}

.jfl-hero__lead {
	color: var(--jfl-muted);
}

.jfl-eyebrow--light {
	background: #fff;
	border-color: #cfe0ee;
	color: var(--jfl-blue-dark);
}

.jfl-hero .jfl-btn--ghost {
	color: var(--jfl-blue-dark);
	border-color: #b9d3e8;
	background: #fff;
}

.jfl-hero .jfl-btn--ghost:hover,
.jfl-hero .jfl-btn--ghost:focus-visible {
	background: var(--jfl-blue-dark);
	border-color: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-hero__slider {
	background: #cfe2f2;
	box-shadow: 0 20px 50px rgba(0, 70, 127, 0.18);
}

.jfl-hero__badge {
	box-shadow: 0 14px 34px rgba(0, 70, 127, 0.18);
}

/* Highlight boxes: MIOT blue, light blue, MIOT yellow */
.jfl-box--deep {
	background: var(--jfl-blue);
}

.jfl-box--blue {
	background: #d9eaf8;
	color: var(--jfl-blue-dark);
}

.jfl-box--blue .jfl-box__text {
	color: #2c4357;
}

.jfl-box--blue .jfl-box__btn {
	border-color: var(--jfl-blue-dark);
	color: var(--jfl-blue-dark);
}

.jfl-box--blue .jfl-box__btn:hover,
.jfl-box--blue .jfl-box__btn:focus-visible {
	background: var(--jfl-blue-dark);
	color: #fff;
}

.jfl-boxes {
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14);
}

/* Patient stories */
.jfl-stories {
	background: var(--jfl-tint-gold);
	color: var(--jfl-text);
}

.jfl-stories__quote {
	color: #e3a100;
}

.jfl-stories__title {
	color: var(--jfl-blue-dark);
}

.jfl-stories__link {
	color: var(--jfl-blue);
}

.jfl-stories__link:hover,
.jfl-stories__link:focus-visible {
	color: var(--jfl-blue-dark);
}

/* Footer */
.jfl-footer {
	background: #eef5fb;
	color: #33465a;
	border-top: 1px solid var(--jfl-border);
}

.jfl-footer a {
	color: #33465a;
}

.jfl-footer a:hover,
.jfl-footer a:focus-visible {
	color: var(--jfl-blue);
}

.jfl-footer__brand,
.jfl-footer__heading {
	color: var(--jfl-blue-dark);
}

.jfl-footer .jfl-footer__emergency {
	color: var(--jfl-danger);
}

.jfl-footer__bottom {
	border-top-color: #d5e3ef;
}

/* Inner page title band */
.jfl-page-title {
	background: var(--jfl-tint-blue);
	color: var(--jfl-text);
}

.jfl-page-title__heading {
	color: var(--jfl-blue-dark);
}

.jfl-breadcrumbs,
.jfl-breadcrumbs a {
	color: var(--jfl-muted);
}

.jfl-breadcrumbs a:hover {
	color: var(--jfl-blue);
}

.jfl-breadcrumbs__sep {
	color: var(--jfl-blue);
}

/* Softer yellow/orange: lighter tones for buttons and the large yellow blocks */
:root {
	--jfl-gold: #ffd36b;
	--jfl-gold-hover: #ffc94a;
	--jfl-gold-soft: #ffe7ad;
}

.jfl-box--gold,
.jfl-cta,
.jfl-widget--gold {
	background: var(--jfl-gold-soft);
}

/* =====================================================================
 * Restored old-site sections (gallery, checklist, six cards,
 * testimonials, enquiry list, footer banners and 3 columns)
 * ===================================================================== */

/* Checklist ("You can find your Joint for Life at a centre") */
.jfl-checklist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.jfl-checklist li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--jfl-border);
	font-size: 16px;
	line-height: 1.6;
}

.jfl-checklist__icon {
	flex: 0 0 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--jfl-tint-gold);
	color: var(--jfl-gold-dark);
}

.jfl-split__body {
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--jfl-muted);
}

.jfl-split__body strong {
	color: var(--jfl-blue-dark);
}

/* Infrastructure gallery */
.jfl-gallery {
	border-radius: var(--jfl-radius-lg);
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14);
	background: var(--jfl-tint-blue);
}

.jfl-gallery__item {
	position: relative;
	margin: 0;
}

.jfl-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.jfl-gallery__item figcaption {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 13px;
	font-weight: 700;
	color: var(--jfl-blue-dark);
}

/* Six feature cards */
.jfl-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.jfl-card {
	display: flex;
	flex-direction: column;
	border-radius: 28px;
	background: #fff;
	border: 1px solid var(--jfl-border);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jfl-card:hover {
	box-shadow: var(--jfl-shadow);
	transform: translateY(-4px);
}

.jfl-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 210px;
	padding: 18px;
}

.jfl-card--blue .jfl-card__media { background: var(--jfl-tint-blue); }
.jfl-card--gold .jfl-card__media { background: var(--jfl-tint-gold); }

.jfl-card__media img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	border-radius: 12px;
}

.jfl-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 24px 26px 26px;
}

.jfl-card__title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--jfl-muted);
}

.jfl-card__more {
	margin-top: auto;
	padding-top: 6px;
	font-weight: 800;
	text-decoration: none;
}

.jfl-card__more:hover {
	text-decoration: underline;
}

/* Video heading spacing */
.jfl-video {
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14);
}

/* Testimonials */
.jfl-testimonials {
	padding: 34px 34px 30px;
	border-radius: 28px;
	background: #fff;
	border: 1px solid var(--jfl-border);
}

.jfl-testimonials__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.jfl-testimonials__quote {
	font-family: var(--jfl-serif);
	font-size: 84px;
	line-height: 0.8;
	color: #e3a100;
}

.jfl-testimonials__slider {
	margin-bottom: 18px;
	padding-bottom: 56px;
}

.jfl-testimonial {
	margin: 0;
}

.jfl-testimonial__text {
	margin: 0 0 14px;
	padding: 0;
	background: none;
}

.jfl-testimonial__text p {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 24px;
	line-height: 1.4;
	color: var(--jfl-blue-dark);
}

.jfl-testimonial__author {
	font-size: 14px;
	font-weight: 700;
	color: var(--jfl-muted);
}

.jfl-testimonials__nav {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	gap: 10px;
}

.jfl-testimonials__nav .jfl-carousel__prev,
.jfl-testimonials__nav .jfl-carousel__next {
	position: static;
	margin: 0;
	background: var(--jfl-tint-blue);
	box-shadow: none;
}

.jfl-testimonials__nav .jfl-carousel__prev:hover,
.jfl-testimonials__nav .jfl-carousel__next:hover {
	background: var(--jfl-gold);
}

/* Make an Enquiry list in the banner */
.jfl-cta__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 17px;
	color: #2a3a4a;
}

.jfl-cta__list a {
	color: var(--jfl-blue-dark);
	word-break: break-word;
}

/* Footer banners + 3 columns (old footer content) */
.jfl-footer__banners {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 48px 0 0;
	list-style: none;
}

.jfl-footer .jfl-footer__banner-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 24px 28px;
	border-radius: 20px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jfl-footer .jfl-footer__banner-link:hover,
.jfl-footer .jfl-footer__banner-link:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--jfl-shadow);
	text-decoration: none;
}

.jfl-footer .jfl-footer__banner--gold .jfl-footer__banner-link {
	background: var(--jfl-gold-soft);
	color: var(--jfl-blue-dark);
}

.jfl-footer .jfl-footer__banner--blue .jfl-footer__banner-link {
	background: var(--jfl-blue);
	color: #fff;
}

.jfl-footer__banner-title {
	font-family: var(--jfl-serif);
	font-size: 24px;
	line-height: 1.2;
}

.jfl-footer__banner-text {
	font-size: 14px;
	font-weight: 600;
}

.jfl-footer__cols--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-top: 48px;
}

.jfl-footer__heading::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 8px;
	border-radius: 3px;
	background: var(--jfl-gold);
}

.jfl-footer__links li {
	padding: 3px 0;
}

@media (max-width: 1024px) {
	.jfl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.jfl-footer__banners,
	.jfl-footer__cols--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.jfl-cards { grid-template-columns: minmax(0, 1fr); }
	.jfl-testimonials { padding: 26px 22px; }
	.jfl-testimonial__text p { font-size: 20px; }
}

/* =====================================================================
 * Treatments merge: Infrastructure note, Prosthesis mini card,
 * Clinical Team note
 * ===================================================================== */
.jfl-section-head + .jfl-cards {
	margin-top: 8px;
}

.jfl-note {
	margin-top: 24px;
}

.jfl-note--boxed {
	margin-top: 28px;
	padding: 22px 24px;
	border-radius: 20px;
	background: var(--jfl-tint-blue);
}

.jfl-note__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-note__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--jfl-muted);
}

.jfl-mini {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding: 18px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--jfl-border);
}

.jfl-mini__img {
	flex: 0 0 120px;
	width: 120px;
	height: 90px;
	object-fit: contain;
	border-radius: 12px;
	background: var(--jfl-tint-blue);
}

.jfl-mini__title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-mini__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--jfl-muted);
}

.jfl-photo--wide {
	aspect-ratio: 2 / 1;
}

@media (min-width: 1025px) {
	.jfl-section-head + .jfl-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.jfl-mini {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =====================================================================
 * 35,000+ moved from the hero badge into the stats strip (5 items);
 * on tablets and phones the hero slider shows above the text.
 * ===================================================================== */
.jfl-hero__badge {
	display: none;
}

.jfl-stats {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.jfl-hero__media {
		order: -1;
	}

	.jfl-hero__inner {
		gap: 32px;
		padding-top: 32px;
	}
}

@media (max-width: 1024px) {
	.jfl-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.jfl-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jfl-stats__item:first-child {
		grid-column: 1 / -1;
	}

	.jfl-hero__inner {
		padding-top: 20px;
	}

	.jfl-hero__slider {
		border-radius: 22px;
	}
}

/* =====================================================================
 * Heading font weight
 * ===================================================================== */
:root {
	--jfl-heading-weight: 600;
}

.jfl-heading,
.jfl-hero__title,
.jfl-box__title,
.jfl-stats__num,
.jfl-stories__title,
.jfl-footer__brand,
.jfl-footer__banner-title,
.jfl-page-title__heading,
.jfl-content h2 {
	font-weight: var(--jfl-heading-weight);
	letter-spacing: -0.01em;
}

.jfl-testimonial__text p {
	font-weight: 600;
}

/* =====================================================================
 * Procedure / Section template: section tabs, pager, sidebar extras
 * ===================================================================== */
.jfl-procedure__section {
	margin: 4px 0 0;
}

.jfl-tabs {
	background: #fff;
	border-bottom: 1px solid var(--jfl-border);
}

.jfl-tabs__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 14px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.jfl-tabs__list li {
	flex: 0 0 auto;
}

.jfl-tabs__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--jfl-border);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--jfl-text);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jfl-tabs__link:hover,
.jfl-tabs__link:focus-visible {
	background: var(--jfl-tint-blue);
	border-color: #cfe0ee;
	color: var(--jfl-blue-dark);
}

.jfl-tabs__link.is-current {
	background: var(--jfl-blue);
	border-color: var(--jfl-blue);
	color: #fff;
}

.jfl-procedure .jfl-page-layout {
	padding-top: 44px;
}

/* Previous / next */
.jfl-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--jfl-border);
}

.jfl-pager__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 22px;
	border-radius: 18px;
	background: var(--jfl-bg-soft);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.jfl-pager__link:hover,
.jfl-pager__link:focus-visible {
	background: var(--jfl-tint-blue);
}

.jfl-pager__link--next {
	grid-column: 2;
	text-align: right;
}

.jfl-pager__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--jfl-muted);
}

.jfl-pager__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--jfl-blue-dark);
}

/* Sidebar emergency box */
.jfl-widget--emergency {
	background: #fdecea;
}

.jfl-widget--emergency .jfl-widget__title {
	color: var(--jfl-danger);
}

.jfl-widget--emergency .jfl-link-strong {
	color: var(--jfl-danger);
}

@media (max-width: 600px) {
	.jfl-pager {
		grid-template-columns: minmax(0, 1fr);
	}

	.jfl-pager__link--next {
		grid-column: auto;
	}
}

/* =====================================================================
 * Old page content: floated images and item lists
 * ===================================================================== */
.jfl-content::after {
	content: "";
	display: table;
	clear: both;
}

.jfl-content p {
	display: flow-root; /* each paragraph contains its own floated image */
}

.jfl-content .alignleft {
	float: left;
	clear: left;
	max-width: 42%;
	margin: 6px 26px 18px 0;
}

.jfl-content .alignright {
	float: right;
	max-width: 42%;
	margin: 6px 0 18px 26px;
}

.jfl-content .aligncenter {
	display: block;
	margin: 0 auto 18px;
}

.jfl-content h2,
.jfl-content h3,
.jfl-content .jfl-list-title {
	clear: both;
}

.jfl-content .jfl-list-title {
	margin: 28px 0 12px;
	font-size: 18px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-content .jfl-list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.jfl-content .jfl-list li {
	position: relative;
	margin: 0;
	padding: 10px 0 10px 30px;
	border-bottom: 1px solid var(--jfl-border);
}

.jfl-content .jfl-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 19px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--jfl-blue);
	border-right: 2px solid var(--jfl-blue);
	transform: rotate(45deg);
}

@media (max-width: 600px) {
	.jfl-content .alignleft,
	.jfl-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 16px;
	}
}

/* Section tabs: wrap on desktop (all visible), thin sideways scroll on phones/tablets */
@media (min-width: 1025px) {
	.jfl-tabs__list {
		flex-wrap: wrap;
		overflow-x: visible;
	}
}

@media (max-width: 1024px) {
	.jfl-tabs__list {
		scrollbar-width: none;
	}

	.jfl-tabs__list::-webkit-scrollbar {
		display: none;
	}

	.jfl-tabs {
		position: relative;
	}

	.jfl-tabs::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 36px;
		pointer-events: none;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
	}
}

/* Videos pages (Procedure template) */
.jfl-videos {
	display: grid;
	gap: 24px;
	margin-top: 8px;
}

/* =====================================================================
 * Testimonials page
 * ===================================================================== */
.jfl-testimonials-page__intro {
	max-width: 860px;
	margin-bottom: 40px;
}

.jfl-quotes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 64px;
	padding: 0;
	list-style: none;
}

.jfl-quote__inner {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 36px 34px 30px;
	border-radius: 28px;
	background: var(--jfl-tint-blue);
}

.jfl-quote--gold .jfl-quote__inner {
	background: var(--jfl-tint-gold);
}

.jfl-quote__mark {
	display: block;
	height: 44px;
	font-family: var(--jfl-serif);
	font-size: 84px;
	line-height: 0.9;
	color: #e3a100;
}

.jfl-quote__text {
	margin: 0 0 18px;
}

.jfl-quote__text p {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--jfl-blue-dark);
}

.jfl-quote__author {
	font-size: 14px;
	font-weight: 700;
	color: var(--jfl-muted);
}

.jfl-cta--page {
	margin-bottom: 0;
}

@media (max-width: 860px) {
	.jfl-quotes {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.jfl-quote__inner {
		padding: 28px 24px 24px;
	}

	.jfl-quote__text p {
		font-size: 19px;
	}
}

/* =====================================================================
 * Enquiry / Contact page
 * ===================================================================== */
.jfl-contact__intro {
	max-width: 860px;
	margin-bottom: 40px;
}

.jfl-contact-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.jfl-contact-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 26px;
	border-radius: var(--jfl-radius);
	background: var(--jfl-bg-soft);
	border: 1px solid var(--jfl-border);
}

.jfl-contact-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #fff;
	color: var(--jfl-blue);
}

.jfl-contact-card__title {
	margin: 4px 0 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-contact-card__text {
	margin: 0;
	font-size: 15px;
	font-style: normal;
	line-height: 1.7;
	color: var(--jfl-muted);
	word-break: break-word;
}

.jfl-contact-card--emergency {
	background: #fdecea;
	border-color: #f6d3cf;
}

.jfl-contact-card--emergency .jfl-contact-card__icon,
.jfl-contact-card--emergency .jfl-contact-card__title,
.jfl-contact-card--emergency .jfl-link-strong {
	color: var(--jfl-danger);
}

.jfl-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.jfl-contact__map {
	position: relative;
	min-height: 360px;
	border-radius: var(--jfl-radius);
	overflow: hidden;
	background: var(--jfl-tint-blue);
}

.jfl-contact__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jfl-contact__enquiry {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 1024px) {
	.jfl-contact-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jfl-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.jfl-contact-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.jfl-contact__map {
		min-height: 280px;
	}
}

/* =====================================================================
 * Enquiry / Contact (Split) page
 * ===================================================================== */
.jfl-contact2__top {
	background: var(--jfl-tint-blue);
}

.jfl-contact2__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: stretch;
	padding-top: 56px;
	padding-bottom: 64px;
}

.jfl-contact2__title {
	margin: 12px 0 18px;
}

.jfl-contact2__intro {
	margin-bottom: 24px;
}

.jfl-contact2__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: var(--jfl-radius);
	background: #fff;
	box-shadow: 0 12px 34px rgba(0, 70, 127, 0.1);
}

.jfl-contact2__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px 24px;
	border-bottom: 1px solid var(--jfl-border);
}

.jfl-contact2__item:last-child {
	border-bottom: 0;
}

.jfl-contact2__icon {
	flex: 0 0 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--jfl-tint-blue);
	color: var(--jfl-blue);
}

.jfl-contact2__label {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jfl-blue);
}

.jfl-contact2__value {
	display: block;
	margin: 0 0 6px;
	font-size: 16px;
	font-style: normal;
	line-height: 1.6;
	color: var(--jfl-text);
	word-break: break-word;
}

.jfl-contact2__map {
	position: relative;
	min-height: 520px;
	border-radius: var(--jfl-radius-lg);
	overflow: hidden;
	background: #d9eaf8;
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14);
}

.jfl-contact2__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jfl-contact2__emergency {
	background: #b3261e;
	color: #fff;
}

.jfl-contact2__emergency-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 26px;
	padding-bottom: 26px;
}

.jfl-contact2__emergency-title {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 26px;
	font-weight: var(--jfl-heading-weight, 600);
	color: #fff;
}

.jfl-btn--emergency {
	background: #fff;
	color: #b3261e;
}

.jfl-btn--emergency:hover,
.jfl-btn--emergency:focus-visible {
	background: #fdecea;
	color: #8c1d17;
}

.jfl-btn--emergency-ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

.jfl-btn--emergency-ghost:hover,
.jfl-btn--emergency-ghost:focus-visible {
	background: #fff;
	color: #b3261e;
}

.jfl-contact2__bottom {
	padding-top: 64px;
	padding-bottom: 80px;
}

.jfl-contact2__bottom .jfl-cta__text p {
	margin: 0;
}

@media (max-width: 1024px) {
	.jfl-contact2__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.jfl-contact2__map {
		min-height: 360px;
	}
}

@media (max-width: 600px) {
	.jfl-contact2__grid {
		padding-top: 32px;
		padding-bottom: 40px;
		gap: 28px;
	}

	.jfl-contact2__item {
		padding: 16px 18px;
	}

	.jfl-contact2__map {
		min-height: 280px;
	}

	.jfl-contact2__emergency-title {
		font-size: 22px;
	}

	.jfl-contact2__bottom {
		padding-top: 40px;
		padding-bottom: 56px;
	}
}

/* =====================================================================
 * Contact – TEST 10 layouts (temporary: remove with the test template)
 * ===================================================================== */
.jfl-ct-switch {
	background: #1c2b39;
	color: #fff;
	font-size: 14px;
}

.jfl-ct-switch__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.jfl-ct-switch__label {
	margin-right: 6px;
	font-weight: 700;
}

.jfl-ct-switch__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.jfl-ct-switch__link:hover,
.jfl-ct-switch__link.is-current {
	background: var(--jfl-gold);
	color: #1c2b39;
}

.jfl-ct-switch__name {
	margin-left: 8px;
	color: #ffd36b;
	font-weight: 700;
}

.jfl-ct-intro {
	max-width: 860px;
	margin-bottom: 32px;
}

.jfl-ct-address {
	margin: 0 0 10px;
	font-style: normal;
	line-height: 1.7;
}

.jfl-ct-muted {
	color: var(--jfl-muted);
}

.jfl-ct-redtext,
.jfl-ct .jfl-ct-redtext {
	color: var(--jfl-danger);
}

.jfl-ct-note {
	margin-top: 20px;
}

.jfl-ct-label {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jfl-blue);
}

.jfl-ct-h1 {
	margin: 0 0 18px;
}

.jfl-ct p {
	margin: 0 0 10px;
}

/* Maps */
.jfl-ct-map {
	position: relative;
	border-radius: var(--jfl-radius);
	overflow: hidden;
	background: #d9eaf8;
}

.jfl-ct-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.jfl-ct-map--xs { height: 160px; margin-top: 18px; }
.jfl-ct-map--sm { height: 240px; margin-top: 16px; }
.jfl-ct-map--md { min-height: 340px; }
.jfl-ct-map--tall { min-height: 520px; border-radius: var(--jfl-radius-lg); }
.jfl-ct-map--fill-col { min-height: 460px; border-radius: 0; }
.jfl-ct-map--fill { position: absolute; inset: 0; border-radius: 0; }

/* Shared grids */
.jfl-ct-two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}

.jfl-ct-two--wide {
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	align-items: stretch;
}

.jfl-ct-two--aside {
	grid-template-columns: minmax(0, 1fr) 380px;
}

.jfl-ct-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.jfl-ct-tint {
	background: var(--jfl-tint-blue);
}

.jfl-ct-pad {
	padding-top: 56px;
	padding-bottom: 64px;
	align-items: stretch;
}

/* 1: cards */
.jfl-ct-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.jfl-ct-card {
	padding: 24px;
	border-radius: var(--jfl-radius);
	background: var(--jfl-bg-soft);
	border: 1px solid var(--jfl-border);
	font-size: 15px;
	color: var(--jfl-muted);
	word-break: break-word;
}

.jfl-ct-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

.jfl-ct-card--red {
	background: #fdecea;
	border-color: #f6d3cf;
}

.jfl-ct-card--red .jfl-ct-card__title,
.jfl-ct-card--red .jfl-link-strong {
	color: var(--jfl-danger);
}

/* 2 / 7: lists and red bar */
.jfl-ct-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfl-ct-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--jfl-border);
	word-break: break-word;
}

.jfl-ct-list--white {
	padding: 4px 22px;
	border-radius: var(--jfl-radius);
	background: #fff;
	box-shadow: 0 12px 34px rgba(0, 70, 127, 0.1);
}

.jfl-ct-list--white li:last-child {
	border-bottom: 0;
}

.jfl-ct-red {
	background: var(--jfl-danger);
	color: #fff;
}

.jfl-ct-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.jfl-ct-bar--big {
	padding-top: 40px;
	padding-bottom: 40px;
}

.jfl-ct .jfl-ct-bar__title {
	margin: 0;
	font-family: var(--jfl-serif);
	font-size: 26px;
	font-weight: var(--jfl-heading-weight, 600);
}

.jfl-ct-bar__kicker {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

.jfl-ct .jfl-ct-bar__big {
	margin: 4px 0 0;
	font-family: var(--jfl-serif);
	font-size: 56px;
	font-weight: var(--jfl-heading-weight, 600);
	line-height: 1;
	color: #fff;
}

.jfl-btn--emergency { background: #fff; color: var(--jfl-danger); }
.jfl-btn--emergency:hover, .jfl-btn--emergency:focus-visible { background: #fdecea; color: #8c1d17; }
.jfl-btn--emergency-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.jfl-btn--emergency-ghost:hover, .jfl-btn--emergency-ghost:focus-visible { background: #fff; color: var(--jfl-danger); }
.jfl-btn--emergency-solid { background: var(--jfl-danger); color: #fff; }
.jfl-btn--emergency-solid:hover, .jfl-btn--emergency-solid:focus-visible { background: #8c1d17; color: #fff; }
.jfl-btn--blue { background: var(--jfl-blue); color: #fff; }
.jfl-btn--blue:hover, .jfl-btn--blue:focus-visible { background: var(--jfl-blue-dark); color: #fff; }
.jfl-btn--outline { border-color: var(--jfl-blue-dark); color: var(--jfl-blue-dark); }
.jfl-btn--outline:hover, .jfl-btn--outline:focus-visible { background: var(--jfl-blue-dark); color: #fff; }

/* 3: full map + floating card */
.jfl-ct-hero-map {
	position: relative;
	min-height: 560px;
	background: #d9eaf8;
}

.jfl-ct-hero-map__inner {
	position: relative;
	z-index: 2;
	padding-top: 48px;
	padding-bottom: 48px;
	pointer-events: none;
}

.jfl-ct-float {
	max-width: 420px;
	padding: 32px;
	border-radius: var(--jfl-radius);
	background: #fff;
	box-shadow: 0 20px 48px rgba(0, 70, 127, 0.22);
	pointer-events: auto;
	word-break: break-word;
}

/* 4: centred */
.jfl-ct-centred {
	max-width: 900px;
	text-align: center;
}

.jfl-ct-centred .jfl-ct-map {
	margin-top: 28px;
	text-align: left;
}

.jfl-ct .jfl-ct-bignum {
	margin: 6px 0 8px;
	font-family: var(--jfl-serif);
	font-size: 64px;
	font-weight: var(--jfl-heading-weight, 600);
	line-height: 1.05;
}

.jfl-ct-bignum a {
	color: var(--jfl-blue-dark);
	text-decoration: none;
}

.jfl-ct .jfl-ct-bigmail {
	font-size: 20px;
	word-break: break-word;
}

/* 5: three boxes */
.jfl-ct-three {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.jfl-ct-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 28px;
	border-radius: var(--jfl-radius);
	border: 1px solid var(--jfl-border);
	word-break: break-word;
}

.jfl-ct-box .jfl-btn {
	margin-top: auto;
}

.jfl-ct-box__title {
	margin: 0 0 4px;
	font-family: var(--jfl-serif);
	font-size: 26px;
	font-weight: var(--jfl-heading-weight, 600);
	color: var(--jfl-blue-dark);
}

/* 6: side panel */
.jfl-ct-side {
	display: grid;
	grid-template-columns: 420px minmax(0, 1fr);
	border-radius: var(--jfl-radius-lg);
	overflow: hidden;
	border: 1px solid var(--jfl-border);
}

.jfl-ct-side__panel {
	padding: 36px;
	background: var(--jfl-blue);
	color: #fff;
	word-break: break-word;
}

.jfl-ct-side__panel a {
	color: #fff;
}

/* 8: tiles */
.jfl-ct-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.jfl-ct-tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 32px;
	border-radius: var(--jfl-radius);
	font-size: 16px;
	text-decoration: none;
	word-break: break-word;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jfl-ct-tile:hover,
.jfl-ct-tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--jfl-shadow);
}

.jfl-ct-tile__title {
	font-family: var(--jfl-serif);
	font-size: 28px;
	font-weight: var(--jfl-heading-weight, 600);
}

.jfl-ct-tile--blue { background: var(--jfl-blue); color: #fff; }
.jfl-ct-tile--gold { background: var(--jfl-gold-soft, #ffe7ad); color: var(--jfl-blue-dark); }
.jfl-ct-tile--light { background: #d9eaf8; color: var(--jfl-blue-dark); }
.jfl-ct-tile--red { background: #fdecea; color: var(--jfl-danger); }
.jfl-ct-tile--blue:hover { color: #fff; }

/* 9: photo */
.jfl-ct-photo {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	border-radius: var(--jfl-radius);
	background: #cfe2f2;
}

.jfl-ct-stack {
	word-break: break-word;
}

/* 10: definition list */
.jfl-ct-dl {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	margin: 0;
}

.jfl-ct-dl dt,
.jfl-ct-dl dd {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--jfl-border);
	word-break: break-word;
}

.jfl-ct-dl dt {
	font-weight: 800;
	color: var(--jfl-blue-dark);
}

@media (max-width: 1024px) {
	.jfl-ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-ct-two,
	.jfl-ct-two--wide,
	.jfl-ct-two--aside,
	.jfl-ct-side { grid-template-columns: minmax(0, 1fr); }
	.jfl-ct-three { grid-template-columns: minmax(0, 1fr); }
	.jfl-ct-map--tall { min-height: 360px; }
	.jfl-ct-map--fill-col { min-height: 320px; }
}

@media (max-width: 600px) {
	.jfl-ct-cards,
	.jfl-ct-tiles { grid-template-columns: minmax(0, 1fr); }
	.jfl-ct .jfl-ct-bignum { font-size: 42px; }
	.jfl-ct .jfl-ct-bar__big { font-size: 40px; }
	.jfl-ct-hero-map { min-height: 0; display: flex; flex-direction: column-reverse; }
	.jfl-ct-map--fill { position: relative; height: 280px; }
	.jfl-ct-hero-map__inner { padding-top: 24px; padding-bottom: 24px; }
	.jfl-ct-float { max-width: none; padding: 24px; }
	.jfl-ct-dl { grid-template-columns: minmax(0, 1fr); }
	.jfl-ct-dl dt { padding-bottom: 0; border-bottom: 0; }
	.jfl-ct-side__panel,
	.jfl-ct-box,
	.jfl-ct-tile { padding: 24px; }
}

/* =====================================================================
 * News & Events template (Overview, Press Releases, Events, Commercials)
 * ===================================================================== */
.jfl-news__lead {
	margin: 10px 0 0;
	font-size: 18px;
	color: var(--jfl-muted);
}

.jfl-news__intro {
	max-width: 860px;
	margin-bottom: 36px;
}

/* Overview: three cards */
.jfl-news-hub {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 64px;
	padding: 0;
	list-style: none;
}

.jfl-news-hub__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 32px 30px 30px;
	border-radius: 28px;
	background: var(--jfl-tint-blue);
	color: var(--jfl-blue-dark);
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jfl-news-hub__item--1 .jfl-news-hub__link { background: var(--jfl-tint-gold); }
.jfl-news-hub__item--2 .jfl-news-hub__link { background: #fff; border: 1px solid var(--jfl-border); }

.jfl-news-hub__link:hover,
.jfl-news-hub__link:focus-visible {
	box-shadow: var(--jfl-shadow);
	transform: translateY(-4px);
}

.jfl-news-hub__num {
	font-family: var(--jfl-serif);
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	color: #e3a100;
}

.jfl-news-hub__title {
	margin: 6px 0 0;
	font-family: var(--jfl-serif);
	font-size: 26px;
	font-weight: var(--jfl-heading-weight, 600);
}

.jfl-news-hub__text {
	margin: 0;
	color: var(--jfl-muted);
}

.jfl-news-hub__more {
	margin-top: auto;
	padding-top: 10px;
	font-weight: 800;
	color: var(--jfl-blue);
}

/* Commercials: player + playlist */
.jfl-playlist {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 64px;
}

.jfl-playlist__player {
	overflow: hidden;
	border-radius: 24px;
	background: var(--jfl-blue-dark);
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.16);
}

.jfl-playlist__player iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.jfl-playlist__title {
	margin: 22px 0 8px;
	font-family: var(--jfl-serif);
	font-size: 26px;
	font-weight: var(--jfl-heading-weight, 600);
	line-height: 1.3;
	color: var(--jfl-blue-dark);
}

.jfl-playlist__text {
	margin: 0;
	max-width: 760px;
	line-height: 1.7;
	color: var(--jfl-muted);
}

.jfl-playlist__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border-radius: 24px;
	background: #fff;
	border: 1px solid var(--jfl-border);
	list-style: none;
}

.jfl-playlist__item {
	display: grid;
	grid-template-columns: 136px 1fr;
	gap: 14px;
	align-items: center;
	padding: 8px;
	border-radius: 16px;
	color: var(--jfl-blue-dark);
	text-decoration: none;
	transition: background 0.2s ease;
}

.jfl-playlist__item:hover { background: var(--jfl-tint-blue); }
.jfl-playlist__item.is-current { background: var(--jfl-tint-blue); box-shadow: inset 4px 0 0 var(--jfl-blue); }

.jfl-playlist__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: var(--jfl-blue-dark);
	aspect-ratio: 16 / 9;
}

.jfl-playlist__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jfl-playlist__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--jfl-gold);
	transform: translate(-50%, -50%);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.jfl-playlist__play::after {
	content: "";
	position: absolute;
	left: 54%;
	top: 50%;
	border-left: 11px solid var(--jfl-blue-dark);
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	transform: translate(-50%, -50%);
}

.jfl-playlist__item.is-current .jfl-playlist__play { background: #fff; }

.jfl-playlist__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.38;
}

.jfl-playlist__item:focus-visible {
	outline: 3px solid var(--jfl-gold);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.jfl-playlist { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
	.jfl-playlist__player { border-radius: 16px; }
	.jfl-playlist__title { font-size: 21px; margin-top: 16px; }
	.jfl-playlist__item { grid-template-columns: 112px 1fr; gap: 12px; }
	.jfl-playlist__name { font-size: 14px; }
}

/* Events */
.jfl-news-block { margin-bottom: 56px; }
.jfl-news-block .jfl-heading { margin-bottom: 20px; }
.jfl-news__gallery { max-width: 860px; overflow: hidden; }

@media (max-width: 1024px) {
	.jfl-news-hub { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.jfl-news-hub__link { padding: 26px 22px; }
}

/* =====================================================================
 * Press Releases (by year) + photo viewer
 * ===================================================================== */
.jfl-pr { margin-bottom: 64px; }
.jfl-pr-hidden { display: none !important; }
.jfl-pr-photo { display: block; color: inherit; }
.jfl-pr-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--jfl-tint-blue);
}
.jfl-pr-img--empty {
	min-height: 120px;
	background: repeating-linear-gradient(45deg, #d6e6f3 0 10px, #e4eef7 10px 20px);
}
.jfl-pr-chip {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--jfl-gold);
	color: var(--jfl-blue-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
}
.jfl-pr-kicker {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b57f00;
}
.jfl-pr-title {
	margin: 0 0 10px;
	font-family: var(--jfl-serif);
	font-size: 20px;
	font-weight: var(--jfl-heading-weight, 600);
	line-height: 1.35;
	color: var(--jfl-blue-dark);
}
.jfl-pr-title--lg { font-size: 27px; line-height: 1.28; }
.jfl-pr-title--sm { font-size: 17px; margin-bottom: 6px; }
.jfl-pr-more { font-weight: 800; color: var(--jfl-blue); text-decoration: none; }
.jfl-pr-more:hover { text-decoration: underline; }
.jfl-pr a img { transition: transform 0.3s ease; }
.jfl-pr a:hover img { transform: scale(1.04); }
.jfl-pr a { overflow: hidden; }

/* F · By year */
.jfl-pr-f { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.jfl-pr-f__side { position: sticky; top: 110px; }
.jfl-pr-f__years { display: grid; gap: 8px; }
.jfl-pr-f__year { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--jfl-tint-blue); color: var(--jfl-blue-dark); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.jfl-pr-f__year:hover { background: #d6e8f6; }
.jfl-pr-f__year.is-current { background: var(--jfl-blue); color: #fff; }
.jfl-pr-f__n { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 12px; text-align: center; color: var(--jfl-blue-dark); }
.jfl-pr-f__year.is-current .jfl-pr-f__n { background: var(--jfl-gold); }
.jfl-pr-f__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.jfl-pr-f__shown { margin: 0; font-weight: 700; color: var(--jfl-muted); }
.jfl-pr-f__sort {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--jfl-tint-blue);
}
.jfl-pr-f__sortbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--jfl-blue-dark);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.jfl-pr-f__sortbtn:hover { background: rgba(255, 255, 255, 0.7); }
.jfl-pr-f__sortbtn.is-current {
	background: var(--jfl-blue);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 108, 184, 0.25);
}
.jfl-pr-f__sortbtn:focus-visible,
.jfl-pr-f__year:focus-visible {
	outline: 3px solid var(--jfl-gold);
	outline-offset: 2px;
}
.jfl-pr-f__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.jfl-pr-f__item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: var(--jfl-tint-gold); }
.jfl-pr-f__item--blue { background: var(--jfl-tint-blue); }
.jfl-pr-f__item[hidden] { display: none; }
.jfl-pr-f__item .jfl-pr-kicker { margin-bottom: 4px; }
.jfl-pr-f__thumb { border-radius: 14px; aspect-ratio: 1 / 1; }

/* Photo viewer (lightbox) */
.jfl-lb-open { overflow: hidden; }
.jfl-lb { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(5, 20, 36, 0.94); }
.jfl-lb[hidden] { display: none; }
.jfl-lb__fig { margin: 0; text-align: center; }
.jfl-lb__img { display: block; max-width: min(1100px, 82vw); max-height: 80vh; margin: 0 auto; border-radius: 12px; background: #0b2238; }
.jfl-lb__cap { margin-top: 12px; color: #fff; font-weight: 700; }
.jfl-lb__prev, .jfl-lb__next, .jfl-lb__close { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--jfl-blue-dark); font-size: 30px; line-height: 1; cursor: pointer; }
.jfl-lb__close { position: absolute; top: 18px; right: 18px; font-size: 28px; }
.jfl-lb.is-single .jfl-lb__prev, .jfl-lb.is-single .jfl-lb__next { visibility: hidden; }

@media (max-width: 900px) {
	.jfl-pr-f { grid-template-columns: 1fr; }
	.jfl-pr-f__side { position: static; }
	.jfl-pr-f__years { display: flex; flex-wrap: wrap; }
	.jfl-pr-f__list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.jfl-pr-f__bar { flex-wrap: wrap; }
	.jfl-pr-f__year { padding: 9px 12px; }
	.jfl-pr-f__item { grid-template-columns: 84px 1fr; }
	.jfl-lb { padding: 12px; gap: 6px; }
	.jfl-lb__img { max-width: 100%; }
	.jfl-lb__prev, .jfl-lb__next { position: absolute; bottom: 24px; }
	.jfl-lb__prev { left: calc(50% - 60px); }
	.jfl-lb__next { right: calc(50% - 60px); }
}

/* Events: no events message */
.jfl-news-empty {
	margin: 0 0 56px;
	padding: 48px 32px;
	border: 2px dashed var(--jfl-border);
	border-radius: 28px;
	text-align: center;
}
.jfl-news-empty__title {
	margin: 0 0 6px;
	font-family: var(--jfl-serif);
	font-size: 24px;
	font-weight: var(--jfl-heading-weight, 600);
	color: var(--jfl-blue-dark);
}
.jfl-news-empty__text {
	margin: 0;
	color: var(--jfl-muted);
}


/* =====================================================================
 * Commercials – TEST layouts A–L (remove unused ones after choosing)
 * Layout A uses the .jfl-playlist styles above.
 * ===================================================================== */
.jfl-test-switch { margin: -20px 0 36px; border-radius: 18px; padding: 0 18px; }
.jfl-cm { margin-bottom: 64px; }
.jfl-cm-kicker { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b57f00; }
.jfl-cm-title { margin: 0 0 8px; font-family: var(--jfl-serif); font-size: 19px; font-weight: var(--jfl-heading-weight, 600); line-height: 1.32; color: var(--jfl-blue-dark); }
.jfl-cm-title--sm { font-size: 16px; margin-top: 10px; }
.jfl-cm-title--lg { font-size: 25px; }
.jfl-cm-title--xl { font-size: 32px; line-height: 1.2; }
.jfl-cm-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--jfl-muted); }

/* Thumbnail with play button (all layouts) */
.jfl-cm-thumb { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--jfl-blue-dark); aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.jfl-cm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, opacity 0.3s ease; }
.jfl-cm-thumb:hover img { transform: scale(1.04); opacity: 0.92; }
.jfl-cm-thumb iframe { display: block; width: 100%; height: 100%; border: 0; }
.jfl-cm-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; border-radius: 50%; background: var(--jfl-gold); transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.jfl-cm-play::after { content: ""; position: absolute; left: 54%; top: 50%; border-left: 18px solid var(--jfl-blue-dark); border-top: 11px solid transparent; border-bottom: 11px solid transparent; transform: translate(-50%, -50%); }
.jfl-cm-thumb:hover .jfl-cm-play { transform: translate(-50%, -50%) scale(1.08); }
.jfl-cm-play--sm { width: 34px; height: 34px; }
.jfl-cm-play--sm::after { border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }

/* Pop-up video player */
.jfl-vbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 20, 36, 0.94); }
.jfl-vbox[hidden] { display: none; }
.jfl-vbox__frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #000; }
.jfl-vbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* B · Cards + pop-up */
.jfl-cm-b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.jfl-cm-b__item { overflow: hidden; border: 1px solid var(--jfl-border); border-radius: 24px; background: #fff; }
.jfl-cm-b__thumb { border-radius: 0; }
.jfl-cm-b__body { padding: 20px 22px 24px; }

/* C · Cinema (dark) */
.jfl-cm-c { padding: 28px; border-radius: 28px; background: #0b2238; color: #fff; }
.jfl-cm-c .jfl-playlist__player { box-shadow: none; }
.jfl-cm-c__title { margin: 22px 0 6px; font-family: var(--jfl-serif); font-size: 26px; font-weight: 600; color: #fff; }
.jfl-cm-c__text { margin: 0; max-width: 820px; line-height: 1.65; color: #c7d6e4; }
.jfl-cm-c__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.jfl-cm-c .jfl-playlist__item { display: block; color: #c7d6e4; text-decoration: none; }
.jfl-cm-c__thumb { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 9; outline: 3px solid transparent; transition: outline-color 0.2s ease; }
.jfl-cm-c__thumb img { width: 100%; height: 100%; object-fit: cover; }
.jfl-cm-c .jfl-playlist__item.is-current .jfl-cm-c__thumb { outline-color: var(--jfl-gold); }
.jfl-cm-c .jfl-playlist__item.is-current { color: #fff; }
.jfl-cm-c__name { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.35; }

/* D · Alternating rows */
.jfl-cm-d { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-bottom: 44px; }
.jfl-cm-d--flip .jfl-cm-d__text { order: -1; }
.jfl-cm-d__thumb { border-radius: 24px; box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14); }

/* E · Video slider */
.jfl-cm-e { position: relative; overflow: hidden; }
.jfl-cm-e__slide { padding: 0 70px; }
.jfl-cm-e__thumb { max-width: 900px; margin: 0 auto; border-radius: 24px; }
.jfl-cm-e__body { max-width: 760px; margin: 22px auto 0; text-align: center; }
.jfl-cm-e .jfl-carousel__prev, .jfl-cm-e .jfl-carousel__next { top: 38%; }
.jfl-cm-e .jfl-carousel__dots { position: static; margin-top: 18px; justify-content: center; }

/* F · Title tabs */
.jfl-cm-f__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.jfl-cm-f__tab { display: block; padding: 10px 18px; border: 1px solid var(--jfl-border); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--jfl-blue-dark); text-decoration: none; }
.jfl-cm-f__tab:hover { background: var(--jfl-tint-blue); }
.jfl-cm-f__tab.is-current { background: var(--jfl-blue); border-color: var(--jfl-blue); color: #fff; }
.jfl-cm-f__stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }

/* G · Featured banner + row */
.jfl-cm-g { display: grid; grid-template-columns: 1fr 1.35fr; gap: 36px; align-items: center; padding: 34px; border-radius: 28px; background: var(--jfl-tint-blue); }
.jfl-cm-g__text .jfl-btn { margin-top: 18px; }
.jfl-cm-g__thumb { border-radius: 22px; }
.jfl-cm-g__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.jfl-cm-g__row .jfl-cm-play { width: 42px; height: 42px; }
.jfl-cm-g__row .jfl-cm-play::after { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }

/* H · Netflix carousel */
.jfl-cm-h { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.jfl-cm-h__item { flex: 0 0 340px; scroll-snap-align: start; }

/* I · Bento grid */
.jfl-cm-i { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; }
.jfl-cm-i__tile { aspect-ratio: auto; height: 100%; }
.jfl-cm-i__tile--1 { grid-column: span 2; grid-row: span 2; }
.jfl-cm-i__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 40, 80, 0.85), rgba(0, 40, 80, 0) 55%); pointer-events: none; }
.jfl-cm-i__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--jfl-serif); font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.jfl-cm-i__tile--1 .jfl-cm-i__cap { font-size: 26px; }
.jfl-cm-i .jfl-cm-play { z-index: 1; }

/* J · Numbered list */
.jfl-cm-j { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--jfl-border); }
.jfl-cm-j__row { display: grid; grid-template-columns: 56px 190px 1fr auto; gap: 22px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--jfl-border); }
.jfl-cm-j__row.is-open { background: var(--jfl-tint-blue); border-radius: 20px; }
.jfl-cm-j__num { font-family: var(--jfl-serif); font-size: 30px; font-weight: 700; color: #e3a100; text-align: center; }
.jfl-cm-j__thumb { border-radius: 12px; }
.jfl-cm-j__thumb .jfl-cm-play { width: 38px; height: 38px; }
.jfl-cm-j__thumb .jfl-cm-play::after { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.jfl-cm-j__text .jfl-cm-title { margin-top: 0; }
.jfl-cm-j__play { padding: 10px 18px; border-radius: 999px; background: var(--jfl-blue); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.jfl-cm-j__play:hover { background: var(--jfl-blue-dark); }
.jfl-cm-j__slot { grid-column: 1 / -1; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; max-width: 960px; width: 100%; margin: 4px auto 0; background: #000; }
.jfl-cm-j__slot iframe { display: block; width: 100%; height: 100%; border: 0; }
.jfl-cm-j__slot[hidden] { display: none; }

/* K · TV screen + channels */
.jfl-cm-k { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: start; }
.jfl-cm-k__tv { padding: 16px; border-radius: 28px; background: #1c2b39; box-shadow: 0 22px 44px rgba(16, 34, 51, 0.25); }
.jfl-cm-k__tv .jfl-playlist__player { border-radius: 14px; box-shadow: none; }
.jfl-cm-k__stand { width: 32%; height: 16px; margin: 0 auto 22px; border-radius: 0 0 14px 14px; background: #c9d6e2; }
.jfl-cm-k__channels { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jfl-cm-k__ch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f4f8fb; font-weight: 700; line-height: 1.35; color: var(--jfl-blue-dark); text-decoration: none; }
.jfl-cm-k__ch:hover { background: var(--jfl-tint-blue); }
.jfl-cm-k__no { flex: none; min-width: 46px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: #b57f00; }
.jfl-cm-k__ch.is-current { background: var(--jfl-blue); color: #fff; }
.jfl-cm-k__ch.is-current .jfl-cm-k__no { color: var(--jfl-gold); }

/* L · Floating cards */
.jfl-cm-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin: 0; padding: 14px 0 0; list-style: none; }
.jfl-cm-l__item { position: relative; }
.jfl-cm-l__badge { position: absolute; top: -12px; left: 20px; z-index: 2; padding: 5px 14px; border-radius: 999px; background: var(--jfl-gold); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jfl-blue-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.jfl-cm-l__thumb { border-radius: 24px; }
.jfl-cm-l__card { position: relative; z-index: 1; margin: -40px 20px 0; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 14px 34px rgba(0, 70, 127, 0.14); }

@media (max-width: 1100px) {
	.jfl-cm-c__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jfl-cm-g__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.jfl-cm-b, .jfl-cm-l { grid-template-columns: 1fr 1fr; }
	.jfl-cm-d, .jfl-cm-f__stage, .jfl-cm-g, .jfl-cm-k { grid-template-columns: 1fr; }
	.jfl-cm-d--flip .jfl-cm-d__text { order: 0; }
	.jfl-cm-d { gap: 18px; }
	.jfl-cm-g { padding: 24px; }
	.jfl-cm-g__thumb { order: -1; }
	.jfl-cm-e__slide { padding: 0 50px; }
	.jfl-cm-i { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.jfl-cm-j__row { grid-template-columns: 40px 140px 1fr; }
	.jfl-cm-j__play { grid-column: 3; justify-self: start; }
}

@media (max-width: 600px) {
	.jfl-test-switch { margin-top: -10px; }
	.jfl-cm-b, .jfl-cm-l { grid-template-columns: 1fr; }
	.jfl-cm-c { padding: 16px; border-radius: 20px; }
	.jfl-cm-c__title { font-size: 21px; }
	.jfl-cm-c__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-cm-title--lg { font-size: 21px; }
	.jfl-cm-title--xl { font-size: 25px; }
	.jfl-cm-e__slide { padding: 0; }
	.jfl-cm-e .jfl-carousel__prev, .jfl-cm-e .jfl-carousel__next { top: 26%; }
	.jfl-cm-g__row { grid-template-columns: 1fr 1fr; }
	.jfl-cm-h__item { flex-basis: 260px; }
	.jfl-cm-i { grid-template-columns: 1fr; grid-auto-rows: 190px; }
	.jfl-cm-i__tile--1 { grid-column: auto; grid-row: span 1; }
	.jfl-cm-i__tile--1 .jfl-cm-i__cap { font-size: 20px; }
	.jfl-cm-j__row { grid-template-columns: 1fr; gap: 12px; padding: 18px 4px; }
	.jfl-cm-j__num { display: none; }
	.jfl-cm-j__play { grid-column: auto; }
	.jfl-cm-k__tv { padding: 10px; border-radius: 18px; }
	.jfl-cm-l__card { margin: -30px 12px 0; }
	.jfl-vbox { padding: 12px; }
}

/* Old-content images and headings (inc/content-helpers.php) */
.jfl-content .jfl-content-image { margin: 24px 0; }
.jfl-content .jfl-content-image img { display: block; max-width: 100%; height: auto; border-radius: 20px; }
.jfl-content .jfl-content-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.jfl-content .jfl-content-gallery a { display: block; overflow: hidden; border-radius: 14px; background: var(--jfl-tint-blue); }
.jfl-content .jfl-content-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s ease; }
.jfl-content .jfl-content-gallery a:hover img { transform: scale(1.04); }
.jfl-content .jfl-box-title { margin: 32px 0 12px; }
@media (max-width: 600px) {
	.jfl-content .jfl-content-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.jfl-content .jfl-content-video { overflow: hidden; margin: 24px 0; border-radius: 20px; background: var(--jfl-blue-dark); box-shadow: 0 16px 44px rgba(0, 70, 127, 0.14); }
.jfl-content .jfl-content-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.jfl-content .jfl-quotes--content { margin: 20px 0 32px; padding: 0; list-style: none; }
.jfl-content .jfl-quotes--content li { margin: 0; padding: 0; }
.jfl-content .jfl-quotes--content li::before { content: none; }
.jfl-content { overflow-wrap: anywhere; }

/* General Content: sub-page cards on section pages with no text of their own */
.jfl-content .jfl-subpages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.jfl-content .jfl-subpages li { margin: 0; padding: 0; }
.jfl-content .jfl-subpages li::before { content: none; }
.jfl-subpages__card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 24px; border: 1px solid var(--jfl-border); border-radius: 22px; background: #fff; color: var(--jfl-blue-dark); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.jfl-subpages__card:hover { border-color: var(--jfl-tint-blue); box-shadow: var(--jfl-shadow); transform: translateY(-3px); }
.jfl-subpages li:nth-child(4n + 2) .jfl-subpages__card,
.jfl-subpages li:nth-child(4n + 3) .jfl-subpages__card { background: var(--jfl-tint-blue); border-color: var(--jfl-tint-blue); }
.jfl-subpages__title { font-family: var(--jfl-serif); font-size: 19px; font-weight: var(--jfl-heading-weight, 600); line-height: 1.3; }
.jfl-subpages__text { font-size: 14px; line-height: 1.6; color: var(--jfl-muted); }
.jfl-subpages__more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 800; color: var(--jfl-blue); }
.jfl-content .jfl-content-btn { margin: 18px 0 24px; }
.jfl-content .jfl-content-btn a { text-decoration: none; }
.jfl-content .jfl-content-sep { margin: 28px 0; border: 0; border-top: 2px solid var(--jfl-gold-soft); }
.jfl-content iframe[src*="google.com/maps"] { display: block; width: 100%; height: 420px; border-radius: 18px; }
@media (max-width: 600px) {
	.jfl-content .jfl-subpages { grid-template-columns: 1fr; }
	.jfl-content iframe[src*="google.com/maps"] { height: 300px; }
}
.jfl-content .jfl-quotes--content .jfl-quote__text { margin: 0 0 14px; padding: 0; border: 0; background: none; }
.jfl-content .jfl-quotes--content .jfl-quote__text p { font-size: 18px; }

/* Sidebar extras from the old right column (photo slider, video, testimonials) */
.jfl-side-extra { padding: 22px; }
.jfl-side-extra .jfl-box-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--jfl-gold); display: inline-block; font-size: 18px; }
.jfl-side-extra .jfl-box-title ~ .jfl-box-title { margin-top: 26px; }
.jfl-side-extra p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.jfl-side-slider { position: relative; overflow: hidden; border-radius: 16px; background: var(--jfl-tint-blue); }
.jfl-side-slider .jfl-content-photo { display: block; }
.jfl-side-slider img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.jfl-side-slider .jfl-carousel__prev, .jfl-side-slider .jfl-carousel__next { width: 34px; height: 34px; }
.jfl-side-slider .jfl-carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; justify-content: center; }
.jfl-side-extra .jfl-content-video { margin: 0; border-radius: 14px; box-shadow: none; }
.jfl-side-quotes { position: relative; overflow: hidden; }
.jfl-side-quotes .jfl-quote__inner { padding: 22px 20px 54px; border-radius: 18px; }
.jfl-side-quotes .jfl-quote__mark { height: 30px; font-size: 60px; }
.jfl-side-quotes .jfl-quote__text { margin: 0 0 10px; padding: 0; border: 0; background: none; }
.jfl-side-quotes .jfl-quote__text p { font-size: 16px; line-height: 1.5; }
.jfl-side-quotes .jfl-quote__author { font-size: 12px; }
.jfl-side-quotes .jfl-carousel__prev, .jfl-side-quotes .jfl-carousel__next { top: auto; bottom: 12px; width: 32px; height: 32px; transform: none; }
.jfl-side-quotes .jfl-carousel__prev { left: auto; right: 54px; }
.jfl-side-quotes .jfl-carousel__next { right: 14px; }
.jfl-side-extra .jfl-content-video { overflow: hidden; background: var(--jfl-blue-dark); }
.jfl-side-extra .jfl-content-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.jfl-side-extra .jfl-content-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.jfl-side-extra .jfl-content-image { margin: 0; }

/* Procedure pages: section menu on the left (like the old site) */
.jfl-page-layout--nav {
	grid-template-columns: 320px minmax(0, 1fr);
	grid-template-areas: "nav main" "side main";
	grid-template-rows: auto 1fr;
	align-items: start;
	column-gap: 48px;
	row-gap: 24px;
}
.jfl-page-layout--nav .jfl-secnav { grid-area: nav; }
.jfl-page-layout--nav .jfl-page-content { grid-area: main; }
.jfl-page-layout--nav .jfl-page-sidebar--widgets { grid-area: side; }

.jfl-secnav__box { overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--jfl-border); box-shadow: 0 10px 30px rgba(0, 70, 127, 0.06); }
.jfl-secnav__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--jfl-blue); color: #fff; font-family: var(--jfl-serif); font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.jfl-secnav__head::-webkit-details-marker { display: none; }
.jfl-secnav__head::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-135deg) translate(-2px, -2px); transition: transform 0.2s ease; }
.jfl-secnav__box:not([open]) .jfl-secnav__head::after { transform: rotate(45deg) translate(-2px, -2px); }
.jfl-secnav__list { margin: 0; padding: 8px; list-style: none; }
.jfl-secnav__item + .jfl-secnav__item { margin-top: 2px; }
.jfl-secnav__link { position: relative; display: block; padding: 12px 40px 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--jfl-blue-dark); text-decoration: none; transition: background 0.15s ease; }
.jfl-secnav__link::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: 0.45; }
.jfl-secnav__link:hover { background: var(--jfl-tint-blue); }
.jfl-secnav__item.is-current .jfl-secnav__link { background: var(--jfl-tint-blue); color: var(--jfl-blue); box-shadow: inset 4px 0 0 var(--jfl-gold); }
.jfl-secnav__item.is-current .jfl-secnav__link::after { opacity: 1; }
.jfl-secnav__blurb { display: flex; gap: 12px; align-items: center; margin: 6px 6px 10px; padding: 12px; border-radius: 14px; background: var(--jfl-tint-gold); }
.jfl-secnav__blurb img { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.jfl-secnav__blurb p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--jfl-muted); }

@media (max-width: 900px) {
	.jfl-page-layout--nav { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "main" "side"; grid-template-rows: auto; }
}

/* =====================================================================
 * Press Releases – TEST layouts A–L (layout "Dev" uses the styles above).
 * Remove this block once a layout has been approved.
 * ===================================================================== */
.jfl-pr { margin-bottom: 64px; }
.jfl-pr-hidden { display: none !important; }
.jfl-pr-photo { display: block; color: inherit; }
.jfl-pr-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--jfl-tint-blue);
}
.jfl-pr-img--empty {
	min-height: 120px;
	background: repeating-linear-gradient(45deg, #d6e6f3 0 10px, #e4eef7 10px 20px);
}
.jfl-pr-chip {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--jfl-gold);
	color: var(--jfl-blue-dark);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
}
.jfl-pr-kicker {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #b57f00;
}
.jfl-pr-title {
	margin: 0 0 10px;
	font-family: var(--jfl-serif);
	font-size: 20px;
	font-weight: var(--jfl-heading-weight, 600);
	line-height: 1.35;
	color: var(--jfl-blue-dark);
}
.jfl-pr-title--lg { font-size: 27px; line-height: 1.28; }
.jfl-pr-title--sm { font-size: 17px; margin-bottom: 6px; }
.jfl-pr-more { font-weight: 800; color: var(--jfl-blue); text-decoration: none; }
.jfl-pr-more:hover { text-decoration: underline; }
.jfl-pr a img { transition: transform 0.3s ease; }
.jfl-pr a:hover img { transform: scale(1.04); }
.jfl-pr a { overflow: hidden; }

/* A · Featured + list */
.jfl-pr-a { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; margin-bottom: 48px; }
.jfl-pr-a__media { border-radius: 26px; aspect-ratio: 16 / 10; margin-bottom: 18px; }
.jfl-pr-a__side { display: grid; gap: 18px; align-content: start; margin: 0; padding: 0; list-style: none; }
.jfl-pr-a__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--jfl-border); }
.jfl-pr-a__row:last-child { border-bottom: 0; }
.jfl-pr-a__thumb { border-radius: 16px; aspect-ratio: 4 / 3; }
.jfl-pr-a__more-head { margin-bottom: 20px; }

/* B · Photo cards */
.jfl-pr-b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.jfl-pr-b__card { position: relative; display: block; height: 320px; border-radius: 26px; text-decoration: none; }
.jfl-pr-b__img { position: absolute; inset: 0; }
.jfl-pr-b__over {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
	padding: 24px;
	background: linear-gradient(to top, rgba(0, 40, 80, 0.9) 0%, rgba(0, 40, 80, 0.35) 55%, rgba(0, 40, 80, 0) 80%);
}
.jfl-pr-b__title { font-family: var(--jfl-serif); font-size: 19px; font-weight: 600; line-height: 1.32; color: #fff; }

/* C · Timeline */
.jfl-pr-c { position: relative; margin: 0; padding: 0 0 0 40px; list-style: none; }
.jfl-pr-c::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--jfl-gold-soft); }
.jfl-pr-c__item {
	position: relative;
	display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: center;
	margin-bottom: 18px; padding: 24px 26px;
	border: 1px solid var(--jfl-border); border-radius: 22px; background: #fff;
}
.jfl-pr-c__item::before {
	content: ""; position: absolute; left: -37px; top: 30px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--jfl-blue); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--jfl-blue);
}
.jfl-pr-c__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jfl-pr-c__strip a { border-radius: 12px; aspect-ratio: 4 / 3; }

/* D · Magazine */
.jfl-pr-d { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 10px 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--jfl-border); }
.jfl-pr-d--flip .jfl-pr-d__text { order: -1; }
.jfl-pr-d__mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 150px 150px; gap: 10px; }
.jfl-pr-d__mosaic > a, .jfl-pr-d__mosaic > span { border-radius: 16px; }
.jfl-pr-d__mosaic > :first-child { grid-row: span 2; }
.jfl-pr-d__mosaic--1 { grid-template-columns: 1fr; }
.jfl-pr-d__mosaic--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 310px; }
.jfl-pr-d__mosaic--2 > :first-child { grid-row: auto; }

/* E · Compact grid */
.jfl-pr-e { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.jfl-pr-e__card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--jfl-border); border-radius: 20px; background: #fff; text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.jfl-pr-e__card:hover { box-shadow: var(--jfl-shadow); transform: translateY(-3px); }
.jfl-pr-e__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.jfl-pr-e__media .jfl-pr-chip { position: absolute; right: 10px; bottom: 10px; }
.jfl-pr-e__title { display: block; padding: 14px 16px 18px; font-family: var(--jfl-serif); font-size: 15px; font-weight: 600; line-height: 1.38; color: var(--jfl-blue-dark); }

/* G · Photo wall */
.jfl-pr-g { columns: 4 220px; column-gap: 14px; }
.jfl-pr-g__group { display: contents; }
.jfl-pr-g__item { position: relative; break-inside: avoid; margin-bottom: 14px; border-radius: 16px; overflow: hidden; }
.jfl-pr-g__item a { position: relative; display: block; border-radius: 16px; }
.jfl-pr-g__item img { height: auto; }
.jfl-pr-g__cap { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.95); font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--jfl-blue-dark); }

/* H · Accordion */
.jfl-pr-h { display: grid; gap: 12px; }
.jfl-pr-h__item { border: 1px solid var(--jfl-border); border-radius: 18px; background: #fff; overflow: hidden; }
.jfl-pr-h__item[open] { border-color: var(--jfl-tint-blue); background: var(--jfl-tint-blue); }
.jfl-pr-h__head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.jfl-pr-h__head::-webkit-details-marker { display: none; }
.jfl-pr-h__head .jfl-pr-title { flex: 1; margin: 0; }
.jfl-pr-h__count { flex: none; font-size: 13px; font-weight: 700; color: var(--jfl-muted); }
.jfl-pr-h__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--jfl-blue); }
.jfl-pr-h__icon::before, .jfl-pr-h__icon::after { content: ""; position: absolute; left: 9px; top: 15px; width: 14px; height: 2px; background: #fff; }
.jfl-pr-h__icon::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.jfl-pr-h__item[open] .jfl-pr-h__icon::after { transform: rotate(0); }
.jfl-pr-h__photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; }
.jfl-pr-h__photos a { border-radius: 12px; aspect-ratio: 4 / 3; }

/* I · Netflix rows */
.jfl-pr-i { margin-bottom: 30px; }
.jfl-pr-i__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.jfl-pr-i__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.jfl-pr-i__track a { flex: 0 0 240px; height: 165px; border-radius: 16px; scroll-snap-align: start; }

/* J · Split view */
.jfl-pr-j { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
.jfl-pr-j__list { position: sticky; top: 110px; display: grid; gap: 4px; max-height: calc(100vh - 140px); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.jfl-pr-j__tab { display: block; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--jfl-blue-dark); text-decoration: none; }
.jfl-pr-j__tab:hover { background: var(--jfl-tint-blue); }
.jfl-pr-j__tab.is-current { background: var(--jfl-blue); color: #fff; }
.jfl-pr-j__panel { margin-bottom: 22px; padding: 24px; border-radius: 24px; background: var(--jfl-tint-blue); }
.jfl-pr-j.is-ready .jfl-pr-j__panel { display: none; margin: 0; }
.jfl-pr-j.is-ready .jfl-pr-j__panel.is-current { display: block; }
.jfl-pr-j__big { border-radius: 18px; aspect-ratio: 16 / 10; }
.jfl-pr-j__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.jfl-pr-j__thumbs a { border-radius: 10px; aspect-ratio: 1 / 1; }

/* K · Newspaper clippings */
.jfl-pr-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; margin: 0; padding: 10px 6px; list-style: none; }
.jfl-pr-k__item { padding: 18px 18px 16px; border: 1px solid #eadfc4; border-radius: 6px; background: #fffdf7; box-shadow: 0 12px 26px rgba(80, 60, 0, 0.09); transform: rotate(-0.8deg); transition: transform 0.2s ease; }
.jfl-pr-k__item:nth-child(2n) { transform: rotate(0.8deg); }
.jfl-pr-k__item:hover { transform: rotate(0) translateY(-3px); }
.jfl-pr-k__mast { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #1d2a36; font-family: Georgia, "Times New Roman", serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #1d2a36; }
.jfl-pr-k__title { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; line-height: 1.3; color: #1d2a36; }
.jfl-pr-k__photo { border-radius: 2px; aspect-ratio: 4 / 3; }
.jfl-pr-k__photo img { filter: grayscale(0.25) sepia(0.12); }
.jfl-pr-k__more { margin: 10px 0 0; font-family: Georgia, serif; font-size: 13px; font-style: italic; color: #6b5b3a; }

/* L · Big slider */
.jfl-pr-l { position: relative; height: 460px; margin-bottom: 40px; border-radius: 28px; overflow: hidden; background: var(--jfl-blue-dark); }
.jfl-pr-l .jfl-carousel__track { height: 100%; }
.jfl-pr-l__slide { position: relative; height: 100%; }
.jfl-pr-l__img { position: absolute; inset: 0; }
.jfl-pr-l__over {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px;
	padding: 44px 90px 56px 56px;
	background: linear-gradient(to right, rgba(0, 50, 95, 0.92) 0%, rgba(0, 50, 95, 0.55) 50%, rgba(0, 50, 95, 0.1) 100%);
}
.jfl-pr-l__title { max-width: 640px; margin: 0; font-family: var(--jfl-serif); font-size: 32px; font-weight: 600; line-height: 1.25; color: #fff; }
.jfl-pr-l .jfl-carousel__dots { position: absolute; left: 56px; bottom: 22px; }

@media (max-width: 1100px) {
	.jfl-pr-e { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jfl-pr-c__item { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.jfl-pr-a, .jfl-pr-d, .jfl-pr-f, .jfl-pr-j { grid-template-columns: 1fr; }
	.jfl-pr-d--flip .jfl-pr-d__text { order: 0; }
	.jfl-pr-b, .jfl-pr-k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-pr-e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jfl-pr-f__years { position: static; display: flex; flex-wrap: wrap; }
	.jfl-pr-f__list { grid-template-columns: 1fr; }
	.jfl-pr-j__list { position: static; max-height: 300px; }
	.jfl-pr-h__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jfl-pr-l { height: 420px; }
	.jfl-pr-l__over { padding: 30px 24px 50px; }
	.jfl-pr-l__title { font-size: 24px; }
	.jfl-pr-l .jfl-carousel__dots { left: 24px; }
}

@media (max-width: 600px) {
	.jfl-pr-b, .jfl-pr-k { grid-template-columns: 1fr; }
	.jfl-pr-b__card { height: 260px; }
	.jfl-pr-e { gap: 12px; }
	.jfl-pr-e__title { padding: 10px 12px 14px; font-size: 14px; }
	.jfl-pr-a__row { grid-template-columns: 100px 1fr; }
	.jfl-pr-a .jfl-pr-title--lg, .jfl-pr-d .jfl-pr-title--lg { font-size: 22px; }
	.jfl-pr-c { padding-left: 30px; }
	.jfl-pr-c::before { left: 6px; }
	.jfl-pr-c__item { padding: 18px; }
	.jfl-pr-c__item::before { left: -32px; }
	.jfl-pr-d__mosaic { grid-template-rows: 110px 110px; }
	.jfl-pr-d__mosaic--2 { grid-template-rows: 200px; }
	.jfl-pr-f__item { grid-template-columns: 84px 1fr; }
	.jfl-pr-g { columns: 2; column-gap: 10px; }
	.jfl-pr-g__item { margin-bottom: 10px; }
	.jfl-pr-g__cap { font-size: 11px; }
	.jfl-pr-h__head { padding: 14px 16px; gap: 10px; }
	.jfl-pr-h__count { display: none; }
	.jfl-pr-h__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; }
	.jfl-pr-i__track a { flex-basis: 200px; height: 140px; }
	.jfl-pr-j__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.jfl-pr-l { height: 380px; }
}

/* Test bars: "Dev" button (current design) */
.jfl-ct-switch__link--dev { padding: 0 14px; }

/* Videos pages (Knee / Hip): full-width 16:9 player */
.jfl-videos .jfl-video {
	overflow: hidden;
	border-radius: 24px;
	background: var(--jfl-blue-dark);
	box-shadow: 0 16px 44px rgba(0, 70, 127, 0.16);
}
.jfl-videos .jfl-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}
@media (max-width: 600px) {
	.jfl-videos .jfl-video { border-radius: 16px; }
}

/* Videos pages (Knee / Hip / Shoulder): video list like the old site */
.jfl-vlist { display: grid; gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; }
.jfl-vlist__item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding: 18px; border: 1px solid var(--jfl-border); border-radius: 24px; background: #fff; }
.jfl-vlist__thumb { display: block; overflow: hidden; border-radius: 16px; background: var(--jfl-tint-blue); color: var(--jfl-blue-dark); text-decoration: none; }
.jfl-vlist__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--jfl-blue-dark); }
.jfl-vlist__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.jfl-vlist__thumb:hover .jfl-vlist__img img { transform: scale(1.05); }
.jfl-vlist__img .jfl-cm-play { width: 56px; height: 56px; }
.jfl-vlist__caption { display: block; padding: 12px 14px; font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; }
.jfl-vlist__body { padding-top: 6px; }
.jfl-vlist__title { display: inline-block; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid var(--jfl-gold); font-family: var(--jfl-serif); font-size: 24px; font-weight: var(--jfl-heading-weight, 600); line-height: 1.3; color: var(--jfl-blue-dark); }
.jfl-vlist__text { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--jfl-muted); }
.jfl-vlist__btn { text-decoration: none; }
@media (max-width: 760px) {
	.jfl-vlist__item { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
	.jfl-vlist__title { font-size: 20px; }
}

/* Videos pages – TEST layouts A, B, D, E ("Dev" uses .jfl-vlist above) */
.jfl-test-switch--inline { margin: 0 0 22px; }
.jfl-vlist__kicker { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #b57f00; }
.jfl-vlist--a .jfl-vlist__item,
.jfl-vlist--b .jfl-vlist__item,
.jfl-vlist--d .jfl-vlist__item,
.jfl-vlist--e .jfl-vlist__item { padding: 0; border: 0; background: none; border-radius: 0; }
.jfl-vlist--a .jfl-vlist__thumb, .jfl-vlist--d .jfl-vlist__thumb { border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 70, 127, 0.14); }

/* A · Zig-zag */
.jfl-vlist--a { gap: 40px; }
.jfl-vlist--a .jfl-vlist__item { grid-template-columns: 320px minmax(0, 1fr); align-items: center; }
.jfl-vlist--a .jfl-vlist__item--alt { grid-template-columns: minmax(0, 1fr) 320px; }
.jfl-vlist--a .jfl-vlist__item--alt .jfl-vlist__thumb { order: 2; }

/* B · Tinted strips */
.jfl-vlist--b { gap: 16px; }
.jfl-vlist--b .jfl-vlist__item { grid-template-columns: 300px minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 22px; background: var(--jfl-tint-blue); }
.jfl-vlist--b .jfl-vlist__item--alt { background: var(--jfl-tint-gold); }
.jfl-vlist--b .jfl-vlist__thumb { height: 100%; border-radius: 0; }
.jfl-vlist--b .jfl-vlist__img { height: 100%; min-height: 200px; aspect-ratio: auto; }
.jfl-vlist--b .jfl-vlist__body { padding: 22px 26px; }
.jfl-vlist--b .jfl-vlist__title { padding-bottom: 0; border-bottom: 0; margin-bottom: 8px; }

/* D · Timeline */
.jfl-vlist--d { position: relative; gap: 28px; padding-left: 40px; }
.jfl-vlist--d::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--jfl-gold-soft); }
.jfl-vlist--d .jfl-vlist__item { position: relative; grid-template-columns: 260px minmax(0, 1fr); }
.jfl-vlist--d .jfl-vlist__item::before { content: ""; position: absolute; left: -37px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--jfl-blue); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--jfl-blue); }
.jfl-vlist--d .jfl-vlist__title { padding-bottom: 0; border-bottom: 0; margin-bottom: 8px; }

/* E · Banner rows */
.jfl-vlist--e { gap: 18px; }
.jfl-vlist--e .jfl-vlist__item { position: relative; display: block; min-height: 260px; overflow: hidden; border-radius: 24px; background: var(--jfl-blue-dark); }
.jfl-vlist--e .jfl-vlist__thumb { position: absolute; inset: 0 0 0 40%; border-radius: 0; background: none; }
.jfl-vlist--e .jfl-vlist__img { height: 100%; aspect-ratio: auto; }
.jfl-vlist--e .jfl-vlist__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--jfl-blue-dark) 0%, rgba(0, 70, 127, 0.55) 35%, rgba(0, 70, 127, 0) 75%); }
.jfl-vlist--e .jfl-vlist__img .jfl-cm-play { z-index: 1; left: 65%; }
.jfl-vlist--e .jfl-vlist__body { position: relative; z-index: 1; max-width: 52%; padding: 30px 32px; pointer-events: none; }
.jfl-vlist--e .jfl-vlist__body a { pointer-events: auto; }
.jfl-vlist--e .jfl-vlist__kicker { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--jfl-gold); color: var(--jfl-blue-dark); }
.jfl-vlist--e .jfl-vlist__title { padding-bottom: 0; border-bottom: 0; margin: 8px 0; color: #fff; }
.jfl-vlist--e .jfl-vlist__text { color: #d6e4f0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 760px) {
	.jfl-vlist--a .jfl-vlist__item,
	.jfl-vlist--a .jfl-vlist__item--alt,
	.jfl-vlist--b .jfl-vlist__item,
	.jfl-vlist--d .jfl-vlist__item { grid-template-columns: 1fr; gap: 14px; }
	.jfl-vlist--a .jfl-vlist__item--alt .jfl-vlist__thumb { order: 0; }
	.jfl-vlist--b .jfl-vlist__img { min-height: 0; aspect-ratio: 16 / 10; }
	.jfl-vlist--b .jfl-vlist__body { padding: 0 20px 22px; }
	.jfl-vlist--d { padding-left: 30px; }
	.jfl-vlist--d::before { left: 6px; }
	.jfl-vlist--d .jfl-vlist__item::before { left: -32px; }
	.jfl-vlist--e .jfl-vlist__item { min-height: 0; }
	.jfl-vlist--e .jfl-vlist__thumb { position: relative; inset: auto; display: block; }
	.jfl-vlist--e .jfl-vlist__img { aspect-ratio: 16 / 10; }
	.jfl-vlist--e .jfl-vlist__img::after { background: linear-gradient(to top, var(--jfl-blue-dark), rgba(0, 70, 127, 0) 60%); }
	.jfl-vlist--e .jfl-vlist__img .jfl-cm-play { left: 50%; }
	.jfl-vlist--e .jfl-vlist__body { max-width: none; padding: 18px 20px 24px; }
}

/* =====================================================================
 * TEST header designs B–P (body.jfl-hx-…). "Dev" = no extra rules.
 * Desktop only (wider than 1320px); phones/tablets always use the Dev
 * header with the ☰ menu. Remove the unused ones once one is approved.
 * ===================================================================== */
.jfl-hx-switch { position: relative; z-index: 200; border-radius: 0; }
.jfl-hx-half, .jfl-hx-info, .jfl-hx-search, .jfl-hx-icon, .jfl-hx-phonebtn, .jfl-hx-allbtn { display: none; }
.jfl-hx-strip { font-size: 13px; font-weight: 700; }
.jfl-hx-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.jfl-hx-strip__inner--center { justify-content: center; text-align: center; }
.jfl-hx-strip a { text-decoration: none; }
.jfl-hx-strip--welcome { background: linear-gradient(90deg, var(--jfl-blue), var(--jfl-blue-dark)); color: #fff; }
.jfl-hx-strip--welcome a { color: var(--jfl-gold); }
.jfl-hx-strip--announce { background: var(--jfl-gold); }
.jfl-hx-strip--announce a { color: var(--jfl-blue-dark); }
.jfl-hx-j .jfl-topbar { display: none; }

/* "All pages" overlay (G) */
.jfl-hx-all { position: fixed; inset: 0; z-index: 9998; overflow-y: auto; padding: 40px 0; background: rgba(255, 255, 255, 0.98); }
.jfl-hx-all[hidden] { display: none; }
.jfl-hx-all__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.jfl-hx-all__title { font-family: var(--jfl-serif); font-size: 30px; font-weight: 600; color: var(--jfl-blue-dark); }
.jfl-hx-all__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--jfl-tint-blue); color: var(--jfl-blue-dark); font-size: 30px; line-height: 1; cursor: pointer; }
.jfl-hx-all__menu, .jfl-hx-all__menu ul { margin: 0; padding: 0; list-style: none; }
.jfl-hx-all__menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.jfl-hx-all__menu > li > a { display: block; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 3px solid var(--jfl-gold); font-family: var(--jfl-serif); font-size: 19px; font-weight: 600; color: var(--jfl-blue-dark); text-decoration: none; }
.jfl-hx-all__menu ul a { display: block; padding: 5px 0; font-size: 14px; font-weight: 600; color: var(--jfl-text); text-decoration: none; }
.jfl-hx-all__menu ul ul { padding-left: 12px; }
.jfl-hx-all__menu a:hover { color: var(--jfl-blue); }

@media (min-width: 1321px) {
	/* shared helpers */
	.jfl-hx-info { display: flex; align-items: center; gap: 22px; margin-left: auto; }
	.jfl-hx-info__item { display: flex; flex-direction: column; font-size: 14px; font-weight: 800; color: var(--jfl-blue-dark); text-decoration: none; }
	.jfl-hx-info__item--red { color: var(--jfl-danger); }
	.jfl-hx-info__label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jfl-muted); }

	/* B · Two-row hospital style */
	.jfl-hx-b .jfl-topbar { display: none; }
	.jfl-hx-b .jfl-header__inner { flex-wrap: wrap; padding-top: 12px; }
	.jfl-hx-b .jfl-header { overflow-x: clip; }
	.jfl-hx-b .jfl-nav { position: relative; order: 3; flex: 0 0 100%; justify-content: space-between; margin-top: 12px; padding: 6px 0; }
	.jfl-hx-b .jfl-nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; width: 100vw; transform: translateX(-50%); background: var(--jfl-blue); }
	.jfl-hx-b .jfl-menu > li > a { color: #fff; }
	.jfl-hx-b .jfl-menu > li:hover > a,
	.jfl-hx-b .jfl-menu > li.current-menu-item > a,
	.jfl-hx-b .jfl-menu > li.current-menu-ancestor > a { background: var(--jfl-gold); color: var(--jfl-blue-dark); }

	/* C · Centred logo */
	.jfl-hx-c .jfl-header__inner { justify-content: center; gap: 24px; }
	.jfl-hx-c .jfl-hx-half { display: flex; }
	.jfl-hx-c .jfl-hx-half--left { order: 1; }
	.jfl-hx-c .jfl-logo { order: 2; }
	.jfl-hx-c .jfl-hx-half--right { order: 3; }
	.jfl-hx-c .jfl-hx-half--left .jfl-menu > li:nth-child(n+5),
	.jfl-hx-c .jfl-hx-half--right .jfl-menu > li:nth-child(-n+4) { display: none; }
	.jfl-hx-c .jfl-nav { display: none; }

	/* D · Floating pill */
	.jfl-hx-d .jfl-header { background: transparent; border-bottom: 0; padding: 12px 0; }
	.jfl-hx-d .jfl-header__inner { padding: 6px 10px 6px 24px; border-radius: 999px; background: #fff; box-shadow: 0 14px 36px rgba(0, 70, 127, 0.14); }
	.jfl-hx-d .jfl-header.is-stuck { box-shadow: none; }

	/* E · Dark blue header */
	.jfl-hx-e .jfl-header { background: var(--jfl-blue-dark); border-bottom: 0; }
	.jfl-hx-e .jfl-logo img { padding: 4px 8px; border-radius: 10px; background: #fff; }
	.jfl-hx-e .jfl-menu > li > a { color: #fff; }
	.jfl-hx-e .jfl-menu > li:hover > a,
	.jfl-hx-e .jfl-menu > li.current-menu-item > a,
	.jfl-hx-e .jfl-menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, 0.14); color: var(--jfl-gold); }

	/* F · Mega menu (the Joint Replacements panel shows all levels at once) */
	.jfl-hx-f .jfl-menu > li > .sub-menu:has(.sub-menu) { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 6px 18px; min-width: 760px; padding: 18px; }
	.jfl-hx-f .jfl-menu > li > .sub-menu:has(.sub-menu) > li > a { font-weight: 800; color: var(--jfl-blue); }
	.jfl-hx-f .jfl-menu > li > .sub-menu:has(.sub-menu) .sub-menu { position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.jfl-hx-f .jfl-menu > li > .sub-menu:has(.sub-menu) .sub-menu a { padding: 6px 14px; font-size: 13px; }
	.jfl-hx-f .jfl-menu > li > .sub-menu:has(.sub-menu) .menu-item-has-children > a::after { display: none; }
	.jfl-hx-f .jfl-menu > li:nth-child(n+5) > .sub-menu:has(.sub-menu) { left: auto; right: 0; }

	/* G · Short menu + All pages */
	.jfl-hx-g .jfl-menu > li:nth-child(2),
	.jfl-hx-g .jfl-menu > li:nth-child(4),
	.jfl-hx-g .jfl-menu > li:nth-child(6) { display: none; }
	.jfl-hx-g .jfl-hx-allbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--jfl-blue-dark); border-radius: 999px; background: #fff; color: var(--jfl-blue-dark); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
	.jfl-hx-g .jfl-hx-allbtn::before { content: "\2630"; margin-right: 8px; }

	/* H · Underline style */
	.jfl-hx-h .jfl-topbar { background: var(--jfl-blue-dark); border-bottom: 0; }
	.jfl-hx-h .jfl-topbar, .jfl-hx-h .jfl-topbar a { color: #d6e4f0; }
	.jfl-hx-h .jfl-topbar .jfl-topbar__emergency { color: var(--jfl-gold); }
	.jfl-hx-h .jfl-menu > li > a { position: relative; border-radius: 0; }
	.jfl-hx-h .jfl-menu > li > a::after { content: ""; position: absolute; left: 8px; bottom: 4px; width: calc((100% - 16px) * 0.6); height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 0.3s ease; }
	.jfl-hx-h .jfl-menu > li:hover > a,
	.jfl-hx-h .jfl-menu > li.current-menu-item > a,
	.jfl-hx-h .jfl-menu > li.current-menu-ancestor > a { background: none; color: var(--jfl-blue); }
	.jfl-hx-h .jfl-menu > li:hover > a::after,
	.jfl-hx-h .jfl-menu > li.current-menu-item > a::after,
	.jfl-hx-h .jfl-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
	@media (prefers-reduced-motion: reduce) { .jfl-hx-h .jfl-menu > li > a::after { transition: none; } }
	.jfl-hx-h .jfl-header__cta { background: var(--jfl-blue); color: #fff; }

	/* I · Info row + centred menu */
	.jfl-hx-i .jfl-topbar { display: none; }
	.jfl-hx-i .jfl-header__inner { flex-wrap: wrap; padding-top: 12px; }
	.jfl-hx-i .jfl-nav { order: 3; flex: 0 0 100%; justify-content: center; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--jfl-border); }
	.jfl-hx-i .jfl-menu > li > a { border-radius: 0; }
	.jfl-hx-i .jfl-menu > li.current-menu-item > a,
	.jfl-hx-i .jfl-menu > li.current-menu-ancestor > a { background: none; box-shadow: inset 0 -3px 0 var(--jfl-gold); }

	/* J · Blue welcome strip */
	.jfl-hx-j .jfl-menu > li.current-menu-item > a,
	.jfl-hx-j .jfl-menu > li.current-menu-ancestor > a { background: var(--jfl-blue); color: #fff; }

	/* K · Soft gold header */
	.jfl-hx-k .jfl-header { background: var(--jfl-tint-gold); border-bottom-color: var(--jfl-gold-soft); }
	.jfl-hx-k .jfl-menu > li:hover > a,
	.jfl-hx-k .jfl-menu > li.current-menu-item > a,
	.jfl-hx-k .jfl-menu > li.current-menu-ancestor > a { background: #fff; color: var(--jfl-blue); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
	.jfl-hx-k .jfl-header__cta { background: var(--jfl-blue); color: #fff; }

	/* L · Search + menu row */
	.jfl-hx-l .jfl-header__inner { flex-wrap: wrap; padding-top: 12px; }
	.jfl-hx-l .jfl-hx-search { display: block; order: 1; margin-left: auto; }
	.jfl-hx-l .jfl-hx-search input { width: 260px; padding: 11px 18px; border: 1px solid var(--jfl-border); border-radius: 999px; font: inherit; font-size: 14px; }
	.jfl-hx-l .jfl-nav { order: 3; flex: 0 0 100%; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--jfl-border); }
	.jfl-hx-l .jfl-nav .jfl-header__cta { margin-left: auto; }

	/* M · Side menu */
	.jfl-hx-m { padding-left: 260px; }
	.jfl-hx-m .jfl-header { position: fixed; top: 0; bottom: 0; left: 0; width: 260px; background: var(--jfl-blue-dark); border: 0; }
	.admin-bar.jfl-hx-m .jfl-header { top: 32px; }
	.jfl-hx-m .jfl-header__inner { flex-direction: column; align-items: stretch; gap: 18px; width: auto; max-width: none; padding: 22px 18px; }
	.jfl-hx-m .jfl-logo img { padding: 6px 8px; border-radius: 12px; background: #fff; max-height: none; width: 100%; }
	.jfl-hx-m .jfl-nav { flex-direction: column; align-items: stretch; }
	.jfl-hx-m .jfl-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.jfl-hx-m .jfl-menu > li > a { border-radius: 10px; color: #fff; white-space: normal; }
	.jfl-hx-m .jfl-menu > li:hover > a,
	.jfl-hx-m .jfl-menu > li.current-menu-item > a,
	.jfl-hx-m .jfl-menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, 0.12); color: var(--jfl-gold); }
	.jfl-hx-m .jfl-menu > li > .sub-menu { top: 0; left: calc(100% + 12px); }
	.jfl-hx-m .jfl-menu > li > .sub-menu::before { top: 0; bottom: 0; left: -14px; right: auto; width: 14px; height: auto; }
	.jfl-hx-m .jfl-header__cta { margin-top: 10px; text-align: center; justify-content: center; }

	/* N · Icons + announcement bar */
	.jfl-hx-n .jfl-menu > li > a { padding-left: 6px; padding-right: 6px; }
	.jfl-hx-n .jfl-nav { gap: 6px; }
	.jfl-hx-n .jfl-header__cta { padding-left: 16px; padding-right: 16px; }
	.jfl-hx-n .jfl-hx-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--jfl-tint-blue); color: var(--jfl-blue); }
	.jfl-hx-n .jfl-hx-icon--red { background: #fde8e6; color: var(--jfl-danger); }

	/* O · Transparent over banner */
	.jfl-hx-o .jfl-topbar { display: none; }
	.jfl-hx-o .jfl-header { position: sticky; background: var(--jfl-blue-dark); border-bottom: 0; transition: background 0.2s ease; }
	.jfl-hx-o .jfl-header__inner { margin-top: 12px; margin-bottom: 12px; padding: 6px 12px 6px 18px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 22px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); }
	.jfl-hx-o .jfl-logo img { padding: 4px 8px; border-radius: 10px; background: #fff; }
	.jfl-hx-o .jfl-menu > li > a { color: #fff; }
	.jfl-hx-o .jfl-menu > li:hover > a,
	.jfl-hx-o .jfl-menu > li.current-menu-item > a,
	.jfl-hx-o .jfl-menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, 0.14); color: var(--jfl-gold); }
	.jfl-hx-o .jfl-page-title { background: linear-gradient(180deg, var(--jfl-blue-dark), #0a5b9c); }
	.jfl-hx-o .jfl-page-title, .jfl-hx-o .jfl-page-title a, .jfl-hx-o .jfl-page-title span, .jfl-hx-o .jfl-page-title .jfl-page-title__heading, .jfl-hx-o .jfl-page-title .jfl-news__lead { color: #fff; }
	.jfl-hx-o .jfl-page-title .jfl-eyebrow { color: var(--jfl-gold); }
	.jfl-hx-o .jfl-header.is-stuck { background: #fff; }
	.jfl-hx-o .jfl-header.is-stuck .jfl-header__inner { border-color: var(--jfl-border); background: #fff; }
	.jfl-hx-o .jfl-header.is-stuck .jfl-menu > li > a { color: var(--jfl-text); }
	.jfl-hx-o .jfl-header.is-stuck .jfl-menu > li.current-menu-item > a,
	.jfl-hx-o .jfl-header.is-stuck .jfl-menu > li.current-menu-ancestor > a { background: var(--jfl-tint-blue); color: var(--jfl-blue); }

	/* P · Gold active + phone button */
	.jfl-hx-p .jfl-header { border-bottom: 0; box-shadow: inset 0 -4px 0 0 transparent; }
	.jfl-hx-p .jfl-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--jfl-gold), var(--jfl-blue)); }
	.jfl-hx-p .jfl-menu > li.current-menu-item > a,
	.jfl-hx-p .jfl-menu > li.current-menu-ancestor > a { background: linear-gradient(90deg, #f7b500, var(--jfl-gold)); color: var(--jfl-blue-dark); }
	.jfl-hx-p .jfl-hx-phonebtn { display: inline-flex; background: var(--jfl-blue-dark); color: #fff; white-space: nowrap; }
	.jfl-hx-p .jfl-header__cta { display: none; }
}

@media (max-width: 1320px) {
	.jfl-hx-strip--welcome .jfl-hx-strip__inner { flex-direction: column; gap: 4px; text-align: center; }
	.jfl-hx-j .jfl-topbar { display: block; }
}
@media (min-width: 1321px) and (max-width: 1480px) {
	.jfl-hx-n .jfl-hx-icon { display: none; }
}

/* ==========================================================================
   Enquiry form (Contact Form 7 form "Enquiry", see inc/enquiry-form.php)
   ========================================================================== */
.jfl-ct-form { padding-top: 0; }
.jfl-ct-form__card {
	max-width: 960px;
	margin: 0 auto;
	padding: 36px;
	border: 1px solid var(--jfl-border);
	border-radius: var(--jfl-radius);
	background: var(--jfl-bg-soft);
}
.jfl-ct-form__title { margin: 0 0 4px; font-family: var(--jfl-serif); font-size: 28px; color: var(--jfl-blue-dark); }
.jfl-ct-form__lead { margin: 0 0 24px; color: var(--jfl-muted); font-size: 14px; }
.jfl-cf7-note { margin: 0 0 32px; padding: 12px 16px; border: 1px dashed var(--jfl-gold-dark); border-radius: 12px; background: var(--jfl-tint-gold); font-size: 14px; }

.jfl-cf7 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.jfl-cf7 p { margin: 0; }
.jfl-cf7 > p { display: contents; }
.jfl-cf7 br { display: none; }
.jfl-cf7__field { display: block; font-size: 14px; font-weight: 700; color: var(--jfl-text); }
.jfl-cf7__field em { font-style: normal; color: var(--jfl-danger); }
.jfl-cf7__field--wide, .jfl-cf7__submit { grid-column: 1 / -1; }
.jfl-cf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.jfl-cf7 input[type="text"], .jfl-cf7 input[type="email"], .jfl-cf7 input[type="tel"],
.jfl-cf7 input[type="number"], .jfl-cf7 select, .jfl-cf7 textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #c9d8e5;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-weight: 400;
	font-size: 16px;
	color: var(--jfl-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jfl-cf7 textarea { min-height: 130px; resize: vertical; }
.jfl-cf7 input:focus, .jfl-cf7 select:focus, .jfl-cf7 textarea:focus {
	outline: none;
	border-color: var(--jfl-blue);
	box-shadow: 0 0 0 3px rgba(0, 108, 184, 0.18);
}
.jfl-cf7 .wpcf7-not-valid { border-color: var(--jfl-danger); }
.jfl-cf7 .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--jfl-danger); }
.jfl-cf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--jfl-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.jfl-cf7 .wpcf7-submit:hover, .jfl-cf7 .wpcf7-submit:focus-visible { background: var(--jfl-blue-dark); }
.jfl-cf7 .wpcf7-spinner { vertical-align: middle; }
.jfl-cf7-form .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; border-radius: 12px; font-size: 14px; }
.jfl-cf7-form.sent .wpcf7-response-output { border-color: #2e7d32 !important; background: #edf7ee; }
.jfl-cf7-form.invalid .wpcf7-response-output,
.jfl-cf7-form.failed .wpcf7-response-output,
.jfl-cf7-form.spam .wpcf7-response-output { border-color: var(--jfl-danger) !important; background: #fdeeee; }

@media (max-width: 700px) {
	.jfl-ct-form__card { padding: 24px 18px; }
	.jfl-cf7 { grid-template-columns: minmax(0, 1fr); }
}