/* ==========================================================================
   Height Lengthening theme — design system
   Source: HL Brand & Design Guide V1 + page design exports.
   Families: Instrument Serif (display) / Manrope (functional) — Google Fonts.
   ========================================================================== */

:root {
	/* Signal Blue, darkened for WCAG AA: the design's #1D89CA is only 3.83:1 against white (needs 4.5:1 for
	   button labels and link text). #1672AD is 5.19:1 on white and 4.83:1 on the mist panels. Anything that
	   used --hl-blue as TEXT on a dark panel uses --hl-sky instead; --hl-blue-bright keeps the design's
	   original colour for decoration (bars, dots, gradients, borders), where 3:1 is enough. */
	--hl-blue: #1672AD;
	--hl-blue-bright: #1D89CA;
	--hl-blue-dark: #12628F;   /* hover / pressed */
	--hl-navy: #0B2233;        /* Depth Navy — dark sections, headings */
	--hl-navy-deep: #071825;   /* topbar */
	--hl-navy-footer: #0A1E2D;
	--hl-grad-mid: #12446A;
	--hl-grad-end: #1677B3;
	--hl-body: #42596B;
	--hl-muted: #5A6E7D;
	--hl-muted-2: #5A6E7D;     /* was #7C8D9A (3.4:1); now 5.2:1 on white, 4.8:1 on mist */
	--hl-line: #E2E8EC;
	--hl-line-2: #EDF1F3;
	--hl-tick: #B7C2CB;
	--hl-mist: #F5F7F8;
	--hl-sky: #8FB6CE;
	--hl-error: #B42318;
	--hl-white: #FFFFFF;

	--hl-serif: 'Instrument Serif', Georgia, serif;
	--hl-sans: 'Manrope', system-ui, sans-serif;

	--hl-shadow: 0 18px 55px rgba(11, 34, 51, 0.08);
	--hl-shadow-panel: 0 30px 60px -20px rgba(11, 34, 51, 0.35);
	--hl-radius: 4px;
	--hl-radius-btn: 6px;
	--hl-max: 1440px;
	--hl-gutter: clamp(20px, 5vw, 96px);

	/* Vertical rhythm between sections. Tightened from the original 96px after
	   client feedback that the page had too much dead space and too much
	   scrolling. Every full-width section derives its top/bottom padding from
	   this one token, so the whole page can be retuned from here. */
	--hl-section-y: 64px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

/* Any section reachable as an #anchor has to clear the sticky header, or the
   jump parks its heading behind the bar. Applied once here rather than being
   repeated per template (the service and landing templates set their own). */
section[id] { scroll-margin-top: 120px; }

html, body { overflow-x: clip; }

/* Native scrollbar, styled rather than hidden: thin, square, accent blue.
   The Firefox properties double as the modern standard; the -webkit rules
   cover Chrome/Safari/Edge. */
html {
	scrollbar-width: thin;
	scrollbar-color: var(--hl-blue) var(--hl-navy);
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track {
	background: var(--hl-navy);
	margin: 0; /* thumb travels edge to edge, no inset at either end */
}
html::-webkit-scrollbar-thumb {
	background: var(--hl-blue);
	border-radius: 0;
	border: 0;
	min-height: 124px;
}
html::-webkit-scrollbar-thumb:hover { background: #4FA8DE; }
/* No stepper arrows at the ends of the bar. Every sub-variant is listed —
   some Chromium builds keep a button visible when only the shorthand
   pseudo-element is hidden. */
html::-webkit-scrollbar-button,
html::-webkit-scrollbar-button:single-button,
html::-webkit-scrollbar-button:start,
html::-webkit-scrollbar-button:end,
html::-webkit-scrollbar-button:vertical:increment,
html::-webkit-scrollbar-button:vertical:decrement {
	display: none;
	width: 0;
	height: 0;
	background: none;
}
html::-webkit-scrollbar-corner { background: var(--hl-navy); }

body {
	margin: 0;
	font-family: var(--hl-sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--hl-navy);
	background: var(--hl-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--hl-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--hl-blue-dark); }

input[type="range"] { accent-color: var(--hl-blue); }

/* Keeps a phrase from breaking mid-way. Used on headings and in body copy
   where a trailing word would otherwise be stranded on its own line. A class
   rather than an inline style: wp_kses_post() strips white-space from style
   attributes, so an inline rule would silently vanish from editor content. */
.hl-nowrap { white-space: nowrap; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Layout primitives ---------- */

/* The one container. Matches .hl-header__inner exactly — max-width INCLUDING
   the gutter, padding on the inner element — so every template's title, body
   text and cards share the same left and right edges as the header. Outer
   wrappers below carry vertical padding only. */
.hl-inner {
	width: 100%;
	max-width: var(--hl-max);
	margin-inline: auto;
	padding-inline: var(--hl-gutter);
}

.hl-section { background: var(--hl-white); padding: var(--hl-section-y) 0; }
.hl-section > .hl-inner { max-width: var(--hl-max); margin: 0 auto; }
.hl-section--mist { background: var(--hl-mist); }
.hl-section--navy { background: var(--hl-navy); color: #fff; }

@media (max-width: 768px) {
	:root { --hl-section-y: 48px; }
}

/* ---------- Typography ---------- */

.hl-eyebrow {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hl-muted);
}

.hl-section--navy .hl-eyebrow,
.hl-banner .hl-eyebrow { color: var(--hl-sky); }

.hl-h1 {
	font-family: var(--hl-serif);
	font-weight: 400;
	font-size: clamp(44px, 5.6vw, 80px);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 0;
	text-wrap: balance;
}

.hl-h2 {
	font-family: var(--hl-serif);
	font-weight: 400;
	font-size: clamp(38px, 4.4vw, 60px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 20px 0 0;
}

.hl-lead { font-size: 19px; line-height: 1.8; color: var(--hl-body); }
.hl-section p { color: var(--hl-body); }
.hl-section--navy p { color: rgba(255, 255, 255, 0.78); }

.hl-stat {
	font-family: var(--hl-serif);
	font-size: clamp(40px, 4vw, 52px);
	line-height: 1;
}

/* ---------- Buttons ---------- */

.hl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--hl-blue);
	color: #fff;
	padding: 18px 36px;
	border: 0;
	border-radius: var(--hl-radius-btn);
	font-family: var(--hl-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hl-btn:hover, .hl-btn:focus { background: var(--hl-blue-dark); color: #fff; }

.hl-btn--outline {
	background: transparent;
	border: 1px solid var(--hl-navy);
	color: var(--hl-navy);
	padding: 17px 35px;
}
.hl-btn--outline:hover, .hl-btn--outline:focus { background: var(--hl-navy); color: #fff; }

.hl-btn--white { background: #fff; color: var(--hl-navy); }
.hl-btn--white:hover, .hl-btn--white:focus { background: #EAF4FB; color: var(--hl-navy); }

.hl-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	padding: 17px 35px;
}
.hl-btn--ghost:hover, .hl-btn--ghost:focus { background: #fff; color: var(--hl-navy); }

.hl-textlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hl-navy);
	border-bottom: 1px solid var(--hl-navy);
	padding-bottom: 4px;
}
.hl-textlink:hover, .hl-textlink:focus { color: var(--hl-blue); border-bottom-color: var(--hl-blue); }
.hl-textlink--blue { color: var(--hl-blue); border-bottom-color: #B7DAEE; }

/* ---------- Cards ---------- */

.hl-card {
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: #fff;
	padding: 30px;
}
.hl-card--shadow { box-shadow: var(--hl-shadow); }

.hl-card-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 36px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	background: var(--hl-mist);
	color: var(--hl-navy);
	transition: border-color 0.2s ease;
}
.hl-card-link:hover, .hl-card-link:focus { border-color: var(--hl-blue); color: var(--hl-navy); }
.hl-card-link .hl-card-link__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hl-blue-dark); }
.hl-card-link .hl-card-link__title { font-size: 22px; font-weight: 600; margin-top: 10px; }
.hl-card-link .hl-card-link__more { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-blue-dark); margin-top: 16px; }

/* ---------- Topbar + Header ---------- */

.hl-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--hl-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	max-width: 100vw;
}

.hl-progress {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 3px;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
	z-index: 2;
}
.hl-progress__bar { height: 100%; width: 0%; background: var(--hl-blue); }

.hl-topbar { background: var(--hl-navy-deep); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hl-topbar__inner {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding: 0 var(--hl-gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}
/* Every link in the bar is a 44px-high target (the bar keeps its old height: no extra padding). */
.hl-topbar__phone { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.hl-topbar__phone:hover { color: var(--hl-sky); }

.hl-header__inner {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding: 0 var(--hl-gutter);
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.hl-logo { display: flex; align-items: center; flex-shrink: 0; }
.hl-logo img { height: 64px; width: auto; display: block; }

/* Homepage only: the logo fills the full 100px-tall header bar instead of
   the 64px used on every other page. .home is the body class WP adds when
   is_front_page() is true (confirmed on this site's actual body tag — there
   is no "front-page" class here). Scoped to the desktop header height so
   the mobile-breakpoint logo size below is untouched. */
@media (min-width: 1100px) {
	.home .hl-logo img { height: 100px; }
}

/* Desktop nav */
.hl-nav { display: flex; align-items: stretch; gap: 30px; height: 100%; }
.hl-nav__item { position: relative; display: flex; }
.hl-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
.hl-nav__link:hover, .hl-nav__link:focus { color: var(--hl-sky); }
.hl-nav__caret { font-size: 9px; opacity: 0.6; }
.hl-nav__item.is-open > .hl-nav__link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--hl-blue);
}

.hl-header__cta { flex-shrink: 0; padding: 14px 26px; font-size: 13px; }
.hl-header__cta:hover, .hl-header__cta:focus { background: #fff; color: var(--hl-navy); }

/* Mega panel */
.hl-nav__panel {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: #fff;
	box-shadow: var(--hl-shadow-panel);
	border-top: 2px solid var(--hl-blue);
	display: none;
}
.hl-nav__panel.is-open { display: block; }
.hl-nav__panel-inner {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding: 52px var(--hl-gutter) 60px;
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(0, 3fr);
	gap: 64px;
}
.hl-nav__panel-intro { border-right: 1px solid var(--hl-line); padding-right: 40px; }
.hl-nav__panel-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hl-blue); }
.hl-nav__panel-title { font-family: var(--hl-serif); font-size: 38px; line-height: 1.05; color: var(--hl-navy); margin-top: 14px; }
.hl-nav__panel-link { margin-top: 26px; }
.hl-nav__panel-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
}
.hl-nav__col-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-muted);
	padding-bottom: 14px;
	border-bottom: 1px solid var(--hl-line);
}
.hl-nav__col-links { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.hl-nav__col-links a { display: block; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--hl-navy); }
.hl-nav__col-links a:hover { color: var(--hl-blue); }

/* Mobile toggle + menu */
.hl-nav-toggle {
	display: none;
	width: 48px; height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hl-nav-toggle:hover { border-color: #fff; }

.hl-mobile-menu {
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: #fff;
	box-shadow: var(--hl-shadow-panel);
	border-top: 2px solid var(--hl-blue);
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	display: none;
}
.hl-mobile-menu.is-open { display: block; }
.hl-mobile-menu__inner { padding: 12px var(--hl-gutter) 32px; }
.hl-mobile-menu__group { border-bottom: 1px solid var(--hl-line); }
.hl-mobile-menu__toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	color: var(--hl-navy);
	text-align: left;
}
.hl-mobile-menu__toggle .sign { font-size: 20px; color: var(--hl-blue); }
.hl-mobile-menu__panel { display: none; flex-direction: column; gap: 22px; padding: 0 0 24px; }
.hl-mobile-menu__group.is-open .hl-mobile-menu__panel { display: flex; }
.hl-mobile-menu__col-title { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hl-muted); }
.hl-mobile-menu__panel a { display: block; padding: 10px 0; font-size: 15px; line-height: 1.4; color: var(--hl-navy); }
.hl-mobile-menu__panel a:hover { color: var(--hl-blue); }
.hl-mobile-menu__cta { display: flex; justify-content: center; margin-top: 28px; width: 100%; }

@media (max-width: 1099px) {
	.hl-nav, .hl-header__cta { display: none; }
	.hl-nav-toggle { display: flex; }
	.hl-header__inner { height: 84px; }
	.hl-logo img { height: 52px; }
}

/* ---------- Page banner ---------- */

/* Shown on every inner page. Trimmed from 72/80 to the 44/48 the design files
   specify — the band was taking a large bite out of the first screen before any
   page content appeared. The spacing inside it (breadcrumb → title → rule) is
   tightened to match, otherwise the padding shrinks but the contents don't and
   the band barely changes height. */
.hl-banner {
	position: relative;
	background: linear-gradient(115deg, var(--hl-navy) 0%, var(--hl-grad-mid) 55%, var(--hl-blue) 100%);
	color: #fff;
	padding: 44px 0 48px;
	overflow: hidden;
}

.hl-banner__ruler {
	position: absolute;
	right: 0; top: 0; bottom: 0;
	width: 40px;
	background-image:
		repeating-linear-gradient(to bottom, transparent 0, transparent 59px, rgba(255, 255, 255, 0.4) 59px, rgba(255, 255, 255, 0.4) 60px),
		repeating-linear-gradient(to bottom, transparent 0, transparent 11px, rgba(255, 255, 255, 0.22) 11px, rgba(255, 255, 255, 0.22) 12px);
	background-size: 40px 100%, 18px 100%;
	background-position: right top, right top;
	background-repeat: no-repeat;
	pointer-events: none;
}

/* Same container as .hl-inner, so the breadcrumb and title line up with the
   logo above them and the page content below. Without the max-width and the
   centring, the gradient (which is full-bleed on .hl-banner, and should stay
   that way) dragged the text out to the far left edge on a wide screen while
   everything else on the page stayed within 1440px. */
.hl-banner__inner {
	position: relative;
	width: 100%;
	max-width: var(--hl-max);
	margin-inline: auto;
	padding-inline: var(--hl-gutter);
}

.hl-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-sky);
}
/* 44px target without growing the row: the box is 44px high and pulled back by the extra 24px. */
.hl-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -12px; color: var(--hl-sky); }
.hl-breadcrumb a:hover { color: #fff; }
.hl-breadcrumb .current { color: #fff; }

.hl-banner__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px 64px;
	margin-top: 18px;
}
/* Smaller than the generic .hl-h1 (which runs to 80px for the homepage hero):
   at full size the title would dominate the now-shorter band. This is the size
   the design files use for the page banner. */
.hl-banner__title {
	color: #fff;
	font-size: clamp(38px, 4.4vw, 60px);
}
/* No measure cap: the banner runs full width, intro paragraph included. */
.hl-banner__lead { font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, 0.82); margin: 12px 0 0; }
.hl-banner__rule { width: 64px; height: 2px; background: var(--hl-blue); margin-top: 26px; }

