/* JMF Tech: component styles from the JMF Technologies design system (premium midnight edition).
   Colors, type and spacing come from theme.json presets. Section colors are remapped with
   custom properties, so page content keeps its plain preset classes. */

/* ==========================================================================
   1. Tokens (declared on body too, so context values resolve against a page's service accent)
   ========================================================================== */
:root, body {
	--jmf-radius-sm: 6px;
	--jmf-radius-md: 12px;
	--jmf-radius-lg: 16px;
	--jmf-radius-xl: 24px;
	--jmf-midnight: #020618;
	--jmf-midnight-raised: #0f172b;
	--jmf-midnight-line: #1d293d;
	--jmf-on-midnight: #f1f5f9;
	--jmf-on-midnight-muted: #b4c0d0;
	--jmf-grid-line: rgba(144, 161, 185, 0.07);
	--jmf-shadow-card: 0 1px 2px rgba(2, 6, 24, 0.06), 0 8px 24px -6px rgba(2, 6, 24, 0.10);
	--jmf-shadow-lift: 0 20px 25px -5px rgba(2, 6, 24, 0.16), 0 8px 10px -6px rgba(2, 6, 24, 0.12);
	--jmf-ease: cubic-bezier(.2, .7, .2, 1);

	/* Core accent (Managed IT, shared pages). Service pages override below. */
	--jmf-accent: #2375a7;
	--jmf-accent-bright: #7cc8f0;
	--jmf-accent-rgb: 35, 117, 167;
	--jmf-grad: linear-gradient(135deg, #2375a7 0%, #2a68b8 100%);
	--jmf-grad-text: linear-gradient(90deg, #a9defa 0%, #5bb8ea 55%, #2f9bd6 100%);
	--jmf-glow: radial-gradient(70% 50% at 20% 30%, rgba(35, 117, 167, 0.32), rgba(0, 0, 0, 0) 70%);
	--jmf-glow-2: radial-gradient(60% 45% at 80% 75%, rgba(160, 44, 116, 0.22), rgba(0, 0, 0, 0) 70%);
	--jmf-shadow-glow: 0 0 30px -5px rgba(35, 117, 167, 0.6);

	/* Context values (light surfaces). Midnight bands flip these. */
	--jmf-icon: var(--jmf-accent);
	--jmf-hl: var(--jmf-grad);
	--jmf-eyebrow: var(--jmf-accent);
	--jmf-eyebrow-bg: rgba(var(--jmf-accent-rgb), 0.08);
	--jmf-eyebrow-border: rgba(var(--jmf-accent-rgb), 0.28);
	--jmf-tile: linear-gradient(135deg, rgba(var(--jmf-accent-rgb), 0.16) 0%, rgba(var(--jmf-accent-rgb), 0.06) 100%);
}
body.jmf-svc-nurse-call {
	--jmf-accent: #c8323e; --jmf-accent-bright: #ff8a8f; --jmf-accent-rgb: 200, 50, 62;
	--jmf-grad: linear-gradient(135deg, #c8323e 0%, #b02a36 100%);
	--jmf-grad-text: linear-gradient(90deg, #ffc2c4 0%, #ff8a8f 100%);
	--jmf-glow: radial-gradient(70% 50% at 20% 30%, rgba(200, 50, 62, 0.32), rgba(0, 0, 0, 0) 70%);
	--jmf-glow-2: radial-gradient(60% 45% at 80% 75%, rgba(200, 50, 62, 0.14), rgba(0, 0, 0, 0) 70%);
	--jmf-shadow-glow: 0 0 30px -5px rgba(200, 50, 62, 0.6);
}
body.jmf-svc-cameras {
	--jmf-accent: #0f7a4f; --jmf-accent-bright: #4fd18b; --jmf-accent-rgb: 15, 122, 79;
	--jmf-grad: linear-gradient(135deg, #0f7a4f 0%, #0c6b55 100%);
	--jmf-grad-text: linear-gradient(90deg, #a7f0c6 0%, #4fd18b 100%);
	--jmf-glow: radial-gradient(70% 50% at 20% 30%, rgba(15, 122, 79, 0.32), rgba(0, 0, 0, 0) 70%);
	--jmf-glow-2: radial-gradient(60% 45% at 80% 75%, rgba(15, 122, 79, 0.14), rgba(0, 0, 0, 0) 70%);
	--jmf-shadow-glow: 0 0 30px -5px rgba(15, 122, 79, 0.6);
}
body.jmf-svc-cabling {
	--jmf-accent: #0e7490; --jmf-accent-bright: #5fd4ea; --jmf-accent-rgb: 14, 116, 144;
	--jmf-grad: linear-gradient(135deg, #0e7490 0%, #0b6a8f 100%);
	--jmf-grad-text: linear-gradient(90deg, #b5effa 0%, #5fd4ea 100%);
	--jmf-glow: radial-gradient(70% 50% at 20% 30%, rgba(14, 116, 144, 0.32), rgba(0, 0, 0, 0) 70%);
	--jmf-glow-2: radial-gradient(60% 45% at 80% 75%, rgba(14, 116, 144, 0.14), rgba(0, 0, 0, 0) 70%);
	--jmf-shadow-glow: 0 0 30px -5px rgba(14, 116, 144, 0.6);
}
body.jmf-svc-managed-ai {
	--jmf-accent: #6d3fd0; --jmf-accent-bright: #b49cf7; --jmf-accent-rgb: 109, 63, 208;
	--jmf-grad: linear-gradient(135deg, #6d3fd0 0%, #5b3cc4 100%);
	--jmf-grad-text: linear-gradient(90deg, #d9ccfd 0%, #b49cf7 100%);
	--jmf-glow: radial-gradient(70% 50% at 20% 30%, rgba(109, 63, 208, 0.32), rgba(0, 0, 0, 0) 70%);
	--jmf-glow-2: radial-gradient(60% 45% at 80% 75%, rgba(109, 63, 208, 0.14), rgba(0, 0, 0, 0) 70%);
	--jmf-shadow-glow: 0 0 30px -5px rgba(109, 63, 208, 0.6);
}

/* ==========================================================================
   2. Midnight bands: hero, CTA panels, alternating feature sections, feature panels, header.
      Remapping the preset variables flips every nested text, card and border at once.
   ========================================================================== */
.jmf-hero,
.jmf-cta {
	--jmf-on-midnight-muted: rgba(255, 255, 255, 0.9);
	--wp--preset--color--surface-100: rgba(255, 255, 255, 0.08);
	--wp--preset--color--surface-200: var(--jmf-midnight);
	--wp--preset--color--surface-300: rgba(var(--jmf-accent-rgb), 0.14);
	--wp--preset--color--ink: var(--jmf-on-midnight);
	--wp--preset--color--ink-muted: var(--jmf-on-midnight-muted);
	--wp--preset--color--border: var(--jmf-midnight-line);
	--wp--preset--color--border-strong: #5d6f89;
	--wp--preset--color--brand-blue: #7cc8f0;
	--wp--preset--color--brand-navy: var(--jmf-midnight);
	--wp--preset--color--on-navy: var(--jmf-on-midnight);
	--jmf-shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -4px rgba(0, 0, 0, 0.45);
	--jmf-shadow-lift: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
	--jmf-icon: var(--jmf-accent-bright);
	--jmf-hl: var(--jmf-grad-text);
	--jmf-eyebrow: var(--jmf-accent-bright);
	--jmf-eyebrow-bg: rgba(var(--jmf-accent-rgb), 0.14);
	--jmf-eyebrow-border: rgba(var(--jmf-accent-rgb), 0.45);
	--jmf-tile: linear-gradient(135deg, rgba(var(--jmf-accent-rgb), 0.35) 0%, rgba(var(--jmf-accent-rgb), 0.12) 100%);
	color: var(--jmf-on-midnight);
}
/* Ambient light on navy: accent glow upper left, magenta glow lower right, faint 32px grid. */
.jmf-hero:not(.jmf-hero--video),
.jmf-cta {
	background-color: #33354d !important;
	background-image:
		var(--jmf-glow),
		var(--jmf-glow-2),
		linear-gradient(var(--jmf-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--jmf-grid-line) 1px, transparent 1px);
	background-size: auto, auto, 32px 32px, 32px 32px;
}
/* Light alternating sections: a faint accent glow keeps them from feeling flat. */
.jmf-sections .has-surface-200-background-color {
	background-image:
		radial-gradient(60% 50% at 10% 0%, rgba(var(--jmf-accent-rgb), 0.07), transparent 70%),
		radial-gradient(50% 45% at 95% 100%, rgba(160, 44, 116, 0.05), transparent 70%);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.jmf-sections .alignwide.has-surface-300-background-color { border-radius: var(--jmf-radius-xl) !important; border: 1px solid rgba(var(--jmf-accent-rgb), 0.18); }
.jmf-cta { border-radius: var(--jmf-radius-xl) !important; overflow: hidden; box-shadow: var(--jmf-shadow-lift); }

/* ==========================================================================
   3. Base
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-blue);
	outline-offset: 2px;
}
.skip-link.screen-reader-text:focus { background: #fff; color: #2375a7; }
.screen-reader-text:not(:focus) {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
h1, h2, h3, .wp-block-heading { text-wrap: balance; }
.has-display-font-size { line-height: 1.1; letter-spacing: -0.025em; font-weight: 900; }
.has-section-font-size { line-height: 1.15; letter-spacing: -0.025em; font-weight: 900; }
.has-subsection-font-size { line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; }
.has-body-lg-font-size { line-height: 1.6; }
.jmf-measure { max-width: 640px; }
p a:not(.wp-element-button), li a { text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }

/* Full-width sections stack edge to edge. */
.jmf-sections { margin-block: 0; }
.jmf-sections > *,
.jmf-sections > .wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; max-width: none; }
.jmf-sections > .wp-block-post-content { margin: 0; }

/* Highlight: one gradient phrase per heading. */
.jmf-hl {
	background: var(--jmf-hl);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--jmf-accent);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-bottom: .04em;
}

/* Eyebrow pill. */
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 6px 14px;
	border-radius: 9999px;
	border: 1px solid var(--jmf-eyebrow-border);
	background: var(--jmf-eyebrow-bg);
	color: var(--jmf-eyebrow) !important;
	font-size: 12px !important;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 1 !important;
}
.is-style-eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: currentColor; box-shadow: 0 0 10px 1px currentColor; flex: none;
}

/* Centered section heads: Eyebrow, H2 with Highlight, body-lg intro. */
.jmf-sections .wp-block-group.alignwide:not(.jmf-grid):has(> .wp-block-heading.has-section-font-size):not(:has(> .wp-block-columns)) {
	text-align: center;
}
.jmf-sections .wp-block-group.alignwide:not(.jmf-grid):has(> .wp-block-heading.has-section-font-size):not(:has(> .wp-block-columns)) > * {
	margin-left: auto;
	margin-right: auto;
}
.jmf-sections .wp-block-group.alignwide:not(.jmf-grid):has(> .wp-block-heading.has-section-font-size) > .wp-block-heading { max-width: 22ch; }
.jmf-sections .wp-block-group.alignwide.is-layout-flex:has(> .wp-block-heading) { text-align: left; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.wp-block-button .wp-block-button__link {
	border: 1px solid transparent;
	border-radius: var(--jmf-radius-md);
	background: var(--jmf-grad);
	color: #fff;
	box-shadow: 0 0 24px -8px rgba(var(--jmf-accent-rgb), 0.55);
	transition: transform .18s var(--jmf-ease), box-shadow .18s var(--jmf-ease), background-color .18s, border-color .18s, color .18s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--jmf-shadow-glow); }
.wp-block-button .wp-block-button__link:active { transform: translateY(0); }
.wp-block-button.is-style-accent .wp-block-button__link {
	background: linear-gradient(135deg, #a02c74 0%, #b8358a 100%);
	box-shadow: 0 0 24px -8px rgba(160, 44, 116, 0.6);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover { box-shadow: 0 0 30px -5px rgba(160, 44, 116, 0.7); }
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--border-strong);
	box-shadow: none;
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover { border-color: var(--jmf-icon); color: var(--jmf-icon); box-shadow: none; }
/* Glass button on midnight. */
.wp-block-button.is-style-on-navy .wp-block-button__link {
	background: rgba(255, 255, 255, 0.06);
	color: var(--jmf-on-midnight);
	border-color: rgba(241, 245, 249, 0.22);
	box-shadow: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.wp-block-button.is-style-on-navy .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(241, 245, 249, 0.4); box-shadow: none; }
.wp-block-button.jmf-btn-lg .wp-block-button__link { font-size: 16px; padding: 15px 28px; }
.jmf-hero :focus-visible, .jmf-cta :focus-visible, .jmf-header :focus-visible { outline-color: var(--jmf-on-midnight); }

/* ==========================================================================
   5. Header: sticky, white, turns frosted translucent after scrolling.
   ========================================================================== */
.wp-site-blocks > .wp-block-template-part:has(> .jmf-header),
.wp-site-blocks > header:has(> .jmf-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	margin-block: 0;
}
.jmf-header {
	background-color: rgba(255, 255, 255, 1) !important;
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: background-color .3s var(--jmf-ease), box-shadow .3s, padding .3s var(--jmf-ease);
}
html.jmf-scrolled .jmf-header {
	background-color: rgba(255, 255, 255, 0.78) !important;
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
	box-shadow: 0 8px 24px -12px rgba(2, 6, 24, 0.18);
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}
.jmf-header .wp-block-site-logo img { width: 132px; height: auto; transition: width .3s var(--jmf-ease); }
html.jmf-scrolled .jmf-header .wp-block-site-logo img { width: 116px; }
.jmf-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink); position: relative; white-space: nowrap; }
.jmf-header .wp-block-navigation__container { flex-wrap: nowrap; }
.jmf-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, #2375a7, #a02c74);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--jmf-ease);
}
.jmf-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item:hover > a::after,
.jmf-header .wp-block-navigation a[aria-current="page"]::after { transform: scaleX(1); }
.jmf-header .wp-block-navigation a:hover { color: #2375a7; }
.jmf-header .wp-block-navigation__submenu-container {
	background: rgba(255, 255, 255, 0.96) !important;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--jmf-radius-lg);
	box-shadow: var(--jmf-shadow-lift);
	padding: 8px !important;
	min-width: 260px !important;
}
.jmf-header .wp-block-navigation__submenu-container a { padding: 10px 14px !important; border-radius: 10px; font-weight: 500; }
.jmf-header .wp-block-navigation__submenu-container a:hover { background: rgba(35, 117, 167, 0.08); }
.jmf-header__phone { margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; font-family: var(--wp--preset--font-family--mono); }
.jmf-header__phone a { color: var(--wp--preset--color--ink); text-decoration: none; }
.jmf-header__phone a:hover { color: #2375a7; }
/* Header button always uses the core brand blue, even on service pages. */
.jmf-header .wp-block-button .wp-block-button__link { background: linear-gradient(135deg, #2375a7 0%, #2a68b8 100%); box-shadow: 0 0 24px -8px rgba(35, 117, 167, 0.6); }
.jmf-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff !important; color: var(--wp--preset--color--ink) !important; padding: 24px 16px; }
@media (max-width: 1320px) { .jmf-header__phone { display: none; } }
@media (max-width: 600px) {
	.jmf-header .jmf-header__cta { display: none; }
	.jmf-header .wp-block-site-logo img, html.jmf-scrolled .jmf-header .wp-block-site-logo img { width: 108px; }
}

/* ==========================================================================
   6. Subpage hero: midnight, glows, grid and the page's icon as a large line graphic.
   ========================================================================== */
.jmf-hero:not(.jmf-hero--video) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-top: clamp(72px, 10vw, 128px) !important;
	padding-bottom: clamp(72px, 10vw, 128px) !important;
}
.jmf-hero h1, .jmf-hero .wp-block-heading { color: var(--jmf-on-midnight); }
.jmf-hero .jmf-hero__intro { color: var(--jmf-on-midnight-muted) !important; opacity: 1; }
.jmf-hero a:not(.wp-element-button) { color: var(--jmf-on-midnight); }
.jmf-hero:not(.jmf-hero--video) h1 { max-width: 18ch; margin-top: var(--wp--preset--spacing--6); }
.jmf-hero:not(.jmf-hero--video) .jmf-hero__intro { max-width: 58ch; }
@media (min-width: 900px) {
	.jmf-hero:not(.jmf-hero--video) > .alignwide > * { max-width: min(640px, 56%); }
	.jmf-hero:not(.jmf-hero--video) > .alignwide > h1 { max-width: min(18ch, 60%); }
}
/* Page photo (the page's featured image) fills the right side and fades into the navy. */
.jmf-hero.has-hero-photo::before {
	content: "";
	position: absolute; z-index: -1; top: 0; bottom: 0; right: 0;
	width: 58%;
	background: var(--jmf-hero-photo) center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 48%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 48%);
}
/* A whisper of the service accent over the photo ties it to the page. */
.jmf-hero.has-hero-photo::after {
	content: "";
	position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 58%;
	background: linear-gradient(200deg, rgba(var(--jmf-accent-rgb), 0.22), transparent 55%);
	pointer-events: none;
}
@media (max-width: 899px) {
	.jmf-hero.has-hero-photo::before {
		width: 100%;
		-webkit-mask-image: none; mask-image: none;
		opacity: .28;
	}
	.jmf-hero.has-hero-photo::after { width: 100%; background: linear-gradient(180deg, rgba(51, 53, 77, 0.2), rgba(51, 53, 77, 0.75)); }
}

/* ==========================================================================
   7. Home hero: full promo video (desktop), plain midnight on phones.
   ========================================================================== */
.jmf-hero--video {
	position: relative; overflow: hidden; isolation: isolate;
	background-color: #33354d !important;
	background-image: var(--jmf-glow), var(--jmf-glow-2);
	padding-top: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--20);
}
.jmf-hero__media, .jmf-hero__toggle { display: none; }
.jmf-hero--video .jmf-hero__content > *, .jmf-hero__top > *, .jmf-hero__bottom > * { margin-block: 0; }
.jmf-hero__top > * + *, .jmf-hero__bottom > * + * { margin-top: var(--wp--preset--spacing--4); }
.jmf-hero__top > .jmf-hero__badge + * { margin-top: var(--wp--preset--spacing--6); }
.jmf-hero__top + .jmf-hero__bottom { margin-top: var(--wp--preset--spacing--6); }
.jmf-hero__bottom > .wp-block-buttons { margin-top: var(--wp--preset--spacing--8); }
.jmf-hero--video .jmf-hero__intro { color: var(--jmf-on-midnight) !important; max-width: 60ch; }
.jmf-hero__badge {
	display: inline-flex !important; align-items: center; gap: 8px; width: fit-content;
	padding: 8px 18px 8px 14px; border-radius: 9999px;
	background: #fff; color: #0f7a4f;
	font-size: 15px; line-height: 20px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	text-shadow: none;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10), 0 0 30px -5px rgba(15, 122, 79, 0.6), 0 8px 24px -6px rgba(2, 6, 24, 0.5);
}
.jmf-hero__badge::before {
	content: ""; flex: none; width: 1.2em; height: 1.2em; background: #0f7a4f;
	-webkit-mask: var(--jmf-pin-icon) center / contain no-repeat; mask: var(--jmf-pin-icon) center / contain no-repeat;
}
@media (min-width: 782px) {
	/* Fit the window below the header (never taller than the 16:9 video); the overflow is trimmed mostly from the top. */
	.jmf-hero--video { padding: 0; display: grid; height: clamp(540px, calc(100svh - var(--jmf-header-h, 78px)), 56.25vw); }
	.jmf-hero__media { display: block; position: absolute; inset: 0; z-index: -1; margin: 0 !important; max-width: none !important; width: auto !important; }
	.jmf-hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; display: block; }
	.jmf-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(36, 38, 58, 0.55); }
	.jmf-hero--video .jmf-hero__content {
		height: 100%; display: flex; flex-direction: column; justify-content: space-between;
		text-align: center; padding: clamp(20px, 3.2vh, 44px) 0 clamp(24px, 4vh, 48px);
		text-shadow: 0 1px 3px rgba(2, 6, 24, 0.6);
	}
	.jmf-hero__top { display: flex; flex-direction: column; align-items: center; }
	.jmf-hero__top + .jmf-hero__bottom { margin-top: 0; }
	.jmf-hero.jmf-hero--video h1 { max-width: none; font-size: clamp(36px, min(4.2vw, 6.6vh), 64px); line-height: 1.04; }
	.jmf-hero__top > .jmf-hero__badge + * { margin-top: clamp(12px, 2vh, 24px); }
	.jmf-hero--video .jmf-hero__intro { margin-inline: auto; max-width: 56ch; font-size: clamp(16px, 1.35vw, 20px); }
	.jmf-hero__bottom > .wp-block-buttons { justify-content: center; margin-top: clamp(16px, 2vw, 32px); }
	.jmf-hero--video .wp-element-button { text-shadow: none; }
	.jmf-hero__badge { font-size: clamp(15px, 1.35vw, 20px); line-height: 1.2; padding: 12px 22px 12px 18px; }
	.jmf-hero__toggle:not([hidden]) {
		display: grid; place-items: center;
		position: absolute; right: 24px; top: 24px; z-index: 1; margin: 0 !important;
		width: 44px; height: 44px; border-radius: 50%;
		border: 1px solid rgba(241, 245, 249, 0.4);
		background: rgba(2, 6, 24, 0.5); color: var(--jmf-on-midnight); cursor: pointer;
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		transition: background .18s, transform .18s var(--jmf-ease);
	}
	.jmf-hero__toggle:hover { background: rgba(2, 6, 24, 0.8); transform: scale(1.05); }
	.jmf-hero__toggle-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
	.jmf-hero__toggle.is-paused .jmf-hero__toggle-icon { border: 0; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; margin-left: 4px; }
}
@media (max-width: 600px) { .jmf-hero__badge { font-size: 13px; letter-spacing: 0.06em; } }

/* ==========================================================================
   8. Stat tiles (facts rows)
   ========================================================================== */
.jmf-facts { border: 0 !important; gap: var(--wp--preset--spacing--6) !important; }
.jmf-facts > .wp-block-column {
	position: relative;
	padding: var(--wp--preset--spacing--6) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: var(--jmf-radius-lg);
	background: var(--wp--preset--color--surface-100);
	box-shadow: var(--jmf-shadow-card);
	overflow: hidden;
	transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s;
}
.jmf-facts > .wp-block-column::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--jmf-grad);
}
.jmf-facts > .wp-block-column:hover { transform: translateY(-2px); box-shadow: var(--jmf-shadow-lift); border-color: rgba(var(--jmf-accent-rgb), 0.4) !important; }
.jmf-facts p { margin: 0; }
.jmf-fact__value {
	font-family: var(--wp--preset--font-family--mono);
	font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
	background: var(--jmf-hl); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	color: var(--jmf-accent);
	margin-bottom: 6px !important;
}

