/*
 * Dr. Syed Asif Ali — design system (Phase 3A)
 * Loaded after Salient's main, skin and dynamic CSS.
 *
 *  1. Fonts            6. Header & navigation      11. Footer
 *  2. Tokens           7. Wordmark                 12. Utilities
 *  3. Base type        8. Mobile header & menu     13. Page layout (homepage, clinic cards, FAQ, pages)
 *  4. Links & focus    9. Mobile action bar        14. Reduced motion
 *  5. Buttons         10. Clinic block & dialog
 */

/* 1. Fonts — self-hosted, latin subset, SIL OFL (see assets/fonts/OFL-*.txt) */
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2");
}
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-latin-italic-400.woff2") format("woff2");
}
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-600.woff2") format("woff2");
}

/* 2. Tokens — every colour pairing below was checked for WCAG 2.2 AA */
:root {
	/* Brand */
	--dr-red: #b3212d;          /* 6.6:1 on white — buttons, accents, active states */
	--dr-red-hover: #8f1a24;    /* 9.0:1 with white text */
	--dr-red-tint: #fbeeef;     /* subtle highlight background (red text 5.9:1) */
	--dr-red-on-dark: #f07a84;  /* red accent on the dark footer (6.1:1) */

	/* Neutrals — cool slate to complement the red */
	--dr-ink: #17202b;          /* headings, dark surfaces (16.4:1) */
	--dr-text: #2b3542;         /* body text (12.4:1) */
	--dr-muted: #56606d;        /* secondary text (6.4:1 on white, 5.8:1 on soft) */
	--dr-line: #d5dbe1;         /* hairlines (decorative) */
	--dr-bg: #ffffff;
	--dr-bg-soft: #f3f5f7;      /* alternating section background */
	--dr-on-dark: #c9d1da;      /* text on --dr-ink (10.7:1) */
	--dr-on-dark-muted: #9aa5b1;/* secondary text on --dr-ink (6.6:1) */

	/* WhatsApp action — darkened brand green so white text passes (5.4:1) */
	--dr-wa: #127a43;
	--dr-wa-hover: #0e6136;

	/* Focus */
	--dr-focus: #17202b;
	--dr-focus-on-dark: #ffffff;

	/* Type */
	--dr-font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--dr-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--dr-fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);      /* 16 → 18px */
	--dr-fs-small: 0.875rem;                                     /* 14px */
	--dr-fs-caption: 0.875rem;
	--dr-fs-nav: 1rem;
	--dr-fs-btn: 1rem;
	--dr-fs-h1: clamp(2.125rem, 1.55rem + 2.4vw, 3.25rem);       /* 34 → 52px */
	--dr-fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);          /* 28 → 40px */
	--dr-fs-h3: clamp(1.3125rem, 1.2rem + 0.5vw, 1.625rem);      /* 21 → 26px */
	--dr-fs-h4: 1.25rem;
	--dr-fs-h5: 1.0625rem;
	--dr-fs-h6: 0.9375rem;

	--dr-lh-body: 1.65;
	--dr-lh-heading: 1.18;

	/* Shape & rhythm */
	--dr-radius: 6px;
	--dr-radius-lg: 12px;
	--dr-space-1: 0.5rem;
	--dr-space-2: 1rem;
	--dr-space-3: 1.5rem;
	--dr-space-4: 2rem;
	--dr-space-5: 3rem;
	--dr-space-6: 4.5rem;
	--dr-shadow: 0 1px 2px rgba(23, 32, 43, 0.06), 0 8px 24px rgba(23, 32, 43, 0.08);

	--dr-actionbar-h: 64px;
}

/* Mobile header breakpoint: the "max-width: 1200px" queries below must match
   Salient > Header Navigation > Mobile Breakpoint (set to 1200). */