/* Optional banner badge (the award plaque on the Dr. Mahboubian page). The
   modifier is what turns the inner wrapper into a two-column flex row, so a
   banner without a badge keeps the exact block layout it always had — the
   .hl-banner__main wrapper alone changes nothing. Centring on the cross axis
   is what the design shows: the plaque is centred against the whole band, not
   aligned to the title. Its right edge lands on the same container edge as the
   logo and the CONTACT US button above it; the ruler motif sits outside that,
   full-bleed, so the two never meet at the widths where both are shown. */
.hl-banner__inner--badge {
	display: flex;
	align-items: center;
	gap: 48px;
}
.hl-banner__inner--badge .hl-banner__main { flex: 1 1 auto; min-width: 0; }
.hl-banner__badge { flex: 0 0 auto; width: clamp(104px, 10vw, 140px); }
.hl-banner__badge img { display: block; width: 100%; height: auto; }

/* Below this the text column is too narrow to give the plaque a side of its
   own, and the gutter has shrunk enough that the ruler would reach it — so it
   drops under the accent rule instead. */
@media (max-width: 860px) {
	.hl-banner__inner--badge { display: block; }
	.hl-banner__badge { width: 104px; margin-top: 24px; }
}

@media (max-width: 768px) {
	.hl-banner { padding-top: 32px; padding-bottom: 36px; }
	.hl-banner__rule { margin-top: 20px; }
}

