/* youngethicalintelligence.com navigation (Phase 2, 2026-12-05).
   Desktop from 1181px (the production search add-on's breakpoint): seven header items with disclosure panels. At 1180px and below: "Talk to us" stays in the
   bar and the full menu opens as one panel. Brand tokens only; focus keeps the 2px sand outline. */
.yn{display:none}
.ym-btn{display:inline-flex}
@media (min-width:1181px){
  .yn{display:block}
  .ym-btn,.t2u,#mobile-menu{display:none !important}
}
@media (max-width:1180px){
  .t2u{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-left:auto;margin-right:6px;
       padding:0 12px;border:1px solid #C9AE84;border-radius:4px;color:#F5F2EC;font-size:13px;font-weight:500;white-space:nowrap}
  .t2u:hover{background:rgba(201,174,132,.12)}
  .t2u,.ym-btn{flex-shrink:0}
}
.yn-list{display:flex;align-items:center;gap:1.6rem;margin:0;padding:0;list-style:none}
.yn-item{position:relative;display:flex;align-items:center}
.yn-top{font-size:.875rem;color:var(--color-silver,#BFCAD6);transition:color .3s;padding:.5rem 0}
.yn-top:hover,.yn-top[aria-current="page"]{color:#F5F2EC}
.yn-top[aria-current="page"]{box-shadow:inset 0 -1px 0 #C9AE84}
.yn-toggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:32px;margin-left:2px;
  color:var(--color-steel,#9AA9BB);background:none;border:0;cursor:pointer;border-radius:3px}
.yn-toggle:hover{color:#F5F2EC}
.yn-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.yn-toggle svg{transition:transform .2s}
.yn-cta{display:inline-flex;align-items:center;min-height:40px;padding:0 1.15rem;border:1px solid #C9AE84;border-radius:4px;
  color:#F5F2EC;font-size:.875rem;transition:background .3s}
.yn-cta:hover{background:rgba(201,174,132,.12)}
.yn-panel{position:absolute;top:calc(100% + 14px);left:-1rem;z-index:60;width:340px;padding:.75rem;
  background:#101720;border:1px solid #2F3B4C;border-radius:6px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.yn-panel--wide{width:min(760px,calc(100vw - 4rem));left:-1rem}
.yn-grid{display:grid;gap:.15rem;margin:0;padding:0;list-style:none}
.yn-panel--wide .yn-grid{grid-template-columns:1fr 1fr}
.yn-pl{display:block;padding:.7rem .8rem;border-radius:4px}
.yn-pl:hover,.yn-pl:focus-visible{background:#16202D}
.yn-pl b{display:block;font-weight:500;font-size:.9rem;color:#F5F2EC}
.yn-pl span{display:block;margin-top:.2rem;font-size:.8rem;line-height:1.45;color:var(--color-steel,#9AA9BB)}
.yn-foot{margin:.5rem .8rem .2rem;padding-top:.6rem;border-top:1px solid #2A3545;font-size:.85rem}
.yn-foot a{color:#C9AE84}
/* mobile panel */
.ym{max-height:calc(100vh - 5rem);overflow-y:auto}
.ym ul{list-style:none;margin:0}
.ym-row{border-bottom:1px solid #2A3545}
.ym-link{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:.6rem 0;
  font-family:var(--font-display,serif);font-size:1.5rem;color:#F5F2EC;cursor:pointer;list-style:none}
.ym-link::-webkit-details-marker{display:none}
.ym-group[open] > summary svg{transform:rotate(180deg)}
.ym-group ul{padding:0 0 .9rem}
.ym-sub{display:flex;align-items:center;min-height:44px;padding:0 .25rem;font-size:1rem;color:var(--color-silver,#BFCAD6)}
.ym-sub:hover{color:#F5F2EC}
.ym-all{color:#C9AE84}
.ym-cta-row{padding-top:1.5rem}
.ym-cta{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:4px;background:#F5F2EC;
  color:#101720;font-size:.9rem;font-weight:500}
body header.sticky.top-0.z-50 #mobile-menu a.ym-cta{color:#101720}
@media (min-width:1181px) and (max-width:1279px){.yn-list{gap:1.1rem}}
/* Overrides for two production rules that predate this navigation (assets/yei-nav/site.css, menu-size.css):
   (1) at 1180px and below they force #mobile-menu to display:block, which would ignore its [hidden] state;
   (2) they hide any header item linking to /contact without a border, which would hide "Talk to us". */
body header.sticky #mobile-menu[hidden]{display:none !important}
body header.sticky nav[aria-label="Primary"] ul>li.yn-cta-li{display:flex !important}
@media (min-width:1181px){body header.sticky #mobile-menu{display:none !important}}
/* compact bar: keep "Talk to us", search and the menu button together on the right */
@media (max-width:1180px){.yn-bar .t2u ~ .ss-open{margin-left:0 !important}}
/* menu-size.css (production) sets nowrap and 15.4px on every primary-nav link; panel entries must wrap */
header nav[aria-label="Primary"] .yn-panel a{white-space:normal;font-size:inherit}
.yn-panel--wide .yn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Master instruction 5 Dec 2026, Pass A2-A4 */
/* A2: below 414px the two-line wordmark meets "Talk to us"; keep the U symbol, keep the name for screen readers */
@media (max-width:413.98px){header.sticky .yn-bar>a.group{min-width:44px;min-height:44px}.yn-bar>a.group>span.flex-col{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}}
/* A3: 44x44 tap area for the dropdown chevrons, glyph and footprint unchanged */
.yn-toggle{min-width:44px;min-height:44px;margin:-6px -10px;display:inline-flex;align-items:center;justify-content:center}
/* A4: the dropdown panels scroll inside themselves when the window is short; the page behind stays put */
.yn-panel{max-height:calc(100vh - 6rem);max-height:calc(100dvh - 6rem);overflow-y:auto;overscroll-behavior:contain}