/* ==========================================================================
   9. Cards (ServiceCard) and grids
   ========================================================================== */
.wp-block-group.is-style-card {
	position: relative;
	background: var(--wp--preset--color--surface-100);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--jmf-radius-lg);
	box-shadow: var(--jmf-shadow-card);
	padding: var(--wp--preset--spacing--6);
	display: flex; flex-direction: column; gap: var(--wp--preset--spacing--3);
	height: 100%;
	transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s;
}
.wp-block-group.is-style-card::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	background: radial-gradient(120% 80% at 0% 0%, rgba(var(--jmf-accent-rgb), 0.10), transparent 55%);
	opacity: 0; transition: opacity .25s;
}
.wp-block-group.is-style-card:hover { transform: translateY(-2px); box-shadow: var(--jmf-shadow-lift); border-color: rgba(var(--jmf-accent-rgb), 0.45); }
.wp-block-group.is-style-card:hover::after { opacity: 1; }
.wp-block-group.is-style-card > * { margin: 0; position: relative; z-index: 1; }
.is-style-card .jmf-card__icon {
	width: 44px; height: 44px; margin: 0 0 6px;
	border-radius: var(--jmf-radius-md);
	background: var(--jmf-tile);
	border: 1px solid rgba(var(--jmf-accent-rgb), 0.25);
	color: var(--jmf-icon);
	display: grid; place-items: center;
	transition: transform .25s var(--jmf-ease), box-shadow .25s;
}
.is-style-card:hover .jmf-card__icon { transform: translateY(-1px) scale(1.04); box-shadow: 0 0 22px -6px rgba(var(--jmf-accent-rgb), 0.8); }
.is-style-card .jmf-card__icon svg, .is-style-card .jmf-card__icon img { width: 22px; height: 22px; }
.is-style-card h3 { margin: 0; }
.is-style-card p { color: var(--wp--preset--color--ink-muted); font-size: 14px; line-height: 22px; }
.is-style-card ul { margin: 0; padding: 0; list-style: none; color: var(--wp--preset--color--ink-muted); font-size: 14px; line-height: 22px; }
.is-style-card ul li { position: relative; padding-left: 24px; }
.is-style-card ul li + li { margin-top: 6px; }
.is-style-card ul li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--jmf-icon);
	-webkit-mask: var(--jmf-check-icon) center / contain no-repeat; mask: var(--jmf-check-icon) center / contain no-repeat;
}
.jmf-card__link { margin-top: auto !important; padding-top: 8px; font-weight: 600; font-size: 15px; }
.jmf-card__link a { text-decoration: none; color: var(--jmf-icon); }
.jmf-card__link a::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .2s var(--jmf-ease); }
.jmf-card__link a:hover::after { transform: translateX(4px); }