/* ---------- Final CTA ---------- */

.hl-cta {
	position: relative;
	background: linear-gradient(180deg, var(--hl-navy) 0%, var(--hl-grad-mid) 50%, var(--hl-grad-end) 100%);
	color: #fff;
	padding: var(--hl-section-y) 0;
	overflow: clip;
}
.hl-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, rgba(255, 255, 255, 0.04) 47px, rgba(255, 255, 255, 0.04) 48px);
	pointer-events: none;
}
.hl-cta__inner {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding-inline: var(--hl-gutter);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.hl-cta__title {
	font-family: var(--hl-serif);
	font-weight: 400;
	font-size: clamp(42px, 5vw, 68px);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 0;
	color: #fff;
}
.hl-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }

@media (max-width: 768px) {
	.hl-cta { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- Footer ---------- */

.hl-footer { background: var(--hl-navy-footer); color: rgba(255, 255, 255, 0.72); }

.hl-footer__quick { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 0; }
.hl-footer__quick .menu {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding: 0 var(--hl-gutter);
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 44px;
}
.hl-footer__quick a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 15px; font-weight: 600; }
.hl-footer__quick a:hover { color: var(--hl-blue); }

.hl-footer__main { padding: 62px 0; }
.hl-footer__grid {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding-inline: var(--hl-gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 56px;
	align-items: center;
}
/* The phone number and the contact button have very different text lengths, so
   sizing each to its own content left them visibly mismatched. fit-content
   sizes the column to the wider of the two and stretch then matches the other
   to it — both buttons end up the width of the longer label, without hard-coding
   a width that would break when the label is edited. */
.hl-footer__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: fit-content;
	gap: 16px;
}
.hl-footer__actions .hl-btn { padding: 16px 32px; font-size: 15px; text-transform: none; letter-spacing: 0; }
.hl-footer__actions .hl-btn:hover { background: #fff; color: var(--hl-navy-footer); }
.hl-footer__actions .hl-btn--ghost { border-color: rgba(255, 255, 255, 0.55); padding: 15px 34px; }
.hl-footer__logo { display: flex; justify-content: center; }
.hl-footer__logo img { width: 100%; max-width: 340px; height: auto; }
.hl-footer__address { text-align: right; }
.hl-footer__address .lines { font-size: 17px; line-height: 1.7; color: #fff; }
.hl-footer__address .hours { font-size: 15px; color: rgba(255, 255, 255, 0.6); margin-top: 12px; }

.hl-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; }
.hl-footer__legal-inner {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding-inline: var(--hl-gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}
.hl-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; }
.hl-footer__legal a:hover { color: var(--hl-blue); }
.hl-footer__legal .credit a { color: var(--hl-sky); text-decoration: underline; text-underline-offset: 3px; }
.hl-footer__legal .credit a:hover { color: #fff; }
.hl-footer__legal .menu { display: flex; gap: 0 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.hl-footer__disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; }
.hl-footer__disclaimer p {
	max-width: var(--hl-max);
	margin: 0 auto;
	padding-inline: var(--hl-gutter);
	font-size: 13.5px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.55);
}
.hl-footer__disclaimer strong { color: #fff; font-weight: 600; }

@media (max-width: 768px) {
	/* The quick links stack one per line, left-aligned like the rest of the footer. */
	.hl-footer__quick .menu { flex-direction: column; align-items: flex-start; }
	.hl-footer__address { text-align: left; }
	.hl-footer__logo { justify-content: flex-start; }
	.hl-footer__logo img { max-width: 280px; }
}

.hl-form__title { font-family: var(--hl-serif); font-weight: 400; font-size: clamp(34px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 0; }
.hl-form__note { font-size: 16px; line-height: 1.7; color: var(--hl-body); margin: 14px 0 0; }
/* ---------- Lightbox ---------- */

.hl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(7, 24, 37, 0.9);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 5vh 5vw;
	cursor: zoom-out;
}
.hl-lightbox.is-open { display: flex; }
.hl-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 84vh;
	object-fit: contain;
	border-radius: var(--hl-radius);
	background: #fff;
}
/* Fill mode (award badge): the image is drawn to the screen height, contained, with no backing box. */
.hl-lightbox--fill img { width: 100%; height: 84vh; max-height: none; border-radius: 0; background: transparent; }
.hl-lightbox--fill .hl-lightbox__caption { line-height: normal; }
.hl-lightbox__caption { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.hl-lightbox__close {
	position: absolute;
	top: 24px; right: 24px;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

/* ---------- Shared interactive patterns ---------- */

/* Scroll reveal */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal].will-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 700ms ease, transform 700ms ease;
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/*
 * No scroll-reveal on phones. Animating opacity and transform on nearly every
 * section is work the main thread does while the page is still settling, and
 * on a phone that competes with the first paint for no real benefit — the
 * content is already arriving a screen at a time. Content shows immediately
 * instead. Same reasoning as the reduced-motion rule below, so they share a
 * declaration.
 */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
	.js [data-reveal].will-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* FAQ accordion */
.hl-accordion { border-top: 1px solid var(--hl-line); }
.hl-accordion__item { border-bottom: 1px solid var(--hl-line); }
.hl-accordion__q {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 24px 0;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	color: var(--hl-navy);
	text-align: left;
}
.hl-accordion__icon { font-size: 24px; color: var(--hl-navy); flex-shrink: 0; }
.hl-accordion__item.is-open .hl-accordion__q,
.hl-accordion__item.is-open .hl-accordion__icon { color: var(--hl-blue); }
.hl-accordion__a { display: none; padding: 0 0 26px; max-width: 900px; }
.hl-accordion__a p { font-size: 17px; line-height: 1.8; color: var(--hl-body); margin: 0 0 14px; }
.hl-accordion__a p:last-child { margin-bottom: 0; }
.hl-accordion__item.is-open .hl-accordion__a { display: block; }

/* An accordion inside body copy (<div class="hl-faq"> → hl_accordionize() in content.php). The
   question is an <h3> that wraps the toggle button, so the article's own h3 look (size, margin)
   is switched off for the wrapper and the button keeps the accordion look. */
.hl-article .entry-content .hl-accordion { margin: 1.2em 0 1.6em; }
.hl-article .entry-content .hl-accordion__h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.hl-article .entry-content .hl-accordion__q { min-height: 44px; }
.hl-article .entry-content .hl-accordion__a p { margin: 0 0 14px; }
.hl-article .entry-content .hl-accordion__a p:last-child { margin-bottom: 0; }

/* Pill tab bar */
.hl-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.hl-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid var(--hl-tick);
	background: #fff;
	color: var(--hl-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.hl-tab.is-active { background: var(--hl-navy); border-color: var(--hl-navy); color: #fff; }

/* Auto-scrolling photo strip (marquee) */
.hl-strip { overflow: hidden; position: relative; }
.hl-strip__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.hl-strip__item { flex-shrink: 0; }
.hl-strip__item img { display: block; height: 300px; width: auto; border-radius: var(--hl-radius); }

/* Prev/next arrows on a strip: hidden until the strip is hovered or an arrow has keyboard focus.
   Touch screens have no hover, so they stay visible there. Wired up by the marquee code in main.js. */
.hl-strip__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(10, 25, 47, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: var(--hl-sans);
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.hl-strip:hover .hl-strip__arrow,
.hl-strip:focus-within .hl-strip__arrow { opacity: 1; pointer-events: auto; }
@media (hover: none) {
	.hl-strip__arrow { opacity: 1; pointer-events: auto; }
}
.hl-strip__arrow:hover,
.hl-strip__arrow:focus-visible { background: var(--hl-blue); border-color: var(--hl-blue); }
.hl-strip__arrow--prev { left: var(--hl-gutter); }
.hl-strip__arrow--next { right: var(--hl-gutter); }
@media (max-width: 640px) {
	.hl-strip__item img { height: 200px; }
	.hl-strip__arrow { width: 44px; height: 44px; font-size: 16px; }
}

/* Before/After stat pair */
.hl-ba { display: flex; gap: 24px; align-items: flex-end; }
.hl-ba__label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hl-muted); }
.hl-ba__arrow { font-size: 22px; color: var(--hl-blue); padding-bottom: 12px; }
.hl-ba__after .hl-ba__label, .hl-ba__after .hl-stat { color: var(--hl-blue); }

/* Grid helpers */
.hl-grid { display: grid; gap: 24px; }
.hl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Lone card in an editor-driven card grid. Editors add and remove cards, so a grid
   must look right with ONE: without this, auto-fill grids leave the card stuck at
   the left in a single narrow column and auto-fit grids stretch it across the whole
   row. It spans the row and is centred at a readable width instead. Add any new
   card-list grid class to this selector list. */
:is(.hl-grid, .hl-blog-grid, .hl-resources__grid, .hl-hub__grid, .hl-team__grid, .hl-about-meet__grid, .hl-drm-creds__grid, .hl-drm-results__grid, .hl-media-articles__grid, .hl-testi-diaries__grid, .hl-home-stories__grid) > :only-child {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
}

/* Split layout (text + aside) */
.hl-split { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: stretch; }
.hl-split__main { flex: 1.2 1 520px; min-width: 0; }
.hl-split__aside { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Blog (restyled to design system) ---------- */

.hl-blog { padding: var(--hl-section-y) 0; }
.hl-blog__inner { max-width: var(--hl-max); margin: 0 auto; padding-inline: var(--hl-gutter); }

/* Listing cards and the single-post layout live in assets/css/pages/blog.css. */

/* Article body (single posts, default pages). */
.hl-article { padding: 72px 0 96px; }
/* page.php has no inner wrapper of its own — keep it on the same edges. */
.hl-article > .entry-content {
	width: 100%;
	max-width: var(--hl-max);
	margin-inline: auto;
	padding-inline: var(--hl-gutter);
}
.hl-article .entry-content { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--hl-body); }

/* …but NOT inside the section layouts. There the heading sits outside
   .entry-content, so centering the text block pushed every paragraph in
   from its own heading. Keep a readable measure, anchored left. */
.hl-svc .hl-svc__body .entry-content,
.hl-svc .hl-svc__content.entry-content {
	max-width: 75ch;
	margin-inline: 0;
}

/* The landing article's columns already set the measure. */
.hl-la .hl-la__intro,
.hl-la .hl-la__text {
	max-width: none;
	margin-inline: 0;
}
.hl-article .entry-content h2,
.hl-article .entry-content h3 { color: var(--hl-navy); margin: 1.6em 0 0.6em; line-height: 1.3; }
.hl-article .entry-content h2 { font-size: 30px; font-weight: 600; }
.hl-article .entry-content h3 { font-size: 24px; font-weight: 600; }
.hl-article .entry-content a { font-weight: 600; }
.hl-article .entry-content ul,
.hl-article .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.hl-article .entry-content li { margin-bottom: 0.5em; }
.hl-article .entry-content blockquote {
	margin: 1.6em 0;
	padding: 14px 22px;
	border-left: 4px solid var(--hl-blue);
	background: var(--hl-mist);
	border-radius: 0 var(--hl-radius) var(--hl-radius) 0;
	color: var(--hl-navy);
}
.hl-article .entry-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; }
.hl-article .entry-content th,
.hl-article .entry-content td { padding: 10px 14px; text-align: left; border: 1px solid var(--hl-line); }
.hl-article .entry-content th { background: var(--hl-mist); color: var(--hl-navy); }

/* Pagination */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius-btn);
	color: var(--hl-navy);
	font-weight: 600;
}
.nav-links .page-numbers.current { background: var(--hl-blue); border-color: var(--hl-blue); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--hl-blue); color: var(--hl-blue); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px 0; }
.search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	font: inherit;
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius-btn);
}
.search-form .search-field:focus { outline: none; border-color: var(--hl-blue); box-shadow: 0 0 0 3px rgba(29, 137, 202, 0.18); }
.search-form .search-submit {
	padding: 12px 22px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--hl-blue);
	border: 0;
	border-radius: var(--hl-radius-btn);
	cursor: pointer;
}
.search-form .search-submit:hover { background: var(--hl-blue-dark); }