/* 3. Base typography */
html body,
body {
	font-family: var(--dr-font-sans);
	font-size: var(--dr-fs-body);
	line-height: var(--dr-lh-body);
	color: var(--dr-text);
	background-color: var(--dr-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body p,
body li,
body td,
body th,
body dt,
body dd,
body blockquote {
	font-family: var(--dr-font-sans);
	font-size: inherit;
	line-height: var(--dr-lh-body);
}

body h1, body h2, body h3, body h4, body h5, body h6 {
	color: var(--dr-ink);
	line-height: var(--dr-lh-heading);
	letter-spacing: -0.005em;
	text-wrap: balance;
	margin-bottom: 0.5em;
}

body h1, body h2 {
	font-family: var(--dr-font-serif);
	font-weight: 600;
}
body h1 { font-size: var(--dr-fs-h1); letter-spacing: -0.015em; }
body h2 { font-size: var(--dr-fs-h2); letter-spacing: -0.01em; }

body h3, body h4, body h5, body h6 {
	font-family: var(--dr-font-sans);
	font-weight: 600;
}
body h3 { font-size: var(--dr-fs-h3); }
body h4 { font-size: var(--dr-fs-h4); }
body h5 { font-size: var(--dr-fs-h5); }
body h6 {
	font-size: var(--dr-fs-h6);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

body small,
.dr-small { font-size: var(--dr-fs-small); }

body figcaption,
body .wp-caption-text,
.dr-caption {
	font-size: var(--dr-fs-caption);
	line-height: 1.5;
	color: var(--dr-muted);
}

/* Salient assigns its own font to <strong>/<b>; keep bold text in the
   surrounding font (fixes serif fallback in body copy and the footer). */
body strong, body b { font-family: inherit; font-weight: 700; }

/* Readable measure for long-form text (applied by later page templates). */
.dr-prose { max-width: 68ch; }

/* 4. Links & focus */
body a {
	color: var(--dr-red);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color 0.15s ease;
}
body a:hover { color: var(--dr-red-hover); }

/* Content links are underlined so they are not identified by colour alone. */
.dr-prose a,
body .main-content p a { text-decoration: underline; }

/* One consistent, highly visible focus ring (keyboard only). The offset
   keeps the ring on the page background, so it also shows on red buttons. */
body :focus-visible {
	outline: 3px solid var(--dr-focus);
	outline-offset: 3px;
	border-radius: 2px;
}
body :focus:not(:focus-visible) { outline: none; }

#footer-outer :focus-visible,
.dr-on-dark :focus-visible { outline-color: var(--dr-focus-on-dark); }

/* Salient's "Skip to main content" link — make it a clear, visible chip. */
body .nectar-skip-to-content:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--dr-ink);
	color: #fff;
	font: 600 var(--dr-fs-btn) / 1.2 var(--dr-font-sans);
	border-radius: var(--dr-radius);
	text-decoration: none;
	clip: auto;
	width: auto;
	height: auto;
}

/* 5. Buttons */
.dr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.625rem 1.375rem;
	border: 2px solid transparent;
	border-radius: var(--dr-radius);
	font-family: var(--dr-font-sans);
	font-size: var(--dr-fs-btn);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dr-btn .dr-icon { flex: none; width: 1.25em; height: 1.25em; }

.dr-btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.dr-btn--lg { min-height: 56px; padding: 0.875rem 1.75rem; font-size: 1.0625rem; }

body a.dr-btn--primary,
body .dr-btn--primary { background: var(--dr-red); color: #fff; }
body a.dr-btn--primary:hover,
body .dr-btn--primary:hover { background: var(--dr-red-hover); color: #fff; }

body a.dr-btn--whatsapp,
body .dr-btn--whatsapp { background: var(--dr-wa); color: #fff; }
body a.dr-btn--whatsapp:hover,
body .dr-btn--whatsapp:hover { background: var(--dr-wa-hover); color: #fff; }

body a.dr-btn--outline,
body .dr-btn--outline { background: transparent; color: var(--dr-ink); border-color: var(--dr-ink); }
body a.dr-btn--outline:hover,
body .dr-btn--outline:hover { background: var(--dr-ink); color: #fff; }

body a.dr-btn--ghost,
body .dr-btn--ghost { background: transparent; color: var(--dr-red); padding-left: 0.25rem; padding-right: 0.25rem; }
body a.dr-btn--ghost:hover { color: var(--dr-red-hover); }

/* Harmonise Salient/WPBakery buttons used in page content later. */
body .nectar-button {
	font-family: var(--dr-font-sans) !important;
	font-weight: 600 !important;
	letter-spacing: 0.005em !important;
	text-transform: none !important;
	border-radius: var(--dr-radius) !important;
}

/* 6. Header & navigation */
body #header-outer {
	background-color: #fff;
	box-shadow: none;
	border-bottom: 1px solid var(--dr-line);
}

body #header-outer #top nav > ul > li > a {
	font-family: var(--dr-font-sans);
	font-size: var(--dr-fs-nav);
	font-weight: 600;
	letter-spacing: 0.005em;
	color: var(--dr-ink);
}
body #header-outer #top nav > ul > li > a:hover,
body #header-outer #top nav > ul > li.current-menu-item > a,
body #header-outer #top nav > ul > li.current_page_item > a {
	color: var(--dr-red);
}

/* Active page: a short red bar under the label (Salient's animated underline
   is kept for hover; the current page keeps it permanently). */
body #header-outer #top nav > ul > li.current-menu-item > a .menu-title-text:after {
	transform: scaleX(1);
}

/* Header "Book Appointment" CTA (menu item with class dr-menu-book). */
body #header-outer #top nav > ul > li.dr-menu-book {
	display: flex;
	align-items: center;
	margin-left: 0.75rem;
}
body #header-outer #top nav > ul > li.dr-menu-book > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1.125rem !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	background: var(--dr-red);
	color: #fff !important;
	border-radius: var(--dr-radius);
	transition: background-color 0.15s ease;
}
body #header-outer #top nav > ul > li.dr-menu-book > a:hover { background: var(--dr-red-hover); }
body #header-outer #top nav > ul > li.dr-menu-book > a .menu-title-text:after { display: none; }

/* 7. Header logo (assets/images/logo-header.*, 640x120). Salient's generated CSS
   sizes header logo images to 22px (24px !important under 1000px); override it. */
.dr-logo { display: inline-flex; align-items: center; }
body #header-outer #logo .dr-logo img,
body #header-outer .logo-spacing .dr-logo img {
	display: block; height: 46px !important; width: auto; max-width: none;
	margin: 0 !important; top: 0 !important; position: static !important;
}
@media only screen and (max-width: 999px) {
	body #header-outer #logo .dr-logo img,
	body #header-outer .logo-spacing .dr-logo img { height: 36px !important; }
}

body #header-outer #logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--dr-ink);
}
body #header-outer .logo-spacing { visibility: hidden; }

/* 8. Mobile header & off-canvas menu */
@media only screen and (max-width: 1200px) {

	/* Hamburger: comfortable 44px target. */
	body #header-outer #top .slide-out-widget-area-toggle a {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* Off-canvas menu items readable on the dark panel. */
body #slide-out-widget-area .inner .off-canvas-menu-container li a,
body #slide-out-widget-area .menuwrapper li a {
	font-family: var(--dr-font-sans);
	font-weight: 600;
}

/* Off-canvas menu links (incl. the Services submenu): 44px touch targets.
   Item spacing comes from the link height instead of list-item margins. */
body #slide-out-widget-area .inner .off-canvas-menu-container li {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}
body #slide-out-widget-area .inner .off-canvas-menu-container li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

/* 9. Mobile action bar (Call / WhatsApp) — small screens only */
.dr-actionbar { display: none; }

@media only screen and (max-width: 1200px) {
	.dr-actionbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10000;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
		padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.97);
		border-top: 1px solid var(--dr-line);
		box-shadow: 0 -4px 16px rgba(23, 32, 43, 0.08);
	}
	.dr-actionbar .dr-btn {
		width: 100%;
		min-height: 48px;
		font-size: 1.0625rem;
	}

	/* Keep the end of the page clear of the bar. Salient stretches the layout
	   so the footer meets the viewport bottom (body padding has no effect),
	   so the space is reserved inside the copyright bar instead. */
	html body #footer-outer #copyright.dr-copyright {
		padding-bottom: calc(1.25rem + var(--dr-actionbar-h) + env(safe-area-inset-bottom, 0px));
	}

	/* Hide the bar while the off-canvas menu or the dialog is open. */
	body.material-ocm-open .dr-actionbar,
	html.dr-dialog-open .dr-actionbar { display: none; }
}

/* 10. Clinic block & chooser dialog */
.dr-clinic__name {
	margin: 0 0 0.25rem;
	font-family: var(--dr-font-sans);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}
.dr-clinic__meta {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.dr-clinic__hours { font-weight: 600; }
.dr-clinic__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dr-dialog {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: var(--dr-radius-lg);
	background: #fff;
	color: var(--dr-text);
	box-shadow: var(--dr-shadow);
}
.dr-dialog::backdrop { background: rgba(23, 32, 43, 0.6); }
body .dr-dialog p { padding-bottom: 0; }
.dr-dialog__inner { padding: var(--dr-space-4); }
.dr-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
body .dr-dialog__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.dr-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -0.5rem -0.5rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dr-ink);
	cursor: pointer;
}
.dr-dialog__close:hover { background: var(--dr-bg-soft); }
.dr-dialog__close .dr-icon { width: 24px; height: 24px; }
.dr-dialog__intro { margin: 0.5rem 0 1.25rem; color: var(--dr-muted); }
.dr-dialog__clinics {
	display: grid;
	gap: 1rem;
}
.dr-dialog .dr-clinic {
	padding: 1.25rem;
	border: 1px solid var(--dr-line);
	border-radius: var(--dr-radius-lg);
}
.dr-dialog .dr-clinic__actions .dr-btn { flex: 1 1 140px; }

