/* ── Mobile Overflow Fix ─────────────────────── */
@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
}

/* ── Container ───────────────────────────────── */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 40px;
}

.container--reading {
	max-width: 720px;
}

/* ── Navigation ──────────────────────────────── */
.nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--primary);
	transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
	background: var(--primary);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav.scrolled .nav__link,
.nav.scrolled .nav__links a.nav__link {
	color: var(--white);
}

.nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	max-width: 1150px;
	margin: 0 auto;
	position: relative;
}

.nav__logo img,
.nav__logo .custom-logo-link img {
	height: 48px;
	width: auto;
	display: block;
}

.nav__logo .custom-logo-link {
	display: flex;
	align-items: center;
}

.nav__logo-text {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--white);
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	justify-content: center;
}

.nav__list {
	display: flex;
	align-items: stretch;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: var(--border-radius);
	transition: background var(--transition), color var(--transition);
}

.nav__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
}

.nav__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--white);
	margin: 0 8px;
	white-space: nowrap;
}

.nav__phone-icon {
	flex-shrink: 0;
}

/* Hide from desktop nav — shown in utility bar instead.
   Use > (direct child) so mega-menu .btn elements are not affected.
   Mobile: .nav__links .nav__phone (higher specificity) and the
   @media (max-width: 768px) block restore display for the drawer. */
.nav__phone,
.nav__links > .btn {
	display: none;
}

.nav__chevron {
	width: 12px;
	height: 12px;
	transition: transform var(--transition);
}

.has-mega-menu:hover .nav__chevron,
.has-mega-menu:focus-within .nav__chevron {
	transform: rotate(180deg);
}

.nav__toggle {
	display: none;
}

/* ── Utility Bar ─────────────────────────────── */
.nav-utility {
	background: #022236;
	color: #fff;
}

.nav-utility__inner {
	max-width: 1250px;
	margin: 0 auto;
	padding: 0.5rem 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-utility__left,
.nav-utility__right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.nav-utility__address,
.nav-utility__phone {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s;
}

.nav-utility__address {
	font-size: 13px;
}

.nav-utility__phone {
	font-size: 16px;
}

.nav-utility__address:hover,
.nav-utility__phone:hover {
	color: #00a1dd;
	opacity: 1;
	text-decoration: none;
}

.nav-utility__address svg,
.nav-utility__phone svg {
	flex-shrink: 0;
}

/* ── Mega Menu ────────────────────────────────── */
.has-mega-menu {
	position: static;
	display: flex;
	align-items: center;
}

.mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 200;
	/* Invisible padding bridges the gap between nav bar and dropdown panel */
	padding-top: 8px;
	transform: translateY(-8px);
	background: transparent;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

/* JS adds .is-visible; :hover and :focus-within are CSS fallbacks */
.has-mega-menu:hover .mega-menu,
.has-mega-menu:focus-within .mega-menu,
.mega-menu.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.2s ease;
}

.mega-menu__inner {
	display: flex;
	align-items: stretch;
	background: var(--white);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.mega-menu__columns {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	list-style: none;
	padding: 28px 32px;
	margin: 0;
}

.mega-menu__heading {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
}

.mega-menu__item {
	list-style: none;
}

/* Sub-menus inside mega panel — reset list styles */
.mega-menu .sub-menu {
	list-style: none;
	padding: 4px 0 0;
	margin: 0;
}

/* Mega menu items that are category parents — style as column heading */
.mega-menu__item:has(> .sub-menu) > .mega-menu__link {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--light-gray);
	margin-bottom: 8px;
	cursor: default;
}

.mega-menu__item:has(> .sub-menu) > .mega-menu__link:hover {
	background: none;
	color: var(--accent);
}

.mega-menu__link {
	font-size: 15px;
	color: #04507e;
	padding: 4px 0;
	display: block;
	transition: color var(--transition);
}

/* Higher specificity to prevent plugin styles from overriding dropdown link color */
.mega-menu .mega-menu__link {
	color: #04507e;
}

