/* SDI navigation refinements (Nov 2026): main menu, mega menu, mobile drawer.
   Loaded after the other SDI styles by wp-content/novamira-sandbox/sdi-mega-menu.php.
   Menu classes used: sdi-mcol--sig (Signature programs column), sdi-mdrop (About), sdi-mall (footer strip). */

/* ================= Main menu ================= */
body.sdi .sdi-primary .sdi-menu>li>a{font:500 12.5px/1 var(--sdi-sans);letter-spacing:.13em;text-transform:uppercase}
body.sdi .sdi-primary .sdi-menu>li.sdi-macct>a{font-size:12px}
/* gold hairline: draws from the centre on hover, stays on the current page */
body.sdi .sdi-primary .sdi-menu>li:not(.sdi-macct)>a::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:1px;background:var(--sdi-gold);transform:scaleX(0);transform-origin:center;transition:transform .6s var(--sdi-ease2,ease)}
body.sdi .sdi-primary .sdi-menu>li.menu-item-has-children:not(.sdi-macct)>a::after{right:28px}
body.sdi .sdi-primary .sdi-menu>li:not(.sdi-macct):is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor,.current-menu-parent)>a::after{transform:scaleX(1)}
/* smaller laptops: tighten so the row still fits beside the logo */
@media (min-width:1181px) and (max-width:1330px){
	body.sdi .sdi-nav .sdi-wrap{gap:18px}
	body.sdi .sdi-primary .sdi-menu>li>a{padding-left:9px;padding-right:9px;letter-spacing:.08em}
	body.sdi .sdi-primary .sdi-menu>li.menu-item-has-children>a{padding-right:23px}
	body.sdi .sdi-primary .sdi-menu>li.menu-item-has-children>a::before{right:8px}
	body.sdi .sdi-primary .sdi-menu>li:not(.sdi-macct)>a::after{left:9px;right:9px}
	body.sdi .sdi-primary .sdi-menu>li.menu-item-has-children:not(.sdi-macct)>a::after{right:23px}
	body.sdi .sdi-primary .sdi-menu>li.sdi-macct{margin-left:4px}
	body.sdi .sdi-primary .sdi-menu>li.sdi-macct>a{padding:9px 13px}
	body.sdi .sdi-nav__cta{padding-left:18px;padding-right:18px}
}
/* top bar slides away once the page is scrolled (nav-refine.js sets the offset) */
.sdi-header{transition:top .5s var(--sdi-ease2,ease)}
/* soft veil over the page while a menu panel is open */
.sdi-header::before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(42,6,18,.32);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s ease,visibility .5s}
@media (min-width:1181px){.sdi-header:has(.sdi-primary .sdi-menu>li.menu-item-has-children:is(:hover,:focus-within))::before{opacity:1;visibility:visible}}

/* logged-in admins: keep the WordPress toolbar on one line so it never wraps over the top bar */
@media screen and (min-width:783px){
	#wpadminbar .quicklinks{display:flex;justify-content:space-between}
	#wpadminbar #wp-admin-bar-root-default{display:flex;flex:0 1 auto;min-width:0;overflow-x:clip}
	#wpadminbar #wp-admin-bar-root-default>li{flex:none}
	#wpadminbar #wp-admin-bar-top-secondary{flex:none}
}