/* Bottom sheet on phones. */
@media only screen and (max-width: 599px) {
	.dr-dialog {
		width: 100vw;
		max-width: 100vw;
		margin: auto 0 0;
		border-radius: var(--dr-radius-lg) var(--dr-radius-lg) 0 0;
	}
	.dr-dialog__inner {
		padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
	}
	/* Keep the close button (and its focus ring) inside the sheet edge. */
	.dr-dialog__close { margin: -0.25rem 0 0 0; }
}

/* 11. Footer */
body #footer-outer {
	background-color: var(--dr-ink);
	color: var(--dr-on-dark);
}
body #footer-outer #footer-widgets.dr-footer {
	padding: var(--dr-space-6) 0 var(--dr-space-5);
}
.dr-footer__grid {
	display: grid;
	gap: var(--dr-space-5) var(--dr-space-4);
	grid-template-columns: 1fr;
}
@media only screen and (min-width: 690px) {
	.dr-footer__grid { grid-template-columns: 1fr 1fr; }
	.dr-footer__clinics { grid-row: span 2; }
}
@media only screen and (min-width: 1000px) {
	.dr-footer__grid { grid-template-columns: 1.1fr 1.6fr 1fr; }
	.dr-footer__clinics { grid-row: auto; }
}

body #footer-outer .dr-footer__wordmark { display: inline-block; margin-bottom: 1.25rem; text-decoration: none; }
body #footer-outer .dr-footer__icon { display: block; width: 64px; height: 64px; padding: 6px; background: #fff; border-radius: 12px; }

body #footer-outer .dr-footer__name {
	margin: 0 0 0.25rem;
	font-family: var(--dr-font-sans);
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
}
/* Salient adds padding-bottom to every <p>; footer spacing is set here instead. */
body #footer-outer .dr-footer p,
body #footer-outer .dr-copyright p { padding-bottom: 0; }

body #footer-outer .dr-footer__role,
body #footer-outer .dr-footer__quals { margin: 0; color: var(--dr-on-dark); }
body #footer-outer .dr-footer__quals { color: var(--dr-on-dark-muted); margin-top: 0.25rem; }
body #footer-outer .dr-footer__social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 0.5rem; }
body #footer-outer .dr-footer__social li { margin: 0; padding: 0; list-style: none; }
body #footer-outer .dr-footer__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	color: #fff; background: rgba(255, 255, 255, 0.08);
	transition: background-color 0.15s ease;
}
body #footer-outer .dr-footer__social a:hover,
body #footer-outer .dr-footer__social a:focus-visible { background: var(--dr-red); color: #fff; }
body #footer-outer .dr-footer__appointment p { margin: 0 0 1.25rem; }

body #footer-outer .dr-footer__heading {
	margin: 0 0 1.25rem;
	font-family: var(--dr-font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dr-red-on-dark);
}
body #footer-outer p { color: var(--dr-on-dark); }

.dr-footer__clinic-list {
	display: grid;
	gap: var(--dr-space-4);
}
@media only screen and (min-width: 1000px) {
	.dr-footer__clinic-list { grid-template-columns: 1fr 1fr; }
}
body #footer-outer .dr-clinic__name { color: #fff; }
body #footer-outer .dr-clinic__meta { color: var(--dr-on-dark); }
body #footer-outer .dr-clinic__phone { color: var(--dr-on-dark-muted); }
.dr-footer__clinics:focus { outline: none; }

/* Footer "Surgical Services" links: a full-width row under the columns. */
body #footer-outer .dr-footer__services { grid-column: 1 / -1; }
body #footer-outer ul.dr-footer__service-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: var(--dr-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media only screen and (min-width: 690px) {
	body #footer-outer ul.dr-footer__service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media only screen and (min-width: 1000px) {
	body #footer-outer ul.dr-footer__service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body #footer-outer ul.dr-footer__service-list li { margin: 0; padding: 0; list-style: none; }
body #footer-outer .dr-footer__service-list a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--dr-on-dark);
	text-decoration: none;
}
body #footer-outer .dr-footer__service-list a:hover,
body #footer-outer .dr-footer__service-list a[aria-current="page"] {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* On the dark footer the primary button keeps red; the call button in a
   clinic block becomes an outline so the WhatsApp/Call pair stays calm. */
body #footer-outer .dr-clinic .dr-btn--primary {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}
body #footer-outer .dr-clinic .dr-btn--primary:hover {
	background: #fff;
	color: var(--dr-ink);
	border-color: #fff;
}

body #footer-outer #copyright.dr-copyright {
	background: #0f161e;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.25rem 0;
}
body #footer-outer .dr-copyright__text {
	margin: 0;
	font-size: var(--dr-fs-small);
	color: var(--dr-on-dark-muted);
}

/* 12. Utilities */
.dr-eyebrow {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-family: var(--dr-font-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dr-red);
}
.dr-section--soft { background-color: var(--dr-bg-soft); }
.dr-on-dark { background-color: var(--dr-ink); color: var(--dr-on-dark); }
.dr-on-dark h1, .dr-on-dark h2, .dr-on-dark h3, .dr-on-dark h4 { color: #fff; }
.dr-highlight {
	background: var(--dr-red-tint);
	border-left: 3px solid var(--dr-red);
	border-radius: 0 var(--dr-radius) var(--dr-radius) 0;
	padding: 1rem 1.25rem;
}

/* 13. Page layout (Phase 3B) — homepage sections + standard pages */

/* Salient's .container-wrap adds top padding meant for its own layouts. */
body .container-wrap.dr-page-wrap { padding-top: 0; padding-bottom: 0; background: var(--dr-bg); }

/* Salient gives every <p> 27px bottom padding; use margins instead. */
.dr-layout p,
.dr-clinic-cards p { padding-bottom: 0; margin: 0 0 1em; }
.dr-layout p:last-child { margin-bottom: 0; }
.dr-layout ul[role="list"],
.dr-layout dl,
.dr-clinic-cards dl { margin: 0; padding: 0; list-style: none; }
.dr-layout ul[role="list"] > li { margin: 0; padding: 0; list-style: none; }

.dr-section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.dr-section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }

.dr-section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
body .dr-section__head h2 { margin-bottom: 0.4em; }
.dr-section__lead { font-size: 1.125rem; color: var(--dr-muted); }

/* Standalone "read more" links: arrow + weight, underline on hover. */
.dr-more { margin-top: 1.25rem; }
.dr-more a,
.dr-linklist a {
	font-weight: 600;
	text-decoration: none;
}
.dr-more a::after,
.dr-linklist a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.4em;
	transition: transform 0.15s ease;
}
.dr-more a:hover,
.dr-linklist a:hover { text-decoration: underline; }
.dr-more a:hover::after,
.dr-linklist a:hover::after { transform: translateX(3px); }