.jmf-grid { display: grid; gap: var(--wp--preset--spacing--6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jmf-grid.jmf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jmf-grid > * { margin: 0 !important; }
@media (max-width: 1024px) { .jmf-grid, .jmf-grid.jmf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .jmf-grid, .jmf-grid.jmf-grid--3 { grid-template-columns: 1fr; } }

/* Problem / feature items: hairline panels with an accent top rule that fills on hover. */
.jmf-problem {
	position: relative;
	padding: var(--wp--preset--spacing--6) !important;
	border-radius: var(--jmf-radius-lg);
	border: 1px solid var(--wp--preset--color--border);
	background: color-mix(in srgb, var(--wp--preset--color--surface-100) 70%, transparent);
	overflow: hidden;
	transition: border-color .2s, transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease);
}
.jmf-problem::before {
	content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
	background: var(--jmf-grad); transform: scaleX(.18); transform-origin: left; transition: transform .35s var(--jmf-ease);
}
.jmf-problem:hover { border-color: rgba(var(--jmf-accent-rgb), 0.4); transform: translateY(-2px); box-shadow: var(--jmf-shadow-card); }
.jmf-problem:hover::before { transform: scaleX(1); }
.jmf-problem > * { margin: 0; }
.jmf-problem h3 { margin-bottom: 8px; }
.jmf-problem p { color: var(--wp--preset--color--ink-muted); }
.jmf-ai-list { display: grid; gap: var(--wp--preset--spacing--4); align-content: start; }
.jmf-ai-list > * { margin: 0 !important; }

/* Install items (home) */
.jmf-install__item > * { margin: 0; }
.jmf-install__item h3 { margin-top: var(--wp--preset--spacing--6); }
.jmf-install__item p { margin: 8px 0 0; color: var(--wp--preset--color--ink-muted); }
.jmf-install__item .jmf-card__link { margin-top: 12px !important; }

/* Photo slots: placeholders for real job photos. */
.jmf-photo-slot {
	aspect-ratio: 4 / 3;
	border-radius: var(--jmf-radius-xl);
	background:
		radial-gradient(80% 60% at 30% 20%, rgba(var(--jmf-accent-rgb), 0.18), transparent 70%),
		linear-gradient(var(--jmf-grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--jmf-grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--wp--preset--color--surface-200);
	border: 1px dashed var(--wp--preset--color--border-strong);
	display: grid; place-items: center;
	color: var(--wp--preset--color--ink-muted);
	font-size: 14px; text-align: center; padding: 16px;
	box-shadow: var(--jmf-shadow-lift);
}
.jmf-photo-slot + *, * + .jmf-photo-slot { margin-top: var(--wp--preset--spacing--6); }
.wp-block-image img { border-radius: var(--jmf-radius-xl); }

/* Check lists */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 34px; }
.wp-block-list.is-style-checks li + li { margin-top: 16px; }
.wp-block-list.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; background: var(--jmf-icon);
	-webkit-mask: var(--jmf-check-icon) center / contain no-repeat; mask: var(--jmf-check-icon) center / contain no-repeat;
}

