/*
Theme Name: Al-Othman Orthopaedics
Theme URI: https://dr-alothman.com/
Author: Digital Engagement Marketing Agency (DEMA)
Author URI: https://DEMAKSA.com/
Description: Bilingual (EN/AR, RTL-ready) block theme for the orthopaedic and spine practice of Professor Abdullah Ahmed Al-Othman. Classic premium-medical design — deep navy with gold accents on a clean white canvas, an elegant Playfair Display serif paired with IBM Plex Sans, and photography-led sections. Full Site Editing, SEO-friendly, no page builders required.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alothman-orthopaedics
Tags: full-site-editing, block-patterns, rtl-language-support, translation-ready, custom-colors, medical, blog, one-column, two-columns, accessibility-ready
*/

/*
 * Block theme styles live primarily in theme.json. This file holds the layout
 * and atmosphere theme.json cannot express: hero composition, photo cards,
 * stats, dark image bands, and header/footer polish. RTL is in style-rtl.css.
 */

:root {
	--alo-shadow-sm: 0 1px 2px rgba(22, 38, 63, 0.05), 0 4px 12px rgba(22, 38, 63, 0.06);
	--alo-shadow-md: 0 10px 24px rgba(22, 38, 63, 0.10), 0 22px 48px rgba(14, 26, 48, 0.10);
	--alo-shadow-lift: 0 16px 34px rgba(22, 38, 63, 0.14), 0 30px 70px rgba(14, 26, 48, 0.16);
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; } /* offset in-page anchor jumps below the sticky header */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------------------------------------------------------------------------
   Accessibility
   ------------------------------------------------------------------------- */
.skip-link:focus {
	position: fixed; top: 1rem; inset-inline-start: 1rem; z-index: 9999;
	padding: 0.75rem 1rem; background: var(--wp--preset--color--navy); color: #fff; border-radius: 6px;
}
:where(a, button, .wp-block-button__link, input, .wp-block-navigation-item__content):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; border-radius: 3px;
}

/* ---------------------------------------------------------------------------
   Buttons — refined depth + motion
   ------------------------------------------------------------------------- */
.wp-block-button__link {
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.8rem;
	font-weight: 600;
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease, background-image 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Primary (filled gold): subtle top-light gradient + warm shadow, lifts on hover */
.wp-block-button:not(.is-style-outline):not(.is-style-outline-light) > .wp-block-button__link {
	background-image: linear-gradient(180deg, var(--wp--preset--color--gold-soft), var(--wp--preset--color--gold));
	box-shadow: 0 2px 6px rgba(184, 137, 63, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.wp-block-button:not(.is-style-outline):not(.is-style-outline-light) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-outline-light) > .wp-block-button__link:focus {
	background-image: none;
	background-color: var(--wp--preset--color--navy) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(22, 38, 63, 0.28);
}
/* Secondary outline (on light): same size as the filled button. Border is an
   inset shadow so it never changes the box height, and padding matches the
   theme button exactly. Fills navy on hover. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 0;
	box-shadow: inset 0 0 0 1.5px rgba(22, 38, 63, 0.35);
	padding: 0.9rem 1.7rem;
	font-weight: 600;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--wp--preset--color--navy);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--navy);
	color: #fff !important;
	transform: translateY(-2px);
}
/* Outline-light (on navy): lift on hover (fill handled later in file) */
.is-style-outline-light .wp-block-button__link:hover,
.is-style-outline-light .wp-block-button__link:focus { transform: translateY(-2px); }

/* ---------------------------------------------------------------------------
   Header — clean, sticky, gold underline nav
   ------------------------------------------------------------------------- */
/* Sticky lives on the outer template-part <header> (child of the tall page
   body) so it actually travels on scroll; topbar + main bar stick together. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
header.wp-block-template-part.is-stuck .site-header { box-shadow: 0 10px 30px rgba(14, 26, 48, 0.10); }
.site-header {
	background-color: rgba(255, 255, 255, 0.90) !important;
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: box-shadow 0.25s ease;
}

/* Top utility bar */
.site-topbar p { margin: 0; }
.site-topbar a { color: #fff; text-decoration: none; transition: color 0.2s ease; }
.site-topbar a:hover { color: var(--wp--preset--color--gold-soft); }
.site-lang { font-weight: 600; display: flex; align-items: center; gap: 0.85rem; flex-wrap: nowrap; }
.site-lang p { margin: 0; }
.site-lang .is-active { color: var(--wp--preset--color--gold-soft); }
.site-lang a { color: #C3CEDD; }
.site-lang a:hover { color: #fff; }
.site-lang > p:first-child { border-inline-end: 1px solid rgba(255, 255, 255, 0.28); padding-inline-end: 0.85rem; }
@media (max-width: 600px) { .topbar-hours { display: none; } }

/* Main bar: breathing room + a divider before the CTA (and future lang block) */
.site-header__actions { gap: clamp(1.25rem, 2.5vw, 2rem) !important; }
/*
 * Desktop header is two rows: brand on top, the nav/search/CTA bar below it.
 * Force the brand group to take the full first row so this never depends on how
 * wide the rendered text happens to be — otherwise a language with narrower
 * glyphs (e.g. Arabic Tajawal Latin) lets the nav fit beside the brand and the
 * header silently collapses to a single row.
 */
@media (min-width: 783px) {
	.site-header .alignwide > .wp-block-group:first-child { flex-basis: 100%; }
}
.site-header__cta {
	border-inline-start: 1px solid var(--wp--preset--color--border);
	padding-inline-start: clamp(1.25rem, 2.5vw, 2rem);
}
.site-header .wp-block-navigation-item__content {
	font-size: 0.95rem; font-weight: 500; letter-spacing: 0.015em;
	color: var(--wp--preset--color--ink); text-decoration: none; padding-bottom: 2px;
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
	transition: background-size 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.site-header .current-menu-item .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--navy); background-size: 100% 2px;
}

/* ---------------------------------------------------------------------------
   Robust responsive grids (no flex/columns overflow; min-width:0 children)
   ------------------------------------------------------------------------- */
.alo-grid { display: grid; gap: var(--wp--preset--spacing--30); align-items: stretch; }
.alo-grid > * { min-width: 0; }
/* WordPress flow layout injects margin-block-start on non-first children,
   which offsets grid items and breaks equal-height rows — neutralise it. */
.alo-grid > *, .alo-split > *, .alo-hero__grid > * { margin-block: 0 !important; }
.alo-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.alo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.alo-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Asymmetric split (image + text) */
/* Two-column content splits top-align, so parallel column headings share a
   baseline (e.g. About's Appointments / Leadership). Image+text splits
   (`--media-first`) stay vertically centred. */
.alo-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.alo-split > * { min-width: 0; }
.alo-split--media-first { grid-template-columns: 0.92fr 1.08fr; align-items: center; }
@media (max-width: 820px) { .alo-split { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); } }

.alo-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.alo-hero__grid > * { min-width: 0; }
@media (max-width: 860px) { .alo-hero__grid { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); } }

/* ---------------------------------------------------------------------------
   Typographic accents
   ------------------------------------------------------------------------- */
.alo-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep); margin: 0 0 0.4rem;
}
.alo-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--wp--preset--color--gold); }
.alo-eyebrow.is-centered, .has-text-align-center .alo-eyebrow { justify-content: center; }
.alo-eyebrow.is-light { color: var(--wp--preset--color--gold-soft); }
/* The eyebrow's leading rule is a left-anchored device that looks unbalanced when
   centered. On centre-aligned heads we drop the eyebrow and let the serif heading
   (+ lead) stand on its own; eyebrows are kept on left-aligned heads. */
.alo-eyebrow.is-centered { display: none; }

.has-gold-rule { position: relative; padding-bottom: 0.5rem; }
.has-gold-rule::after {
	content: ""; display: block; width: 60px; height: 3px; margin-top: 0.7rem;
	background: var(--wp--preset--color--gold); border-radius: 2px;
}
.has-text-align-center.has-gold-rule::after { margin-inline: auto; }

.alo-lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--wp--preset--color--ink); }

/* ---------------------------------------------------------------------------
   Hero — light split, serif headline + framed portrait
   ------------------------------------------------------------------------- */
.alo-hero { position: relative; overflow: clip; }
.alo-hero__portrait { position: relative; }
.alo-hero__portrait img {
	border-radius: 12px; box-shadow: var(--alo-shadow-md);
	width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover;
}
/* Offset gold frame behind the portrait */
.alo-hero__portrait::before {
	content: ""; position: absolute; inset-block: 22px; inset-inline-end: -20px; width: 62%;
	border: 1.5px solid var(--wp--preset--color--gold); border-radius: 12px; z-index: -1;
}
.alo-hero__portrait::after {
	content: ""; position: absolute; inset-inline-start: -26px; top: -26px; width: 120px; height: 120px;
	background-image: radial-gradient(var(--wp--preset--color--gold) 1.2px, transparent 1.3px);
	background-size: 14px 14px; opacity: 0.35; z-index: -1;
}

