/* N2 header (NAV_V2, js/nav-v2.js). Styles only the n2-* classes, so with the flag off nothing here applies.
   Breakpoints: 1280 (the shell swaps the inline nav for its Menu button), 900 (mega columns), 700 (drawer), 560. */
.n2-dd{position:relative; display:inline-flex;}
.n2-btn{display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; font:inherit; cursor:pointer; border-radius:999px; color:inherit;}
.wp-head .wp-nav .n2-btn{height:38px; box-sizing:border-box; padding:0 13px; font-size:15px !important; font-weight:500 !important; line-height:1; color:#02373D !important; white-space:nowrap;}
.wp-head .wp-nav .n2-btn:hover, .wp-head .wp-nav .n2-btn[aria-expanded="true"]{background:rgba(0,61,68,.06);}
.wp-head .wp-nav .n2-btn.on{background:rgba(193,250,0,.4); color:#003D44 !important;}
.n2-btn:focus-visible, .n2-panel a:focus-visible, .n2-close:focus-visible{outline:2px solid #48822A; outline-offset:2px;}
.n2-btn svg{transition:transform 120ms cubic-bezier(.2,.6,.2,1);}
.n2-btn[aria-expanded="true"] svg{transform:rotate(180deg);}

.n2-panel{position:absolute; top:calc(100% + 8px); inset-inline-start:0; z-index:80; box-sizing:border-box; background:#fff; border:1px solid #E4E9EA; border-radius:12px;
  box-shadow:0 18px 44px rgba(2,55,61,.14); padding:10px; min-width:220px; max-width:calc(100vw - 32px); text-align:start; white-space:normal;}
.n2-panel[hidden]{display:none;}
.n2-dd .n2-panel a{display:flex; align-items:center; min-height:36px; box-sizing:border-box; padding:6px 10px; border-radius:8px; color:#003D44 !important; font-size:14.5px; font-weight:500 !important; line-height:1.35; text-decoration:none; white-space:normal;}
.n2-dd .n2-panel a:hover{background:#F7FBEB; text-decoration:none;}
.n2-dd .n2-panel a.on{background:#F7FBEB; font-weight:700 !important;}
.n2-list{display:flex; flex-direction:column; gap:2px;}
.n2-head{display:flex; align-items:center; gap:8px; padding:2px 10px 4px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#02373D;}
html[dir="rtl"] .n2-head{letter-spacing:0;}
.n2-head i{width:8px; height:8px; border-radius:50%; flex:none;}
.n2-none{display:block; padding:5px 10px; font-size:13px; color:rgba(2,55,61,.68);}
.n2-grp{padding:8px 0; min-width:0;}
.n2-cols{display:grid; gap:0 16px;}
.n2-cols-2{grid-template-columns:repeat(2, minmax(200px, 1fr)); width:max-content; max-width:100%;}
.n2-mega .n2-panel{width:min(880px, calc(100vw - 32px));}
.n2-cols-4{grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));}
.n2-foot{border-top:1px solid #E4E9EA; margin-top:6px; padding-top:6px;}
.n2-close{display:none;}

/* Below 1280px the shell shows its Menu button; the same items stack as sections inside its panel. */
@media (max-width:1279px){
  .wp-mpanel .n2-dd{display:block;}
  .wp-mpanel .n2-btn{display:flex; justify-content:space-between; width:100%; box-sizing:border-box; min-height:44px; padding:10px 12px; border-radius:9px; font-size:15px !important; font-weight:500 !important; color:#02373D !important; text-align:start;}
  .wp-mpanel .n2-btn:hover{background:#F5F7F7;}
  .wp-mpanel .n2-btn.on{background:rgba(193,250,0,.4);}
  .wp-mpanel > a{min-height:44px;}
  .wp-mpanel .n2-panel, .wp-mpanel .n2-mega .n2-panel{position:static; width:auto; min-width:0; max-width:none; border:0; box-shadow:none; border-radius:0; padding:0 0 6px; margin-inline-start:12px; border-inline-start:2px solid #E4E9EA; transform:none !important;}
  .wp-mpanel .n2-dd .n2-panel a{min-height:44px; padding:8px 12px;}
  .wp-mpanel .n2-cols, .wp-mpanel .n2-cols-2, .wp-mpanel .n2-cols-4{display:block; width:auto;}
  .wp-mpanel .n2-grp{padding:6px 0;}
  .wp-mpanel .n2-grp + .n2-grp{border-top:1px solid #E4E9EA;}
}
@media (max-width:900px){
  .n2-cols-4{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
/* Phones and small tablets: the Menu panel is a drawer from the start edge, full height. */
@media (max-width:700px){
  .n2-on .wp-mpanel{position:fixed; top:0; bottom:0; inset-inline-start:0; inset-inline-end:auto; width:min(360px, 88vw); max-height:none; border-radius:0; border-width:0; border-inline-end:1px solid #E4E9EA;
    padding:12px 12px 24px; z-index:200; transform:none !important; box-shadow:0 0 0 100vmax rgba(2,55,61,.45); overscroll-behavior:contain;}
  .n2-on .wp-mpanel[hidden]{display:none;}
  .n2-on .wp-mpanel .n2-close{display:flex; align-items:center; justify-content:center; flex:0 0 auto; align-self:flex-end; width:44px; height:44px; margin-bottom:4px; border:0; border-radius:999px; background:#F5F7F7; color:#02373D; font-size:26px; line-height:1; cursor:pointer;}
  .n2-on .wp-mpanel .n2-close:hover{background:#E4E9EA;}
}
@media (prefers-reduced-motion:reduce){ .n2-btn svg{transition:none;} }