/* Areas chips */
.jmf-areas { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.jmf-areas li {
	margin: 0 !important; padding: 6px 14px; border-radius: 9999px;
	background: rgba(var(--jmf-accent-rgb), 0.10); border: 1px solid rgba(var(--jmf-accent-rgb), 0.25);
	color: var(--wp--preset--color--ink); font-weight: 600; font-size: 14px;
}
.is-style-card .jmf-areas + p { color: var(--wp--preset--color--ink); font-size: 15px; line-height: 22px; }

/* ==========================================================================
   10. Testimonials
   ========================================================================== */
.wp-block-quote.jmf-quote {
	position: relative; margin: 0; height: 100%;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--6) var(--wp--preset--spacing--6);
	border: 1px solid var(--wp--preset--color--border); border-radius: var(--jmf-radius-lg);
	background: var(--wp--preset--color--surface-100); box-shadow: var(--jmf-shadow-card);
	display: flex; flex-direction: column;
	transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s;
}
.wp-block-quote.jmf-quote::before {
	content: "\201C"; position: absolute; top: 4px; left: 20px;
	font-size: 72px; line-height: 1; font-weight: 900; font-family: Georgia, serif;
	background: var(--jmf-hl); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--jmf-accent);
	opacity: .9;
}
.wp-block-quote.jmf-quote:hover { transform: translateY(-2px); box-shadow: var(--jmf-shadow-lift); border-color: rgba(var(--jmf-accent-rgb), 0.4); }
.wp-block-quote.jmf-quote p { font-size: 17px; line-height: 28px; color: var(--wp--preset--color--ink); margin: 18px 0 0; }
.wp-block-quote.jmf-quote cite { display: block; margin-top: auto; padding-top: var(--wp--preset--spacing--4); font-style: normal; font-weight: 700; font-size: 15px; color: var(--wp--preset--color--ink); }
.wp-block-quote.jmf-quote cite span { font-weight: 500; color: var(--jmf-icon); margin-left: 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.jmf-faq .wp-block-details {
	margin: 0 0 12px !important; padding: 0;
	border: 1px solid var(--wp--preset--color--border); border-radius: var(--jmf-radius-lg);
	background: var(--wp--preset--color--surface-100);
	transition: border-color .2s, box-shadow .2s;
}
.jmf-faq .wp-block-details:hover { border-color: rgba(var(--jmf-accent-rgb), 0.4); }
.jmf-faq .wp-block-details[open] { border-color: rgba(var(--jmf-accent-rgb), 0.5); box-shadow: 0 0 0 3px rgba(var(--jmf-accent-rgb), 0.08); }
.jmf-faq summary {
	font-weight: 700; font-size: 17px; line-height: 26px; cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px;
}
.jmf-faq summary::-webkit-details-marker { display: none; }
.jmf-faq summary::after {
	content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
	background:
		linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat,
		rgba(var(--jmf-accent-rgb), 0.12);
	color: var(--jmf-icon);
	transition: transform .25s var(--jmf-ease);
}
.jmf-faq details[open] summary::after { transform: rotate(45deg); }
.jmf-faq details > :not(summary) { margin: 0 22px 20px; color: var(--wp--preset--color--ink-muted); max-width: 70ch; }
html.jmf-motion .jmf-faq details[open] > :not(summary) { animation: jmf-fade-in .35s var(--jmf-ease); }

/* ==========================================================================
   12. CTA band
   ========================================================================== */
.jmf-cta { position: relative; isolation: isolate; }
.jmf-cta h2, .jmf-cta p:not(.is-style-eyebrow) { color: var(--jmf-on-midnight); margin: 0; }
.jmf-cta p:not(.is-style-eyebrow) { color: var(--jmf-on-midnight-muted); }
.jmf-cta .wp-block-group { max-width: 600px !important; }
.jmf-cta .wp-block-group > * + * { margin-top: 12px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.jmf-footer { border-top: 0; }
.jmf-footer a { color: var(--wp--preset--color--on-navy); text-decoration: none; transition: color .15s; }
.jmf-footer a:hover { color: #7cc8f0; }
.jmf-footer .wp-block-heading { color: var(--wp--preset--color--on-navy); letter-spacing: .08em; text-transform: uppercase; font-size: 12px !important; }
.jmf-footer ul { list-style: none; padding: 0; margin: 0; }
.jmf-footer li + li { margin-top: 8px; }
.jmf-footer h2.wp-block-heading { margin: 0 0 var(--wp--preset--spacing--3); }
.jmf-footer__muted { opacity: .92; }

/* ==========================================================================
   14. Motion: one hero entrance, quiet scroll reveals. Only when motion is allowed
       (motion.js adds .jmf-motion), so content never hides without JavaScript.
   ========================================================================== */
@keyframes jmf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes jmf-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes jmf-glow-in { from { opacity: 0; transform: translateY(-50%) scale(.92); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

html.jmf-motion .jmf-hero > .alignwide > *,
html.jmf-motion .jmf-hero__top > *,
html.jmf-motion .jmf-hero__bottom > * { animation: jmf-rise .8s var(--jmf-ease) both; }
html.jmf-motion .jmf-hero > .alignwide > :nth-child(2), html.jmf-motion .jmf-hero__top > :nth-child(2) { animation-delay: .08s; }
html.jmf-motion .jmf-hero > .alignwide > :nth-child(3), html.jmf-motion .jmf-hero__bottom > :nth-child(1) { animation-delay: .16s; }
html.jmf-motion .jmf-hero > .alignwide > :nth-child(4), html.jmf-motion .jmf-hero__bottom > :nth-child(2) { animation-delay: .24s; }
@media (min-width: 900px) {
	html.jmf-motion .jmf-hero.has-hero-photo::before { animation: jmf-photo-in 1.4s var(--jmf-ease) both; }
}
@keyframes jmf-photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

html.jmf-motion .jmf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--jmf-ease), transform .7s var(--jmf-ease); transition-delay: var(--jmf-delay, 0s); }
html.jmf-motion .jmf-reveal.is-in { opacity: 1; transform: none; }
/* Cards keep their own hover transitions once revealed. */
html.jmf-motion .jmf-reveal.is-in.is-style-card,
html.jmf-motion .jmf-reveal.is-in.jmf-problem,
html.jmf-motion .jmf-reveal.is-in.jmf-quote { transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s, opacity .7s var(--jmf-ease); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
	*:not(video) { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
}

/* Job photos (in-page photo spots) */
.jmf-photo {
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: var(--jmf-radius-xl);
	overflow: hidden;
	box-shadow: var(--jmf-shadow-lift);
	background: var(--wp--preset--color--surface-200);
}
.jmf-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--jmf-ease); }
.jmf-photo:hover .jmf-photo__img { transform: scale(1.03); }
.jmf-photo + *, * + .jmf-photo { margin-top: var(--wp--preset--spacing--6); }
.jmf-install__item > .jmf-photo { margin-top: 0; }

/* Home hero headline: solid light-blue highlight with a soft shadow so it stays legible over every video frame. */
.jmf-hero--video .jmf-hl {
	background: none;
	-webkit-text-fill-color: #a9defa;
	color: #a9defa;
	text-shadow: 0 2px 14px rgba(2, 6, 24, 0.75), 0 1px 3px rgba(2, 6, 24, 0.6);
}

/* ==========================================================================
   15. Premium layer: service graphics, section backgrounds, refined motion
   ========================================================================== */

/* Service cards with a graphic header (home: Our Core Services). */
.wp-block-group.is-style-card.jmf-card--media { padding-top: 0; overflow: hidden; }
.jmf-card--media .jmf-card__media {
	margin: 0 calc(var(--wp--preset--spacing--6) * -1) 6px !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9eef5;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.jmf-card--media .jmf-card__media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transform: scale(1.02);
	transition: transform .8s var(--jmf-ease), filter .8s var(--jmf-ease);
}
.jmf-card--media:hover .jmf-card__media img { transform: scale(1.08); filter: saturate(1.08) brightness(1.02); }

/* Section backgrounds: soft abstract light network behind the grey bands, light trails behind CTA panels. */
.jmf-sections .has-surface-200-background-color {
	background-image:
		radial-gradient(60% 50% at 10% 0%, rgba(var(--jmf-accent-rgb), 0.07), transparent 70%),
		radial-gradient(50% 45% at 95% 100%, rgba(160, 44, 116, 0.05), transparent 70%),
		linear-gradient(rgba(244, 246, 249, 0.84), rgba(244, 246, 249, 0.84)),
		url("../images/backgrounds/light-network.webp");
	background-size: auto, auto, auto, cover;
	background-position: center, center, center, center;
}
.jmf-cta {
	background-image:
		linear-gradient(90deg, rgba(51, 53, 77, 0.92) 0%, rgba(51, 53, 77, 0.72) 45%, rgba(51, 53, 77, 0.25) 100%),
		url("../images/backgrounds/navy-trails.webp") !important;
	background-size: auto, cover !important;
	background-position: center, right center !important;
}

/* Spotlight that follows the pointer across cards. */
.is-style-card, .jmf-problem, .wp-block-quote.jmf-quote, .jmf-facts > .wp-block-column { --mx: 50%; --my: 0%; }
.wp-block-group.is-style-card::after,
.jmf-problem::after,
.wp-block-quote.jmf-quote::after,
.jmf-facts > .wp-block-column::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--jmf-accent-rgb), 0.10), transparent 60%);
	opacity: 0; transition: opacity .35s var(--jmf-ease);
}
.wp-block-group.is-style-card:hover::after,
.jmf-problem:hover::after,
.wp-block-quote.jmf-quote:hover::after,
.jmf-facts > .wp-block-column:hover::after { opacity: 1; }
.jmf-problem > *, .wp-block-quote.jmf-quote > *, .jmf-facts > .wp-block-column > * { position: relative; z-index: 1; }

/* Button sheen on hover. */
.wp-block-button .wp-block-button__link { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-button .wp-block-button__link::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-18deg); pointer-events: none;
}
html.jmf-motion .wp-block-button .wp-block-button__link:hover::after { animation: jmf-sheen .8s var(--jmf-ease); }
@keyframes jmf-sheen { from { left: -60%; } to { left: 130%; } }