/* ---------------------------------------------------------------------------
   Stats strip
   ------------------------------------------------------------------------- */
.alo-stat__num {
	font-family: var(--wp--preset--font-family--serif); font-weight: 600;
	font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--wp--preset--color--gold);
	letter-spacing: -0.01em; margin: 0;
}
/* On light sections (white/cream/mist), the bright gold (#B8893F) drops below
   the 3:1 large-text threshold (2.88 on cream). Use a slightly deeper gold here
   so the stat figures stay AA-compliant while reading as the same warm accent;
   the bright gold is kept on dark navy bands (where it already passes). */
.alo-stat__num { color: #A87A33; }
.has-navy-background-color .alo-stat__num, .has-navy-deep-background-color .alo-stat__num,
.has-navy-depth-gradient-background .alo-stat__num, .has-navy-gold-edge-gradient-background .alo-stat__num {
	color: var(--wp--preset--color--gold);
}
.alo-stat__label { font-size: 0.92rem; color: var(--wp--preset--color--muted); margin: 0.4rem 0 0; }
/* On dark sections, labels lighten */
.has-navy-background-color .alo-stat__label, .has-navy-deep-background-color .alo-stat__label,
.has-navy-depth-gradient-background .alo-stat__label { color: #AEB9CB; }

/* ---------------------------------------------------------------------------
   Cards — photo-led service / condition cards
   ------------------------------------------------------------------------- */
.alo-card {
	background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px; overflow: clip; box-shadow: var(--alo-shadow-sm);
	display: flex; flex-direction: column;
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.alo-card:hover { transform: translateY(-6px); box-shadow: var(--alo-shadow-lift); border-color: var(--wp--preset--color--gold-soft); }
.alo-card__media { margin: 0 !important; }
.alo-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.alo-card:hover .alo-card__media img { transform: scale(1.05); }
.alo-card__body { padding: clamp(1.3rem, 2.2vw, 1.7rem) !important; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.alo-card__body h3, .alo-card__body h4 { margin: 0; font-size: 1.3rem; }
.alo-card__index { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--gold-deep); font-size: 1rem; margin: 0; }

.alo-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--navy); margin-top: auto; }
.alo-arrow a { text-decoration: none; color: inherit; }
.alo-arrow::after { content: "→"; transition: transform 0.22s ease; }
.alo-card:hover .alo-arrow::after { transform: translateX(5px); }

/* Plain (icon-free) text card */
.alo-card.is-plain .alo-card__body { gap: 0.6rem; }

/* ---------------------------------------------------------------------------
   Dark image band (cover) + big serif quote
   ------------------------------------------------------------------------- */
.alo-band .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); margin-inline: auto; width: 100%; }
.alo-quote {
	font-family: var(--wp--preset--font-family--serif); font-weight: 500;
	font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.18; letter-spacing: -0.01em; color: #fff;
}
.alo-quote .gold { color: var(--wp--preset--color--gold-soft); }

/* Attributed pull-quote (About): crisp white quote for contrast, a large gold
   quotation-mark accent for richness, and a named attribution beneath a gold rule. */
.alo-quote-band .alo-quote { color: #fff; max-width: 860px; margin-inline: auto; }
.alo-quote-band .alo-quote::before {
	content: "\201C"; display: block;
	font-family: var(--wp--preset--font-family--serif); font-weight: 700;
	font-size: clamp(3.5rem, 8vw, 6rem); line-height: 0.7;
	color: var(--wp--preset--color--gold-soft); margin-bottom: 0.4rem;
}
.alo-cite-name {
	position: relative; margin: 2rem 0 0; padding-top: 1.4rem;
	color: #fff; font-family: var(--wp--preset--font-family--sans); font-weight: 600; font-size: 1.05rem;
}
.alo-cite-name::before {
	content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 46px; height: 2px; background: var(--wp--preset--color--gold);
}
.alo-cite-role {
	margin: 0.4rem 0 0; color: #AEB9CB;
	font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; font-weight: 500;
	letter-spacing: 0.14em; text-transform: uppercase;
}

/* Headings/eyebrows lighten on navy sections */
.has-navy-background-color :is(h1,h2,h3,h4), .has-navy-deep-background-color :is(h1,h2,h3,h4),
.has-navy-depth-gradient-background :is(h1,h2,h3,h4), .has-navy-gold-edge-gradient-background :is(h1,h2,h3,h4) { color: #fff; }
.has-navy-background-color .alo-eyebrow, .has-navy-deep-background-color .alo-eyebrow,
.has-navy-depth-gradient-background .alo-eyebrow, .has-navy-gold-edge-gradient-background .alo-eyebrow { color: var(--wp--preset--color--gold-soft); }

/* On-navy outline button */
.is-style-outline-light .wp-block-button__link {
	background: transparent; color: #fff; border: 0;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
	padding: 0.9rem 1.7rem;
}
.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy-deep); box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer .wp-block-navigation-item__content { text-decoration: none; transition: color 0.2s ease; }
.site-footer .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold-soft) !important; }

/* ---------------------------------------------------------------------------
   Scroll-reveal — content rises/fades as it enters the viewport.
   JS adds `.js` to <html> and toggles `.is-in` on observed targets.
   The legacy `.alo-reveal` staggered children animation is preserved, but
   under JS it is gated on `.is-in` so it triggers on scroll rather than load.
   Without JS (no `.js` class) everything is fully visible — no FOUC.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	/* Section-level reveal applied automatically by JS (alo-rise-up). */
	html.js .alo-rise-up {
		opacity: 0; transform: translateY(22px);
		transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
		will-change: opacity, transform;
	}
	html.js .alo-rise-up.is-in { opacity: 1; transform: none; }
	/* Full-bleed coloured bands fade only — they span edge to edge, so any
	   translate would briefly expose the page background above the band as it
	   rises. Their inner `.alo-reveal` content still does the rise animation. */
	html.js .alo-rise-up.alignfull { transform: none; }

	/* Legacy staggered-children reveal — now scroll-triggered under JS. */
	html.js .alo-reveal > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
	html.js .alo-reveal.is-in > * { opacity: 1; transform: none; }
	html.js .alo-reveal.is-in > *:nth-child(1) { transition-delay: 0.05s; }
	html.js .alo-reveal.is-in > *:nth-child(2) { transition-delay: 0.13s; }
	html.js .alo-reveal.is-in > *:nth-child(3) { transition-delay: 0.21s; }
	html.js .alo-reveal.is-in > *:nth-child(4) { transition-delay: 0.29s; }
	html.js .alo-reveal.is-in > *:nth-child(5) { transition-delay: 0.37s; }

	/* No-JS fallback: keep the original load-time rise so the home page still
	   animates gracefully when scripts are disabled. */
	html:not(.js) .alo-reveal > * { opacity: 0; transform: translateY(16px); animation: alo-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
	html:not(.js) .alo-reveal > *:nth-child(1) { animation-delay: 0.05s; }
	html:not(.js) .alo-reveal > *:nth-child(2) { animation-delay: 0.13s; }
	html:not(.js) .alo-reveal > *:nth-child(3) { animation-delay: 0.21s; }
	html:not(.js) .alo-reveal > *:nth-child(4) { animation-delay: 0.29s; }
	html:not(.js) .alo-reveal > *:nth-child(5) { animation-delay: 0.37s; }
	@keyframes alo-rise { to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------------------
   Inline content links — animated gold underline (grow from leading edge),
   mirrors the header nav treatment. Scoped to body copy so it never touches
   buttons, nav, cards, or the gold-rule headings.
   ------------------------------------------------------------------------- */
.wp-block-post-content p a:not(.wp-element-button),
.wp-block-post-content li a:not(.wp-element-button) {
	color: var(--wp--preset--color--gold-deep); text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--gold), var(--wp--preset--color--gold));
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
	transition: background-size 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
	padding-bottom: 1px;
}
.wp-block-post-content p a:not(.wp-element-button):hover,
.wp-block-post-content p a:not(.wp-element-button):focus-visible,
.wp-block-post-content li a:not(.wp-element-button):hover,
.wp-block-post-content li a:not(.wp-element-button):focus-visible {
	color: var(--wp--preset--color--navy); background-size: 100% 1.5px;
}