/* WP content image alignment */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--hl-muted); margin-top: 8px; }

/* ==========================================================================
   HubSpot forms — shared styling.

   Submissions go to HubSpot, but the forms must not look like HubSpot's. The
   embed is created with css:'' so HubSpot injects no stylesheet of its own,
   which means everything below is plain cascade — no !important needed.

   HubSpot's markup, for reference:
     form.hs-form > .hs-form-field > label > span          (label text)
                                   > .input > input.hs-input
                                   > ul.hs-error-msgs      (validation)
                  > .hs-submit > .actions > input.hs-button
     .submitted-message                                    (success state)
   ========================================================================== */

.hl-hsform__target { margin-top: 28px; }

/* HubSpot wraps every field in a div; this is the equivalent of the <p>
   spacing CF7 produces. */
.hl-hsform .hs-form-field { margin: 0 0 20px; }

.hl-hsform .hs-form-field > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hl-navy);
	margin-bottom: 8px;
}

/* HubSpot marks required fields with a span rather than a class. */
.hl-hsform .hs-form-required { color: var(--hl-blue); }

/*
 * !important is load-bearing here, not laziness. Despite css:'' (and
 * cssRequired:'', which was tried and does not help), HubSpot still injects a
 * per-form <style id="hs-form-style…"> block whose selectors look like
 *   .hs-custom-style > div input:not([type="image"]):not([type="submit"])…
 * That is five attribute selectors plus a class — specificity (0,6,2) — and it
 * sets `padding: 0 15px`, which collapsed every text field to 27px tall while
 * selects (not matched by that rule) stayed at 50px. Out-specifying it would
 * mean hard-coding a copy of HubSpot's selector and re-breaking the moment
 * they change it; forcing the handful of properties we own is both shorter and
 * more durable. Scoped to .hl-hsform, so nothing outside our embeds is touched.
 */
