/**
 * Flint Rehab — the shared stylesheet implementation-plan.md §2 specifies:
 * "design tokens/typography/colors/spacing/buttons live in one CSS file
 * in the child theme". This IS that file — it deploys into the flint-astra
 * child theme (content/themes/flint-astra/flint-v2/), not into a plugin.
 * flint-refresh (a plugin) still owns REGISTERING and ENQUEUING it — see
 * flint_ce_enqueue_assets() in includes/core.php — the plugin is the
 * switch, this file is the design system the switch turns on.
 *
 * Every rule is scoped under .flint-v2 (body class added by flint-refresh
 * only on enabled pages). Never write a bare-element rule in this file —
 * unrefreshed pages must stay byte-identical (implementation-plan.md §2).
 *
 * font-family carries !important on chrome elements deliberately: the child
 * theme's header.php prints `body * { font-family: Lato !important }` and
 * class scoping outranks it only when we also mark ours important. The
 * conditional gate for that override lands later, after the screenshot
 * baseline exists (implementation-plan.md §3).
 *
 * Any other refreshed page (flint-clinical-evidence included) consumes
 * these --fr-* tokens rather than defining its own — this is the ONE
 * canonical set for the whole stage-1 design system.
 *
 * Tokens are the design-system export in
 * "Flint Rehab homepage redesign/_ds/.../tokens/" — keep values in sync.
 */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

.flint-v2 {
	/* -- Color tokens -------------------------------------------------- */
	--fr-blue: #1b75bb;
	--fr-sky: #28a8e0;
	--fr-orange: #f7931d;
	--fr-white: #ffffff;
	--fr-soft-blue: #f2faff;
	--fr-blue-50: #eaf4fb;
	--fr-blue-100: #d0e6f6;
	--fr-blue-700: #134d7c;
	--fr-blue-800: #103d63;
	--fr-blue-900: #0c2f4c;
	--fr-sky-600: #1c7dab;
	--fr-orange-500: #f7931d;
	--fr-orange-700: #b86407;
	--fr-orange-100: #fdecd2;
	--fr-grey-50: #f4f7fa;
	--fr-grey-100: #e8edf2;
	--fr-grey-300: #b8c3cd;
	--fr-grey-400: #939ba3;
	--fr-grey-500: #6b747d;
	--fr-grey-600: #4d555d;
	--fr-grey-700: #363d44;
	--fr-border-subtle: var(--fr-grey-100);

	/* Semantic aliases — the two-word names other stage-1 pages (e.g.
	   flint-clinical-evidence) write against, so component CSS reads by
	   role instead of by raw scale step. */
	--fr-text-strong: var(--fr-blue-800);
	--fr-text-body: var(--fr-grey-700);
	--fr-text-muted: var(--fr-grey-500);

	/* -- Effects --------------------------------------------------------- */
	--fr-shadow-xs: 0 1px 2px rgba(16, 61, 99, 0.06);
	--fr-shadow-sm: 0 2px 8px rgba(16, 61, 99, 0.07);

	/* -- Type / layout tokens ------------------------------------------ */
	--fr-font: "Manrope", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
	--fr-container: 1240px;
	--fr-gutter: 40px;
	--fr-radius-pill: 999px;
	--fr-shadow-focus: 0 0 0 3px rgba(40, 168, 224, 0.4);
	--fr-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================================================
   Shared chrome primitives
   ====================================================================== */

.flint-v2 .fr-utility *,
.flint-v2 .fr-header *,
.flint-v2 .fr-foot-news *,
.flint-v2 .fr-foot-main *,
.flint-v2 .fr-foot-legal * {
	font-family: var(--fr-font) !important;
}

/* No icons in our icon-lists — hide the (possibly empty) icon span. */
.flint-v2 .fr-utility .elementor-icon-list-icon,
.flint-v2 .fr-nav .elementor-icon-list-icon,
.flint-v2 .fr-foot-links .elementor-icon-list-icon,
.flint-v2 .fr-foot-legal .elementor-icon-list-icon {
	display: none;
}

/* Neutralise Elementor's default widget spacing inside our chrome. */
.flint-v2 .fr-utility .elementor-widget,
.flint-v2 .fr-header .elementor-widget,
.flint-v2 .fr-foot-news .elementor-widget,
.flint-v2 .fr-foot-main .elementor-widget,
.flint-v2 .fr-foot-legal .elementor-widget {
	margin-bottom: 0;
}

/* Boxed inner container: 1240px + 40px gutters, per the canvases. */
.flint-v2 .fr-utility > .elementor-container,
.flint-v2 .fr-header > .elementor-container,
.flint-v2 .fr-foot-news > .elementor-container,
.flint-v2 .fr-foot-main > .elementor-container,
.flint-v2 .fr-foot-legal > .elementor-container {
	max-width: var(--fr-container);
	margin: 0 auto;
	padding-left: var(--fr-gutter);
	padding-right: var(--fr-gutter);
}

/* Accent (Recovery Orange) pill button — Elementor button widget or .fr-btn. */
.flint-v2 .fr-btn-accent .elementor-button,
.flint-v2 a.fr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fr-orange);
	color: var(--fr-white) !important;
	font-family: var(--fr-font) !important;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1;
	padding: 15px 26px;
	border: 0;
	border-radius: var(--fr-radius-pill);
	text-decoration: none;
	transition: background 140ms var(--fr-ease), transform 140ms var(--fr-ease);
}