/* Footer nav links: grow-from-left gold underline to match header nav. */
.site-footer .wp-block-navigation-item__content {
	padding-bottom: 2px;
	background-image: linear-gradient(var(--wp--preset--color--gold-soft), var(--wp--preset--color--gold-soft));
	background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
	transition: background-size 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.site-footer .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation-item__content:focus-visible { background-size: 100% 1.5px; }

/* Legal footer links: muted (same as copyright), white on hover, no gold underline. */
.alo-legal-nav .wp-block-navigation-item__content { color: #9FB0C6 !important; background-image: none; padding-bottom: 0; }
.alo-legal-nav .wp-block-navigation-item__content:hover,
.alo-legal-nav .wp-block-navigation-item__content:focus-visible { color: #fff !important; background-size: 0 0; }

/* Footer social icons — logos-only on navy: soft blue → gold, subtle lift on hover. */
.alo-social { gap: 0.35rem; }
.alo-social .wp-social-link { background: transparent; margin: 0; padding: 0; }
.alo-social.is-style-logos-only .wp-social-link,
.alo-social .wp-social-link a { color: #C3CEDD; transition: color 0.2s ease, transform 0.2s ease; }
.alo-social .wp-social-link svg { width: 22px; height: 22px; }
.alo-social .wp-social-link:hover,
.alo-social .wp-social-link:focus-within { color: var(--wp--preset--color--gold-soft); transform: translateY(-2px); }

/* Footer bottom bar: copyright (left) + legal menu (right); centred on mobile. */
.site-footer__bottom { align-items: center; }
.alo-legal-nav { --wp--style--block-gap: 1.25rem; }
@media (max-width: 600px) {
	.site-footer__bottom { justify-content: center; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Header search — icon toggle + dropdown panel with REST autocomplete.
   ------------------------------------------------------------------------- */
.alo-search { position: relative; display: inline-flex; align-items: center; }
.alo-search__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--wp--preset--color--ink); cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}
.alo-search__toggle:hover, .alo-search__toggle:focus-visible,
.alo-search.is-open .alo-search__toggle { color: var(--wp--preset--color--navy); background: var(--wp--preset--color--cream); }

.alo-search__panel {
	position: absolute; top: calc(100% + 16px); inset-inline-end: 0; z-index: 60;
	width: min(420px, 92vw);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px; box-shadow: 0 18px 50px rgba(14, 26, 48, 0.18); padding: 10px;
}
.alo-search__form { display: flex; align-items: center; gap: 8px; }
.alo-search__icon { display: inline-flex; color: var(--wp--preset--color--muted); padding-inline-start: 6px; }
.alo-search__input {
	flex: 1; min-width: 0; border: 0; background: transparent;
	font-family: var(--wp--preset--font-family--sans); font-size: 0.95rem;
	color: var(--wp--preset--color--ink); padding: 0.6rem 0.2rem;
}
.alo-search__input:focus { outline: none; }
.alo-search__input:focus-visible { outline: 2px solid var(--wp--preset--color--gold-deep); outline-offset: 1px; border-radius: 4px; }
.alo-search__submit {
	flex: none; border: 0; border-radius: 9px; cursor: pointer;
	background: var(--wp--preset--color--navy); color: #fff;
	font-family: var(--wp--preset--font-family--sans); font-size: 0.78rem; font-weight: 600;
	letter-spacing: 0.04em; text-transform: uppercase; padding: 0.55rem 0.9rem;
	transition: background-color 0.2s ease;
}
.alo-search__submit:hover, .alo-search__submit:focus-visible { background: var(--wp--preset--color--gold-deep); }

.alo-search__listbox { list-style: none; margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid var(--wp--preset--color--border); }
.alo-search__opt { margin: 0; }
.alo-search__opt a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 0.55rem 0.6rem; border-radius: 9px; text-decoration: none;
	color: var(--wp--preset--color--ink); transition: background-color 0.15s ease, color 0.15s ease;
}
.alo-search__opt.is-active a, .alo-search__opt a:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--navy); }
.alo-search__opt-title { font-size: 0.92rem; line-height: 1.3; }
.alo-search__type {
	flex: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep); background: var(--wp--preset--color--cream);
	padding: 2px 7px; border-radius: 20px;
}
.alo-search__opt.is-active .alo-search__type { background: #fff; }

/* Mobile: drop a full-width panel below the header bar (anchored to .site-header). */
@media (max-width: 781px) {
	.alo-search { position: static; }
	.alo-search__panel { top: calc(100% + 10px); left: 12px; right: 12px; width: auto; }
}

/* Search results page (SERP) — refine field themed for the navy hero. */
.alo-serp-search { max-width: 32rem; }
.alo-serp-search .wp-block-search__inside-wrapper {
	background: #fff; border: 1px solid transparent; border-radius: 12px; padding: 4px;
}
.alo-serp-search .wp-block-search__input {
	border: 0; background: transparent; color: var(--wp--preset--color--ink);
	padding: 0.6rem 0.85rem; font-size: 0.95rem;
}
.alo-serp-search .wp-block-search__input:focus { outline: none; }
.alo-serp-search .wp-block-search__input:focus-visible { outline: 2px solid var(--wp--preset--color--gold-deep); outline-offset: 1px; border-radius: 4px; }
.alo-serp-search .wp-block-search__button {
	background: var(--wp--preset--color--navy); color: #fff; border: 0; border-radius: 9px; margin: 0;
	font-family: var(--wp--preset--font-family--sans); font-size: 0.78rem; font-weight: 600;
	letter-spacing: 0.04em; text-transform: uppercase; padding: 0.6rem 1.1rem;
	transition: background-color 0.2s ease;
}
.alo-serp-search .wp-block-search__button:hover,
.alo-serp-search .wp-block-search__button:focus-visible { background: var(--wp--preset--color--gold-deep); }

/* Autocomplete group headers (Services / Education) inside the dropdown — gold
   eyebrow treatment, matching .alo-eyebrow elsewhere, so they read as branded
   section dividers rather than dim text. */
.alo-search__group {
	margin: 0; padding: 0.5rem 0.6rem 0.25rem; font-size: 0.66rem; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep);
}
.alo-search__group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--wp--preset--color--border); padding-top: 0.6rem; }

