/* ADSC horizontal header logo (L2 lockup) — 2026-09-27
   [gold A symbol] ALOHA / Dental Specialty Center
   Loaded by mu-plugins/adsc-header-lockup.php. Header row height is unchanged (Blocksy setting). */

/* The container keeps Blocksy's own height (--logo-max-height), so the header row height is unchanged. */
html body .site-branding .site-logo-container {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

html body .site-branding .adsc-lockup {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
	line-height: 1;
}

/* The child theme caps every .site-branding img at 70px; the lockup sets its own sizes. */
html body .site-branding img.adsc-lockup-mark {
	display: block;
	flex: none;
	width: 60px !important;
	height: 60px !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain;
}

html body .site-branding .adsc-lockup-text {
	display: inline-grid;
	grid-template-columns: max-content;
	row-gap: 6px;
	align-content: center;
}

/* ALOHA spans exactly the width of the second line. */
html body .site-branding img.adsc-lockup-word {
	display: block;
	width: 0 !important;
	min-width: 100%;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
}

html body .site-branding .adsc-lockup-sub {
	display: block;
	font-family: var(--ax-font-text, -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: #172852;
	text-transform: none;
}

html body .site-branding .site-logo-container:focus-visible {
	outline: 2px solid #172852;
	outline-offset: 4px;
	border-radius: 4px;
}

/* Desktop menu spacing: room for the wider logo without changing labels, font or size. */
@media (min-width: 1000px) and (max-width: 1499.98px) {
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}

@media (min-width: 1500px) {
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

/* Narrower desktops: slightly smaller lockup and tighter links so the menu does not collide with search. */
@media (min-width: 1000px) and (max-width: 1365.98px) {
	html body .site-branding .adsc-lockup { gap: 10px; }
	html body .site-branding img.adsc-lockup-mark { width: 52px !important; height: 52px !important; }
	html body .site-branding .adsc-lockup-sub { font-size: 13px; }
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
}

/* Narrow desktops: leave a gap before the search icon (Blocksy moves overflow items into "More"). */
@media (min-width: 1000px) and (max-width: 1365.98px) {
	html body .ct-header [data-device="desktop"] nav[data-id="menu"] { margin-right: 24px !important; }
}

/* Mobile and tablet header (Blocksy mobile row). */
@media (max-width: 999.98px) {
	html body .site-branding .adsc-lockup { gap: 10px; }
	html body .site-branding img.adsc-lockup-mark { width: 48px !important; height: 48px !important; }
	html body .site-branding .adsc-lockup-text { row-gap: 5px; }
	html body .site-branding .adsc-lockup-sub { font-size: 13px; }
}

@media (max-width: 374.98px) {
	html body .site-branding .adsc-lockup { gap: 8px; }
	html body .site-branding img.adsc-lockup-mark { width: 44px !important; height: 44px !important; }
	html body .site-branding .adsc-lockup-sub { font-size: 12.5px; }
}

/* 2026-09-27 — Align the header row with the navy top bar above it (same content edges):
   top bar = max-width 1400px with 24px side padding (16px on phones). The Blocksy row container
   keeps its structure; only its width is matched, so the logo's left edge lines up with the top-bar
   text and the menu/search gain the same width on the right. */
@media (min-width: 1000px) {
	html body #header [data-device="desktop"] .ct-container {
		width: calc(100% - 48px);
		max-width: 1352px;
	}
}
@media (max-width: 999.98px) {
	html body #header [data-device="mobile"] .ct-container {
		width: calc(100% - 32px);
	}
}

/* Balance the space between the logo and the menu now that the row is wider
   (link padding only; labels, font and size unchanged). */
@media (min-width: 1366px) and (max-width: 1439.98px) {
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (min-width: 1440px) {
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a { padding-left: 12px !important; padding-right: 12px !important; }
}
@media (min-width: 1200px) and (max-width: 1365.98px) {
	html body .ct-header nav[data-id="menu"] .menu > li > a,
	html body .ct-header [data-id="menu"] > ul > li > a { padding-left: 6px !important; padding-right: 6px !important; }
}
/* Narrow desktops: keep clear space after the logo; Blocksy moves overflow items into "More". */
@media (min-width: 1000px) and (max-width: 1365.98px) {
	html body .ct-header [data-device="desktop"] nav[data-id="menu"] { margin-left: 24px !important; }
}

/* 2026-09-30 — Every desktop header dropdown/submenu (Services, Oral Surgery flyout, Our Doctors,
   Patient Resources, Refer a Patient, Blocksy "More"): labels left-aligned, site-wide.
   Blocksy centred the dropdown links (justify-content:center). Alignment only; items, spacing,
   typography and the submenu arrow position (kept at the right edge) are unchanged.
   Mobile off-canvas submenus were already left-aligned (text-align:start); no rule needed. */
html body .ct-header [data-device="desktop"] .sub-menu .ct-menu-link {
	justify-content: flex-start;
	text-align: left;
}
html body .ct-header [data-device="desktop"] .sub-menu .ct-menu-link > .ct-toggle-dropdown-desktop {
	margin-inline-start: auto;
}