.flint-v2 .fr-btn-accent .elementor-button:hover,
.flint-v2 a.fr-btn:hover {
	background: var(--fr-orange-700);
	color: var(--fr-white) !important;
}

.flint-v2 .fr-btn-accent .elementor-button:active,
.flint-v2 a.fr-btn:active {
	transform: scale(0.97);
}

.flint-v2 .fr-btn-accent .elementor-button:focus-visible,
.flint-v2 a.fr-btn:focus-visible {
	outline: none;
	box-shadow: var(--fr-shadow-focus);
}

/* ======================================================================
   Utility bar (top strip, blue-900)
   ====================================================================== */

.flint-v2 .fr-utility {
	background: var(--fr-blue-900);
}

.flint-v2 .fr-utility > .elementor-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 9px;
	padding-bottom: 9px;
}

/* Shrink-to-fit columns: the flex container spreads them, Elementor's
   percentage widths would otherwise force wrapping once gaps are added. */
.flint-v2 .fr-utility > .elementor-container > .elementor-column {
	width: auto;
	flex: 0 1 auto;
}

.flint-v2 .fr-utility,
.flint-v2 .fr-utility p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	line-height: 1.5;
}

.flint-v2 .fr-utility p {
	margin: 0;
}

/* Right cluster: phone first (bold, per the clinical utility), then links. */
.flint-v2 .fr-utility .elementor-widget-wrap {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 0;
}

.flint-v2 .fr-phone {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
	text-decoration: none;
}

.flint-v2 .fr-phone:hover {
	color: var(--fr-white);
	text-decoration: underline;
}