/* Two-column split (text + media, or text + link list). */
.dr-split {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
}
@media (min-width: 900px) {
	.dr-split { grid-template-columns: 1fr 1fr; }
	.dr-split--media-left .dr-split__media { order: -1; }
	.dr-general .dr-split { grid-template-columns: 1.3fr 1fr; align-items: start; }
}

/* Hero */
.dr-hero {
	padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
	background: var(--dr-bg-soft);
	border-bottom: 1px solid var(--dr-line);
}
.dr-hero__grid {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	align-items: center;
}
/* Let grid children shrink to the track instead of to their min-content width. */
.dr-hero__grid > * { min-width: 0; }
@media (min-width: 900px) {
	.dr-hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
body .dr-hero__title { margin: 0 0 1.25rem; }
.dr-hero__role {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--dr-font-sans);
	font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--dr-text);
}
.dr-hero__lead {
	max-width: 38rem;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	color: var(--dr-text);
}
.dr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 1.25rem;
}
.dr-layout .dr-hero__note { font-size: var(--dr-fs-small); color: var(--dr-muted); }
@media (max-width: 599px) {
	.dr-hero__actions .dr-btn { flex: 1 1 100%; }
}
.dr-hero__media img,
.dr-intro__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--dr-radius-lg);
	background: var(--dr-bg);
}
.dr-hero__media { max-width: 500px; justify-self: end; width: 100%; }
@media (max-width: 899px) {
	.dr-hero__media { justify-self: stretch; max-width: none; }
	.dr-hero__media img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
}

/* Intro */
.dr-intro .dr-split__media { max-width: 440px; }
@media (max-width: 899px) {
	.dr-intro .dr-split__media { max-width: none; }
	.dr-intro__img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
}

/* Services: one hairline-separated grid, not boxed cards. */
.dr-services__list {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--dr-line);
}
@media (min-width: 640px) { .dr-services__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 1000px) { .dr-services__list { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.dr-layout .dr-services__list > .dr-service {
	position: relative;
	padding: 1.5rem 0 1.625rem;
	border-bottom: 1px solid var(--dr-line);
}
body .dr-service__title {
	margin: 0 0 0.375rem;
	font-size: 1.1875rem;
	font-weight: 700;
}
body a.dr-service__link { color: var(--dr-ink); text-decoration: none; }
/* Whole item is clickable; the link text stays the accessible name. */
.dr-service__link::before {
	content: "";
	position: absolute;
	inset: 0;
}
.dr-service__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.4em;
	color: var(--dr-red);
	transition: transform 0.15s ease;
}
body .dr-service:hover a.dr-service__link { color: var(--dr-red); }
.dr-service:hover .dr-service__link::after { transform: translateX(3px); }
body .dr-service__link:focus-visible { outline: none; }
.dr-service:focus-within { outline: 3px solid var(--dr-focus); outline-offset: 4px; border-radius: 2px; }
.dr-layout .dr-service__desc { margin: 0; font-size: 1rem; color: var(--dr-muted); }

/* Bariatric vs weight loss */
.dr-compare { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .dr-compare { grid-template-columns: 1fr 1fr; } }
.dr-compare__item {
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	background: #fff;
	border-radius: var(--dr-radius-lg);
}
/* Short straight accent bar (a full top border would curve with the radius). */
.dr-compare__item::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: 1.25rem;
	background: var(--dr-red);
	border-radius: 2px;
}
body .dr-compare__item h3 { margin-top: 0; }
.dr-procedures {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem;
}
.dr-layout .dr-procedures__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dr-muted);
}
.dr-layout .dr-linklist { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.dr-layout .dr-linklist--stacked { display: block; border-top: 1px solid var(--dr-line); }
.dr-linklist--stacked li { border-bottom: 1px solid var(--dr-line); }
.dr-linklist--stacked a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 44px;
	padding: 1rem 0;
}

/* Facts */
.dr-layout .dr-facts {
	display: grid;
	gap: 2rem 2.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dr-layout .dr-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dr-layout .dr-facts { grid-template-columns: repeat(3, 1fr); } }
.dr-fact { padding-top: 1rem; border-top: 2px solid var(--dr-red); }
.dr-fact__term {
	margin: 0 0 0.375rem;
	font-family: var(--dr-font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--dr-ink);
}
body .dr-layout .dr-fact__desc { margin: 0; padding: 0; color: var(--dr-muted); }

/* Clinic cards (homepage, Clinics, Appointment) */
.dr-clinic-cards {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
}
@media (min-width: 800px) { .dr-clinic-cards { grid-template-columns: 1fr 1fr; } }
.dr-clinic-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--dr-line);
	border-radius: var(--dr-radius-lg);
}
body .dr-clinic-card__name { margin: 0 0 1.25rem; font-size: 1.375rem; }
.dr-clinic-cards .dr-clinic-card__facts { flex: 1; margin: 0 0 1.5rem; }
.dr-clinic-card__facts > div {
	display: grid;
	grid-template-columns: 9.5rem 1fr;
	gap: 1rem;
	padding: 0.625rem 0;
	border-top: 1px solid var(--dr-line);
}
body .dr-clinic-card__facts dt { margin: 0; font-family: var(--dr-font-sans); line-height: 1.5; font-size: 0.875rem; font-weight: 600; color: var(--dr-muted); }
body .dr-clinic-card__facts dd { margin: 0; padding: 0; font-family: var(--dr-font-sans); line-height: 1.5; font-weight: 600; color: var(--dr-ink); }
@media (max-width: 399px) {
	.dr-clinic-card__facts > div { grid-template-columns: 1fr; gap: 0.125rem; }
}
.dr-clinic-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dr-clinic-card__actions .dr-btn { flex: 1 1 9rem; }
/* The appointment band follows directly; avoid a double gap. */
.dr-layout .dr-clinics { padding-bottom: clamp(1rem, 0.5rem + 1.5vw, 2rem); }

/* Appointment band */
.dr-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--dr-red-tint);
	border-radius: var(--dr-radius-lg);
}
body .dr-band__title { margin: 0 0 0.25rem; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.dr-layout .dr-band__text p { margin: 0; color: var(--dr-text); }
.dr-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* FAQ (native details/summary) */
.dr-faq__grid { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .dr-faq__grid { grid-template-columns: 1fr 2fr; } }
.dr-faq__list { border-top: 1px solid var(--dr-line); }
.dr-faq__item { border-bottom: 1px solid var(--dr-line); }
.dr-faq__q {
	position: relative;
	display: block;
	padding: 1.25rem 2.5rem 1.25rem 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dr-ink);
	cursor: pointer;
	list-style: none;
}
.dr-faq__q::-webkit-details-marker { display: none; }
.dr-faq__q::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--dr-red);
}
.dr-faq__item[open] > .dr-faq__q::after { content: "\2212"; }
.dr-faq__q:hover { color: var(--dr-red); }
.dr-faq__a { padding: 0 2.5rem 1.25rem 0; }