/* ================= Mega menu ================= */
body.sdi .sdi-primary .sdi-menu>li.sdi-mega>.sub-menu,
body.sdi .sdi-primary .sdi-menu>li.sdi-mdrop>.sub-menu{background:#FDFAF5;border:1px solid rgba(230,216,195,.9);border-top:1px solid var(--sdi-gold);border-radius:0 0 20px 20px;box-shadow:0 36px 70px -36px rgba(62,10,27,.32)}
body.sdi .sdi-primary .sdi-menu>li.sdi-mega:not(.sdi-mega--sm)>.sub-menu{grid-template-columns:1.2fr 1.7fr 1fr 1.15fr}
body.sdi .sdi-primary .sdi-mega>.sub-menu>li.sdi-mall{background:#F5EDE1}
/* Signature programs: the two flagship programs carry more weight */
body.sdi .sdi-primary .sdi-mcol--sig>.sub-menu a{padding:8px 0 12px}
body.sdi .sdi-primary .sdi-mcol--sig .sdi-mtitle{font:600 22px/1.15 var(--sdi-serif);letter-spacing:.005em;color:var(--sdi-maroon)}
body.sdi .sdi-primary .sdi-mcol--sig .sdi-mdesc{margin-top:5px;font-size:13px}
/* Free Resources: room for descriptions, footer strip to the panel edge */
body.sdi .sdi-primary .sdi-menu>li.sdi-mega.sdi-mega--sm>.sub-menu{width:600px;padding-bottom:0}
body.sdi .sdi-primary .sdi-mega--sm>.sub-menu>li.sdi-mall{margin:0 -30px}
body.sdi .sdi-primary .sdi-mega--sm>.sub-menu>li.sdi-mall>a,
body.sdi .sdi-primary .sdi-mega--sm>.sub-menu>li.sdi-mall>a:hover{padding:15px 30px}
/* About: same family as the two panels */
body.sdi .sdi-primary .sdi-menu>li.sdi-mdrop>.sub-menu{min-width:0;width:320px;padding:12px 10px}
body.sdi .sdi-primary .sdi-mdrop>.sub-menu a{padding:11px 16px;border-radius:12px;font-size:15px;line-height:1.35;color:var(--sdi-ink);white-space:normal;background:none;transition:background-color .4s,color .4s}
body.sdi .sdi-primary .sdi-mdrop>.sub-menu a:hover,
body.sdi .sdi-primary .sdi-mdrop>.sub-menu a:focus-visible{padding-left:16px;background:#F5EDE1;color:var(--sdi-maroon)}
/* mega panels: same beige hover pill as the About menu (text stays aligned with the column headings) */
body.sdi .sdi-primary .sdi-mega .sub-menu .sub-menu a{margin:0 -12px;padding:8px 12px;border-radius:12px;transition:background-color .4s,color .4s}
body.sdi .sdi-primary .sdi-mega .sub-menu .sub-menu a:hover,
body.sdi .sdi-primary .sdi-mega .sub-menu .sub-menu a:focus-visible{padding-left:12px;background:#F5EDE1;color:var(--sdi-maroon);transform:none}
body.sdi .sdi-primary .sdi-mcol--sig>.sub-menu a{padding:10px 12px 12px}
body.sdi .sdi-primary .sdi-mcol--2>.sub-menu{padding:0 12px;margin:0 -12px}
/* columns arrive one after another */
@media (min-width:1181px) and (prefers-reduced-motion:no-preference){
	.sdi-primary .sdi-mega>.sub-menu>li,.sdi-primary .sdi-mdrop>.sub-menu>li{opacity:0;transform:translateY(10px);transition:opacity .2s ease,transform .2s ease}
	.sdi-primary .sdi-mega:is(:hover,:focus-within)>.sub-menu>li,.sdi-primary .sdi-mdrop:is(:hover,:focus-within)>.sub-menu>li{opacity:1;transform:none;transition:opacity .55s ease,transform .75s var(--sdi-ease2,ease)}
	.sdi-primary :is(.sdi-mega,.sdi-mdrop):is(:hover,:focus-within)>.sub-menu>li:nth-child(1){transition-delay:.06s}
	.sdi-primary :is(.sdi-mega,.sdi-mdrop):is(:hover,:focus-within)>.sub-menu>li:nth-child(2){transition-delay:.11s}
	.sdi-primary :is(.sdi-mega,.sdi-mdrop):is(:hover,:focus-within)>.sub-menu>li:nth-child(3){transition-delay:.16s}
	.sdi-primary :is(.sdi-mega,.sdi-mdrop):is(:hover,:focus-within)>.sub-menu>li:nth-child(4){transition-delay:.21s}
	.sdi-primary :is(.sdi-mega,.sdi-mdrop):is(:hover,:focus-within)>.sub-menu>li:nth-child(n+5){transition-delay:.26s}
}

/* ================= Mobile drawer ================= */
.sdi-drawer{overflow:hidden}
/* tonal logo mark in the quiet lower half */
.sdi-drawer::after{content:"";position:absolute;right:-80px;bottom:120px;width:270px;aspect-ratio:1;transform:rotate(-8deg);background:rgba(245,203,216,.045);-webkit-mask:url(img/logo-watermark.svg) center/contain no-repeat;mask:url(img/logo-watermark.svg) center/contain no-repeat;pointer-events:none}
body.sdi .sdi-drawer__panel{padding-bottom:0}
body.sdi .sdi-mm-head,body.sdi .sdi-drawer__menu>li{border-bottom-color:rgba(216,190,134,.16)}
body.sdi .sdi-drawer__menu{flex:0 0 auto;margin-bottom:22px}
body.sdi .sdi-drawer__menu>li>a{padding:15px 64px 15px 24px;font:500 25px/1.2 var(--sdi-serif);letter-spacing:.005em}
/* plus that turns into a minus */
body.sdi .sdi-mm-toggle{top:11px;background:transparent;border-color:rgba(216,190,134,.35);color:var(--sdi-gold-light)}
body.sdi .sdi-mm-toggle svg{display:none}
body.sdi .sdi-mm-toggle::before,body.sdi .sdi-mm-toggle::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.5px;margin:-.75px 0 0 -6px;border-radius:2px;background:currentColor;transition:transform .5s var(--sdi-ease2,ease)}
body.sdi .sdi-mm-toggle::after{transform:rotate(90deg)}
body.sdi .is-open>.sdi-mm-toggle::after{transform:rotate(0deg)}
body.sdi .is-open>.sdi-mm-toggle{color:var(--sdi-maroon-deep)}
/* login + socials sit low; Book a Session stays pinned in thumb reach */
body.sdi .sdi-mm-foot{order:3;margin:auto 20px 0;padding:18px 0 6px;border-top-color:rgba(216,190,134,.16)}
body.sdi .sdi-mm-foot{flex-wrap:nowrap}
body.sdi .sdi-drawer .sdi-mm-foot .sdi-socials{gap:6px;flex:none}
body.sdi .sdi-drawer .sdi-mm-foot .sdi-socials a{width:32px;height:32px}
body.sdi .sdi-mm-actions{order:4;position:sticky;bottom:0;z-index:2;padding:22px 20px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(42,6,18,0),#2A0612 36%)}
/* items rise in one after another */
@keyframes sdi-mm-rise{from{opacity:0;transform:translateY(14px)}}
@media (prefers-reduced-motion:no-preference){
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li,.sdi-drawer:not([hidden]) .sdi-mm-foot{animation:sdi-mm-rise .7s var(--sdi-ease2,ease) both}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(1){animation-delay:.14s}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(2){animation-delay:.19s}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(3){animation-delay:.24s}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(4){animation-delay:.29s}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(5){animation-delay:.34s}
	.sdi-drawer:not([hidden]) .sdi-drawer__menu>li:nth-child(n+6){animation-delay:.39s}
	.sdi-drawer:not([hidden]) .sdi-mm-foot{animation-delay:.46s}
}

/* ================= Free-tool cards ("More free self-discovery tools") =================
   Equal cards: every row the same height, full padding on all sides (a link rule in post content was
   cutting the bottom padding to 1px), text centred against the number tile and arrow. */
body.sdi .sdi-tools{grid-auto-rows:1fr;gap:16px}
body.sdi a.sdi-tool,body.sdi .entry-content a.sdi-tool{box-sizing:border-box;height:100%;min-height:104px;padding:20px 20px 20px 22px!important}
body.sdi .sdi-tool span:not(.sdi-num){justify-content:center;min-width:0}
