/* Andar Core 1.3.16: the Andar site header, restyled to match the Sitting With Spirit menu system in Andar's cosmic blues.
   Real stylesheet (not the Additional CSS), so stray braces there cannot break it.
   Desktop (1025px and up): navy-blue bar, logo, five icons, menu (Home, About Us, Teachings), the "Meet the Medium" pill, Join + Login pills,
   all on ONE row. Tablet / phone (1024px and down): logo + icons + hamburger; the menu opens as a deep navy panel with comfortable items and pill buttons.
   "Meet the Medium" = a normal Navigation custom link to sittingwithspirit.net with the CSS class andar-medium-pill on the menu item (no submenu).
   Colours: bar #11284F > #1B4577, panel #11284F > #0A1A3A, Andar button blue #2468A0 / #1E5A8A, sky-blue hover #8FD3FF, bright gold #F6DF93 / #F3D98B
   (never brown), Meet the Medium glass rgba(70,34,140,.62) with a gold border. */

/* ---- bar ---------------------------------------------------------------- */
html body header.wp-block-template-part {
	--andar-hdr: 112px;
	background: linear-gradient(90deg, #11284F 0%, #1B4577 100%) !important;
	box-shadow: 0 2px 14px rgba(5, 14, 40, .35) !important;
	color: #fff;
}
html body header.wp-block-template-part > .nfd-container,
html body header.wp-block-template-part > .nfd-container.nfd-bg-surface {
	background: transparent !important; background-color: transparent !important;
}
html body header.wp-block-template-part > .nfd-container > .nfd-py-sm {
	display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important;
	box-sizing: border-box !important; height: var(--andar-hdr) !important; min-height: 0 !important; padding-block: 0 !important;
}
html body header.wp-block-template-part .wp-block-site-logo { flex: 0 0 auto !important; line-height: 0; }
html body header.wp-block-template-part .wp-block-site-logo img { width: 150px !important; max-width: none !important; height: auto !important; filter: brightness(1.45) saturate(1.1) drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 0 9px rgba(143, 211, 255, .5)); }
html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { flex-wrap: nowrap !important; flex: 0 0 auto !important; align-items: center !important; gap: 1.4rem !important; }
html body header.wp-block-template-part nav.wp-block-navigation { flex: 0 0 auto !important; }
html body header.wp-block-template-part .wp-block-navigation__container { flex-wrap: nowrap !important; align-items: center !important; gap: 6px !important; }
html body header.wp-block-template-part .andar-social { flex: 0 0 auto !important; gap: .25rem !important; }
html body header.wp-block-template-part .andar-social a { color: #fff !important; width: 2rem !important; height: 2rem !important; }
html body header.wp-block-template-part .andar-social a:hover { color: #fff !important; background: rgba(143, 211, 255, .22) !important; }

/* ---- menu links (Home, About Us, Teachings): white, bold, sky-blue underline on hover ----------------- */
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content {
	position: relative; display: inline-flex !important; box-sizing: border-box; align-items: center !important; padding: 12px 8px !important; margin: 0 !important;
	font-family: inherit !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: .02em !important; line-height: 1.2 !important;
	color: #fff !important; text-decoration: none !important; text-shadow: 0 1px 2px rgba(5, 14, 40, .5); white-space: nowrap !important;
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none;
}
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 2px; border-radius: 2px; background: #8FD3FF;
	transform: scaleX(0); transform-origin: center; transition: transform .2s ease;
}
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:hover,
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content[aria-current] { color: #fff !important; }
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:hover::after,
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content[aria-current]::after { transform: scaleX(1); }
html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:focus-visible { outline: 2px solid #F3D98B; outline-offset: 2px; }

/* ---- pills: "Meet the Medium" (menu link with class andar-medium-pill), Join the conversation, Login ---- */
html body header.wp-block-template-part li.wp-block-navigation-item.andar-medium-pill { flex: 0 0 auto !important; margin: 0 4px 0 6px !important; }
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content,
html body header.wp-block-template-part .wp-block-buttons .wp-block-button__link {
	display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box;
	padding: 12px 24px !important; border-radius: 999px !important; border: 1.5px solid #F3D98B !important;
	font-family: inherit !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: .02em !important; line-height: 1.1 !important;
	color: #fff !important; text-decoration: none !important; text-shadow: 0 1px 2px rgba(5, 14, 40, .5); white-space: nowrap !important;
	box-shadow: 0 0 0 2px rgba(243, 217, 139, .28), 0 6px 16px rgba(5, 14, 40, .3) !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content::after { display: none !important; }
/* Meet the Medium: SWS dark violet glass, bright gold border, tiny gold sparkle */
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content {
	background: rgba(70, 34, 140, .62) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); gap: .45em !important;
}
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content::before {
	content: "\2726"; color: #F6DF93; font-size: .9em; line-height: 1; text-shadow: 0 0 6px rgba(246, 223, 147, .9);
}
/* Join the conversation: Andar blue; Login: quiet glass */
html body header.wp-block-template-part .wp-block-buttons .wp-block-button:first-child .wp-block-button__link {
	background: linear-gradient(135deg, #2468A0 0%, #1E5A8A 100%) !important; background-color: #1E5A8A !important;
}
html body header.wp-block-template-part .wp-block-buttons .wp-block-button:last-child .wp-block-button__link {
	background: rgba(255, 255, 255, .12) !important; background-color: rgba(255, 255, 255, .12) !important;
}
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content:hover,
html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content:focus-visible {
	background: rgba(86, 44, 166, .74) !important; transform: translateY(-1px); color: #fff !important;
	box-shadow: 0 0 0 3px rgba(246, 223, 147, .4), 0 0 22px rgba(246, 223, 147, .42), 0 8px 18px rgba(5, 14, 40, .34) !important;
}
html body header.wp-block-template-part .wp-block-buttons .wp-block-button__link:hover,
html body header.wp-block-template-part .wp-block-buttons .wp-block-button__link:focus-visible {
	transform: translateY(-1px); color: #fff !important; border-color: #F3D98B !important;
	box-shadow: 0 0 0 3px rgba(143, 211, 255, .45), 0 0 22px rgba(143, 211, 255, .5), 0 8px 18px rgba(5, 14, 40, .34) !important;
}
html body header.wp-block-template-part .wp-block-buttons .wp-block-button:first-child .wp-block-button__link:hover { background: linear-gradient(135deg, #2A74B0 0%, #206396 100%) !important; background-color: #206396 !important; }
html body header.wp-block-template-part .wp-block-buttons .wp-block-button:last-child .wp-block-button__link:hover { background: rgba(255, 255, 255, .2) !important; background-color: rgba(255, 255, 255, .2) !important; }
html body header.wp-block-template-part .wp-block-buttons { flex-wrap: nowrap !important; flex: 0 0 auto !important; gap: 12px !important; }

/* ---- hamburger and close buttons (hidden on desktop by the theme) ------------------------------------- */
html body header.wp-block-template-part .wp-block-navigation__responsive-container-open,
html body header.wp-block-template-part .wp-block-navigation__responsive-container-close {
	width: 52px; height: 52px; padding: 0 !important; align-items: center; justify-content: center; box-sizing: border-box;
	background: rgba(255, 255, 255, .12) !important; border: 1.5px solid rgba(243, 217, 139, .8) !important; border-radius: 12px; color: #fff !important; cursor: pointer;
}
html body header.wp-block-template-part .wp-block-navigation__responsive-container-open svg,
html body header.wp-block-template-part .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; fill: #fff; margin: auto; }
html body header.wp-block-template-part .wp-block-navigation__responsive-container-open:focus-visible,
html body header.wp-block-template-part .wp-block-navigation__responsive-container-close:focus-visible { outline: 2px solid #F3D98B; outline-offset: 2px; }

/* ---- desktop: keep everything on one row from 1025px --------------------------------------------------- */
@media (min-width: 1025px) {
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-open { display: none !important; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block !important; position: relative !important; width: auto !important; background: none !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
	html body header.wp-block-template-part { --andar-hdr: 92px; }
	html body header.wp-block-template-part .wp-block-site-logo img { width: 104px !important; }
	html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { gap: .8rem !important; }
	html body header.wp-block-template-part .andar-social { gap: 0 !important; }
	html body header.wp-block-template-part .andar-social a { width: 1.75rem !important; height: 1.75rem !important; }
	html body header.wp-block-template-part .wp-block-navigation__container { gap: 2px !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content { font-size: 15px !important; padding: 12px 6px !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content::after { left: 6px; right: 6px; }
	html body header.wp-block-template-part li.wp-block-navigation-item.andar-medium-pill { margin: 0 2px 0 4px !important; }
	html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content,
	html body header.wp-block-template-part .wp-block-buttons .wp-block-button__link { padding: 11px 16px !important; font-size: 14px !important; }
	html body header.wp-block-template-part .wp-block-buttons { gap: 8px !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) { /* the five icons step aside on the narrowest desktop windows (they stay in the footer) */
	html body header.wp-block-template-part .andar-social { display: none !important; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
	html body header.wp-block-template-part { --andar-hdr: 104px; }
	html body header.wp-block-template-part .wp-block-site-logo img { width: 130px !important; }
	html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { gap: 1rem !important; }
}

/* ---- tablet and phone: logo left, icons + hamburger right; the menu is a deep navy panel -------------- */
@media (max-width: 1024px) {
	html body header.wp-block-template-part { --andar-hdr: 92px; }
	html body header.wp-block-template-part .wp-block-site-logo img { width: 120px !important; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-open { display: flex !important; width: 52px; height: 52px; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	html body header.wp-block-template-part .wp-block-buttons { display: none !important; }
	html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { margin-left: auto !important; justify-content: flex-end !important; gap: 1rem !important; }
	html body header.wp-block-template-part nav.wp-block-navigation { order: 99 !important; }
	/* while the panel is open, the panel's own close button sits exactly where the hamburger was */
	html body header.wp-block-template-part nav.wp-block-navigation:has(.is-menu-open) > .wp-block-navigation__responsive-container-open { visibility: hidden; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important; top: var(--andar-hdr) !important; right: 0 !important; bottom: 0 !important; left: 0 !important; z-index: 1 !important; /* z 1: the gold sparkle line (z 2) stays on top */
		box-sizing: border-box; padding: 8px 5vw 0 !important; overflow: visible !important;
		background: linear-gradient(180deg, #11284F 0%, #0A1A3A 100%) !important; color: #fff !important;
	}
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-close,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-dialog { position: static !important; max-width: none !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute !important; z-index: 5; top: calc(var(--andar-hdr) / -2 - 26px) !important; right: 28px !important; /* the overlay is the containing block: this lands exactly where the hamburger was */
	}
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content { box-sizing: border-box; width: 100% !important; align-items: stretch !important; padding: 0 0 28px !important; max-height: calc(100vh - var(--andar-hdr) - 14px); max-height: calc(100dvh - var(--andar-hdr) - 14px); overflow-y: auto !important; overscroll-behavior: contain; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__container { width: 100% !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.wp-block-navigation-item { display: flex !important; width: 100%; margin: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .14); }
		html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content { width: 100%; min-height: 52px; padding: 10px 6px !important; font-size: 19px !important; text-shadow: none; white-space: normal !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content::after { left: 6px; right: auto; width: 36px; height: 3px; bottom: 7px; }
	/* pills in the panel: Meet the Medium, Join the conversation, Login, full width */
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="/subscribe/"]),
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="teachable.com/login"]) { border-bottom: 0 !important; margin-top: 10px !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill { margin-top: 14px !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill > .wp-block-navigation-item__content,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="/subscribe/"]) > .wp-block-navigation-item__content,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="teachable.com/login"]) > .wp-block-navigation-item__content {
		justify-content: center; min-height: 52px; padding: 12px 22px !important; border-radius: 999px !important; border: 1.5px solid #F3D98B !important;
		font-size: 18px !important; font-weight: 800 !important; text-align: center; line-height: 1.15 !important;
		box-shadow: 0 0 0 2px rgba(243, 217, 139, .28), 0 6px 16px rgba(5, 14, 40, .3) !important;
	}
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill > .wp-block-navigation-item__content { background: rgba(70, 34, 140, .62) !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="/subscribe/"]) > .wp-block-navigation-item__content { background: linear-gradient(135deg, #2468A0 0%, #1E5A8A 100%) !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="teachable.com/login"]) > .wp-block-navigation-item__content { background: rgba(255, 255, 255, .12) !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill > .wp-block-navigation-item__content::after,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="/subscribe/"]) > .wp-block-navigation-item__content::after,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="teachable.com/login"]) > .wp-block-navigation-item__content::after { display: none !important; }
	/* core focuses the first item when the panel opens; no stray underline or mark on it */
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:first-child > .wp-block-navigation-item__content:focus-visible { outline: none; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:first-child > .wp-block-navigation-item__content:focus:not(:hover)::after { transform: scaleX(0); }
}
@media (max-width: 767px) {
	html body header.wp-block-template-part { --andar-hdr: 84px; }
	html body header.wp-block-template-part .wp-block-site-logo img { width: 104px !important; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-open,
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-close { width: 52px; height: 52px; border-radius: 12px; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(var(--andar-hdr) / -2 - 26px) !important; }
	html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { gap: .6rem !important; }
	html body header.wp-block-template-part .andar-social { gap: 0 !important; }
	html body header.wp-block-template-part .andar-social a { width: 1.85rem !important; height: 1.85rem !important; }
	/* phone menu: readable but not oversized (about 20px items, 18px pills) */
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content { min-height: 52px; padding: 10px 6px !important; font-size: 20px !important; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li.andar-medium-pill > .wp-block-navigation-item__content,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="/subscribe/"]) > .wp-block-navigation-item__content,
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open li:has(> a[href*="teachable.com/login"]) > .wp-block-navigation-item__content { min-height: 52px; padding: 12px 22px !important; font-size: 18px !important; }
}
@media (max-width: 479px) {
	html body header.wp-block-template-part { --andar-hdr: 76px; }
	html body header.wp-block-template-part .wp-block-site-logo img { width: 92px !important; }
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-open,
	html body header.wp-block-template-part .wp-block-navigation__responsive-container-close { width: 52px; height: 52px; }
	html body header.wp-block-template-part nav.wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(var(--andar-hdr) / -2 - 26px) !important; }
	html body header.wp-block-template-part .wp-block-group.nfd-gap-2xl { gap: .4rem !important; }
	html body header.wp-block-template-part .andar-social a { width: 1.65rem !important; height: 1.65rem !important; }
	html body header.wp-block-template-part .andar-social a svg { width: 1.05rem !important; height: 1.05rem !important; }
}
@media (prefers-reduced-motion: reduce) {
	html body header.wp-block-template-part li.andar-medium-pill > .wp-block-navigation-item__content,
	html body header.wp-block-template-part .wp-block-buttons .wp-block-button__link,
	html body header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content::after { transition: none !important; transform: none; }
}