.hl-hsform .hs-input {
	width: 100%;
	padding: 13px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--hl-navy);
	background: var(--hl-white);
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius-btn);
}

.hl-hsform .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]) {
	width: 100% !important;
	padding: 13px 14px !important;
	height: auto !important;
	min-height: 0 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: var(--hl-navy) !important;
	background: var(--hl-white) !important;
	border: 1px solid var(--hl-line) !important;
	border-radius: var(--hl-radius-btn) !important;
}

.hl-hsform .hs-input:focus {
	outline: none;
	border-color: var(--hl-blue);
	box-shadow: 0 0 0 3px rgba(29, 137, 202, 0.18);
}

/* Same reasoning as the CF7 textarea: HubSpot's default is far taller than
   the rest of the form, so set an explicit height but keep it resizable. */
/* A <textarea> has no type attribute, so it matches the :not([type=…]) rule
   above and would inherit its `height: auto` — these have to be forced back. */
.hl-hsform textarea.hs-input {
	height: 92px !important;
	min-height: 92px !important;
	resize: vertical;
}

/* Checkboxes and radios must not stretch to the full field width. */
.hl-hsform .hs-input[type="checkbox"],
.hl-hsform .hs-input[type="radio"] {
	/* !important: HubSpot prints a per-form rule (.hs-form-<id> fieldset .hs-input) that sets width: auto. */
	width: 24px !important;
	min-width: 24px;
	height: 24px !important;
	flex-shrink: 0;
	margin: 0 10px 0 0;
	accent-color: var(--hl-blue);
}