/* Reading progress line under the sticky header. */
.jmf-progress {
	position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
	background: linear-gradient(90deg, #2375a7, #7cc8f0 60%, #a02c74);
	transform-origin: left; transform: scaleX(var(--jmf-progress, 0));
	pointer-events: none;
}
.jmf-header { position: relative; }

/* Hero headline: word-by-word reveal (one orchestrated moment per page). */
html.jmf-motion .jmf-hero h1.is-split { animation: none !important; }
html.jmf-motion .jmf-word {
	display: inline-block;
	opacity: 0; transform: translateY(0.45em); filter: blur(6px);
	animation: jmf-word-in .9s var(--jmf-ease) forwards;
	animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
}
@keyframes jmf-word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* Highlight phrases shimmer once as they arrive. */
.jmf-hl { background-size: 220% 100%; background-position: 0% 50%; }
html.jmf-motion .is-in .jmf-hl,
html.jmf-motion .jmf-hero .jmf-hl { animation: jmf-shimmer 2.4s .3s var(--jmf-ease) both; }
@keyframes jmf-shimmer { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.jmf-hero--video .jmf-hl { animation: none !important; }

/* Hero photos settle in slowly. */
@media (min-width: 900px) {
	html.jmf-motion .jmf-hero.has-hero-photo::before { animation: jmf-photo-settle 2.6s var(--jmf-ease) both; }
}
@keyframes jmf-photo-settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }

/* Job photos reveal with a gentle wipe. */
html.jmf-motion .jmf-reveal .jmf-photo,
html.jmf-motion .jmf-photo.jmf-reveal { clip-path: inset(0 0 100% 0 round var(--jmf-radius-xl)); transition: clip-path 1.1s var(--jmf-ease); }
html.jmf-motion .jmf-reveal.is-in .jmf-photo,
html.jmf-motion .jmf-photo.jmf-reveal.is-in { clip-path: inset(0 0 0 0 round var(--jmf-radius-xl)); }

@media (prefers-reduced-motion: reduce) {
	.jmf-word { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ==========================================================================
   16. IT pain picker (Managed IT page)
   ========================================================================== */
.jmf-pains__app { max-width: var(--wp--style--global--wide-size, 1680px); margin: 0 auto; }
.jmf-pains__status {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: fit-content; margin: 0 auto var(--wp--preset--spacing--8) !important;
	padding: 8px 16px; border-radius: 9999px;
	background: #fff; border: 1px solid var(--wp--preset--color--border);
	font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted);
	transition: color .25s, border-color .25s, background .25s;
}
.jmf-pains__status-icon { display: inline-grid; color: var(--wp--preset--color--border-strong); }
.jmf-pains__status-icon svg { width: 16px; height: 16px; }
.jmf-pains__app.has-selection .jmf-pains__status { color: var(--jmf-accent); border-color: rgba(var(--jmf-accent-rgb), 0.45); background: rgba(var(--jmf-accent-rgb), 0.06); }
.jmf-pains__app.has-selection .jmf-pains__status-icon { color: var(--jmf-accent); }

.jmf-pains__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .jmf-pains__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .jmf-pains__grid { grid-template-columns: 1fr; } }

.jmf-pains__tile {
	position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
	padding: 18px 44px 18px 18px; text-align: left; cursor: pointer;
	font: inherit; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--wp--preset--color--ink);
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--jmf-radius-lg);
	box-shadow: var(--jmf-shadow-card);
	transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s, background .2s;
}
.jmf-pains__tile:hover { transform: translateY(-2px); box-shadow: var(--jmf-shadow-lift); border-color: rgba(var(--jmf-accent-rgb), 0.4); }
.jmf-pains__tile:focus-visible { outline: 2px solid var(--jmf-accent); outline-offset: 3px; }
.jmf-pains__icon {
	flex: none; width: 42px; height: 42px; border-radius: var(--jmf-radius-md);
	display: grid; place-items: center; color: var(--jmf-accent);
	background: var(--jmf-tile); border: 1px solid rgba(var(--jmf-accent-rgb), 0.22);
	transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--jmf-ease);
}
.jmf-pains__tick {
	position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; background: var(--jmf-accent);
	opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--jmf-ease);
}
.jmf-pains__tick svg { width: 13px; height: 13px; stroke-width: 3; }
.jmf-pains__tile[aria-pressed="true"] {
	border-color: var(--jmf-accent); background: linear-gradient(180deg, rgba(var(--jmf-accent-rgb), 0.06), #fff 70%);
	box-shadow: 0 0 0 3px rgba(var(--jmf-accent-rgb), 0.14), var(--jmf-shadow-card);
}
.jmf-pains__tile[aria-pressed="true"] .jmf-pains__icon { background: var(--jmf-grad); color: #fff; border-color: transparent; box-shadow: var(--jmf-shadow-glow); }
.jmf-pains__tile[aria-pressed="true"] .jmf-pains__tick { opacity: 1; transform: scale(1); }
html.jmf-motion .jmf-pains__tile[aria-pressed="true"] .jmf-pains__icon { animation: jmf-pop .35s var(--jmf-ease); }
@keyframes jmf-pop { 50% { transform: scale(1.12); } }

.jmf-pains__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: var(--wp--preset--spacing--8); }
.jmf-pains__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 15px 26px; border-radius: var(--jmf-radius-md); border: 1px solid transparent;
	font: inherit; font-size: 16px; font-weight: 600; line-height: 20px; text-decoration: none; cursor: pointer;
	transition: transform .18s var(--jmf-ease), box-shadow .18s var(--jmf-ease), background .18s, border-color .18s, color .18s, opacity .18s;
}
.jmf-pains__btn:hover:not(:disabled) { transform: translateY(-1px); }
.jmf-pains__btn:focus-visible { outline: 2px solid var(--jmf-accent); outline-offset: 3px; }
.jmf-pains__btn--primary { background: var(--jmf-grad); color: #fff; box-shadow: 0 0 24px -8px rgba(var(--jmf-accent-rgb), 0.6); }
.jmf-pains__btn--primary:hover:not(:disabled) { box-shadow: var(--jmf-shadow-glow); }
.jmf-pains__btn--primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.jmf-pains__btn--ghost { background: #fff; color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--border-strong); }
.jmf-pains__btn--ghost:hover { border-color: var(--jmf-accent); color: var(--jmf-accent); }
.jmf-pains__btn--accent { background: linear-gradient(135deg, #a02c74 0%, #b8358a 100%); color: #fff !important; box-shadow: 0 0 24px -8px rgba(160, 44, 116, 0.6); }
.jmf-pains__btn--accent:hover { box-shadow: 0 0 30px -5px rgba(160, 44, 116, 0.7); }
.jmf-pains__btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff !important; border-color: rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.jmf-pains__btn--glass:hover { background: rgba(255, 255, 255, 0.16); }
.jmf-pains__link { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jmf-pains__link:hover { color: var(--jmf-accent); }
.jmf-pains__link--light { color: rgba(255, 255, 255, 0.85); margin-left: 12px; }
.jmf-pains__link--light:hover { color: #fff; }

/* States: "static" = no JavaScript (show every fix); "pick" = choosing; "results" = tailored list. */
.jmf-pains__app[data-state="static"] .jmf-pains__grid,
.jmf-pains__app[data-state="static"] .jmf-pains__actions,
.jmf-pains__app[data-state="static"] .jmf-pains__status,
.jmf-pains__app[data-state="pick"] .jmf-pains__results { display: none; }
.jmf-pains__app[data-state="static"] .jmf-pains__num::before { content: counter(list-item); }
.jmf-pains__app[data-state="results"] .jmf-pains__actions [data-action="all"] { display: none; }

.jmf-pains__results { margin-top: var(--wp--preset--spacing--12); outline: none; }
.jmf-pains__results-title { text-align: center; font-size: var(--wp--preset--font-size--subsection); font-weight: 800; letter-spacing: -0.015em; margin: 0 auto 8px; max-width: 26ch; }
.jmf-pains__results-intro { text-align: center; color: var(--wp--preset--color--ink-muted); margin: 0 auto var(--wp--preset--spacing--8); max-width: 60ch; }
.jmf-pains__fixes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .jmf-pains__fixes { grid-template-columns: 1fr; } }
.jmf-pains__fix {
	display: flex; gap: 16px; align-items: flex-start;
	padding: var(--wp--preset--spacing--6); background: #fff;
	border: 1px solid var(--wp--preset--color--border); border-radius: var(--jmf-radius-lg); box-shadow: var(--jmf-shadow-card);
	position: relative; overflow: hidden;
}
.jmf-pains__fix::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--jmf-grad); }
.jmf-pains__fix[hidden] { display: none; }
.jmf-pains__num {
	flex: none; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 15px;
	color: #fff; background: var(--jmf-grad); box-shadow: var(--jmf-shadow-glow);
}
.jmf-pains__fix-title { margin: 4px 0 6px; font-size: 18px; font-weight: 700; color: var(--wp--preset--color--ink); }
.jmf-pains__fix-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jmf-accent); }
.jmf-pains__fix-text { margin: 0; color: var(--wp--preset--color--ink-muted); font-size: 15px; line-height: 24px; }
html.jmf-motion .jmf-pains__app[data-state="results"] .jmf-pains__fix:not([hidden]) { animation: jmf-rise .6s var(--jmf-ease) both; animation-delay: calc(var(--i, 0) * 0.06s); }

.jmf-pains__cta {
	margin-top: var(--wp--preset--spacing--8);
	display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center;
	padding: var(--wp--preset--spacing--12); border-radius: var(--jmf-radius-xl); color: #fff;
	background:
		linear-gradient(90deg, rgba(51, 53, 77, 0.95) 0%, rgba(51, 53, 77, 0.78) 50%, rgba(51, 53, 77, 0.35) 100%),
		url("../images/backgrounds/navy-trails.webp") right center / cover #33354d;
	box-shadow: var(--jmf-shadow-lift);
}
.jmf-pains__cta h3 { margin: 0 0 8px; color: #fff; font-size: var(--wp--preset--font-size--subsection); font-weight: 800; letter-spacing: -0.015em; }
.jmf-pains__cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.jmf-pains__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.jmf-pains__cta-meta { grid-column: 1 / -1; font-size: 14px; }
.jmf-pains__cta-meta a { color: #fff; font-weight: 700; }
.jmf-pains__cta .jmf-pains__btn:focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
	.jmf-pains__cta { grid-template-columns: 1fr; padding: var(--wp--preset--spacing--8); }
	.jmf-pains__cta-actions { justify-content: flex-start; }
}

/* ==========================================================================
   17. SmileBack live reviews
   ========================================================================== */
.jmf-reviews { max-width: var(--wp--style--global--wide-size, 1680px); margin-left: auto !important; margin-right: auto !important; }
.jmf-reviews + .jmf-grid { margin-top: var(--wp--preset--spacing--12) !important; }
.jmf-reviews__label {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 0 0 var(--wp--preset--spacing--6) !important;
	font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--wp--preset--color--ink-muted);
}
.jmf-reviews__dot { width: 8px; height: 8px; border-radius: 50%; background: #13ab1d; box-shadow: 0 0 0 4px rgba(19, 171, 29, 0.15); }
html.jmf-motion .jmf-reviews__dot { animation: jmf-live 2s ease-in-out infinite; }
@keyframes jmf-live { 50% { box-shadow: 0 0 0 7px rgba(19, 171, 29, 0); } }
.jmf-reviews__widget { min-height: 220px; }

/* Brand-blue partner highlight (e.g. "Security Cameras" beside green "Access Control"). */
.jmf-hl.jmf-hl--blue {
	background-image: linear-gradient(90deg, #2375a7 0%, #2a68b8 100%);
	color: #2375a7;
}
.jmf-hero .jmf-hl.jmf-hl--blue,
.jmf-cta .jmf-hl.jmf-hl--blue {
	background-image: linear-gradient(90deg, #a9defa 0%, #5bb8ea 55%, #2f9bd6 100%);
	color: #7cc8f0;
}

/* Wide (16:9) photo frame for landscape product shots. */
.jmf-photo.jmf-photo--wide { aspect-ratio: 16 / 9; background: #fff; }

/* Jetpack share / like rows are turned off in PHP; hide them here too in case a module still prints them. */
.sharedaddy, .sd-sharing-enabled, .sd-like, #jp-post-flair, .jetpack-likes-widget-wrapper,
.wp-block-jetpack-sharing-buttons, .wp-block-jetpack-like { display: none !important; }

/* Footer social buttons (Facebook, LinkedIn) */
.jmf-footer .jmf-social { gap: 12px; padding: 0; }
.jmf-footer .jmf-social .wp-social-link {
	background: rgba(255, 255, 255, 0.08) !important; color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px;
	transition: transform .18s var(--jmf-ease), background .18s, border-color .18s, box-shadow .18s;
}
.jmf-footer .jmf-social .wp-social-link a { padding: 10px; color: #fff !important; }
.jmf-footer .jmf-social .wp-social-link svg { width: 20px; height: 20px; }
.jmf-footer .jmf-social .wp-social-link:hover { transform: translateY(-2px); border-color: transparent; }
.jmf-footer .jmf-social .wp-social-link-facebook:hover { background: #1877f2 !important; box-shadow: 0 0 24px -6px rgba(24, 119, 242, 0.7); }
.jmf-footer .jmf-social .wp-social-link-linkedin:hover { background: #0a66c2 !important; box-shadow: 0 0 24px -6px rgba(10, 102, 194, 0.7); }
.jmf-footer .jmf-social .wp-social-link a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }

/* ==========================================================================
   18. Footer logo
   ========================================================================== */
.jmf-footer__logo { display: inline-block; line-height: 0; padding: 12px 16px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgb(2 6 24 / .25); transition: transform .2s var(--jmf-ease), box-shadow .2s; }
.jmf-footer__logo img { width: 152px; height: auto; }
.jmf-footer__logo:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(2 6 24 / .35); }

/* ==========================================================================
   19. Blog: listing, cards, categories, pagination
   ========================================================================== */
.jmf-blog__cats { margin-bottom: var(--wp--preset--spacing--8) !important; }
.jmf-cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jmf-cat-chips li { margin: 0; }
.jmf-cat-chips a {
	display: inline-block; padding: 7px 14px; border-radius: 9999px; text-decoration: none;
	font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ink);
	background: #fff; border: 1px solid var(--wp--preset--color--border);
	transition: border-color .18s, color .18s, background .18s, transform .18s var(--jmf-ease);
}
.jmf-cat-chips a:hover { border-color: var(--jmf-accent); color: var(--jmf-accent); transform: translateY(-1px); }
.jmf-cat-chips .current-cat a { background: var(--jmf-grad); color: #fff; border-color: transparent; }

.jmf-posts .wp-block-post-template { gap: var(--wp--preset--spacing--6) !important; margin: 0; padding: 0; list-style: none; }
.jmf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .jmf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jmf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
.jmf-posts .wp-block-post { margin: 0; display: flex; }

.jmf-post-card {
	--mx: 50%; --my: 0%;
	position: relative; display: flex; flex-direction: column; width: 100%;
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--jmf-radius-lg);
	box-shadow: var(--jmf-shadow-card); overflow: hidden;
	transition: transform .2s var(--jmf-ease), box-shadow .2s var(--jmf-ease), border-color .2s;
}
.jmf-post-card:hover { transform: translateY(-3px); box-shadow: var(--jmf-shadow-lift); border-color: rgba(var(--jmf-accent-rgb), 0.4); }
.jmf-post-card::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--jmf-accent-rgb), 0.08), transparent 60%);
	opacity: 0; transition: opacity .35s;
}
.jmf-post-card:hover::after { opacity: 1; }
.jmf-post-card > * { margin: 0 !important; }
.jmf-post-card__media { margin: 0 !important; overflow: hidden; background: var(--wp--preset--color--surface-200); }
.jmf-post-card__media img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .7s var(--jmf-ease); }
.jmf-post-card:hover .jmf-post-card__media img { transform: scale(1.05); }
.jmf-post-card__body { display: flex; flex-direction: column; gap: 10px; padding: var(--wp--preset--spacing--6); flex: 1; }
.jmf-post-card__body > * { margin: 0 !important; }
.jmf-post-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 3; }
.jmf-post-card__cat a { color: var(--jmf-accent); text-decoration: none; }
.jmf-post-card__cat a:hover { text-decoration: underline; }
.jmf-post-card__title { font-size: 20px !important; line-height: 1.35 !important; font-weight: 700 !important; letter-spacing: -0.01em; }
.jmf-post-card__title a { color: var(--wp--preset--color--ink); text-decoration: none; }
/* Whole card is clickable through the title link. */
.jmf-post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.jmf-post-card__title a:hover { color: var(--jmf-accent); }
.jmf-post-card__title a:focus-visible { outline: none; }
.jmf-post-card:has(.jmf-post-card__title a:focus-visible) { outline: 2px solid var(--jmf-accent); outline-offset: 3px; }
.jmf-post-card__excerpt { color: var(--wp--preset--color--ink-muted); font-size: 15px; line-height: 24px; }
.jmf-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.jmf-post-card__excerpt p { margin: 0; }
.jmf-post-card__date { margin-top: auto !important; padding-top: 6px; font-size: 13px; color: var(--wp--preset--color--ink-muted); font-family: var(--wp--preset--font-family--mono); }