/* Final CTA (dark) */
.dr-layout .dr-on-dark p { color: var(--dr-on-dark); }
.dr-final-cta__inner { max-width: 44rem; margin: 0 auto; text-align: center; }
body .dr-final-cta__inner h2 { margin-bottom: 0.4em; }
.dr-layout .dr-final-cta__inner p { font-size: 1.125rem; }
.dr-final-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}
body a.dr-btn--outline-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}
body a.dr-btn--outline-light:hover { background: #fff; color: var(--dr-ink); border-color: #fff; }

/* Medical disclaimer (footer, every page) */
body #footer-outer .dr-disclaimer {
	max-width: 62rem;
	margin: 0 0 0.75rem;
	padding: 0;
	font-size: var(--dr-fs-small);
	line-height: 1.55;
	color: var(--dr-on-dark-muted);
}
body #footer-outer .dr-disclaimer strong { font-family: var(--dr-font-sans); font-weight: 600; color: var(--dr-on-dark); }

/* Standard pages (Salient page.php + block content) */
body .main-content > .row > h1.wp-block-heading:first-child { margin-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
body .main-content .dr-clinic-cards { margin-top: 1.5rem; }

/* Inner-page components (Phase 4A: About) */

/* Page hero: same look as the homepage hero, slightly tighter. */
.dr-hero--page { padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.dr-layout .dr-breadcrumbs {
	margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
	padding: 0;
	font-size: var(--dr-fs-small);
	color: var(--dr-muted);
}
.dr-layout .dr-breadcrumbs a { color: var(--dr-muted); text-decoration: underline; }
.dr-layout .dr-breadcrumbs a:hover { color: var(--dr-red); }

/* Short factual tags under a page title. */
.dr-layout ul.dr-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}
.dr-layout ul.dr-tags > li {
	padding: 0.3rem 0.75rem;
	background: #fff;
	border: 1px solid var(--dr-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--dr-ink);
}

/* Readable single-column text block. */
.dr-prose-block { max-width: 46rem; }
.dr-layout .dr-lead-p { font-size: 1.1875rem; color: var(--dr-ink); }

.dr-split--top { align-items: start; }
.dr-split__media--narrow { max-width: 420px; }
@media (max-width: 899px) { .dr-split__media--narrow { max-width: none; } }

.dr-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--dr-radius-lg);
	background: var(--dr-bg-soft);
}
.dr-img--square { aspect-ratio: 1 / 1; }
.dr-img--portrait { aspect-ratio: 4 / 5; }
@media (max-width: 899px) {
	.dr-split__media .dr-img--portrait,
	.dr-split__media .dr-img--square { aspect-ratio: 4 / 3; object-position: 50% 25%; }
}

/* Credentials list. */
.dr-layout .dr-credlist { margin-top: 1.5rem; border-top: 1px solid var(--dr-line); }
.dr-credlist__row {
	display: grid;
	gap: 0.25rem 2rem;
	padding: 1.125rem 0;
	border-bottom: 1px solid var(--dr-line);
}
@media (min-width: 600px) { .dr-credlist__row { grid-template-columns: 12rem 1fr; } }
body .dr-credlist dt {
	margin: 0;
	font-family: var(--dr-font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dr-ink);
}
body .dr-credlist dd { margin: 0; padding: 0; color: var(--dr-text); }

/* Expertise items without a page of their own: plain text, no arrow/hover. */
.dr-service--static .dr-service__title { color: var(--dr-ink); }

/* Numbered consultation steps. */
.dr-layout .dr-steps {
	display: grid;
	gap: 1.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: dr-step;
}
@media (min-width: 700px) { .dr-layout .dr-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .dr-layout .dr-steps { grid-template-columns: repeat(4, 1fr); } }
.dr-layout .dr-step {
	position: relative;
	margin: 0;
	padding: 3.25rem 0 0;
	list-style: none;
	counter-increment: dr-step;
}
.dr-step::before {
	content: counter(dr-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--dr-red);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}
body .dr-step__title { margin: 0 0 0.375rem; font-size: 1.1875rem; }
.dr-layout .dr-step__desc { margin: 0; color: var(--dr-text); }
.dr-layout .dr-note { margin-top: 2rem; color: var(--dr-muted); font-size: 1rem; }

/* Two-up captioned photo gallery. */
.dr-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.dr-layout .dr-gallery__item { margin: 0; }
.dr-gallery__item figcaption { margin-top: 0.625rem; }

/* Service pages (Phase 4B: General Surgery) */

/* Landscape hero image variant. */
@media (min-width: 900px) {
	.dr-hero__grid--landscape { grid-template-columns: 1fr 1fr; }
}
.dr-hero__media--landscape { max-width: 640px; }
.dr-layout .dr-hero__media--landscape img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
.dr-hero__lead + .dr-tags { margin-top: 0.25rem; }

/* Areas: hairline-separated rows in two columns (not boxed cards). */
.dr-areas {
	display: grid;
	gap: 0 3rem;
	border-top: 1px solid var(--dr-line);
}
@media (min-width: 900px) { .dr-areas { grid-template-columns: 1fr 1fr; } }
.dr-area {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--dr-line);
	scroll-margin-top: 120px;
}
body .dr-area__title { margin: 0 0 0.5rem; font-size: 1.3125rem; }
.dr-layout .dr-area__text { margin: 0; }
.dr-area .dr-more { margin-top: 0.75rem; }