.hl-hsform .inputs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hl-hsform .inputs-list > li { display: inline-flex; align-items: center; margin: 0 16px 8px 0; }
.hl-hsform .inputs-list label {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

/* Consent / legal checkbox reads as a sentence, not a field label. */
.hl-hsform .hs-form-booleancheckbox label,
.hl-hsform .legal-consent-container label {
	display: flex;
	align-items: flex-start;
	min-height: 44px;
	gap: 10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hl-body);
}
.hl-hsform .legal-consent-container .hs-richtext {
	font-size: 13px;
	line-height: 1.6;
	color: var(--hl-body);
}

/* Explanatory rich text HubSpot allows between fields. */
.hl-hsform .hs-richtext { margin: 0 0 16px; }
.hl-hsform .hs-richtext p { margin: 0 0 8px; }

.hl-hsform .hs-button {
	width: auto;
	padding: 15px 34px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--hl-blue);
	border: 0;
	border-radius: var(--hl-radius-btn);
	cursor: pointer;
	transition: background 0.2s ease;
}

.hl-hsform .hs-button:hover,
.hl-hsform .hs-button:focus {
	background: var(--hl-blue-dark);
}

/* Validation. HubSpot emits a <ul> of messages per field plus a form-level
   list; both are reset from list markup to plain error text. */
.hl-hsform .hs-error-msgs {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}
.hl-hsform .hs-error-msg,
.hl-hsform .hs-error-msgs label {
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hl-error);
}
.hl-hsform .hs-input.invalid { border-color: var(--hl-error); }

/* Success state, shown in place of the form after a submission. */
.hl-hsform .submitted-message {
	margin: 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	border-radius: var(--hl-radius-btn);
	border: 1px solid var(--hl-line);
	background: var(--hl-mist);
	color: var(--hl-navy);
}

.hl-hsform__fallback { font-size: 14px; line-height: 1.6; color: var(--hl-body); }

/* Two fields on one row where HubSpot is configured to group them. */
.hl-hsform .form-columns-2 { display: flex; flex-wrap: wrap; gap: 0 16px; }
.hl-hsform .form-columns-2 > * { flex: 1 1 180px; min-width: 0; }
/* HubSpot sets inline widths on its column wrappers; they fight flex. */
.hl-hsform .form-columns-1 .input,
.hl-hsform .form-columns-2 .input,
.hl-hsform .hs-form-field .input { margin-right: 0 !important; }
.hl-hsform .form-columns-1,
.hl-hsform .form-columns-2 { width: 100% !important; max-width: none !important; }
.hl-hsform .hs-form-field { width: auto; }


/* ==========================================================================
   Content + contact sidebar layout.

   Shared by the Single Service template and the default page template. Lives
   in main.css rather than a per-template file because the default template
   has no template slug, so no per-template stylesheet is ever enqueued for it.
   ========================================================================== */