.flint-v2 .fr-utility .elementor-icon-list-items {
	display: flex;
	justify-content: flex-end;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flint-v2 .fr-utility .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.flint-v2 .fr-utility .elementor-icon-list-item a {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	text-decoration: none;
	transition: color 140ms var(--fr-ease);
}

.flint-v2 .fr-utility .elementor-icon-list-item a:hover {
	color: var(--fr-white);
	text-decoration: underline;
}

/* ======================================================================
   Header (option 2a — flat and simple)
   ====================================================================== */

.flint-v2 .fr-header {
	background: var(--fr-white);
	border-bottom: 1px solid var(--fr-border-subtle);
	/* Sticky at ALL widths (parity with the original header's desktop
	   sticky behaviour; was previously mobile-only). The utility strip
	   scrolls away; the main bar follows the visitor. */
	position: sticky;
	top: 0;
	z-index: 60;
}

/* position:sticky can never stick past its PARENT's height, and the
   Elementor template wrapper (<header class="elementor">) is only as
   tall as the chrome itself — so its box is dissolved, making the tall
   page container the sticky context. Measured proof: without this the
   header left the viewport at -762px after an 800px scroll; with it,
   pinned at 0. (Also what makes the mobile sticky, shipped since 0.2.4,
   actually stick.) Scoped tight: only OUR chrome wrapper on flint-v2
   pages — Astra's own header and Elementor page-content divs carry
   different selectors and are untouched. */
body.flint-v2 header.elementor {
	display: contents;
}

.flint-v2 .fr-header > .elementor-container {
	display: flex;
	align-items: center;
	gap: 36px;
	min-height: 80px;
}

/* Let the three columns (logo / nav / actions) sit on one flex row. */
.flint-v2 .fr-header > .elementor-container > .elementor-column {
	width: auto;
	flex: 0 0 auto;
}

.flint-v2 .fr-header > .elementor-container > .elementor-column:nth-child(2) {
	flex: 1 1 auto;
	min-width: 0;
}

.flint-v2 .fr-header .elementor-widget-wrap {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 20px;
	padding: 0;
}

/* Elementor gives widgets width:100%, which wraps flex children onto their
   own rows — shrink ours to content so cart + button share the row. */
.flint-v2 .fr-utility .elementor-widget,
.flint-v2 .fr-header .elementor-widget {
	width: auto;
}

.flint-v2 .fr-header > .elementor-container > .elementor-column:last-child .elementor-widget-wrap {
	justify-content: flex-end;
}

.flint-v2 .fr-logo {
	display: inline-flex;
	align-items: center;
}

.flint-v2 .fr-logo img {
	height: 34px;
	width: auto;
	display: block;
}

/* Nav pills. */
.flint-v2 .fr-nav .elementor-icon-list-items {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flint-v2 .fr-nav .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.flint-v2 .fr-nav .elementor-icon-list-item a {
	display: inline-block;
	padding: 9px 15px;
	border-radius: var(--fr-radius-pill);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--fr-grey-700);
	white-space: nowrap;
	text-decoration: none;
	transition: background 140ms var(--fr-ease), color 140ms var(--fr-ease);
}

.flint-v2 .fr-nav .elementor-icon-list-item a:hover {
	background: var(--fr-blue-50);
	color: var(--fr-blue);
}

.flint-v2 .fr-nav .elementor-icon-list-item a:focus-visible {
	outline: none;
	box-shadow: var(--fr-shadow-focus);
}

/* Nav dropdowns — desktop hover (+ click/keyboard fallback via JS), and a
   mobile accordion variant further down. Structure per item:
   <li class="... fr-nav-item--dropdown"><a>Label</a><button class="fr-nav-toggle">
   <ul class="fr-nav-sub">...</ul></li> — the toggle button is a sibling of
   the link, not nested in it, so tapping it never triggers navigation. */
.flint-v2 .fr-nav .elementor-icon-list-item.fr-nav-item--dropdown {
	position: relative;
}

.flint-v2 .fr-nav-item--dropdown > a {
	padding-right: 8px;
}

.flint-v2 .fr-nav-toggle {
	display: none; /* desktop: hover alone reveals the panel */
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	vertical-align: middle;
}

.flint-v2 .fr-nav-toggle svg {
	display: block;
	transition: transform 140ms var(--fr-ease);
}

.flint-v2 .fr-nav-sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--fr-white);
	border: 1px solid var(--fr-border-subtle);
	border-radius: 14px;
	box-shadow: var(--fr-shadow-sm);
	z-index: 70;
}

.flint-v2 .fr-nav-item--dropdown:hover .fr-nav-sub,
.flint-v2 .fr-nav-item--dropdown:focus-within .fr-nav-sub,
.flint-v2 .fr-nav-item--dropdown.fr-nav-item--open .fr-nav-sub {
	display: block;
}

.flint-v2 .fr-nav-item--dropdown:hover .fr-nav-toggle svg,
.flint-v2 .fr-nav-item--dropdown.fr-nav-item--open .fr-nav-toggle svg {
	transform: rotate(180deg);
}

.flint-v2 .fr-nav-sub li {
	margin: 0;
	padding: 0;
}