.jmf-pagination { margin-top: var(--wp--preset--spacing--12) !important; gap: 8px; font-weight: 600; }
.jmf-pagination a, .jmf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: var(--jmf-radius-md); border: 1px solid var(--wp--preset--color--border); background: #fff;
	color: var(--wp--preset--color--ink); text-decoration: none; transition: border-color .18s, color .18s;
}
.jmf-pagination a:hover { border-color: var(--jmf-accent); color: var(--jmf-accent); }
.jmf-pagination .page-numbers.current { background: var(--jmf-grad); color: #fff; border-color: transparent; }
.jmf-pagination .page-numbers.dots { border: 0; background: none; }

/* ==========================================================================
   20. Single post
   ========================================================================== */
.jmf-hero--post .jmf-post-eyebrow { display: inline-flex; }
.jmf-hero--post .jmf-post-eyebrow a { color: inherit; text-decoration: none; }
.jmf-hero--post .jmf-post-eyebrow .wp-block-post-terms__separator { opacity: .6; }
.jmf-hero.jmf-hero--post .jmf-post-title { max-width: 24ch; margin-top: var(--wp--preset--spacing--6); color: var(--jmf-on-midnight); }
.jmf-post-meta { gap: 6px 18px !important; margin-top: var(--wp--preset--spacing--6) !important; color: var(--jmf-on-midnight-muted); font-size: 15px; }
.jmf-post-meta > * { margin: 0 !important; }
.jmf-post-meta .wp-block-post-date { display: inline-flex; gap: 18px; color: var(--jmf-on-midnight-muted); }
.jmf-post-meta .jmf-read::before { content: "\00B7"; margin-right: 18px; opacity: .6; }

.jmf-article-wrap > .jmf-article__feature {
	max-width: 960px !important; margin: calc(var(--wp--preset--spacing--20) * -1) auto var(--wp--preset--spacing--12) !important;
	border-radius: var(--jmf-radius-xl); overflow: hidden; box-shadow: var(--jmf-shadow-lift); position: relative; z-index: 2;
}
.jmf-article-wrap > .jmf-article__feature img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.jmf-hero--post { padding-bottom: calc(var(--wp--preset--spacing--20) * 2) !important; }
.jmf-hero--post.has-hero-photo::before, .jmf-hero--post.has-hero-photo::after { display: none; }

.jmf-article { font-size: 18px; line-height: 1.75; color: var(--wp--preset--color--ink); }
.jmf-article > * + * { margin-top: 1.1em !important; }
.jmf-article h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; margin-top: 2em !important; }
.jmf-article h3 { font-size: 21px; line-height: 1.35; font-weight: 700; margin-top: 1.6em !important; }
.jmf-article h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em !important; }
.jmf-article > p:first-child em { display: block; padding: 18px 22px; border-radius: var(--jmf-radius-lg); background: rgba(var(--jmf-accent-rgb), 0.06); border: 1px solid rgba(var(--jmf-accent-rgb), 0.18); font-style: normal; font-size: 17px; color: var(--wp--preset--color--ink); }
.jmf-article ul, .jmf-article ol { padding-left: 1.3em; }
.jmf-article li + li { margin-top: .4em; }
.jmf-article li::marker { color: var(--jmf-accent); }
.jmf-article a { color: var(--jmf-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jmf-article .wp-block-image img { border-radius: var(--jmf-radius-lg); box-shadow: var(--jmf-shadow-card); }

.jmf-article__footer { margin-top: var(--wp--preset--spacing--12) !important; }
.jmf-article__terms { font-size: 14px; color: var(--wp--preset--color--ink-muted); }
.jmf-article__terms a { color: var(--jmf-accent); font-weight: 600; text-decoration: none; }
.jmf-article__help {
	margin-top: var(--wp--preset--spacing--8) !important; padding: var(--wp--preset--spacing--8);
	border-radius: var(--jmf-radius-xl); background: var(--wp--preset--color--surface-300);
	border: 1px solid rgba(var(--jmf-accent-rgb), 0.18);
}
.jmf-article__help > * + * { margin-top: 10px !important; }
.jmf-article__help .wp-block-buttons { margin-top: var(--wp--preset--spacing--6) !important; }

/* Search form */
.jmf-search .wp-block-search__input { border-radius: var(--jmf-radius-md); border: 1px solid rgba(255,255,255,.3); padding: 12px 14px; }

/* ==========================================================================
   21. Latest From JMF (home): newest blog post + LinkedIn
   ========================================================================== */
.jmf-latest__cols { align-items: stretch !important; }
.jmf-latest__cols > .wp-block-column { display: flex; flex-direction: column; }
.jmf-latest__post { flex: 1; display: flex; }
.jmf-latest__post .wp-block-post-template { margin: 0; padding: 0; list-style: none; width: 100%; display: flex; }
.jmf-latest__post .wp-block-post { margin: 0; width: 100%; display: flex; }
.jmf-post-card--feature .jmf-post-card__title { font-size: clamp(22px, 2.2vw, 28px) !important; line-height: 1.25 !important; }
.jmf-post-card--feature .jmf-post-card__body { padding: var(--wp--preset--spacing--8); }
.jmf-latest__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jmf-accent); }
.jmf-latest__more { margin-top: var(--wp--preset--spacing--4) !important; font-weight: 600; }
.jmf-latest__more a { text-decoration: none; }
.jmf-latest__more a::after { content: " \2192"; }