.mega-menu__link:hover,
.mega-menu .mega-menu__link:hover {
	color: var(--accent);
}

.mega-menu__featured {
	width: 240px;
	flex-shrink: 0;
	background: #021e30;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px 24px;
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.mega-featured__img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
}

.mega-featured__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.mega-featured__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--white);
	line-height: 1.4;
}

.mega-featured__cta {
	display: block;
	text-align: center;
}

/* ── Buttons ──────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.03em;
	padding: 12px 24px;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	z-index: 0;
	text-decoration: none;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	transition: width var(--transition);
	z-index: -1;
}

.btn:hover::before {
	width: 100%;
}

.btn--accent {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
}

.btn--accent::before {
	background: var(--accent-hover);
}

.btn--accent:hover,
.nav .btn--accent:hover {
	color: var(--white);
	border-color: var(--accent-hover);
}

.btn--outline {
	background: transparent;
	color: var(--primary);
	border-color: var(--primary);
}

.btn--outline::before {
	background: var(--primary);
}

.btn--outline:hover {
	color: var(--white);
}

.btn--sm {
	padding: 10px 20px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.btn--lg {
	padding: 16px 32px;
	font-size: 18px;
}

/* ── Footer ───────────────────────────────────── */
.footer {
	background: linear-gradient(to bottom, #04507e, #021e30);
	padding: 0;
}

.footer__accent-bar {
	height: 3px;
	background: var(--accent);
}

.footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 1.4fr;
	align-items: start;
	gap: 40px;
	padding: 64px 0 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__col-heading {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 16px;
}

/* Col 1: Logo + Social */
.footer__col--brand {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer__logo-link {
	display: block;
	margin-bottom: 16px;
}

/* Target custom-logo-link (the_custom_logo() output) and any direct img */
.footer__logo-link .custom-logo-link,
.footer__logo-link a {
	display: block;
}

.footer__logo-link .custom-logo,
.footer__logo-link img {
	height: 100px;
	width: auto;
	display: block;
}

.footer__logo-text {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--white);
	letter-spacing: 0.06em;
}

.footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(0, 161, 221, 0.5);
	color: var(--accent);
	transition: background var(--transition), border-color var(--transition);
}

.footer__social-link:hover {
	background: rgba(0, 161, 221, 0.15);
	border-color: var(--accent);
}

/* Col 2: Description */
.footer__summary {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.75;
	margin-bottom: 20px;
	text-align: center;
}

/* Col 2: Quick Links column */
.footer__col--links {
	text-align: center;
}

/* Col 3: Quick Links */
.footer__links {
	list-style: none;
	padding: 0;
	display: block;
}

.footer__links li {
	display: block;
	margin-bottom: 0;
}

.footer__links a {
	font-size: 15px;
	font-weight: 700;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 2.4;
	transition: color var(--transition);
	display: block;
}

.footer__links a:hover {
	color: var(--accent);
}

/* Col 4: Contact card + CTA badge */
.footer__contact-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 20px 18px;
	margin-bottom: 16px;
}

.footer__contact-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__contact-row--last {
	border-bottom: none;
	padding-bottom: 0;
}

.footer__contact-icon {
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 2px;
}

.footer__contact-phone {
	font-size: 20px;
	font-weight: 700;
	color: var(--white);
	line-height: 1.2;
}

.footer__contact-phone:hover {
	color: var(--accent);
}

.footer__contact-text {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.5;
}

a.footer__contact-text:hover {
	color: var(--white);
}

.footer__address {
	font-style: normal;
}

.footer__address a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer__address a:hover {
	color: #00a1dd;
}

.footer__cta-badge {
	background: rgba(0, 161, 221, 0.12);
	border: 1px solid rgba(0, 161, 221, 0.35);
	border-radius: 4px;
	padding: 16px;
	display: block;
	text-align: center;
}

.footer__cta-text {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 12px;
	text-align: center;
	line-height: 1.4;
}