/* SERP — grouped results sections (alothman/search-results block). */
.alo-serp__empty { color: var(--wp--preset--color--muted); }
.alo-serp-section { margin-top: var(--wp--preset--spacing--50); }
.alo-serp-section:first-child { margin-top: 0; }
.alo-serp-section__title {
	font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--navy-deep);
	font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0 0 1.2rem;
	padding-bottom: 0.6rem; border-bottom: 1px solid var(--wp--preset--color--border);
}
.alo-serp-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wp--preset--spacing--30);
}
.alo-serp-grid .alo-card__title { margin: 0; font-size: 1.18rem; line-height: 1.35; }
.alo-serp-grid .alo-card__title a { text-decoration: none; color: var(--wp--preset--color--navy-deep); transition: color 0.2s ease; }
.alo-serp-grid .alo-card__title a:hover, .alo-serp-grid .alo-card__title a:focus-visible { color: var(--wp--preset--color--gold-deep); }
.alo-serp-grid .alo-card__excerpt { margin: 0; color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.alo-serp-grid .alo-article-meta {
	display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
	font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.alo-serp-grid .alo-article-meta__cat { color: var(--wp--preset--color--gold-deep); text-decoration: none; }
.alo-serp-grid .alo-article-meta__cat:hover, .alo-serp-grid .alo-article-meta__cat:focus-visible { color: var(--wp--preset--color--navy); }
.alo-serp-grid .alo-article-meta time { color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
	.alo-serp-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 1024px) {
	.alo-serp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------------
   Stat count-up — JS animates the value; suffix preserved. The reserved
   min-width avoids layout shift as digits tick up.
   ------------------------------------------------------------------------- */
.alo-stat__num.is-counting { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.alo-card, .alo-card__media img, .alo-arrow::after,
	.site-header .wp-block-navigation-item__content,
	.site-footer .wp-block-navigation-item__content,
	.wp-block-post-content p a:not(.wp-element-button),
	.wp-block-post-content li a:not(.wp-element-button) { transition: none; }
	/* Reveal targets are always fully visible; no transform/animation. */
	html.js .alo-rise-up, html.js .alo-reveal > * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* -------------------------------------------------------------------------
   Clinic locations map carousel
   ------------------------------------------------------------------------- */
.alo-maps { position: relative; margin-top: var(--wp--preset--spacing--40); }
.alo-maps__track {
	display: flex; gap: 1rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 14px;
	/* overflow-x:auto forces overflow-y:auto, so this scroll container clips
	   vertically too. Pad it so slide content (the rounded Get Directions
	   button + its focus ring, the map's rounded top corners) isn't flush
	   with the clip edge and shaved off. */
	padding: 3px 4px 12px;
}
.alo-maps__track::-webkit-scrollbar { display: none; }
.alo-maps__viewport { position: relative; }
.alo-maps__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
/* When the carousel is built from native Group blocks (the Map Carousel
   pattern), core flow layout adds a vertical block-gap between siblings.
   Zero it on the horizontal track so the slides stay top-aligned. */
.alo-maps__track > * + * { margin-block-start: 0; }
.alo-maps__viewport, .alo-maps__track { margin-block: 0; }
.alo-maps__frame-wrap {
	position: relative; display: block; border-radius: 14px; overflow: hidden;
	aspect-ratio: 16 / 9; background: var(--wp--preset--color--mist);
}
@media (min-width: 782px) { .alo-maps__frame-wrap { aspect-ratio: 21 / 9; } }
.alo-maps__frame { display: block; width: 100%; height: 100%; border: 0; }
/* Plain text caption beneath the map (no pill, never overlaps the map's info card). */
.alo-maps__name {
	display: block; margin-top: 0.7rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
	color: var(--wp--preset--color--navy-deep);
}
.alo-maps__overlay {
	position: absolute; inset: 0; z-index: 2; pointer-events: none;
	display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.25rem;
	background: linear-gradient(to top, rgba(11, 22, 40, 0.35), rgba(11, 22, 40, 0) 40%);
	opacity: 0; transition: opacity 0.25s ease;
}
.alo-maps__frame-wrap:hover .alo-maps__overlay,
.alo-maps__frame-wrap:focus-within .alo-maps__overlay { opacity: 1; }
/* Directions button reuses the theme button style; we only gate clicks to hover/focus. */
.alo-maps__dir { margin: 0; }
.alo-maps__overlay .wp-block-button__link { pointer-events: none; }
.alo-maps__frame-wrap:hover .alo-maps__overlay .wp-block-button__link,
.alo-maps__frame-wrap:focus-within .alo-maps__overlay .wp-block-button__link { pointer-events: auto; }
/* Touch / no-hover devices: keep the directions button visible and tappable. */
@media (hover: none) {
	.alo-maps__overlay { opacity: 1; }
	.alo-maps__overlay .wp-block-button__link { pointer-events: auto; }
}
.alo-maps__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, 0.92); color: var(--wp--preset--color--navy-deep);
	font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(11, 22, 40, 0.25); transition: background 0.2s ease, opacity 0.2s ease;
}
.alo-maps__nav:hover { background: #fff; }
.alo-maps__nav:disabled { opacity: 0.35; cursor: default; }
.alo-maps__nav--prev { inset-inline-start: 10px; }
.alo-maps__nav--next { inset-inline-end: 10px; }
.alo-maps__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.alo-maps__dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--wp--preset--color--border); transition: background 0.2s ease, transform 0.2s ease;
}
.alo-maps__dot.is-active { background: var(--wp--preset--color--gold-deep); transform: scale(1.3); }

/* ===========================================================================
   MOBILE RESPONSIVENESS PASS — additive, scoped to phones/tablets only.
   Desktop layout/look is untouched (all rules live inside max-width queries).
   =========================================================================== */

/* --- Maps "Get Directions": guarantee it's visible & tappable on touch ---
   The hover:none query alone is unreliable on some devices/emulators, so on
   narrow (touch-first) viewports we also force the overlay visible and the
   button clickable regardless of reported hover capability. */
@media (max-width: 782px) {
	.alo-maps__overlay { opacity: 1 !important; }
	.alo-maps__overlay .wp-block-button__link { pointer-events: auto !important; }
	/* Slightly stronger scrim so the white button always reads over the map. */
	.alo-maps__overlay {
		background: linear-gradient(to top, rgba(11, 22, 40, 0.45), rgba(11, 22, 40, 0) 55%);
	}
	/* Larger, comfortably-spaced dot hit areas on touch. */
	.alo-maps__dots { gap: 0.75rem; }
	.alo-maps__dot { width: 11px; height: 11px; }
}

/* --- Mobile header: tighten the sticky bar so it doesn't eat the viewport --- */
@media (max-width: 782px) {
	/* Sticky header is shorter on phones — reduce the anchor-jump offset to match. */
	html { scroll-padding-top: 5.5rem; }
	.site-header {
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
	}
	/* Site title smaller on phones so the header stays compact. */
	.site-header .wp-block-site-title a {
		font-size: 1.15rem;
		line-height: 1.15;
	}
	.site-header .wp-block-site-tagline { font-size: 0.78rem; }
	/* Logo a touch smaller. */
	.site-header .wp-block-site-logo img { width: 40px !important; height: auto; }
	/* Keep CTA, divider and burger on one tidy row; reduce the big preset gap. */
	.site-header__actions { gap: 0.75rem !important; }
	.site-header__cta { padding-inline-start: 0.75rem; }
	.site-header__cta .wp-block-button__link {
		padding: 0.7rem 1rem;
		font-size: 0.72rem;
		letter-spacing: 0.06em;
	}
}

/* On the smallest phones, drop the tagline and shorten the CTA footprint
   so the header row never crowds. */
@media (max-width: 480px) {
	.site-header .wp-block-site-tagline { display: none; }
	.site-header .wp-block-site-title a { font-size: 1.05rem; }
}

/* --- Mobile hamburger toggle: enforce a 44px tap target --- */
@media (max-width: 782px) {
	.site-header .wp-block-navigation__responsive-container-open,
	.site-header .wp-block-navigation__responsive-container-close {
		min-width: 44px; min-height: 44px;
		display: flex; align-items: center; justify-content: center;
	}
	.site-header .wp-block-navigation__responsive-container-open svg,
	.site-header .wp-block-navigation__responsive-container-close svg {
		width: 28px; height: 28px;
	}
}

/* --- Mobile nav overlay: full-screen, left-aligned, generous tap targets ---
   The header nav is right-justified for desktop (is-content-justification-right).
   Inside the open mobile modal that pushed items hard against the right edge and
   clipped them. When the responsive container is open we override justification
   so the menu reads as a clean, left-aligned, comfortably-spaced list. */
@media (max-width: 782px) {
	/* Below the overlay breakpoint the hamburger is shown, so the inline menu
	   must be hidden until opened. In the 600–782px band WordPress otherwise
	   leaves the closed dialog content visible, producing a burger AND a stray
	   inline menu row (and a 3-row, ~290px-tall header). Hide it. */
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: none !important;
	}
	/* Force a true full-screen overlay. WordPress sets inset:0 but, with this
	   theme's flex header, the open container collapsed to content height —
	   pin it to the full viewport so it covers the page cleanly. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		inset: 0 !important;
		width: 100vw !important;
		height: 100vh !important;
		max-height: 100vh;
		box-sizing: border-box;
		overflow-y: auto;
		padding: clamp(2rem, 8vw, 3.5rem) clamp(1.5rem, 6vw, 2.5rem);
	}
	/* Every inner wrapper of the open modal must fit the padded container width
	   (WordPress hard-codes some to the full viewport width, which overflowed). */
	.site-header .is-menu-open .wp-block-navigation__responsive-close,
	.site-header .is-menu-open .wp-block-navigation__responsive-dialog,
	.site-header .is-menu-open .wp-block-navigation__responsive-container-content {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	/* Force the menu list itself full-width and left-aligned (overrides the
	   desktop is-content-justification-right shrink-to-right behaviour). */
	.site-header .is-menu-open .wp-block-navigation__container {
		width: 100% !important;
		max-width: 100% !important;
	}
	.site-header .is-menu-open .wp-block-navigation__container {
		align-items: flex-start !important;
		justify-content: flex-start !important;
		gap: 0.4rem;
		width: 100%;
	}
	.site-header .is-menu-open .wp-block-navigation-item {
		width: 100%;
	}
	.site-header .is-menu-open .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 0.75rem 0.25rem;        /* >=44px tap height */
		font-size: 1.25rem;
		background-size: 0% 2px;          /* reset the desktop underline state */
	}
	/* Full-width items make the focus ring overflow the viewport — inset it so
	   the auto-focused first item (and any focused link) stays on-screen. */
	.site-header .is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline-offset: -2px;
	}
	/* The active page link's gold underline shouldn't render as a full-width
	   bar in the stacked overlay. */
	.site-header .is-menu-open .current-menu-item .wp-block-navigation-item__content {
		background-size: 0 2px;
	}
	/* Close (X) button: clear of the topbar, comfortable target already set above. */
	.site-header .wp-block-navigation__responsive-container-close {
		top: 1rem; inset-inline-end: 1rem;
	}
}

/* --- Topbar: when hours are hidden (<600px) drop the now-orphaned separator --- */
@media (max-width: 600px) {
	.site-topbar .topbar-sep { display: none; }
}

/* ---------------------------------------------------------------------------
   Inner-page editorial components (About, Services, Spine, etc.)
   Built from the same vocabulary as the home page so the pages read as one
   continuous publication.
   ------------------------------------------------------------------------- */

/* Section intro (centered eyebrow + heading + lead) */
.alo-section-head { max-width: 720px; margin-inline: auto; }
.alo-section-head .alo-lead { color: var(--wp--preset--color--muted); }