.hl-svc__content { min-width: 0; }

@media (min-width: 1100px) {
	/* Wider than the no-sidebar case on purpose: the content column still has
	   to fit a text + image row beside the form, and reusing the 1120px cap
	   would leave the body too narrow once the form takes its 360px. */
	.hl-svc__layout--sidebar {
		/* Same max-width and gutter as .hl-header__inner, so the card's right
		   edge lines up with the header's Contact Us button. */
		max-width: var(--hl-max);
		padding-left: var(--hl-gutter);
		padding-right: var(--hl-gutter);
		display: grid;
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 48px 80px;
		align-items: start;
	}

	.hl-svc__aside {
		position: sticky;
		top: calc(var(--hdr, 120px) + 24px);
		/* Never taller than the window: a contents list with many entries plus the practice
		   card is taller than a laptop screen, and a sticky box taller than the screen can
		   never be seen whole (its lower entries and the card stay below the fold). The card
		   keeps its height, the contents list takes what is left and scrolls inside itself;
		   main.js keeps the entry for the section in view inside that list. */
		max-height: calc(100vh - var(--hdr, 120px) - 48px);
	}
	.hl-svc__toc {
		display: flex;
		flex-direction: column;
		flex: 0 1 auto;
		min-height: 0;
	}
	.hl-svc__toc-list {
		flex: 1 1 auto;
		min-height: 96px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
	.hl-svc__card { flex: none; }

}

@media (max-width: 1099px) {
	/* Stacked: the form follows the content rather than interrupting it. */
	.hl-svc__aside { margin-top: 48px; }
}



/* ---------- Tables (hl_wrap_tables() / hl_label_table() in content.php) ----------
   Tablets and up: the real table, fitted to its column (nothing scrolls). Under 768px
   every row becomes a card: the row's first cell is the card heading and each other
   cell shows its column name from its data-label. The header row stays in the DOM,
   visually hidden, so the table keeps its meaning for screen readers. */
.hl-table { margin: 1.6em 0; }
.hl-table table { margin: 0 !important; max-width: 100%; }
/* break-word (not anywhere): the table layout sizes columns to their longest word, so words are
   only ever broken as a last resort, never mid-word in a normal column. */
.hl-table th,
.hl-table td { overflow-wrap: break-word; }

@media (max-width: 767px) {
	.hl-table table,
	.hl-table thead,
	.hl-table tbody,
	.hl-table tfoot,
	.hl-table tr,
	.hl-table th,
	.hl-table td {
		display: block;
		box-sizing: border-box;
		width: auto !important;
		max-width: 100%;
		min-width: 0 !important;
	}
	.hl-table table { border: 0 !important; background: none !important; }
	.hl-table thead,
	.hl-table .hl-table__head {
		position: absolute;
		width: 1px !important;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}
	.hl-table tr {
		margin: 0 0 14px;
		border: 1px solid var(--hl-line) !important;
		border-radius: var(--hl-radius);
		background: #fff !important;
		overflow: hidden;
	}
	.hl-table tr:last-child { margin-bottom: 0; }
	.hl-table th,
	.hl-table td {
		padding: 12px 16px !important;
		border: 0 !important;
		border-top: 1px solid var(--hl-line) !important;
		background: transparent !important;
		text-align: left !important;
		line-height: 1.55;
	}
	.hl-table tr > :first-child {
		border-top: 0 !important;
		background: var(--hl-mist) !important;
		color: var(--hl-navy) !important;
		font-weight: 600;
	}
	.hl-table [data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--hl-muted);
	}
}

/* ---------- Paged sliders ([data-pager], main.js) ----------
   The viewport clips and the script slides an inner track by whole pages, so there
   is never a scroll bar and never a half-cut card. Cards on other pages are inert. */
[data-pager].is-paged {
	display: block;
	overflow: hidden;
	padding-inline: 0;
}
.hl-pager__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--pager-gap, 20px);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
[data-pager].is-paged > .hl-pager__track > * {
	flex: 0 0 var(--pager-w, 264px);
	width: var(--pager-w, 264px);
	min-width: 0;
}
[data-pager].is-paged :focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
	.hl-pager__track { transition: none; }
}

/* HubSpot's inline call-to-action links in post copy: a 44px-high target. */
.entry-content .hs-cta-node a {
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	padding-block: 10px;
}

/* HubSpot's image call-to-action (the ebook banner in posts) carries a fixed height and
   object-fit: fill inline, which squeezes the picture whenever the column is narrower than
   the file. Let the image keep its own ratio at any width. */
.entry-content .hs-cta-embed { height: auto !important; max-height: none !important; }
.entry-content .hs-cta-embed img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Photos floated beside the text with an inline style (the doctor's headshot in posts): on phones
   a 300px float leaves the text a sliver-wide column, so below 600px the float is dropped and the
   picture sits above the text at its own size, centred. */
@media (max-width: 599px) {
	.entry-content img[style*="float"],
	.entry-content img[align="left"],
	.entry-content img[align="right"] {
		float: none !important;
		display: block;
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
		margin: 0 auto 16px !important;
	}
}

/* The "on Google" link the reviews widget prints under the rating: a 44px target without growing the line. */
a[title="Google"][target="_blank"] { display: inline-block; box-sizing: border-box; min-height: 44px; padding-block: 12px; margin-block: -12px; }

/* Long URLs and unbroken strings in migrated copy must not push the layout. */
.hl-article .entry-content,
.hl-la .entry-content,
.hl-svc__body .entry-content {
	overflow-wrap: break-word;
}


/* Click-to-zoom on content images, per the updated design. The exclusions
   match the design's own selector: anything already interactive, in site
   chrome, or carrying its own data-src handler is left alone. */
section img { cursor: zoom-in; }
a img,
button img,
form img,
header img,
footer img,
[data-no-zoom] img { cursor: inherit; }


/* ---- Single Service sidebar: contents list + practice card ---- */

/* The two cards had no separation — neither the column nor the cards carried
   any spacing, so the mist contents panel and the navy practice card met edge
   to edge and read as one block. Owned by the column so the gap holds whether
   both cards are present or only one. */
.hl-svc__aside {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hl-svc__toc {
	background: var(--hl-mist);
	border: 1px solid var(--hl-line);
	border-radius: var(--hl-radius);
	padding: 28px 28px 20px;
}

.hl-svc__toc-label,
.hl-svc__card-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-muted);
}