/* Cross-link note (e.g. to the bariatric section). */
.dr-crosslink {
	margin-top: 2.5rem;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-left: 3px solid var(--dr-red);
	border-radius: 0 var(--dr-radius) var(--dr-radius) 0;
}
body .dr-crosslink__title { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.dr-layout .dr-crosslink p { margin: 0; }
.dr-crosslink a { text-decoration: underline; }

/* Comparison on a white section: give the panels the soft background. */
.dr-compare--plain .dr-compare__item { background: var(--dr-bg-soft); }
.dr-after-compare { margin-top: 2rem; }

/* Checklist with red tick markers. */
.dr-layout .dr-checklist { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.dr-layout .dr-checklist li {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 2rem;
	list-style: none;
}
.dr-checklist li::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.45em;
	width: 0.5rem;
	height: 0.875rem;
	border: solid var(--dr-red);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

/* Urgent-symptoms notice. */
.dr-urgent {
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--dr-line);
	border-top: 4px solid var(--dr-red);
	border-radius: var(--dr-radius-lg);
}
body .dr-urgent__title { margin: 0 0 0.5rem; font-size: 1.1875rem; color: var(--dr-red-hover); }
.dr-layout .dr-urgent p { margin: 0 0 0.75rem; }
.dr-layout .dr-urgent p:last-child { margin-bottom: 0; font-weight: 600; }

/* A "read more" link after a grid should read as separate from its last item. */
.dr-layout .dr-facts + .dr-more { margin-top: 2.5rem; }

/* Five-step variant. */
@media (min-width: 1100px) { .dr-layout .dr-steps--5 { grid-template-columns: repeat(5, 1fr); } }

/* Service pages (Phase 4C: Laparoscopic Surgery) */

/* Sections reached by in-page links clear the fixed header. */
.dr-anchor { scroll-margin-top: 110px; }

/* Technique → Procedures → Consultation strip (in-page navigation). */
.dr-flow { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.dr-layout .dr-flow__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
@media (min-width: 800px) { .dr-layout .dr-flow__list { grid-template-columns: repeat(3, 1fr); } }
.dr-layout .dr-flow__item { position: relative; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) {
	.dr-flow__item:not(:last-child)::after {
		content: "\2192";
		position: absolute;
		right: -0.6rem;
		top: 50%;
		transform: translate(50%, -50%);
		color: var(--dr-red);
		font-weight: 700;
		z-index: 1;
	}
}
body a.dr-flow__link {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	height: 100%;
	min-height: 44px;
	padding: 1rem 1.125rem;
	background: #fff;
	border: 1px solid var(--dr-line);
	border-radius: var(--dr-radius-lg);
	color: var(--dr-text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
body a.dr-flow__link:hover { border-color: var(--dr-red); color: var(--dr-text); }
.dr-flow__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--dr-red);
	color: #fff;
	font-weight: 700;
}
.dr-flow__text { display: flex; flex-direction: column; gap: 0.125rem; }
.dr-flow__title { font-weight: 700; color: var(--dr-ink); }
.dr-flow__desc { font-size: 0.9375rem; color: var(--dr-muted); line-height: 1.45; }

/* Accessible comparison table; stacks into labelled rows on small screens. */
.dr-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--dr-radius-lg);
	overflow: hidden;
	font-size: 1rem;
}
.dr-table th,
.dr-table td {
	padding: 1rem 1.25rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--dr-line);
	line-height: 1.5;
}
.dr-table thead th {
	background: var(--dr-ink);
	color: #fff;
	font-weight: 700;
}
.dr-table thead td { background: var(--dr-ink); }
.dr-table tbody th { width: 22%; font-weight: 700; color: var(--dr-ink); }
.dr-table tbody tr:last-child th,
.dr-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 699px) {
	.dr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dr-table, .dr-table tbody, .dr-table tr, .dr-table th, .dr-table td { display: block; width: 100%; }
	.dr-table tbody tr { border-bottom: 1px solid var(--dr-line); padding: 0.5rem 0; }
	.dr-table tbody th { width: 100%; padding-bottom: 0.25rem; border: 0; }
	.dr-table tbody td { border: 0; padding-top: 0.375rem; padding-bottom: 0.375rem; }
	.dr-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.8125rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--dr-red);
	}
}

/* Procedure groups (label above a set of area rows). */
.dr-proc-group + .dr-proc-group { margin-top: 2.5rem; }
.dr-layout .dr-proc-group__label {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dr-muted);
}
@media (min-width: 1000px) {
	.dr-proc-group .dr-areas { grid-template-columns: repeat(3, 1fr); }
}
.dr-section .dr-note a { text-decoration: underline; }

/* Plain bullets (for considerations, alongside a checklist). */
.dr-layout .dr-bullets { margin: 0; padding: 0; list-style: none; }
.dr-layout .dr-bullets li {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 1.5rem;
	list-style: none;
}
.dr-bullets li::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.6em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--dr-ink);
}

/* Factor pills. */
.dr-layout .dr-factors__label {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dr-muted);
}
.dr-layout .dr-factors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dr-layout .dr-factors li {
	margin: 0;
	padding: 0.5rem 0.875rem;
	background: var(--dr-bg-soft);
	border: 1px solid var(--dr-line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--dr-ink);
	list-style: none;
}

/* Service pages (Phase 4D: Bariatric Surgery) */

/* Hero procedure map: Bariatric → Sleeve / Bypass ↳ Mini bypass. */
.dr-procmap {
	justify-self: end;
	width: 100%;
	max-width: 440px;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--dr-line);
	border-top: 4px solid var(--dr-red);
	border-radius: var(--dr-radius-lg);
}
@media (max-width: 899px) { .dr-procmap { justify-self: stretch; max-width: none; } }
.dr-layout .dr-procmap__title {
	margin: 0 0 1rem;
	font-family: var(--dr-font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--dr-ink);
}
.dr-layout .dr-procmap__list,
.dr-layout .dr-procmap__sub { margin: 0; padding: 0; list-style: none; }
.dr-layout .dr-procmap__list > li {
	margin: 0;
	padding: 0.75rem 0;
	border-top: 1px solid var(--dr-line);
	list-style: none;
}
.dr-procmap a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	color: var(--dr-ink);
	text-decoration: none;
}
.dr-procmap a:hover { color: var(--dr-red); text-decoration: underline; }
.dr-procmap__note { display: block; margin-top: -0.375rem; font-size: 0.9375rem; color: var(--dr-muted); }
.dr-layout .dr-procmap__sub li {
	position: relative;
	margin: 0;
	padding-left: 1.75rem;
	list-style: none;
}
/* Sub-item elbow drawn with borders (the ↳ glyph is missing from the web
   fonts and its fallback renders poorly). */
.dr-procmap__sub li::before,
body .dr-suboption__title::before {
	content: "";
	display: inline-block;
	width: 0.6rem;
	height: 0.6rem;
	border-left: 2px solid var(--dr-red);
	border-bottom: 2px solid var(--dr-red);
	border-bottom-left-radius: 2px;
}
.dr-procmap__sub li::before {
	position: absolute;
	left: 0.5rem;
	top: calc(50% - 0.5rem);
}
.dr-procmap__sub a { font-weight: 600; }
body a.dr-procmap__compare {
	display: inline-flex;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--dr-line);
	width: 100%;
	color: var(--dr-red);
}
.dr-procmap__compare::after { content: "\2193"; margin-left: 0.4em; }