/* Credential / timeline rows: gold serif year + title + meta, hairline divides */
.alo-creds { display: grid; gap: 0; margin: 0; }
.alo-cred {
	display: grid; grid-template-columns: 104px 1fr; gap: clamp(1rem, 2vw, 1.75rem);
	padding: 1.15rem 0; align-items: baseline; border-top: 1px solid var(--wp--preset--color--border);
}
.alo-creds > .alo-cred:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.alo-cred__year {
	font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--gold-deep);
	font-size: 1.15rem; font-weight: 600; line-height: 1.2; margin: 0;
}
.alo-cred__title { margin: 0; font-weight: 600; color: var(--wp--preset--color--ink); }
.alo-cred__meta { margin: 0.2rem 0 0; color: var(--wp--preset--color--muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 600px) { .alo-cred { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Feature list: gold rule + bold lead-in, for grouped scannable items */
.alo-featurelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.alo-featurelist li {
	position: relative; padding-block: 0.85rem; padding-inline-start: 1.6rem; padding-inline-end: 0;
	border-top: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--ink);
}
.alo-featurelist li:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.alo-featurelist li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 1.35rem;
	width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--gold);
}
.alo-featurelist li strong { color: var(--wp--preset--color--navy); }

/* Card variant: serif heading + meta line (publications, fellowships) */
.alo-card .alo-card__meta { margin: 0; color: var(--wp--preset--color--gold-deep); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Compact inline list of social / connect links */
.alo-inline-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.alo-inline-links li { margin: 0; }

/* Full-bleed colour bands butt together. Each top-level section owns its own
   vertical padding, so the default inter-block gap is removed between sections —
   otherwise the page background shows as a stripe wherever two differently
   coloured bands meet (e.g. the cream "What You Can Expect" → navy CTA). */
.wp-block-post-content > * + * { margin-block-start: 0; }

/* Location map frame (Contact page) */
.alo-locmap { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; margin-top: 1.1rem; background: var(--wp--preset--color--mist); }

/* Caution / important panel (e.g. emergency guidance) */
.alo-alert {
	border: 1px solid var(--wp--preset--color--border);
	border-inline-start: 4px solid var(--wp--preset--color--gold);
	border-radius: 12px; background: var(--wp--preset--color--base);
}


/* ---------------------------------------------------------------------------
   WPForms (appointment form) — match the navy/gold theme.
   Modern markup (wpforms-render-modern) is themed via its CSS variables;
   the submit button gets the theme's uppercase + gold→navy hover treatment.
   ------------------------------------------------------------------------- */
.wpforms-container.wpforms-render-modern {
	--wpforms-button-background-color: var(--wp--preset--color--gold);
	--wpforms-button-text-color: #16263F;
	--wpforms-button-border-radius: 4px;
	--wpforms-field-border-color: var(--wp--preset--color--border);
	--wpforms-field-border-radius: 6px;
	--wpforms-field-background-color: #ffffff;
	--wpforms-field-text-color: var(--wp--preset--color--ink);
	--wpforms-label-color: var(--wp--preset--color--navy-deep);
	--wpforms-label-sublabel-color: var(--wp--preset--color--muted);
}
.wpforms-container .wpforms-field-label { font-weight: 600; }
.wpforms-container .wpforms-required-label { color: var(--wp--preset--color--gold-deep); }
.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
	border-color: var(--wp--preset--color--gold) !important;
	box-shadow: 0 0 0 3px rgba(184, 137, 63, 0.18) !important;
}
.wpforms-container .wpforms-submit {
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-weight: 600;
	padding: 0.9rem 1.7rem;
	box-shadow: 0 2px 6px rgba(184, 137, 63, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.wpforms-container .wpforms-submit:hover,
.wpforms-container .wpforms-submit:focus {
	background-color: var(--wp--preset--color--navy) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(22, 38, 63, 0.28);
}

/* ---------------------------------------------------------------------------
   FAQ accordion (core/details) — bordered panels matching the card aesthetic.
   ------------------------------------------------------------------------- */
.alo-faq .wp-block-details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: #fff;
	padding: 1rem 1.25rem;
	margin-bottom: 0.85rem;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.alo-faq .wp-block-details[open] { box-shadow: 0 6px 18px rgba(22, 38, 63, 0.06); }
.alo-faq .wp-block-details summary {
	cursor: pointer; font-weight: 600;
	color: var(--wp--preset--color--navy-deep);
	list-style: none; position: relative; padding-inline-end: 1.75rem;
}
.alo-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.alo-faq .wp-block-details summary::after {
	content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
	font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--gold-deep); font-weight: 400;
}
.alo-faq .wp-block-details[open] summary::after { content: "\2013"; }
.alo-faq .wp-block-details summary:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; border-radius: 3px; }
.alo-faq .wp-block-details > :not(summary) { margin-top: 0.75rem; color: var(--wp--preset--color--ink); }

/* ---------------------------------------------------------------------------
   Primary-nav "Services" dropdown (navigation-submenu). White card, navy
   text, cream row highlight. Kept flush to the trigger so hover doesn't drop.
   ------------------------------------------------------------------------- */
.site-header .wp-block-navigation__submenu-container {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	box-shadow: 0 18px 44px rgba(14, 26, 48, 0.16);
	padding: 0.4rem;
	min-width: 250px;
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: 7px;
	background-image: none;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--navy);
	background-size: 0 0;
}
/* The submenu arrow inherits the link colour. */
.site-header .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon { margin-inline-start: 0.25rem; }
/* In the mobile overlay the submenu levels are plain indented lists, not
   floating cards — the card chrome above is desktop-dropdown styling. */
.site-header .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0 0 0 0.9rem;
	min-width: 0;
}

/* ---------------------------------------------------------------------------
   Footer seam: the template root puts a block-gap (~24px) between <main> and
   the footer, which showed the page background as a stripe under the last
   band. Zero the footer's top margin so the last band butts the footer.
   ------------------------------------------------------------------------- */
.wp-site-blocks > footer.wp-block-template-part,
footer.wp-block-template-part { margin-block-start: 0; }

/* ---------------------------------------------------------------------------
   Breadcrumbs (alothman/breadcrumbs block) — subtle trail above page content.
   ------------------------------------------------------------------------- */
.alo-breadcrumbs__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.82rem; letter-spacing: 0.01em; color: var(--wp--preset--color--muted);
}
.alo-breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.alo-breadcrumbs__item:not(:first-child)::before {
	content: "\203A"; color: var(--wp--preset--color--gold-deep); font-size: 0.95rem; line-height: 1;
}
.alo-breadcrumbs__item a { color: var(--wp--preset--color--muted); text-decoration: none; transition: color 0.2s ease; }
.alo-breadcrumbs__item a:hover, .alo-breadcrumbs__item a:focus-visible { color: var(--wp--preset--color--navy); }
.alo-breadcrumbs__item[aria-current="page"] { color: var(--wp--preset--color--navy-deep); font-weight: 600; }

/* When the page opens with an image hero (.alo-hero--image cover), the
   breadcrumb bar overlays the hero's top padding (flush, no white strip)
   instead of sitting above it — at ALL widths, so these pages match the
   Patient Education hero with no gap below the nav. Light link palette. */