.hl-svc__toc-list { display: flex; flex-direction: column; margin-top: 14px; }

.hl-svc__toc-list a {
	display: block;
	padding: 11px 0 11px 16px;
	/* The bar is always present so the active state only changes its colour —
	   switching border width would shift every label sideways. */
	border-left: 2px solid #D1D9DF;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--hl-muted);
	text-decoration: none;
}
.hl-svc__toc-list a:hover { color: var(--hl-blue); }
.hl-svc__toc-list a.is-active {
	border-left-color: var(--hl-blue);
	color: var(--hl-navy);
	font-weight: 600;
}

/* Three things only, per the design: label, phone, button. The column owns the
   rhythm with a gap, so no child carries its own top margin. */
.hl-svc__card {
	display: flex;
	flex-direction: column;
	gap: 22px;
	background: var(--hl-navy);
	color: #fff;
	border-radius: var(--hl-radius);
	border-top: 3px solid var(--hl-blue);
	padding: 32px 28px 28px;
}

.hl-svc__card-label { color: var(--hl-sky); }

.hl-svc__card-call {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: #fff;
	text-decoration: none;
}
.hl-svc__card-call-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
/* The number is the card's focal point — set in the display serif at a size
   nothing else in the sidebar competes with. */
.hl-svc__card-phone {
	font-family: var(--hl-serif);
	font-size: 34px;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #fff;
}
.hl-svc__card-call:hover .hl-svc__card-phone,
.hl-svc__card-call:hover .hl-svc__card-call-label { color: var(--hl-sky); }

.hl-svc__card-rule { height: 1px; background: rgba(255, 255, 255, 0.14); }

.hl-svc__card-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background: var(--hl-blue);
	color: #fff;
	padding: 18px 20px;
	border-radius: var(--hl-radius-btn);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.hl-svc__card-btn:hover { background: #fff; color: var(--hl-navy); }

@media (prefers-reduced-motion: reduce) {
	.hl-svc__card-btn { transition: none; }
}
/* ==========================================================================
   Portrait video frames (TikTok, Instagram Reels, YouTube Shorts)
   --------------------------------------------------------------------------
   Every click-to-play frame in the theme is a 16:9 box. A vertical clip inside
   one would letterbox down to a sliver, so frames whose link is a vertical
   format (PHP marks them with this class via hl_video_info()) switch to the
   9:16 shape those players are designed for, capped so a phone-shaped frame
   never towers over the layout on desktop.
   ========================================================================== */

/* The frame carries both the class and the data attribute (hl_video_play_attrs),
   and the pair out-specifies the 16:9 declared on each frame class in the
   per-template stylesheets, which load after this file. The gallery variant is
   the exception: there the class sits on the <figure> around the frame. */
.hl-video--portrait[data-video-portrait],
.hl-video--portrait .hl-gal-video__frame {
	aspect-ratio: 9 / 16;
	max-width: 330px;
}

.hl-video--portrait {
	max-width: 330px;
}

/* In a grid next to landscape items, keep the column but not the stretch. */
.hl-video--portrait.hl-svc-videos__item,
.hl-video--portrait.hl-pricinfo-video {
	justify-self: start;
	width: 100%;
}


/* ==========================================================================
   Accessibility (WCAG 2.1 AA)
   ========================================================================== */

/* Skip link: first thing a keyboard user reaches; hidden until it has focus. */
.hl-skip {
	position: absolute;
	left: 12px;
	top: -120px;
	z-index: 10000;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0 22px;
	background: var(--hl-navy);
	color: #fff;
	border: 2px solid #fff;
	border-radius: var(--hl-radius-btn);
	font-weight: 600;
	text-decoration: underline;
}
.hl-skip:focus { top: 12px; }

/* The skip link focuses <main>; it is a target, not a control, so no ring around the whole page. */
.site-main:focus { outline: none; }

/* A link inside a sentence is told apart by an underline, not by colour alone (WCAG 1.4.1). */
.hl-article .entry-content a:not(.hl-btn):not(.hs-button):not(.button),
.hl-svc__body a:not(.hl-btn):not(.hs-button):not(.button),
.hl-la__text a:not(.hl-btn),
.hl-la__intro a:not(.hl-btn),
.hs-richtext a,
.legal-consent-container a,
.hl-hsform .hs-richtext a,
.hl-hsform .legal-consent-container a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* A table header cell with its own dark background (pasted tables set it inline) needs light text. */
.entry-content th[style*="1F3A5F" i],
.entry-content th[style*="0B2233" i],
.hl-table th[style*="1F3A5F" i],
.hl-table th[style*="0B2233" i] { color: #fff; }

/* Play/pause control for the home page's moving background video. */
.hl-video-toggle {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(11, 34, 51, 0.82);
	color: #fff;
	cursor: pointer;
}
.hl-video-toggle:hover { background: var(--hl-navy); }
.hl-video-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hl-video-toggle .hl-video-toggle__play { display: none; }
.hl-video-toggle[aria-pressed="true"] .hl-video-toggle__pause { display: none; }
.hl-video-toggle[aria-pressed="true"] .hl-video-toggle__play { display: block; }

/* More in-sentence links: the consent line's Privacy / Terms links in HubSpot forms and the lead paragraph. */
.hs-form-booleancheckbox-display a,
.hl-lead a:not(.hl-btn) {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