.jmf-li {
	flex: 1; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--8); border-radius: var(--jmf-radius-lg);
	background:
		radial-gradient(120% 70% at 100% 0%, rgba(10, 102, 194, 0.10), transparent 60%),
		#fff;
	border: 1px solid var(--wp--preset--color--border); box-shadow: var(--jmf-shadow-card);
	transition: box-shadow .2s var(--jmf-ease), border-color .2s, transform .2s var(--jmf-ease);
}
.jmf-li:hover { box-shadow: var(--jmf-shadow-lift); border-color: rgba(10, 102, 194, 0.35); transform: translateY(-2px); }
.jmf-li__head { display: flex; align-items: center; gap: 12px; }
.jmf-li__logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #0a66c2; box-shadow: 0 0 24px -8px rgba(10, 102, 194, 0.8); flex: none; }
.jmf-li__name { margin: 0; font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.2; }
.jmf-li__sub { margin: 2px 0 0; font-size: 13px; color: var(--wp--preset--color--ink-muted); }
.jmf-li__follow {
	margin-left: auto; padding: 8px 16px; border-radius: 9999px; font-size: 14px; font-weight: 700; text-decoration: none;
	color: #0a66c2; border: 1.5px solid #0a66c2; transition: background .18s, color .18s;
}
.jmf-li__follow:hover { background: #0a66c2; color: #fff; }
.jmf-li__embed { flex: 1; min-height: 420px; border-radius: var(--jmf-radius-md); overflow: hidden; border: 1px solid var(--wp--preset--color--border); }
.jmf-li__embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.jmf-li__empty { flex: 1; }
.jmf-li__lead { margin: 0 0 var(--wp--preset--spacing--4); font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--ink); }
.jmf-li__points { list-style: none; margin: 0; padding: 0; }
.jmf-li__points li { position: relative; padding-left: 28px; color: var(--wp--preset--color--ink-muted); }
.jmf-li__points li + li { margin-top: 10px; }
.jmf-li__points li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: #0a66c2;
	-webkit-mask: var(--jmf-check-icon) center / contain no-repeat; mask: var(--jmf-check-icon) center / contain no-repeat;
}
.jmf-li__cta {
	display: inline-flex; justify-content: center; padding: 14px 22px; border-radius: var(--jmf-radius-md);
	background: #0a66c2; color: #fff !important; font-weight: 600; text-decoration: none;
	box-shadow: 0 0 24px -8px rgba(10, 102, 194, 0.7); transition: transform .18s var(--jmf-ease), box-shadow .18s;
}
.jmf-li__cta:hover { transform: translateY(-1px); box-shadow: 0 0 30px -5px rgba(10, 102, 194, 0.8); }
.jmf-li a:focus-visible { outline: 2px solid #0a66c2; outline-offset: 3px; }
@media (max-width: 781px) { .jmf-latest__cols > .wp-block-column + .wp-block-column { margin-top: var(--wp--preset--spacing--6); } }

/* ==========================================================================
   22. Contrast: solid panels, darker secondary text, clear edges
   ========================================================================== */
.jmf-problem {
	background: var(--wp--preset--color--surface-100);
	border-color: var(--wp--preset--color--border);
	box-shadow: 0 1px 2px rgba(2, 6, 24, 0.06), 0 8px 20px -10px rgba(2, 6, 24, 0.22);
}
.jmf-problem::before { height: 4px; transform: scaleX(1); }
.jmf-problem:hover { box-shadow: var(--jmf-shadow-lift); }
.jmf-problem h3 { color: var(--wp--preset--color--ink); }
.jmf-problem p, .is-style-card p, .is-style-card ul { font-size: 15px; line-height: 24px; }
.wp-block-group.is-style-card { box-shadow: 0 1px 2px rgba(2, 6, 24, 0.06), 0 8px 20px -10px rgba(2, 6, 24, 0.22); }
.jmf-sections .has-surface-200-background-color .has-ink-muted-color { color: var(--wp--preset--color--ink-muted) !important; }
.jmf-post-card__date { color: var(--wp--preset--color--ink-muted); }

/* ==========================================================================
   23. Process timelines (numbered steps): a track that fills as each step lights up
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.jmf-tl { position: relative; --jmf-tl-fill: linear-gradient(90deg, rgb(var(--jmf-accent-rgb)), #a02c74); }
.jmf-tl::before, .jmf-tl::after { content: ""; position: absolute; border-radius: 3px; pointer-events: none; }
.jmf-tl::before { background: rgba(var(--jmf-accent-rgb), 0.18); }
.jmf-tl::after { background: var(--jmf-tl-fill); box-shadow: 0 0 12px rgba(var(--jmf-accent-rgb), 0.45); }
.jmf-tl__node, ol.jmf-tl > li::before {
	position: absolute; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center;
	font-weight: 800; font-size: 17px; line-height: 1; color: #fff;
	background: var(--jmf-grad);
	box-shadow: 0 0 0 5px #fff, 0 8px 18px -6px rgba(var(--jmf-accent-rgb), 0.7);
}

/* Horizontal: a track above the cards, one node per step. */
.jmf-tl--h { padding-top: 66px; }
.jmf-tl--h::before, .jmf-tl--h::after { top: 20px; left: 44px; right: var(--jmf-tl-right, 24px); height: 3px; }
.jmf-tl--h::after { transform-origin: left center; }
.jmf-tl--h > .jmf-problem { overflow: visible; }
.jmf-tl--h > .jmf-problem::before { border-radius: var(--jmf-radius-lg) var(--jmf-radius-lg) 0 0; }
.jmf-tl--h .jmf-tl__node { top: -66px; left: 24px; }

/* Vertical: ordered process lists. */
ol.jmf-tl--v { list-style: none; counter-reset: jmf-step; padding: 0 !important; margin: 0; --jmf-tl-fill: linear-gradient(180deg, rgb(var(--jmf-accent-rgb)), #a02c74); }
ol.jmf-tl--v::before, ol.jmf-tl--v::after { left: 20px; top: 20px; bottom: var(--jmf-tl-bottom, 24px); width: 3px; }
ol.jmf-tl--v::after { transform-origin: center top; }
ol.jmf-tl--v > li { counter-increment: jmf-step; position: relative; padding-left: 66px; min-height: 42px; }
ol.jmf-tl--v > li + li { margin-top: 26px; }
ol.jmf-tl--v > li::before { content: counter(jmf-step); left: 0; top: -6px; }

/* Tablet and phone: card timelines stack vertically too. */
@media (max-width: 1024px) {
	.jmf-grid.jmf-tl--h { grid-template-columns: 1fr; padding-top: 0; padding-left: 66px; --jmf-tl-fill: linear-gradient(180deg, rgb(var(--jmf-accent-rgb)), #a02c74); }
	.jmf-tl--h::before, .jmf-tl--h::after { top: 39px; bottom: var(--jmf-tl-bottom, 24px); left: 20px; right: auto; width: 3px; height: auto; }
	.jmf-tl--h::after { transform-origin: center top; }
	.jmf-tl--h .jmf-tl__node { top: 18px; left: -66px; }
}

/* Motion: scroll-driven. The track fills to the reading line; steps light up as it passes them. */
.jmf-tl.is-scrub::after { transform: scaleX(var(--jmf-tl-p, 0)); transition: transform .4s cubic-bezier(.25, .8, .25, 1); }
.jmf-tl.is-scrub.is-vertical::after { transform: scaleY(var(--jmf-tl-p, 0)); }
/* Waiting step: outlined node, softened text. Reached step: filled node with a ping, full-strength text. */
.jmf-tl.is-scrub > * .jmf-tl__node,
ol.jmf-tl.is-scrub > li::before {
	background: #fff; color: #80839a;
	box-shadow: 0 0 0 5px #fff, inset 0 0 0 2px #c9cdd8;
	transform: scale(.7);
	transition: background .3s, color .3s, box-shadow .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.jmf-tl.is-scrub > .is-reached .jmf-tl__node,
ol.jmf-tl.is-scrub > li.is-reached::before {
	background: var(--jmf-grad); color: #fff; transform: none;
	box-shadow: 0 0 0 5px #fff, 0 8px 18px -6px rgba(var(--jmf-accent-rgb), .7);
	animation: jmf-node-ping .9s ease-out;
}
@keyframes jmf-node-ping {
	0% { box-shadow: 0 0 0 5px #fff, 0 0 0 5px rgba(var(--jmf-accent-rgb), .55), 0 8px 18px -6px rgba(var(--jmf-accent-rgb), .7); }
	100% { box-shadow: 0 0 0 5px #fff, 0 0 0 18px rgba(var(--jmf-accent-rgb), 0), 0 8px 18px -6px rgba(var(--jmf-accent-rgb), .7); }
}
/* Each step's --s (0 to 1) follows the scroll; a short transition smooths out the steps between scroll events. */
.jmf-tl.is-scrub > * {
	opacity: var(--s, 0);
	transition: opacity .45s cubic-bezier(.25, .8, .25, 1), transform .55s cubic-bezier(.25, .8, .25, 1), box-shadow .2s, border-color .2s;
	will-change: opacity, transform;
}
.jmf-tl--h.is-scrub > * { transform: translateY(calc((1 - var(--s, 0)) * 56px)); }
/* Keep each number on the track while its card rises or slides in. */
.jmf-tl--h.is-scrub .jmf-tl__node { translate: 0 calc((1 - var(--s, 0)) * -56px); transition: translate .55s cubic-bezier(.25, .8, .25, 1), background .3s, color .3s, box-shadow .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
@media (max-width: 1024px) {
	.jmf-tl--h.is-scrub > * { transform: translateX(calc((1 - var(--s, 0)) * 64px)); }
	.jmf-tl--h.is-scrub .jmf-tl__node { translate: calc((1 - var(--s, 0)) * -64px) 0; }
}
ol.jmf-tl.is-scrub > li::before { translate: calc((1 - var(--s, 0)) * -64px) 0; transition: translate .55s cubic-bezier(.25, .8, .25, 1), background .3s, color .3s, box-shadow .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
ol.jmf-tl.is-scrub > li { transform: translateX(calc((1 - var(--s, 0)) * 64px)); }


/* ==========================================================================
   24. Floating dock: back-to-top + JMF Assistant
   ========================================================================== */
.jmf-dock { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.jmf-dock > * { pointer-events: auto; }
.jmf-dock svg { width: 20px; height: 20px; flex: none; }

/* Back to top: a white disc with a scroll-progress ring. */
.jmf-totop {
	position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center; color: var(--wp--preset--color--brand-navy);
	background: #fff; box-shadow: 0 8px 24px -8px rgba(2, 6, 24, .35), 0 0 0 1px rgba(2, 6, 24, .06);
	opacity: 0; transform: translateY(12px) scale(.9); visibility: hidden;
	transition: opacity .25s, transform .3s var(--jmf-ease), visibility 0s .3s, box-shadow .2s;
	order: 0;
}
.jmf-totop.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--jmf-ease), visibility 0s, box-shadow .2s; }
.jmf-totop:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(2, 6, 24, .45), 0 0 0 1px rgba(35, 117, 167, .25); }
.jmf-totop:hover > svg:last-child { animation: jmf-up-bob .6s var(--jmf-ease); }
@keyframes jmf-up-bob { 50% { transform: translateY(-3px); } }
.jmf-totop:focus-visible, .jmf-launch:focus-visible { outline: 3px solid #7cc8f0; outline-offset: 3px; }
.jmf-totop__ring { position: absolute; inset: 0; width: 48px !important; height: 48px !important; transform: rotate(-90deg); }
.jmf-totop__ring circle { fill: none; stroke-width: 3; stroke: rgba(35, 117, 167, .14); }
.jmf-totop__ring .jmf-totop__fill { stroke: var(--jmf-accent, #2375a7); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.jmf-dock.is-assist .jmf-totop { opacity: 0; visibility: hidden; }

/* Launcher */
.jmf-launch {
	display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 9999px; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 15px; color: #fff;
	background: linear-gradient(135deg, #2375a7, #33354d 55%, #a02c74); background-size: 180% 180%; background-position: 0% 50%;
	box-shadow: 0 14px 30px -10px rgba(35, 117, 167, .7), 0 0 0 1px rgba(255, 255, 255, .12) inset;
	transition: transform .2s var(--jmf-ease), box-shadow .2s, background-position .5s var(--jmf-ease);
}
.jmf-launch svg { width: 24px; height: 24px; }
.jmf-launch:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 18px 36px -12px rgba(160, 44, 116, .7); }
.jmf-launch { position: relative; }
.jmf-launch::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(35, 117, 167, .5); opacity: 0; pointer-events: none; }
html.jmf-motion .jmf-launch:not([aria-expanded="true"])::before { animation: jmf-launch-ping 2.8s ease-out 2s 3; }
@keyframes jmf-launch-ping { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
.jmf-launch[aria-expanded="true"] .jmf-launch__label { display: none; }
.jmf-launch[aria-expanded="true"] { padding: 0; width: 56px; justify-content: center; }
@media (max-width: 600px) {
	.jmf-dock { right: 14px; bottom: 14px; }
	.jmf-launch { padding: 0; width: 56px; justify-content: center; }
	.jmf-launch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Panel */
.jmf-assist[hidden], .jmf-assist [hidden] { display: none !important; }
.jmf-assist {
	order: -1; width: 390px; max-width: calc(100vw - 28px); height: min(620px, calc(100vh - 120px));
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; color: var(--wp--preset--color--ink); border-radius: 20px;
	box-shadow: 0 30px 60px -20px rgba(2, 6, 24, .45), 0 0 0 1px rgba(2, 6, 24, .08);
	opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right;
	transition: opacity .2s, transform .25s var(--jmf-ease);
	font-size: 15px; line-height: 1.5;
}
.jmf-assist.is-open { opacity: 1; transform: none; }
@media (max-width: 600px) {
	.jmf-assist { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: min(88vh, 680px); border-radius: 20px 20px 0 0; }
	.jmf-dock.is-assist .jmf-launch { position: fixed; top: auto; bottom: calc(min(88vh, 680px) - 46px); right: 12px; width: 36px; height: 36px; opacity: 0; pointer-events: none; }
}
.jmf-assist__head {
	display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, rgba(160, 44, 116, .55), transparent 60%), linear-gradient(135deg, #33354d, #1d2a4a);
}
.jmf-assist__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .04em; background: #2375a7; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.jmf-assist__title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.jmf-assist__title strong { font-size: 16px; }
.jmf-assist__title span { font-size: 12.5px; color: rgba(255, 255, 255, .85); display: flex; align-items: center; gap: 6px; }
.jmf-assist__title i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.jmf-assist__x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.jmf-assist__x:hover { background: rgba(255, 255, 255, .2); }
.jmf-assist__x svg { width: 18px; height: 18px; }
.jmf-assist__tabs { display: flex; gap: 4px; padding: 8px; background: #f4f6f9; border-bottom: 1px solid #c9cdd8; }
.jmf-assist__tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: #43465c; cursor: pointer; }
.jmf-assist__tabs button svg { width: 16px; height: 16px; }
.jmf-assist__tabs button.is-on { background: #fff; color: #2375a7; box-shadow: 0 1px 3px rgba(2, 6, 24, .12); }
.jmf-assist__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jmf-assist__view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jmf-assist__view[data-view="support"] { overflow-y: auto; }
.jmf-assist__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; overscroll-behavior: contain; }
.jmf-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; animation: jmf-msg-in .25s var(--jmf-ease) both; }
@keyframes jmf-msg-in { from { opacity: 0; transform: translateY(6px); } }
.jmf-msg p { margin: 0; } .jmf-msg p + p, .jmf-msg ul + p, .jmf-msg p + ul { margin-top: 6px; }
.jmf-msg ul { margin: 0; padding-left: 18px; } .jmf-msg li + li { margin-top: 3px; }
.jmf-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid #c9cdd8; border-bottom-left-radius: 6px; color: #33354d; }
.jmf-msg--assistant a { color: #2375a7; font-weight: 600; }
.jmf-msg--user { align-self: flex-end; background: #2375a7; color: #fff; border-bottom-right-radius: 6px; }
.jmf-msg__cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: #a02c74; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.jmf-msg__cta svg { width: 16px; height: 16px; }
.jmf-msg__cta:hover { background: #8a2363; }
.jmf-msg--typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.jmf-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #80839a; animation: jmf-dot 1s infinite ease-in-out; }
.jmf-msg--typing span:nth-child(2) { animation-delay: .15s; } .jmf-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes jmf-dot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.jmf-assist__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: #f8fafc; }
.jmf-assist__chips:empty { display: none; }
.jmf-assist__chips button { padding: 7px 12px; border-radius: 9999px; border: 1px solid #2375a7; background: #fff; color: #2375a7; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.jmf-assist__chips button:hover { background: #2375a7; color: #fff; }
.jmf-assist__ask { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #c9cdd8; background: #fff; }
.jmf-assist__ask textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid #80839a; border-radius: 12px; font: inherit; font-size: 15px; color: #33354d; background: #fff; }
.jmf-assist__ask textarea:focus { outline: none; border-color: #2375a7; box-shadow: 0 0 0 3px rgba(35, 117, 167, .2); }
.jmf-assist__ask button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #2375a7; color: #fff; display: grid; place-items: center; cursor: pointer; }
.jmf-assist__ask button:hover { background: #1c5f88; }
.jmf-assist__note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 12px; color: #43465c; }
.jmf-assist__note a, .jmf-ticket a { color: #2375a7; font-weight: 600; }

.jmf-ticket { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.jmf-ticket__intro { margin: 0; font-size: 14px; color: #43465c; }
.jmf-ticket label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #33354d; }
.jmf-ticket input:not([type=radio]):not([type=checkbox]), .jmf-ticket textarea {
	font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid #80839a; border-radius: 10px; color: #33354d; background: #fff; width: 100%; box-sizing: border-box;
}
.jmf-ticket input:focus, .jmf-ticket textarea:focus { outline: none; border-color: #2375a7; box-shadow: 0 0 0 3px rgba(35, 117, 167, .2); }
.jmf-ticket__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .jmf-ticket__row { grid-template-columns: 1fr; } }
.jmf-ticket__urg { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.jmf-ticket__urg legend { font-size: 13px; font-weight: 700; margin-bottom: 4px; padding: 0; }
.jmf-ticket__urg label { flex-direction: row; }
.jmf-ticket__urg input { position: absolute; opacity: 0; }
.jmf-ticket__urg span { padding: 7px 12px; border-radius: 9999px; border: 1px solid #80839a; font-weight: 600; cursor: pointer; }
.jmf-ticket__urg input:checked + span { background: #33354d; border-color: #33354d; color: #fff; }
.jmf-ticket__urg input[value=urgent]:checked + span { background: #c8323e; border-color: #c8323e; }
.jmf-ticket__urg input:focus-visible + span { outline: 3px solid #7cc8f0; outline-offset: 2px; }
.jmf-ticket__tx { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; }
.jmf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jmf-ticket__err { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fde8ea; color: #9b1c27; font-size: 14px; font-weight: 600; }
.jmf-ticket__send { padding: 13px 18px; border: 0; border-radius: 12px; background: #a02c74; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(160, 44, 116, .8); }
.jmf-ticket__send:hover { background: #8a2363; } .jmf-ticket__send:disabled { opacity: .6; cursor: wait; }
.jmf-assist__alt { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #43465c; }
.jmf-assist__alt svg { width: 15px; height: 15px; color: #2375a7; }
.jmf-ticket__done { padding: 32px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jmf-ticket__done svg { width: 48px; height: 48px; color: #0f7a4f; }
.jmf-ticket__done h3 { margin: 0; font-size: 20px; }
.jmf-ticket__done p { margin: 0; color: #43465c; }
.jmf-ticket__again { margin-top: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid #80839a; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media print { .jmf-dock { display: none; } }

/* Request form: General Info (blue) or Support Request (red). */
.jmf-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #eef1f6; border: 1px solid #c9cdd8; }
.jmf-kind label { display: block !important; }
.jmf-kind input { position: absolute; opacity: 0; pointer-events: none; }
.jmf-kind span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #43465c; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.jmf-kind span svg { width: 16px; height: 16px; }
.jmf-kind input[value=info]:checked + span { background: #2375a7; color: #fff; box-shadow: 0 6px 14px -8px rgba(35, 117, 167, .9); }
.jmf-kind input[value=support]:checked + span { background: #c8323e; color: #fff; box-shadow: 0 6px 14px -8px rgba(200, 50, 62, .9); }
.jmf-kind input:focus-visible + span { outline: 3px solid #7cc8f0; outline-offset: 2px; }
.jmf-ticket select { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid #80839a; border-radius: 10px; color: #33354d; background: #fff; width: 100%; }
.jmf-ticket select:focus { outline: none; border-color: #2375a7; box-shadow: 0 0 0 3px rgba(35, 117, 167, .2); }
.jmf-ticket[data-kind="info"] .jmf-ticket__send { background: #2375a7; box-shadow: 0 10px 22px -10px rgba(35, 117, 167, .85); }
.jmf-ticket[data-kind="info"] .jmf-ticket__send:hover { background: #1c5f88; }
.jmf-ticket[data-kind="support"] .jmf-ticket__send { background: #c8323e; box-shadow: 0 10px 22px -10px rgba(200, 50, 62, .85); }
.jmf-ticket[data-kind="support"] .jmf-ticket__send:hover { background: #a82833; }
.jmf-ticket[data-kind="support"] textarea:focus, .jmf-ticket[data-kind="support"] input:focus { border-color: #c8323e; box-shadow: 0 0 0 3px rgba(200, 50, 62, .18); }
.jmf-msg__cta { background: #2375a7; } .jmf-msg__cta:hover { background: #1c5f88; }
.jmf-msg__cta.is-support { background: #c8323e; } .jmf-msg__cta.is-support:hover { background: #a82833; }
.jmf-ticket__q[hidden] { display: none; }

/* No focus box on header links after a mouse or touch interaction; keyboard focus still shows. */
.jmf-header a:focus:not(:focus-visible), .jmf-header .wp-block-site-logo a:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* Reduced motion: timelines still step through on scroll, by color and fade only. */
@media (prefers-reduced-motion: reduce) {
	.jmf-tl.is-scrub > *, .jmf-tl.is-scrub > :not(.is-reached), ol.jmf-tl.is-scrub > li:not(.is-reached) { transform: none !important; }
	.jmf-tl.is-scrub > * .jmf-tl__node, ol.jmf-tl.is-scrub > li::before { transform: none !important; animation: none !important; transition: background .2s, color .2s; }
	.jmf-tl.is-scrub::after { transition: none; }
}

.jmf-tl--h.is-scrub > .jmf-problem:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .jmf-tl.is-scrub .jmf-tl__node, ol.jmf-tl.is-scrub > li::before { translate: none !important; } }

/* The track sits behind the steps so each number covers the line, never the other way round. */
.jmf-tl::before, .jmf-tl::after { z-index: 0; }
.jmf-tl > * { position: relative; z-index: 1; }

/* Fade the step's content, not the step itself, so every number stays solid over the line. */
.jmf-tl.is-scrub > * { opacity: 1; }
ol.jmf-tl.is-scrub > li { color: rgb(51 53 77 / var(--s, 0)); }
.jmf-tl--h.is-scrub > .jmf-problem {
	background: rgb(255 255 255 / var(--s, 0));
	border-color: rgb(201 205 216 / var(--s, 0));
	box-shadow: 0 1px 2px rgb(2 6 24 / calc(var(--s, 0) * .06)), 0 8px 20px -10px rgb(2 6 24 / calc(var(--s, 0) * .22));
}
.jmf-tl--h.is-scrub > .jmf-problem > :not(.jmf-tl__node), .jmf-tl--h.is-scrub > .jmf-problem::before { opacity: var(--s, 0); transition: opacity .45s cubic-bezier(.25, .8, .25, 1); }
@media (prefers-reduced-motion: reduce) { ol.jmf-tl.is-scrub > li { color: rgb(51 53 77 / max(var(--s, 0), .35)); } }

/* Shorter windows (laptops): crop less from the top so the video's captions clear the headline. */
@media (min-width: 782px) and (max-height: 820px) {
	.jmf-hero__bg { object-position: 50% 60%; }
	.jmf-hero__badge { padding-block: 9px; }
}