main:has(> .wp-block-post-content > .alo-hero--image:first-child) { position: relative; }
main:has(> .wp-block-post-content > .alo-hero--image:first-child) > .alo-breadcrumbs-bar {
	position: absolute; top: 0; left: 0; right: 0; z-index: 5;
	padding-top: 1.1rem;
}
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__list { color: rgba(255, 255, 255, 0.62); }
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__item:not(:first-child)::before { color: var(--wp--preset--color--gold-soft); }
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__item a { color: rgba(255, 255, 255, 0.78); }
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__item a:hover,
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__item a:focus-visible { color: var(--wp--preset--color--gold-soft); }
main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-breadcrumbs__item[aria-current="page"] { color: #fff; }
/* Mobile: the absolute trail can wrap 2–3 lines, so give the hero content
   extra top room to clear it (keeps the flush look, no collision). */
@media (max-width: 781px) {
	main:has(> .wp-block-post-content > .alo-hero--image:first-child) .alo-hero--image .wp-block-cover__inner-container { padding-top: 2.6rem; }
}

/* Blog templates (Patient Education hub, category archives, single posts) put the
   breadcrumb + article meta INSIDE the navy image hero, so they read light at all
   widths. This scopes to descendants of the cover, so it never touches the
   condition-page heroes, where the breadcrumb is a sibling of the cover. */
.alo-hero--image .alo-breadcrumbs__list { color: rgba(255, 255, 255, 0.6); }
.alo-hero--image .alo-breadcrumbs__item:not(:first-child)::before { color: var(--wp--preset--color--gold-soft); }
.alo-hero--image .alo-breadcrumbs__item a { color: rgba(255, 255, 255, 0.78); }
.alo-hero--image .alo-breadcrumbs__item a:hover,
.alo-hero--image .alo-breadcrumbs__item a:focus-visible { color: var(--wp--preset--color--gold-soft); }
.alo-hero--image .alo-breadcrumbs__item[aria-current="page"] { color: #fff; }

/* Hero scrim — editorial photos sit behind a navy gradient that is heavy on the
   LEFT (where the left-aligned H1/lead/CTA live) and fades to near-clear on the
   right so the photograph reads. Replaces the old flat 80% navy dim. navy-deep
   = #0E1A30 = rgb(14,26,48). On mobile the text stacks full-width, so the scrim
   becomes a top-to-bottom gradient (darker at the lower text block) instead. */
.alo-hero--image .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
	background-image: linear-gradient( 90deg,
		rgba(14, 26, 48, 0.94) 0%,
		rgba(14, 26, 48, 0.88) 24%,
		rgba(14, 26, 48, 0.60) 52%,
		rgba(14, 26, 48, 0.14) 100% ) !important;
}
@media (max-width: 781px) {
	.alo-hero--image .wp-block-cover__background {
		background-image: linear-gradient( 180deg,
			rgba(14, 26, 48, 0.60) 0%,
			rgba(14, 26, 48, 0.66) 40%,
			rgba(14, 26, 48, 0.90) 100% ) !important;
	}
}
.alo-hero--image .alo-article-meta .wp-block-post-terms a { color: var(--wp--preset--color--gold-soft); }
.alo-hero--image .alo-article-meta .wp-block-post-terms a:hover,
.alo-hero--image .alo-article-meta .wp-block-post-terms a:focus-visible { color: #fff; }
.alo-hero--image .alo-article-meta .wp-block-post-date { color: rgba(255, 255, 255, 0.72); }

/* Left-aligned navy image-hero content (condition/overview pages, PE hub,
   archives) — shares the breadcrumb's left axis; text capped for readability. */
.alo-hero-head { max-width: 50rem; }
.alo-hero-head .alo-lead { max-width: 40rem; }

/* Single-article hero: category as a gold kicker above the title, date as a quiet
   byline below it — left-aligned, sharing the breadcrumb's axis. */
.alo-article-head { max-width: 56rem; }
.alo-article-kicker { margin: 0 0 0.85rem; }
.alo-article-kicker a {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	text-decoration: none; color: var(--wp--preset--color--gold-soft);
}
.alo-article-kicker a:hover, .alo-article-kicker a:focus-visible { color: #fff; }
.alo-article-byline {
	margin: 1.1rem 0 0; font-family: var(--wp--preset--font-family--sans);
	font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}
/* ---------------------------------------------------------------------------
   Mega menu — the "Services" dropdown is a page-width white panel: one column
   per service area (gold icon + hub-link heading + plain child links) and an
   image aside with a booking CTA on the right (injected by JS). Editable as a
   normal nested Navigation menu; mobile keeps the simple stacked list.
   ------------------------------------------------------------------------- */
.alo-mega__icon { display: none; }
.alo-mega__aside { display: none; }
@media (min-width: 782px) {
	/* Position the panel relative to the main header bar so it can span the
	   page width rather than dropping under the (right-aligned) menu item. */
	.site-header { position: relative; }
	/* !important: core positions the responsive container relative with higher
	   specificity; everything between the header and the panel must be static
	   so the panel's containing block is the header itself. */
	.site-header .wp-block-navigation,
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open),
	.site-header .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation__responsive-container-content,
	.site-header .wp-block-navigation__container,
	.site-header .alo-mega { position: static !important; }

	/* Geometry is !important throughout: core re-declares width/left/height on
	   the :hover state with higher specificity than these rules. */
	.site-header .alo-mega > .wp-block-navigation__submenu-container {
		position: absolute !important;
		top: calc(100% + 1px) !important;
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%) !important;
		width: min(var(--wp--style--global--wide-size, 1240px), calc(100vw - 2rem)) !important;
		box-sizing: border-box;
		min-width: 0 !important;
		z-index: 80;
		display: grid !important;
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem 1.7rem;
		align-items: start;
		padding: clamp(1.3rem, 2vw, 1.8rem);
		border-radius: 14px;
		/* Core hides submenus with height:0/overflow:hidden, which defeats a
		   hover grace period — keep the panel full-size and hide it with
		   visibility/opacity only, delayed so the pointer can cross the small
		   gap between the menu item and the panel without it closing. */
		height: auto !important;
		overflow: visible !important;
		transition: opacity 0.14s ease, visibility 0s linear 0.28s;
	}
	.site-header .alo-mega:hover > .wp-block-navigation__submenu-container,
	.site-header .alo-mega:focus-within > .wp-block-navigation__submenu-container {
		visibility: visible;
		opacity: 1;
		transition-delay: 0s;
	}

	/* Each column li stacks heading over its link list (core makes li a flex
	   row, which would put the list beside the heading). */
	.site-header .alo-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item {
		display: block !important;
		min-width: 0;
	}

	/* Column heading — the hub link: gold line icon + label over a hairline. */
	.site-header .alo-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: flex; align-items: center; gap: 0.55rem;
		padding: 0 0 0.6rem;
		margin: 0 0 0.4rem;
		border-bottom: 1px solid var(--wp--preset--color--border);
		background: none;
		min-width: 0;
		width: 100%;
	}
	.site-header .alo-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content .wp-block-navigation-item__label {
		font-weight: 600; color: var(--wp--preset--color--navy-deep);
		font-size: 0.92rem; line-height: 1.25;
	}
	.site-header .alo-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
	.site-header .alo-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label {
		color: var(--wp--preset--color--gold-deep);
	}
	.site-header .alo-mega__icon { display: inline-flex; flex: none; color: var(--wp--preset--color--gold-deep); }
	.site-header .alo-mega__icon svg { width: 20px; height: 20px; display: block; }

	/* Second level — always-visible static link lists (no flyout). Visibility
	   inherits from the panel so nothing peeks out while the menu is closed. */
	.site-header .alo-mega .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
		position: static !important;
		visibility: inherit !important;
		opacity: 1 !important;
		display: block !important;
		min-width: 0 !important; width: auto !important; height: auto !important;
		overflow: visible !important;
		transform: none !important;
		background: transparent; border: 0; box-shadow: none;
		padding: 0 !important; margin: 0;
	}
	.site-header .alo-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
	.site-header .alo-mega .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		padding: 0.34rem 0;
		background: none;
	}
	.site-header .alo-mega .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
		font-weight: 400; color: var(--wp--preset--color--muted);
		font-size: 0.88rem; line-height: 1.4;
	}
	.site-header .alo-mega .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
	.site-header .alo-mega .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label {
		color: var(--wp--preset--color--gold-deep);
	}

	/* No chevrons inside the panel (the columns are not interactive toggles). */
	.site-header .alo-mega > .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { display: none; }

	/* Image aside with booking CTA (injected by alothman_mega_menu_script). */
	.site-header .alo-mega__aside { display: block; }
	.site-header .alo-mega__aside a {
		display: flex; flex-direction: column; gap: 0.55rem;
		background: var(--wp--preset--color--cream);
		border-radius: 12px;
		padding: 0.9rem;
		text-decoration: none;
		height: 100%;
	}
	.site-header .alo-mega__aside img {
		width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
		border-radius: 8px; display: block;
	}
	.site-header .alo-mega__aside-title {
		font-weight: 600; color: var(--wp--preset--color--navy-deep); font-size: 0.92rem;
		margin-top: 0.25rem;
	}
	.site-header .alo-mega__aside-text { color: var(--wp--preset--color--muted); font-size: 0.84rem; line-height: 1.45; }
	.site-header .alo-mega__aside-cta { color: var(--wp--preset--color--gold-deep); font-weight: 600; font-size: 0.85rem; }
	.site-header .alo-mega__aside-cta::after { content: " \2192"; }
	.site-header .alo-mega__aside a:hover .alo-mega__aside-title,
	.site-header .alo-mega__aside a:focus-visible .alo-mega__aside-title { color: var(--wp--preset--color--gold-deep); }
}
/* Wide desktops: all five columns in one row + the aside. */
@media (min-width: 1100px) {
	.site-header .alo-mega > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(5, 1fr) 1.15fr;
		gap: 1.3rem;
	}
	/* Link-only panels (Patient Education): three link columns over two rows,
	   with the aside card spanning the right edge. */
	.site-header .alo-mega--simple > .wp-block-navigation__submenu-container {
		grid-template-columns: repeat(3, 1fr) 1.15fr;
		gap: 0.9rem 1.6rem;
	}
	.site-header .alo-mega--simple .alo-mega__aside {
		grid-column: 4;
		grid-row: 1 / span 2;
	}
}
/* Narrower desktops: three columns, no aside. */
@media (min-width: 782px) and (max-width: 1099px) {
	.site-header .alo-mega__aside { display: none; }
}