.footer__cta-btn {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 20px;
}

/* Bottom bar */
.footer__bottom {
	padding: 20px 0;
}

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

.footer__copyright {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.28);
}

.footer__legal-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.footer__legal-link {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.28);
	transition: color var(--transition);
}

.footer__legal-link:hover {
	color: rgba(255, 255, 255, 0.6);
}

.footer__legal-sep {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.2);
}

/* ── Prose / Entry Content ────────────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-bottom: 16px;
	margin-top: 32px;
}

.entry-content h1:first-child,
.entry-content h2:first-child {
	margin-top: 0;
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 24px;
}

.entry-content img {
	border-radius: var(--border-radius);
}

.entry-content blockquote {
	border-left: 4px solid var(--accent);
	padding-left: 24px;
	font-style: italic;
	color: var(--primary);
	margin: 32px 0;
}

.page-content {
	padding: 80px 0;
}

.page-content__title {
	margin-bottom: 32px;
}

/* ── Post Grid ────────────────────────────────── */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 40px;
}

.post-card {
	border: 1px solid var(--light-gray);
	border-radius: var(--border-radius);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.post-card__thumbnail img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 24px;
}

.post-card__date {
	font-size: 13px;
	color: var(--medium-gray);
	display: block;
	margin-bottom: 8px;
}

.post-card__title {
	font-size: 20px;
	margin-bottom: 12px;
}

.post-card__title a {
	color: var(--primary);
}

.post-card__title a:hover {
	color: var(--accent);
}

.post-card__excerpt {
	font-size: 15px;
	color: var(--medium-gray);
}

/* ── Archive Header ───────────────────────────── */
.archive-header {
	padding: 60px 0 32px;
}

.archive-header__title {
	margin-bottom: 8px;
}

/* ── Single Post (legacy — scoped to article to avoid hitting body_class) ── */
article.single-post {
	padding: 80px 0 40px;
}

.single-post__title {
	margin-bottom: 16px;
}

.single-post__meta {
	font-size: 14px;
	color: var(--medium-gray);
	margin-bottom: 32px;
}

.single-post__thumbnail {
	margin-bottom: 40px;
}

.single-post__thumbnail img {
	width: 100%;
	border-radius: var(--border-radius);
}

/* ── Post Navigation ──────────────────────────── */
.post-navigation {
	padding: 40px 0;
	border-top: 1px solid var(--light-gray);
	margin-top: 40px;
}