/* Procedure option blocks. */
.dr-options {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}
@media (min-width: 900px) { .dr-options { grid-template-columns: 1fr 1fr; } }
.dr-option {
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	background: #fff;
	border-radius: var(--dr-radius-lg);
}
.dr-option::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: 1.25rem;
	background: var(--dr-red);
	border-radius: 2px;
}
body .dr-option__title { margin: 0 0 0.25rem; font-size: 1.5rem; }
.dr-layout .dr-option__aka {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--dr-muted);
}
.dr-suboption {
	margin: 1.25rem 0 0.5rem;
	padding: 1.125rem 1.25rem;
	background: var(--dr-bg-soft);
	border-left: 3px solid var(--dr-red);
	border-radius: 0 var(--dr-radius) var(--dr-radius) 0;
}
body .dr-suboption__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}
body .dr-suboption__title::before { margin: 0 0.5rem 0.2rem 0; vertical-align: middle; }
.dr-layout .dr-suboption p:last-child { margin-bottom: 0; }

/* Three-option comparison table. */
.dr-table--3 tbody th { width: 19%; }
.dr-layout .dr-note--strong { font-weight: 600; color: var(--dr-ink); }

/* How the procedures work. */
.dr-mechs {
	display: grid;
	gap: 1.5rem 2.5rem;
}
@media (min-width: 900px) { .dr-mechs { grid-template-columns: repeat(3, 1fr); } }
.dr-mech { padding-top: 1rem; border-top: 2px solid var(--dr-red); }
body .dr-mech__title { margin: 0 0 0.5rem; font-size: 1.1875rem; }
.dr-layout .dr-mech__text { margin: 0; }

/* Wide cross-link panel (a short section pointing to a related page). */
.dr-crosslink--wide { margin-top: 0; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
body .dr-crosslink__heading { margin: 0 0 0.5rem; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.dr-crosslink--wide .dr-more { margin-top: 1rem; }
.dr-crosslink--wide .dr-more a { text-decoration: none; }

/* Three-column steps (six steps → 3 × 2). */
@media (min-width: 900px) { .dr-layout .dr-steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* Service pages (Phase 4E: Weight Loss Surgery) */

/* Patient journey: vertical stepper of in-page links with a connecting line. */
.dr-journey {
	justify-self: end;
	width: 100%;
	max-width: 400px;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
	background: #fff;
	border: 1px solid var(--dr-line);
	border-top: 4px solid var(--dr-red);
	border-radius: var(--dr-radius-lg);
}
@media (max-width: 899px) { .dr-journey { justify-self: stretch; max-width: none; } }
.dr-layout .dr-journey__title {
	margin: 0 0 0.75rem;
	font-family: var(--dr-font-serif);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--dr-ink);
}
.dr-layout .dr-journey__list { margin: 0; padding: 0; list-style: none; }
.dr-layout .dr-journey__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Connecting line between the numbered markers. */
.dr-journey__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(0.25rem + 0.875rem - 1px);
	top: calc(50% + 0.875rem);
	height: calc(100% - 1.75rem);
	width: 2px;
	background: var(--dr-line);
}
body a.dr-journey__link {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-height: 44px;
	padding: 0.25rem;
	border-radius: var(--dr-radius);
	color: var(--dr-ink);
	font-weight: 600;
	text-decoration: none;
}
body a.dr-journey__link:hover { color: var(--dr-red); }
body a.dr-journey__link:hover .dr-journey__num { background: var(--dr-red); color: #fff; border-color: var(--dr-red); }
.dr-journey__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 2px solid var(--dr-red);
	border-radius: 50%;
	background: #fff;
	color: var(--dr-red);
	font-size: 0.875rem;
	font-weight: 700;
	position: relative;
	z-index: 1;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* Callout panel (key message beside a list). */
.dr-callout {
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--dr-line);
	border-left: 4px solid var(--dr-red);
	border-radius: 0 var(--dr-radius-lg) var(--dr-radius-lg) 0;
}
.dr-section:not(.dr-section--soft) .dr-callout { background: var(--dr-bg-soft); }
.dr-layout .dr-callout__text { margin: 0 0 0.75rem; }
.dr-layout .dr-callout__strong { margin: 0; font-weight: 700; color: var(--dr-ink); }

/* Assessment factors: term + short description, in a 1/2/3-column grid. */
.dr-layout .dr-factor-list {
	display: grid;
	gap: 0 2.5rem;
	margin: 0;
	border-top: 1px solid var(--dr-line);
}
@media (min-width: 640px) { .dr-layout .dr-factor-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dr-layout .dr-factor-list { grid-template-columns: repeat(3, 1fr); } }
.dr-factor-list__item { padding: 1rem 0; border-bottom: 1px solid var(--dr-line); }
body .dr-factor-list dt { margin: 0 0 0.25rem; font-weight: 700; color: var(--dr-ink); line-height: 1.35; }
body .dr-factor-list dd { margin: 0; padding: 0; color: var(--dr-muted); font-size: 1rem; line-height: 1.5; }

/* Three-across variant of the area rows. */
@media (min-width: 1000px) { .dr-areas--3 { grid-template-columns: repeat(3, 1fr); } }

/* Decision principles: numbered, two columns on wide screens. */
.dr-layout .dr-principles {
	display: grid;
	gap: 1rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: dr-principle;
}
@media (min-width: 800px) { .dr-layout .dr-principles { grid-template-columns: 1fr 1fr; } }
.dr-layout .dr-principles li {
	position: relative;
	margin: 0;
	padding: 1rem 1.25rem 1rem 3.5rem;
	background: #fff;
	border-radius: var(--dr-radius-lg);
	font-weight: 600;
	color: var(--dr-ink);
	list-style: none;
	counter-increment: dr-principle;
}
.dr-principles li::before {
	content: counter(dr-principle);
	position: absolute;
	left: 1rem;
	top: 1rem;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--dr-red);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
}

/* Questions checklist. */
.dr-layout .dr-questions { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dr-line); }
.dr-layout .dr-questions li {
	position: relative;
	margin: 0;
	padding: 0.875rem 0 0.875rem 2.25rem;
	border-bottom: 1px solid var(--dr-line);
	list-style: none;
	color: var(--dr-ink);
}
.dr-questions li::before {
	content: "?";
	position: absolute;
	left: 0;
	top: 0.875rem;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--dr-red-tint);
	color: var(--dr-red);
	font-size: 0.875rem;
	font-weight: 700;
}

/* Procedure pages (Phase 4F: Gastric Sleeve) */

/* Compact "On this page" stepper (10 items). */
body .dr-journey--compact a.dr-journey__link { min-height: 44px; padding-block: 0; }
.dr-journey--compact .dr-journey__item:not(:last-child)::after {
	top: calc(50% + 0.875rem);
	height: calc(100% - 1.75rem);
}
@media (max-width: 899px) {
	/* Two columns on tablets/phones so the list does not dominate the hero. */
	.dr-layout .dr-journey--compact .dr-journey__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
	.dr-journey--compact .dr-journey__item::after { display: none; }
	body .dr-journey--compact a.dr-journey__link { min-height: 44px; }
}
@media (max-width: 419px) {
	/* Narrow phones: tighter spacing so long single words (Preparation, Assessment) fit their column. */
	.dr-layout .dr-journey--compact .dr-journey__list { column-gap: 0.75rem; }
	body .dr-journey--compact a.dr-journey__link { gap: 0.5rem; }
	.dr-journey--compact .dr-journey__label { font-size: 0.9375rem; }
}
@media (max-width: 379px) {
	.dr-layout .dr-journey--compact .dr-journey__list { grid-template-columns: 1fr; }
}