/* ---------------------------------------------------------------------------
   Patient Education articles (blog posts) — long-form reading components.
   Namespaced .alo-takeaways / .alo-article* so nothing leaks into pages.
   ------------------------------------------------------------------------- */

/* The article column sits flush with the wide gutter (same left edge as the
   title above it) instead of centred — and a touch wider than the default
   content size. Core centres constrained children with !important margins. */
.single-post .wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
	margin-inline-start: 0 !important;
	margin-inline-end: auto !important;
	max-width: none;
}

/* Posts are flowing long-form text. The global full-bleed-band rule above
   (.wp-block-post-content > * + * { margin-block-start: 0 }) would crush the
   article together, so restore a reading rhythm on single posts only. */
.single-post .wp-block-post-content > * + * { margin-block-start: 1.25rem; }
.single-post .wp-block-post-content > h2 { margin-block-start: 2.75rem; }
.single-post .wp-block-post-content > h3 { margin-block-start: 1.9rem; }
.single-post .wp-block-post-content > h2 + h3 { margin-block-start: 1.4rem; }
.single-post .wp-block-post-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.25; }
.single-post .wp-block-post-content h3 { font-size: 1.18rem; line-height: 1.35; }
.single-post .wp-block-post-content > ul, .single-post .wp-block-post-content > ol { padding-inline-start: 1.3rem; }
.single-post .wp-block-post-content > ul li, .single-post .wp-block-post-content > ol li { margin-block-start: 0.45rem; }
.single-post .wp-block-post-content > ul li::marker { color: var(--wp--preset--color--gold-deep); }

/* "Key Takeaways" summary panel — informational sibling of .alo-alert. */
.alo-takeaways {
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--border);
	border-inline-start: 4px solid var(--wp--preset--color--gold);
	border-radius: 12px;
	padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.3rem, 3.5vw, 2rem);
}
.alo-takeaways__label {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--wp--preset--color--gold-deep); margin: 0 0 0.8rem;
}
.alo-takeaways__label::before { content: ""; width: 30px; height: 1px; background: var(--wp--preset--color--gold); }
.alo-takeaways__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.alo-takeaways__list li { position: relative; padding-inline-start: 1.5rem; color: var(--wp--preset--color--ink); line-height: 1.55; }
.alo-takeaways__list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 0.52em;
	width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--gold);
}

/* Article header (single template): category + date meta row above the title. */
.alo-article-meta { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.alo-article-meta .wp-block-post-terms { margin: 0; }
.alo-article-meta .wp-block-post-terms a { color: var(--wp--preset--color--gold-deep); text-decoration: none; }
.alo-article-meta .wp-block-post-terms a:hover, .alo-article-meta .wp-block-post-terms a:focus-visible { color: var(--wp--preset--color--navy); }
.alo-article-meta .wp-block-post-date { color: var(--wp--preset--color--muted); margin: 0; }
.alo-article-meta > * { margin: 0; }

/* Closing CTA inside the article column. */
/* In-article "book a consultation" callout — a cream card with a gold accent
   bar (logical border so it flips to the right in RTL). */
.alo-article-cta {
	margin-top: 2.8rem !important;
	padding: 1.75rem 1.9rem;
	background: var(--wp--preset--color--cream);
	border: 1px solid #ECE4D3;
	border-inline-start: 4px solid var(--wp--preset--color--gold);
	border-radius: 12px;
	box-shadow: var(--alo-shadow-sm);
}
.alo-article-cta p {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: 1.05rem;
	line-height: 1.7;
}
.alo-article-cta p strong {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.25;
	color: var(--wp--preset--color--navy);
}
.alo-article-cta a[href^="tel:"] {
	color: var(--wp--preset--color--gold-deep);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.alo-article-cta a[href^="tel:"]:hover,
.alo-article-cta a[href^="tel:"]:focus-visible { text-decoration: underline; }
.alo-article-cta .wp-block-buttons { margin-top: 1.2rem !important; }

/* Small-print medical disclaimer. */
.alo-article-disclaimer {
	font-size: 0.85rem; color: var(--wp--preset--color--muted); line-height: 1.6;
	border-top: 1px solid var(--wp--preset--color--border); padding-top: 1.1rem;
	margin-top: 2.6rem !important;
}

/* "Back to Patient Education" return link under the article. */
.alo-article-back a {
	display: inline-flex; align-items: center; gap: 0.45rem;
	font-weight: 600; text-decoration: none; color: var(--wp--preset--color--navy);
}
.alo-article-back a::before { content: "\2190"; color: var(--wp--preset--color--gold-deep); }
.alo-article-back a:hover, .alo-article-back a:focus-visible { color: var(--wp--preset--color--gold-deep); }

/* Archive (category) list rows — on-brand hairline dividers. */
.alo-archive-row { border-bottom: 1px solid var(--wp--preset--color--border); }
.alo-archive-row .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy-deep); transition: color 0.2s ease; }
.alo-archive-row .wp-block-post-title a:hover, .alo-archive-row .wp-block-post-title a:focus-visible { color: var(--wp--preset--color--gold-deep); }

/* ---------------------------------------------------------------------------
   Patient Education hub & category archives (home.html / archive.html)
   ------------------------------------------------------------------------- */

/* Category sub-navigation — one white segmented bar of section tabs. Reads
   as navigation (a contained control, not floating filter pills); the current
   section is a solid navy segment (.is-active set by
   alothman_patient_education_script). The theme's primary-button treatment
   (gold gradient + lift) targets these same elements at high specificity with
   !important hovers, so every contested property is forced off here. */
.alo-catfilter {
	display: inline-flex !important;
	flex-wrap: wrap;
	max-width: 100%;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 4px;
	box-shadow: 0 2px 12px rgba(22, 38, 63, 0.06);
}
.wp-block-buttons.alo-catfilter .wp-block-button > .wp-block-button__link {
	font-size: 0.84rem !important;
	font-weight: 600;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	padding: 0.5em 1.05em;
	border-radius: 10px;
	background-color: transparent !important;
	background-image: none !important;
	color: var(--wp--preset--color--ink) !important;
	border: 0;
	box-shadow: none !important;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.wp-block-buttons.alo-catfilter .wp-block-button > .wp-block-button__link:hover,
.wp-block-buttons.alo-catfilter .wp-block-button > .wp-block-button__link:focus,
.wp-block-buttons.alo-catfilter .wp-block-button > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--cream) !important;
	background-image: none !important;
	color: var(--wp--preset--color--navy-deep) !important;
	transform: none !important;
	box-shadow: none !important;
}
.wp-block-buttons.alo-catfilter .wp-block-button.is-active > .wp-block-button__link {
	background-color: var(--wp--preset--color--navy) !important;
	background-image: none !important;
	color: #fff !important;
}
.wp-block-buttons.alo-catfilter .wp-block-button.is-active > .wp-block-button__link:hover,
.wp-block-buttons.alo-catfilter .wp-block-button.is-active > .wp-block-button__link:focus,
.wp-block-buttons.alo-catfilter .wp-block-button.is-active > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--navy-deep) !important;
	color: #fff !important;
}

/* Post-card grid (core post-template grid layout). */
.alo-postgrid { gap: var(--wp--preset--spacing--30); }
.alo-postgrid > .wp-block-post { display: flex; margin: 0; }
.alo-postgrid .alo-card { flex: 1; min-width: 0; }
.alo-postgrid .alo-card__media a { display: block; }
.alo-postgrid .alo-card__body .wp-block-post-title { font-size: 1.18rem; line-height: 1.35; }
.alo-postgrid .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy-deep); transition: color 0.2s ease; }
.alo-postgrid .wp-block-post-title a:hover,
.alo-postgrid .wp-block-post-title a:focus-visible { color: var(--wp--preset--color--gold-deep); }
.alo-postgrid .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 0.95rem; }
.alo-postgrid .wp-block-post-excerpt__excerpt { margin: 0; }
.alo-postgrid .alo-article-meta {
	font-size: 0.74rem;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem !important;
}

/* Lazy-load sentinel — numbered pagination is replaced by auto-loading
   (alothman_patient_education_script); this row shows while fetching. */
.alo-loadmore {
	min-height: 2.2rem;
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
	padding: 0.6rem 0;
}
.alo-loadmore.is-loading::after { content: "Loading more articles\2026"; }

/* Pagination — quiet, on-brand (no-JS fallback; hidden when lazy-load runs). */
.alo-pagination a,
.alo-pagination .wp-block-query-pagination-numbers .page-numbers {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	text-decoration: none;
}
.alo-pagination a:hover,
.alo-pagination a:focus-visible { color: var(--wp--preset--color--gold-deep); }
.alo-pagination .wp-block-query-pagination-numbers .current { color: var(--wp--preset--color--gold-deep); }

