/* xGrowth primary navigation: dropdown composition refinement (2026-11-20).
   Additive override for navigation.css v3. Link it immediately after navigation.css.
   Scope: nav#xgn only. No markup, script, header height, logo, theme control or CTA changes.
   Every selector here is one class more specific than the navigation.css rule it refines, so the result does not
   depend on stylesheet order. No rule here changes `display`, so the open/close logic in navigation.css and
   navigation.js (data-open, .xgn-ready, the no-script hover/focus fallback) is untouched. */

.xgn{
  --xgn-panel-shadow:0 18px 36px -18px rgba(14,15,12,.32),0 2px 6px -2px rgba(14,15,12,.08);
  --xgn-hover:var(--line,rgba(14,15,12,.07))
}
[data-theme=dark] .xgn{
  --xgn-panel-shadow:0 18px 40px -16px rgba(0,0,0,.65),0 2px 6px -2px rgba(0,0,0,.4);
  --xgn-hover:rgba(240,240,237,.07)
}

/* ---------- Desktop (901px and up): one anchored panel per item ---------- */
@media (min-width:901px){
  /* Larger hit area for the small chevron without moving any item: the visible 28px circle stays, and a
     transparent overlay grows the pointer target to 34px wide by 40px tall.
     v2: the overlay never extends toward the parent link (left edge stays at the button's own edge), so the
     2px label-to-button gap keeps the link and chevron targets separate. It extends 6px up, down and to the
     right only; the right side faces the 20px item gap (14px at 901-1100px), and the bottom stays inside the
     10px drop to the panel, so it overlaps no other control. */
  .nav .xgn .xgn-item > .xgn-more{position:relative}
  .nav .xgn .xgn-item > .xgn-more::after{content:"";position:absolute;top:-6px;right:-6px;bottom:-6px;left:0}

  /* Panel: aligned so its item text sits exactly under the parent label
     (1px border + 6px panel padding + 14px link padding = 21px), with a short, even drop from the trigger. */
  .nav .xgn .xgn-panel .xgn-sub{
    top:calc(100% + 10px);left:-21px;min-width:264px;padding:6px;gap:2px;
    border-radius:14px;box-shadow:var(--xgn-panel-shadow)
  }
  /* A transparent strip over the 10px drop keeps pointer travel from the trigger into the panel continuous. */
  .nav .xgn .xgn-panel .xgn-sub::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:12px}

  /* Items: full-width 40px rows, one alignment edge, clear hover and current states. */
  .nav .xgn .xgn-sub .xgn-sublink{
    display:flex;align-items:center;min-height:40px;padding:9px 14px;border-radius:9px;
    color:var(--xgn-mute);font-weight:600;line-height:1.25
  }
  .nav .xgn .xgn-sub .xgn-sublink:hover{background:var(--xgn-hover);color:var(--xgn-ink)}
  .nav .xgn .xgn-sub .xgn-sublink[aria-current]{background:var(--xgn-hover);color:var(--xgn-ink);box-shadow:inset 2px 0 0 var(--xgn-acc)}
  .nav .xgn .xgn-sub .xgn-sublink:focus-visible{outline-offset:-2px}

  /* Hierarchy: the section overview link (All services, Resource Hub) leads the panel and is divided from its pages. */
  .nav .xgn .xgn-sub > .xgn-dup{margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid var(--xgn-soft)}
  .nav .xgn .xgn-sub > .xgn-dup > .xgn-sublink{color:var(--xgn-ink);font-weight:700}
}

/* ---------- Phone and tablet (900px and below): grouped child links ---------- */
@media (max-width:900px){
  /* Child pages read as one indented group under their section link, with an even 44px touch row. */
  .nav .xgn .xgn-panel .xgn-sub{margin:0 0 6px 2px;padding:0 0 4px 16px;border-left:2px solid var(--xgn-soft)}
  .nav .xgn .xgn-sub .xgn-sublink{min-height:44px;padding:0;color:var(--xgn-mute);font-weight:600;line-height:1.3}
  .nav .xgn .xgn-sub .xgn-sublink:hover,.nav .xgn .xgn-sub .xgn-sublink[aria-current]{color:var(--xgn-ink)}
}

@media (forced-colors:active){
  .nav .xgn .xgn-panel .xgn-sub{box-shadow:none}
  .nav .xgn .xgn-sub .xgn-sublink[aria-current]{box-shadow:none;outline:1px solid CanvasText}
}