.flint-v2 .fr-nav-sub a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--fr-grey-700);
	white-space: nowrap;
	text-decoration: none;
	transition: background 140ms var(--fr-ease), color 140ms var(--fr-ease);
}

.flint-v2 .fr-nav-sub a:hover,
.flint-v2 .fr-nav-sub a:focus-visible {
	background: var(--fr-blue-50);
	color: var(--fr-blue);
}

.flint-v2 .fr-nav-sub a:focus-visible {
	outline: none;
	box-shadow: var(--fr-shadow-focus);
}

/* Cart icon. */
.flint-v2 .fr-cart {
	display: inline-flex;
	align-items: center;
	color: var(--fr-grey-600);
	transition: color 140ms var(--fr-ease);
}

.flint-v2 .fr-cart:hover {
	color: var(--fr-blue);
}

.flint-v2 .fr-cart svg {
	width: 21px;
	height: 21px;
	display: block;
}

/* Live cart count badge — WooCommerce cart fragments fill it (see
   flint_redesign_cart_count_fragment); hidden while the cart is empty. */
.flint-v2 .fr-cart {
	position: relative;
}

.flint-v2 .fr-cart-count {
	position: absolute;
	top: -5px;
	right: -7px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--fr-radius-pill);
	background: var(--fr-orange);
	color: var(--fr-white);
	font-family: var(--fr-font);
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

/* ======================================================================
   Footer (option 3b — shop by goal, read by condition)
   ====================================================================== */

.flint-v2 .fr-foot-news,
.flint-v2 .fr-foot-main,
.flint-v2 .fr-foot-legal {
	background: var(--fr-blue-900);
}

.flint-v2 .fr-foot-news,
.flint-v2 .fr-foot-news p,
.flint-v2 .fr-foot-main,
.flint-v2 .fr-foot-main p,
.flint-v2 .fr-foot-legal,
.flint-v2 .fr-foot-legal p {
	color: rgba(255, 255, 255, 0.75);
}

/* --- Newsletter strip -------------------------------------------------- */

.flint-v2 .fr-foot-news > .elementor-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding-top: 34px;
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.flint-v2 .fr-foot-news > .elementor-container > .elementor-column {
	width: auto;
	flex: 0 1 auto;
}

/* Mail glyph beside the heading block (orange, 24px, lucide Mail). */
.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:first-child .elementor-widget-wrap {
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: start;
	padding: 0;
}

.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:first-child .elementor-widget-wrap::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 24px;
	height: 24px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7931d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.flint-v2 .fr-foot-news .elementor-widget-heading,
.flint-v2 .fr-foot-news .elementor-widget-text-editor {
	grid-column: 2;
}

.flint-v2 .fr-news-title .elementor-heading-title {
	/* !important: outrank the Elementor kit's heading globals, whose inline
	   CSS prints after this file. Chrome-scoped rules only. */
	font-size: 19px !important;
	font-weight: 800 !important;
	color: var(--fr-white) !important;
	margin: 0;
}

.flint-v2 .fr-news-sub p {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.7);
	margin: 3px 0 0;
}

.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:last-child .elementor-widget-wrap {
	display: flex;
	justify-content: flex-end;
	padding: 0;
}

/* Email pill. Wiring to the email platform is a later step — the form is
   intentionally inert (see plugin README). */
.flint-v2 .fr-news-form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--fr-white);
	border-radius: var(--fr-radius-pill);
	padding: 5px 5px 5px 20px;
	min-width: 380px;
}

.flint-v2 .fr-news-form input[type="email"] {
	flex: 1;
	border: 0;
	background: transparent;
	font-size: 15.5px;
	color: var(--fr-grey-700);
	outline: none;
	min-width: 0;
}

.flint-v2 .fr-news-form input[type="email"]::placeholder {
	color: var(--fr-grey-400);
}

.flint-v2 .fr-news-form .fr-btn--sm {
	padding: 11px 22px;
	font-size: 14.5px;
	cursor: pointer;
	border: 0;
	background: var(--fr-orange);
	color: var(--fr-white);
	font-weight: 700;
	border-radius: var(--fr-radius-pill);
	font-family: var(--fr-font) !important;
	transition: background 140ms var(--fr-ease), transform 140ms var(--fr-ease);
}