/* ── 404 ──────────────────────────────────────── */
.error-404 {
	padding: 120px 0;
	text-align: center;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
	.footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.footer__col--brand {
		grid-column: 1 / 3;
	}

	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 20px;
	}

	.nav__inner {
		padding: 0 20px;
	}

	/* ── Mobile drawer ── */
	.nav__links {
		display: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: var(--primary-dark);
		padding: 0 0 24px;
		z-index: 999;
	}

	.nav__links.is-open {
		display: block;
	}

	/* Drawer header with close area */
	.nav__links::before {
		content: 'Main Menu';
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 20px 24px;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.6);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		flex-shrink: 0;
	}

	.nav__list {
		display: block;
		width: 100%;
		padding: 8px 0;
	}

	.nav__list > li {
		width: 100%;
	}

	.nav__links .nav__link {
		color: var(--white);
		width: 100%;
		padding: 14px 24px;
		font-size: 16px;
		font-weight: 500;
		text-transform: none;
		letter-spacing: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 0;
	}

	.nav__links .nav__link:hover {
		background: rgba(255, 255, 255, 0.06);
	}

	/* Force mega-menu parents to stack vertically (override desktop flex-row) */
	.has-mega-menu {
		display: block !important;
	}

	/* Chevron arrow on mega-menu parents */
	.nav__links .has-mega-menu > .nav__link {
		justify-content: space-between;
	}

	.nav__links .has-mega-menu > .nav__link .nav__chevron {
		margin-left: auto;
		width: 16px;
		height: 16px;
		opacity: 0.5;
		transition: transform 0.2s ease;
	}

	/* Phone + CTA in drawer */
	.nav__links .nav__phone {
		color: var(--white);
		padding: 14px 24px;
		font-size: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.nav__links .btn {
		margin: 16px 24px 0;
		text-align: center;
		display: block;
	}

	.nav__toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 24px;
		height: 18px;
		background: none;
		border: none;
		cursor: pointer;
		z-index: 1001;
	}

	.nav__toggle span {
		display: block;
		height: 2px;
		background: var(--white);
		border-radius: 2px;
		transition: all var(--transition);
	}

	.footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer__col--brand {
		grid-column: auto;
		padding-top: 24px;
	}

	.footer__col--links {
		text-align: center;
	}

	.footer__col--links .footer__links a {
		display: block;
	}

	.footer__bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}

	.footer__legal-links {
		justify-content: center;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	/* ── Mobile mega menu (accordion inside dark drawer) ── */
	.mega-menu {
		position: static !important;
		transform: none !important;
		min-width: 0;
		max-width: 100%;
		box-shadow: none;
		border-radius: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		padding-top: 0;
		display: none;
		width: 100%;
		background: rgba(0, 0, 0, 0.15);
	}

	.mega-menu.is-open {
		display: block;
	}

	.mega-menu__inner {
		display: block !important;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		overflow: hidden;
	}

	.mega-menu__columns {
		display: block !important;
		padding: 0;
	}

	/* Column containers */
	.mega-menu__col {
		display: block;
		border: none;
		padding: 0;
		margin: 0;
	}

	.mega-menu__col > .mega-menu__heading {
		font-size: 11px;
		padding: 12px 24px 4px 40px;
		margin-bottom: 0;
		color: var(--accent);
	}

	.mega-menu__col > ul {
		display: block;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	/* Category parent headings */
	.mega-menu__item:has(> .sub-menu) > .mega-menu__link {
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--accent);
		border-bottom: none;
		padding: 12px 24px 4px 40px;
		margin: 0;
		cursor: default;
	}

	.mega-menu__item:has(> .sub-menu) > .mega-menu__link:hover {
		background: none;
		color: var(--accent);
	}

	.mega-menu .sub-menu {
		display: block;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	.mega-menu__item {
		display: block;
		padding: 0;
		list-style: none;
	}

	.mega-menu__link {
		font-size: 15px;
		color: var(--white);
		padding: 10px 24px 10px 40px;
		display: block;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.mega-menu .mega-menu__link,
	.mega-menu .sub-menu .mega-menu__link {
		color: var(--white);
	}

	.mega-menu__link:hover,
	.mega-menu .mega-menu__link:hover {
		background: rgba(255, 255, 255, 0.06);
		color: var(--white);
	}

	/* Hide featured panel on mobile */
	.mega-menu__featured {
		display: none !important;
	}

	.nav-utility {
		display: none;
	}
}

/* ============================================================
   Home page review fixes — June 2026
   ============================================================ */

/* --- "Unique Expertise" tabbed nav: persistent link affordance.
   Arrow on every row (mobile has no hover), active row marked by
   accent bar + background tint instead of reduced text contrast. --- */
.ds-features-tabbed__nav-list .ds-features-tabbed__nav-item {
	border-left: 3px solid transparent;
	padding-left: 14px;
	padding-right: 10px;
	min-height: 48px;
	transition: background-color 0.2s ease;
}

.ds-features-tabbed__nav-item .ds-features-tabbed__nav-item-arrow {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 12px;
	transition: transform 0.2s ease;
}

.ds-features-tabbed__nav-item .ds-features-tabbed__nav-item-arrow svg {
	width: 20px;
	height: 20px;
}

.ds-features-tabbed__nav-list .ds-features-tabbed__nav-item:hover {
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.08);
}

.ds-features-tabbed__nav-list .ds-features-tabbed__nav-item:hover .ds-features-tabbed__nav-item-arrow {
	transform: translateX(4px);
}

.ds-features-tabbed__nav-list .ds-features-tabbed__nav-item.is-active {
	background-color: rgba(255, 255, 255, 0.1);
	border-left-color: var(--ds-nav-card-icon, #00a1dd);
}

/* --- "Why Men Choose" section: cap the supporting image on mobile
   so the reason cards share the first viewport; contained card
   instead of full-bleed. --- */
@media (max-width: 968px) {
	.ds-features-grid-image .ds-features-grid-image__image-wrapper {
		min-height: 0;
		max-height: 40vh;
		overflow: hidden;
		border-radius: 12px;
	}

	.ds-features-grid-image .ds-features-grid-image__image {
		width: 100%;
		max-height: 40vh;
		object-fit: cover;
		object-position: center top;
	}
}

/* --- Letter from Dr. Solomon: correspondence register, home page
   instance only (.ds-note--letter). The block library applies body
   typography with !important but reads it from the --ds-block-body-*
   custom properties, so the serif must be set through those vars —
   direct font-family rules on __body lose to the !important rule.
   #2A2A2A on the cream panel keeps contrast above 4.5:1. --- */
.ds-note--letter {
	--ds-block-body-font: 'Playfair Display', Georgia, serif;
	--ds-block-body-size: 18px;
	--ds-block-body-line-height: 1.6;
	--ds-block-body-color: #2A2A2A;
	/* Read-more fade must blend into the paper sheet, not white */
	--ds-rm-fade-color: #FDFBF6;
}

.ds-note--letter .ds-doctors-note__body p {
	margin-bottom: 16px;
}

.ds-note--letter .ds-doctors-note__sig-img {
	max-width: 180px;
	height: auto;
}

/* --- Gravity Forms required-fields legend: accent-blue asterisk
   (quote characters removed via gform_required_legend filter). --- */
.gform_required_legend .gfield_required {
	color: #00a1dd;
}

/* --- Letter section, "paper sheet" treatment.
   Scoped to .ds-note--letter (custom_css_class on the home page
   instance only) so other ds-doctors-note uses are unaffected. --- */
.ds-note--letter .ds-doctors-note__card {
	max-width: 780px;
	margin: 0 auto;
	background-color: #FDFBF6;
	border: 1px solid rgba(90, 75, 50, 0.12);
	border-radius: 2px;
	box-shadow: 0 2px 6px rgba(5, 79, 125, 0.1), 0 18px 40px rgba(5, 79, 125, 0.22);
	transform: rotate(-0.5deg);
}

.ds-note--letter .ds-doctors-note__body,
.ds-note--letter .ds-doctors-note__body p {
	text-align: left;
}

.ds-note--letter .ds-doctors-note__signature {
	justify-content: flex-start;
}

.ds-note--letter .ds-doctors-note__signature-details {
	text-align: left;
}

@media (max-width: 768px) {
	/* No tilt on small screens — text must not sit askew */
	.ds-note--letter .ds-doctors-note__card {
		transform: none;
	}
}

/* --- Features-tabbed: shorter image on mobile. The block JS sets an
   inline height on the image card (tallest panel + 150px), so height
   needs !important; the slide images carry 300px+ min-height floors. --- */
@media (max-width: 768px) {
	.ds-features-tabbed .ds-features-tabbed__image-card {
		height: auto !important;
		min-height: 0;
	}

	.ds-features-tabbed .ds-features-tabbed__image-slide img {
		height: 38vh;
		max-height: 340px;
		min-height: 0;
	}
}

/* --- How-it-works steps: uniform image height on mobile. Step photos
   mix portrait and landscape sources; a shared 3:2 ratio with cover
   cropping keeps every step image the same height. --- */
@media (max-width: 968px) {
	.ds-how-it-works-steps .ds-how-it-works-steps__mobile-image .ds-how-it-works-steps__preview-img {
		aspect-ratio: 3 / 2;
		height: auto;
		object-fit: cover;
		object-position: center;
	}
}