/* ---------------------------------------------------------------------------
   Mobile nav overlay — brand treatment. The functional overlay (full-screen,
   left-aligned, 44px taps) is set up earlier; this layers the design on top:
   deep-navy gradient, serif top-level items, gold section labels inside the
   Services group, and a booking CTA footer (injected by the mega-menu script).
   ------------------------------------------------------------------------- */
.alo-mobilenav-foot { display: none; }
.alo-drill-head { display: none; }

@media (max-width: 782px) {
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--gradient--navy-depth, linear-gradient(165deg, #16263F 0%, #0B1626 100%));
		color: #fff;
		/* Core's open animation leaves a transform on the overlay, which would
		   make it the containing block AND scroll container for the fixed
		   drill panels (their off-screen position then becomes horizontal
		   scroll overflow, and focusing a panel scrolls the menu sideways).
		   Kill the transform so panels anchor to the real viewport. */
		transform: none !important;
		overflow-x: hidden;
	}
	.site-header .is-menu-open .wp-block-navigation__responsive-container-close {
		color: #fff;
	}

	/* Top-level items: serif, white, separated by hairlines. */
	.site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	}
	.site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child {
		border-bottom: 0;
	}
	.site-header .is-menu-open .wp-block-navigation-item__content {
		color: #fff;
	}
	.site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--serif);
		font-size: 1.45rem;
		line-height: 1.2;
		padding: 0.85rem 0.25rem;
	}
	.site-header .is-menu-open .wp-block-navigation-item__content:hover,
	.site-header .is-menu-open .wp-block-navigation-item__content:focus-visible {
		color: var(--wp--preset--color--gold-soft);
		/* The desktop dropdown's cream hover pill must not leak in here. */
		background-color: transparent;
	}
	.site-header .is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline-color: var(--wp--preset--color--gold);
	}

	/* The Services group is a drill-down: the submenu is its own full-screen
	   panel that slides in over the menu when the visitor taps Services (or
	   its chevron), with a back button at the top. Inside it, hub headings
	   become gold section labels with their line icons and child links sit in
	   an indented, hairlined list. */
	.site-header .is-menu-open .alo-drill { position: relative; }
	.site-header .is-menu-open .alo-drill > .wp-block-navigation-submenu__toggle {
		position: absolute;
		top: 0; inset-inline-end: 0;
		width: 52px; height: 100%;
		display: flex; align-items: center; justify-content: center;
		color: #fff;
		background: none; border: 0;
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation-submenu__toggle svg {
		transform: rotate(-90deg);
		width: 14px; height: 14px;
		stroke: currentColor;
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container {
		display: none !important;
		position: static !important;
		width: 100% !important;
		min-width: 0 !important;
		background: transparent !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container.is-drill-open {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		animation: alo-drill-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}
	/* While a drill is open the panel replaces the menu list entirely. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open.alo-drill-mode .wp-block-navigation__container > .wp-block-navigation-item:not(.alo-drill-active) {
		display: none !important;
	}
	.site-header .wp-block-navigation__responsive-container.is-menu-open.alo-drill-mode .alo-mobilenav-foot {
		display: none !important;
	}
	.site-header .is-menu-open .alo-drill.alo-drill-active {
		border-bottom: 0;
	}
	.site-header .is-menu-open .alo-drill.alo-drill-active > .wp-block-navigation-item__content,
	.site-header .is-menu-open .alo-drill.alo-drill-active > .wp-block-navigation-submenu__toggle {
		display: none !important;
	}
	@media (prefers-reduced-motion: reduce) {
		.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container.is-drill-open { animation: none; }
	}

	/* Plain links directly inside a drill panel (e.g. the Patient Education
	   category list — no nested groups, just links). */
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-link > .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		gap: 0.55rem;
		font-family: var(--wp--preset--font-family--sans);
		font-size: 1rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		color: rgba(255, 255, 255, 0.84);
		padding: 0.6rem 0.25rem;
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-link > .wp-block-navigation-item__content:hover,
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-link > .wp-block-navigation-item__content:focus-visible {
		color: var(--wp--preset--color--gold-soft);
	}

	/* Drill panel header: back button + serif panel title. */
	.site-header .is-menu-open .alo-drill-head {
		display: block;
		list-style: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		padding: 0 0.25rem 0.9rem;
		margin-bottom: 0.4rem;
	}
	.site-header .is-menu-open .alo-drill-back {
		display: inline-flex; align-items: center; gap: 0.45rem;
		background: none; border: 0; padding: 0.4rem 0;
		font-family: var(--wp--preset--font-family--sans);
		font-size: 0.78rem; font-weight: 600;
		letter-spacing: 0.14em; text-transform: uppercase;
		color: var(--wp--preset--color--gold-soft);
		cursor: pointer;
	}
	.site-header .is-menu-open .alo-drill-back:hover,
	.site-header .is-menu-open .alo-drill-back:focus-visible { color: #fff; }
	.site-header .is-menu-open .alo-drill-back:focus-visible {
		outline: 2px solid var(--wp--preset--color--gold);
		outline-offset: 3px;
	}
	.site-header .is-menu-open .alo-drill-title {
		display: block;
		font-family: var(--wp--preset--font-family--serif);
		font-size: 1.6rem;
		color: #fff;
		margin-top: 0.55rem;
		text-decoration: none;
	}
	.site-header .is-menu-open a.alo-drill-title:hover,
	.site-header .is-menu-open a.alo-drill-title:focus-visible {
		color: var(--wp--preset--color--gold-soft);
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-submenu > .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		gap: 0.55rem;
		font-family: var(--wp--preset--font-family--sans);
		font-size: 0.74rem;
		font-weight: 600;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--wp--preset--color--gold-soft);
		padding: 0.9rem 0.25rem 0.4rem;
	}
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-submenu > .wp-block-navigation-item__content:hover,
	.site-header .is-menu-open .alo-drill > .wp-block-navigation__submenu-container > .wp-block-navigation-submenu > .wp-block-navigation-item__content:focus-visible {
		color: #fff;
	}
	.site-header .is-menu-open .alo-mega__icon {
		display: inline-flex;
		flex: none;
		color: var(--wp--preset--color--gold);
	}
	.site-header .is-menu-open .alo-mega__icon svg { width: 16px; height: 16px; display: block; }

	.site-header .is-menu-open .alo-drill .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--gold) 35%, transparent);
		padding: 0.1rem 0 0.2rem 0.95rem;
		margin-inline-start: 0.45rem;
	}
	.site-header .is-menu-open .alo-drill .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--sans);
		font-size: 1rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		color: rgba(255, 255, 255, 0.84);
		padding: 0.55rem 0.25rem;
	}
	.site-header .is-menu-open .alo-drill .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.site-header .is-menu-open .alo-drill .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
		color: var(--wp--preset--color--gold-soft);
	}

	/* Booking footer pinned under the list. */
	.site-header .is-menu-open .alo-mobilenav-foot {
		display: flex;
		flex-direction: column;
		gap: 0.95rem;
		margin-top: 1.9rem;
		padding-top: 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	.site-header .is-menu-open .alo-mobilenav-foot__cta {
		display: block;
		text-align: center;
		background: var(--wp--preset--color--gold);
		color: var(--wp--preset--color--navy-deep);
		font-weight: 600;
		font-size: 0.85rem;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		padding: 0.95rem 1.2rem;
		border-radius: 9px;
		text-decoration: none;
	}
	.site-header .is-menu-open .alo-mobilenav-foot__cta:hover,
	.site-header .is-menu-open .alo-mobilenav-foot__cta:focus-visible {
		background: var(--wp--preset--color--gold-soft);
	}
	.site-header .is-menu-open .alo-mobilenav-foot__tel {
		text-align: center;
		color: rgba(255, 255, 255, 0.85);
		text-decoration: none;
		font-size: 1rem;
		letter-spacing: 0.02em;
	}
	.site-header .is-menu-open .alo-mobilenav-foot__tel:hover,
	.site-header .is-menu-open .alo-mobilenav-foot__tel:focus-visible {
		color: var(--wp--preset--color--gold-soft);
	}
}

@keyframes alo-drill-in {
	from { opacity: 0; transform: translateX(44px); }
	to { opacity: 1; transform: none; }
}

/* Patient Education panel entries: one-line description under each label
   (injected by the mega-menu script; hidden outside the desktop panel). */
.alo-mega__desc { display: none; }
@media (min-width: 782px) {
	.site-header .alo-mega--simple > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.55rem;
		row-gap: 0.25rem;
		align-items: center;
	}
	.site-header .alo-mega--simple .alo-mega__desc {
		display: block;
		grid-column: 2;
		font-weight: 400;
		font-size: 0.78rem;
		letter-spacing: 0;
		text-transform: none;
		color: var(--wp--preset--color--muted);
		line-height: 1.45;
	}
}