.flint-v2 .fr-news-form .fr-btn--sm:hover {
	background: var(--fr-orange-700);
}

.flint-v2 .fr-news-form .fr-btn--sm:active {
	transform: scale(0.97);
}

/* --- Link columns ------------------------------------------------------ */

.flint-v2 .fr-foot-main > .elementor-container {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1fr;
	gap: 40px;
	padding-top: 52px;
	padding-bottom: 48px;
	align-items: start;
}

.flint-v2 .fr-foot-main > .elementor-container > .elementor-column {
	width: auto;
}

.flint-v2 .fr-foot-main .elementor-widget-wrap {
	display: block;
	padding: 0;
}

.flint-v2 .fr-foot-logo img {
	height: 34px;
	width: auto;
	display: block;
	margin-bottom: 18px;
}

.flint-v2 .fr-foot-tagline p {
	font-size: 14.5px;
	line-height: 1.65;
	max-width: 250px;
	margin: 0 0 18px;
}

.flint-v2 .fr-foot-social {
	display: flex;
	gap: 14px;
}

.flint-v2 .fr-foot-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--fr-white);
	transition: background 140ms var(--fr-ease);
}

.flint-v2 .fr-foot-social a:hover {
	background: rgba(255, 255, 255, 0.2);
}

.flint-v2 .fr-foot-social svg {
	width: 18px;
	height: 18px;
	display: block;
}

.flint-v2 .fr-foot-h .elementor-heading-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--fr-white) !important;
	margin: 0 0 6px;
}

.flint-v2 .fr-foot-sub p {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 13px;
	min-height: 21px;
}

.flint-v2 .fr-foot-links .elementor-icon-list-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flint-v2 .fr-foot-links .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.flint-v2 .fr-foot-links .elementor-icon-list-item a {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 140ms var(--fr-ease);
}

.flint-v2 .fr-foot-links .elementor-icon-list-item a:hover {
	color: var(--fr-white);
	text-decoration: underline;
}

/* --- Legal bar --------------------------------------------------------- */

.flint-v2 .fr-foot-legal > .elementor-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 24px;
	padding-bottom: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.flint-v2 .fr-foot-legal > .elementor-container > .elementor-column {
	width: auto;
	flex: 0 1 auto;
}

.flint-v2 .fr-foot-legal,
.flint-v2 .fr-foot-legal p {
	font-size: 13px;
	margin: 0;
}

.flint-v2 .fr-foot-legal .elementor-icon-list-items {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flint-v2 .fr-foot-legal .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

.flint-v2 .fr-foot-legal .elementor-icon-list-item a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	text-decoration: none;
}

.flint-v2 .fr-foot-legal .elementor-icon-list-item a:hover {
	color: var(--fr-white);
	text-decoration: underline;
}

/* ======================================================================
   Chrome helpers used by the mobile treatment (base state, all widths)
   ====================================================================== */

/* Desktop/mobile copy variants (same pattern as the clinical page). */
.flint-v2 .fr-dm {
	display: none;
}

/* Hamburger — exists in the header template but only shows on mobile. */
.flint-v2 .fr-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	background: transparent;
	color: var(--fr-blue-900);
	cursor: pointer;
	border-radius: var(--fr-radius-pill);
}

.flint-v2 .fr-menu-toggle:focus-visible {
	outline: none;
	box-shadow: var(--fr-shadow-focus);
}

.flint-v2 .fr-menu-toggle .fr-ico-close {
	display: none;
}

.flint-v2 .fr-nav-open .fr-menu-toggle .fr-ico-menu {
	display: none;
}

.flint-v2 .fr-nav-open .fr-menu-toggle .fr-ico-close {
	display: block;
}

/* ======================================================================
   Tablet (768–1100): wrapped, scrollable nav row under the logo/actions.
   ====================================================================== */