/* Numbered outline in a single column (e.g. operation steps). */
.dr-layout .dr-principles--stack { grid-template-columns: 1fr; }
.dr-section:not(.dr-section--soft) .dr-principles li { background: var(--dr-bg-soft); }
.dr-principles--stack li { font-weight: 500; }

/* Risk list pills, and a callout placed after a list. */
.dr-factors--risks li { background: #fff; }
.dr-section:not(.dr-section--soft) .dr-factors--risks li { background: var(--dr-bg-soft); }
.dr-callout--after { margin-top: 1.75rem; max-width: 46rem; }
.dr-callout a { text-decoration: underline; }

/* Procedure pages (Phase 4G: Gastric Bypass) */

/* Secondary hero line (credentials sentence under the lead). */
.dr-layout .dr-hero__lead--sub { font-size: 1rem; color: var(--dr-muted); }

/* Sub-procedure shown as a side panel (mini gastric bypass). */
.dr-suboption--panel {
	margin: 0;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border-radius: 0 var(--dr-radius-lg) var(--dr-radius-lg) 0;
	scroll-margin-top: 110px;
}

/* Callout with the key message first, explanation after. */
.dr-layout .dr-callout__text--after { margin: 0.75rem 0 0; }

/* Blog (Phase 4P): article table, note, meta labels and Read More button.
   Salient's post-content table styles centre and shrink cells; restore the
   site's comparison-table look inside articles. */
/* Readable line length for article text on wide screens. */
body.single-post .post-area .post-content .content-inner { max-width: 48rem; margin-left: auto; margin-right: auto; }
body .post-content .dr-article-table { margin: 0 0 1.5rem; border: 1px solid var(--dr-line); }
body .post-content .dr-article-table caption {
	caption-side: top;
	padding: 0 0 0.5rem;
	text-align: left;
	font-size: 0.9375rem;
	color: var(--dr-muted);
}
body .post-content .dr-article-table th,
body .post-content .dr-article-table td {
	padding: 0.875rem 1rem;
	text-align: left;
	vertical-align: top;
	font-size: 1rem;
	line-height: 1.5;
	border-left: 0;
	border-right: 0;
}
body .post-content .dr-article-table tbody th { color: var(--dr-ink); background: var(--dr-bg-soft); }
body .post-content .dr-article-table thead th { color: #fff; }
body .post-content p.dr-article-note {
	padding: 0.875rem 1.125rem;
	border-left: 4px solid var(--dr-red);
	background: var(--dr-bg-soft);
	border-radius: 0 var(--dr-radius) var(--dr-radius) 0;
	color: var(--dr-muted);
	font-size: 0.9375rem;
}
body.single-post .meta-category a,
body.single-post .meta-date,
body.blog .post-header .meta-category a,
body.blog .post-meta .date { font-family: var(--dr-font-sans); }
body.blog article.post .more-link .continue-reading {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 1.125rem;
	background: var(--dr-red);
	color: #fff;
	border-radius: var(--dr-radius);
	font-family: var(--dr-font-sans);
	font-weight: 600;
}
/* Listing thumbnails: one consistent 16:9 crop (library photos are portrait and landscape). */
body.blog article.post .post-featured-img img,
body.archive article.post .post-featured-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: var(--dr-radius);
}
body.blog article.post .more-link:hover .continue-reading,
body.blog article.post .more-link:focus-visible .continue-reading { background: var(--dr-red-hover); }

/* Teaching and conferences (home) + photo gallery */
.dr-teaching__points {
	display: grid;
	gap: 1.5rem 2.5rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem) !important;
}
@media (min-width: 900px) { .dr-teaching__points { grid-template-columns: 1fr 1fr; } }
.dr-teaching__points > li { padding-top: 1rem !important; border-top: 2px solid var(--dr-red); }
body .dr-teaching__points h3 { margin: 0 0 0.4em; font-size: 1.25rem; }
.dr-layout .dr-teaching__points p { color: var(--dr-text); }

.dr-layout .dr-photo-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dr-layout .dr-photo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dr-layout .dr-photo-grid { grid-template-columns: repeat(4, 1fr); } }
.dr-photo-grid__item { margin: 0; }
.dr-photo-grid__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center 25%; /* keep faces in frame on portrait photos */
	border-radius: var(--dr-radius-lg);
	background: var(--dr-bg-soft);
}
.dr-photo-grid__item figcaption {
	margin-top: 0.625rem;
	font-size: var(--dr-fs-caption);
	line-height: 1.45;
	color: var(--dr-muted);
}

/* Testimonials page: quote cards + empty state. */
.dr-layout .dr-testimonials {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) { .dr-layout .dr-testimonials { grid-template-columns: 1fr 1fr; } }
.dr-testimonial {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	margin: 0;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	background: var(--dr-bg);
	border: 1px solid var(--dr-line);
	border-top: 3px solid var(--dr-red);
	border-radius: var(--dr-radius);
}
/* Override Salient blockquote styles (Open Sans 300, 22px, accent bar ::before). */
body .dr-layout .dr-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: var(--dr-lh-body);
	letter-spacing: 0;
	color: var(--dr-text);
}
body .dr-layout .dr-testimonial__quote::before { content: none; display: none; }
.dr-testimonial__quote p { margin: 0; }
.dr-testimonial__media { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .dr-testimonial__media--pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.dr-testimonial__img-link { display: block; border-radius: var(--dr-radius); overflow: hidden; background: var(--dr-bg-soft); }
.dr-testimonial__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: contain;
}
.dr-testimonial__by { margin-top: auto; display: flex; flex-direction: column; gap: 0.125rem; }
.dr-testimonial__name { font-weight: 700; color: var(--dr-ink); }
.dr-testimonial__meta { font-size: var(--dr-fs-small); color: var(--dr-muted); }
.dr-testimonials__empty {
	max-width: 46rem;
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	background: var(--dr-bg-soft);
	border-left: 3px solid var(--dr-red);
	border-radius: 0 var(--dr-radius) var(--dr-radius) 0;
}

/* Four option cards (procedure pages): 2 x 2, then one row of four. */
@media (min-width: 640px) { .dr-layout .dr-facts--four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dr-layout .dr-facts--four { grid-template-columns: repeat(4, 1fr); } }

/* Teaching and Clinics are both white sections: separate them with a hairline. */
.dr-teaching + .dr-clinics { border-top: 1px solid var(--dr-line); }

/* 14. Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