@media (min-width: 768px) and (max-width: 1100px) {
	.flint-v2 .fr-header > .elementor-container {
		flex-wrap: wrap;
		gap: 12px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.flint-v2 .fr-header > .elementor-container > .elementor-column:nth-child(2) {
		order: 3;
		flex-basis: 100%;
	}

	.flint-v2 .fr-nav .elementor-icon-list-items {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.flint-v2 .fr-nav .elementor-icon-list-items::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 1100px) {
	.flint-v2 .fr-foot-main > .elementor-container {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.flint-v2 .fr-foot-main > .elementor-container > .elementor-column:first-child {
		grid-column: 1 / -1;
	}

	/* Touch has no hover — show the tap target for tablet + mobile. Hover
	   still works too where a device actually supports it. */
	.flint-v2 .fr-nav-toggle {
		display: inline-flex;
	}
}

/* ======================================================================
   Mobile (≤767 — matches Elementor's own column-stacking breakpoint).
   Spec: the approved mobile treatment in the clinical-evidence handoff
   (clinical-evidence-page-mobile.html): compact sticky 64px header with
   44×44 cart + menu buttons and a drawer; footer with tap-to-expand
   accordion link groups, 44px social targets, single-column newsletter.
   ====================================================================== */

@media (max-width: 767px) {
	.flint-v2 {
		--fr-gutter: 20px;
	}

	.flint-v2 .fr-dd { display: none; }
	.flint-v2 .fr-dm { display: inline; }

	/* --- Utility strip: promise left, phone right (mobile reference) --- */
	.flint-v2 .fr-utility > .elementor-container {
		justify-content: space-between;
		gap: 12px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.flint-v2 .fr-utility,
	.flint-v2 .fr-utility p {
		font-size: 12.5px;
		text-align: left;
		white-space: nowrap;
	}

	.flint-v2 .fr-utility > .elementor-container > .elementor-column {
		width: auto;
	}

	.flint-v2 .fr-phone {
		font-size: 12.5px;
		color: var(--fr-white);
	}

	/* The link list leaves the bar (the JS re-homes it into the drawer);
	   this hides it only while it still sits inside the utility strip, so
	   the drawer copy is unaffected. The phone link stays in the bar. */
	.flint-v2 .fr-utility .elementor-widget-icon-list {
		display: none;
	}

	/* --- Header: sticky 64px bar — logo left, cart + menu right ------- */
	.flint-v2 .fr-header {
		position: sticky;
		top: 0;
		z-index: 60;
	}

	.flint-v2 .fr-header > .elementor-container {
		flex-wrap: nowrap;
		gap: 12px;
		min-height: 64px;
		padding: 0 14px 0 20px;
	}

	.flint-v2 .fr-header > .elementor-container > .elementor-column {
		width: auto;
		flex: 0 0 auto;
	}

	.flint-v2 .fr-header > .elementor-container > .elementor-column:first-child {
		flex: 1 1 auto;
		min-width: 0;
	}

	.flint-v2 .fr-logo img {
		height: 28px;
	}

	.flint-v2 .fr-header > .elementor-container > .elementor-column:last-child .elementor-widget-wrap {
		gap: 2px;
	}

	.flint-v2 .fr-cart {
		width: 44px;
		height: 44px;
		justify-content: center;
	}

	.flint-v2 .fr-menu-toggle {
		display: inline-flex;
	}

	/* The Shop devices button leaves the bar; JS re-homes it into the
	   drawer as a full-width CTA. (Scoped to the bar position only, so the
	   same widget is NOT hidden once it sits inside the drawer column.) */
	.flint-v2 .fr-header > .elementor-container > .elementor-column:last-child .fr-btn-accent {
		display: none;
	}

	/* --- Drawer: the nav column becomes a sheet under the header ------ */
	.flint-v2 .fr-header > .elementor-container > .elementor-column:nth-child(2) {
		order: 0;
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		background: var(--fr-white);
		border-bottom: 1px solid var(--fr-border-subtle);
		box-shadow: 0 14px 40px rgba(16, 61, 99, 0.12);
		z-index: 50;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
	}

	.flint-v2 .fr-header.fr-nav-open > .elementor-container > .elementor-column:nth-child(2) {
		display: block;
	}

	.flint-v2 .fr-header > .elementor-container > .elementor-column:nth-child(2) .elementor-widget-wrap {
		display: block;
		padding: 8px 0 16px;
	}

	.flint-v2 .fr-nav .elementor-icon-list-items {
		display: block;
		overflow: visible;
		padding: 0;
	}

	.flint-v2 .fr-nav .elementor-icon-list-item a {
		display: block;
		padding: 13px 20px;
		min-height: 48px;
		border-radius: 0;
		font-size: 16px;
	}

	/* Sub-menus become inline, tap-to-expand accordions inside the drawer —
	   same one-open-at-a-time pattern as the footer link groups (JS keeps
	   both in sync). The link and its toggle share one row; the sub-list
	   wraps onto its own full-width row underneath when open. */
	.flint-v2 .fr-nav-item--dropdown {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.flint-v2 .fr-nav-item--dropdown > a {
		display: inline-block;
		width: auto;
		padding-right: 8px;
	}

	.flint-v2 .fr-nav-sub {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 4px 0 8px;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.flint-v2 .fr-nav-item--dropdown.fr-nav-item--open .fr-nav-sub {
		display: block;
	}

	.flint-v2 .fr-nav-sub a {
		padding: 11px 20px 11px 34px;
		font-size: 15px;
		font-weight: 500;
		color: var(--fr-grey-600);
	}

	/* Utility links, re-homed into the drawer by the JS. */
	.flint-v2 .fr-drawer-utility {
		border-top: 1px solid var(--fr-border-subtle);
		margin-top: 8px;
		padding-top: 8px;
	}

	.flint-v2 .fr-drawer-utility .elementor-icon-list-items {
		display: block;
		padding: 0;
	}

	.flint-v2 .fr-drawer-utility .elementor-icon-list-item a {
		display: block;
		padding: 11px 20px;
		min-height: 44px;
		font-size: 14.5px;
		color: var(--fr-grey-600);
		text-decoration: none;
	}

	/* Shop devices, re-homed into the drawer as a full-width CTA. */
	.flint-v2 .fr-drawer-cta {
		padding: 10px 20px 4px;
	}

	.flint-v2 .fr-drawer-cta .elementor-button {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	/* --- Footer: newsletter single-column ----------------------------- */
	.flint-v2 .fr-foot-news > .elementor-container {
		display: block;
		padding-top: 26px;
		padding-bottom: 26px;
	}

	.flint-v2 .fr-foot-news > .elementor-container > .elementor-column {
		width: 100%;
	}

	.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:first-child .elementor-widget-wrap {
		grid-template-columns: 35px 1fr;
		margin-bottom: 16px;
	}

	.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:first-child .elementor-widget-wrap::before {
		width: 22px;
		height: 22px;
		margin-top: 2px;
	}

	.flint-v2 .fr-news-title .elementor-heading-title {
		font-size: 17.5px !important;
	}

	.flint-v2 .fr-news-sub p {
		font-size: 14px;
		line-height: 1.5;
	}

	.flint-v2 .fr-foot-news > .elementor-container > .elementor-column:last-child .elementor-widget-wrap {
		display: block;
	}

	.flint-v2 .fr-news-form {
		min-width: 0;
		width: 100%;
		max-width: 100%;
		gap: 8px;
		padding: 5px 5px 5px 18px;
	}

	.flint-v2 .fr-news-form input[type="email"] {
		font-size: 15px;
	}

	/* --- Footer: brand block + 44px social targets -------------------- */
	.flint-v2 .fr-foot-main > .elementor-container {
		display: block;
		padding-top: 26px;
		padding-bottom: 26px;
	}

	.flint-v2 .fr-foot-main > .elementor-container > .elementor-column {
		width: 100%;
	}

	.flint-v2 .fr-foot-logo img {
		height: 30px;
		margin-bottom: 14px;
	}

	.flint-v2 .fr-foot-tagline p {
		font-size: 14px;
		margin: 0 0 16px;
	}

	.flint-v2 .fr-foot-social {
		gap: 10px;
		margin-bottom: 18px;
	}

	.flint-v2 .fr-foot-social a {
		width: 44px;
		height: 44px;
	}

	/* --- Footer: link columns become tap-to-expand accordions ---------
	   JS adds button semantics + .is-open (one open at a time, the
	   blog-routing column open by default). Without JS the groups simply
	   render expanded — content is never unreachable. */
	.flint-v2 .fr-foot-sub {
		display: none;
	}

	.flint-v2 .fr-foot-main .fr-acc .fr-foot-h {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		cursor: pointer;
	}

	.flint-v2 .fr-foot-main .fr-acc .fr-foot-h .elementor-heading-title {
		font-size: 16px !important;
		margin: 0;
	}

	.flint-v2 .fr-foot-main .fr-acc .fr-foot-h::after {
		content: "+";
		font-size: 22px;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.6);
		width: 22px;
		text-align: center;
		flex-shrink: 0;
		line-height: 1;
	}

	.flint-v2 .fr-foot-main .fr-acc.is-open .fr-foot-h::after {
		content: "\00d7";
		font-size: 26px;
	}

	.flint-v2 .fr-foot-main .fr-acc .fr-foot-links {
		display: none;
		padding-bottom: 10px;
	}

	.flint-v2 .fr-foot-main .fr-acc.is-open .fr-foot-links {
		display: block;
	}

	.flint-v2 .fr-foot-links .elementor-icon-list-item a {
		display: block;
		padding: 5px 0;
	}

	/* --- Footer: legal — links row first, © line under it -------------
	   Separation from the link groups comes from fr-foot-main's own
	   padding-bottom, NOT a margin here: a top margin on this container
	   collapses out of its section and opens a page-background gap
	   between the two dark footer sections (the "white band" bug). */
	.flint-v2 .fr-foot-legal > .elementor-container {
		display: flex;
		flex-direction: column;
		gap: 14px;
		align-items: flex-start;
		margin-top: 0;
		padding-top: 20px;
		padding-bottom: 26px;
	}

	.flint-v2 .fr-foot-legal > .elementor-container > .elementor-column {
		width: auto;
	}

	.flint-v2 .fr-foot-legal > .elementor-container > .elementor-column:first-child {
		order: 2;
	}

	.flint-v2 .fr-foot-legal,
	.flint-v2 .fr-foot-legal p {
		font-size: 12.5px;
	}

	.flint-v2 .fr-foot-legal p {
		color: rgba(255, 255, 255, 0.55);
	}

	/* All four links on ONE line, even at 320px: 12px type, 10px gaps, and
	   Elementor's inline-item margins forced off (!important because
	   Elementor styles the same elements via its own --e-icon-list-*
	   custom-property rules on the live site). */
	.flint-v2 .fr-foot-legal .elementor-icon-list-items {
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: 0 10px;
		width: 100%;
	}

	.flint-v2 .fr-foot-legal .elementor-icon-list-item {
		margin: 0 !important;
		padding: 0 !important;
	}

	.flint-v2 .fr-foot-legal .elementor-icon-list-item a {
		font-size: 12px;
		letter-spacing: -0.01em;
		white-space: nowrap;
		padding: 0;
	}

	.flint-v2 .fr-foot-legal > .elementor-container > .elementor-column:last-child {
		width: 100%;
	}
}

/* Sticky-header offset for the (logged-in-only) WordPress admin bar: it is
   position:fixed at 46px tall between 601–782px, and position:absolute (so
   it scrolls away, needing no offset) at ≤600px. We deliberately do NOT
   restyle the admin bar itself — an earlier min-width override made its
   items wrap over page content. Core's horizontal-scroll behavior on small
   screens is the known, standard WP experience; visitors never see it. */
@media (min-width: 601px) and (max-width: 782px) {
	body.flint-v2.admin-bar .fr-header {
		top: 46px;
	}
}

/* Admin bar is 32px tall from 783px up. Visitors never see any of this. */
@media (min-width: 783px) {
	body.flint-v2.admin-bar .fr-header {
		top: 32px;
	}
}
