/* =========================================================================
   NSRF mega menu
   Built to the client menu deck, 24 Aug 2026.
   Desktop: full-bleed panels below the header bar.
   Mobile:  accordion inside Divi's existing drawer.
   ========================================================================= */

:root{
  --nsrf-mm-navy:#071050;
  --nsrf-mm-navy-70:rgba(7,16,80,.70);
  --nsrf-mm-navy-45:rgba(7,16,80,.45);
  --nsrf-mm-rule:rgba(7,16,80,.12);
  --nsrf-mm-pink:#1f3781;
  --nsrf-mm-amber:#f6ad55;
  --nsrf-mm-tint:#f5f7fb;
  --nsrf-mm-top:120px;
  --nsrf-mm-head:'Outfit','Plus Jakarta Sans',system-ui,sans-serif;
  --nsrf-mm-body:'Plus Jakarta Sans',system-ui,sans-serif;
}

/* ---------------------------------------------------------------- top bar */

ul.nsrf-mega-menu{ position:static !important; }

ul.nsrf-mega-menu > li.nsrf-mm-item{
  position:relative;
  display:flex;
  align-items:center;
  padding-right:2px;
}

/* Divi paints its own caret on any item with children. Ours is a real button. */
ul.nsrf-mega-menu > li.menu-item-has-children > a:first-child:after{ display:none !important; }
ul.nsrf-mega-menu > li > ul.sub-menu{ display:none !important; }

ul.nsrf-mega-menu > li > a.nsrf-mm-top{
  position:relative;
  font-family:var(--nsrf-mm-body);
  font-weight:600;
  letter-spacing:-.005em;
  padding-right:4px !important;
}

ul.nsrf-mega-menu > li > a.nsrf-mm-top::after{
  content:"";
  position:absolute;
  left:0; right:16px; bottom:-6px;
  height:2px;
  background:var(--nsrf-mm-pink);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .22s cubic-bezier(.2,.7,.3,1);
}

ul.nsrf-mega-menu > li.is-open > a.nsrf-mm-top::after,
ul.nsrf-mega-menu > li > a.nsrf-mm-top:hover::after,
ul.nsrf-mega-menu > li > a.nsrf-mm-top:focus-visible::after{ transform:scaleX(1); }

.nsrf-mm-toggle{
  appearance:none;
  -webkit-appearance:none;
  background:none;
  border:0;
  padding:6px 4px 6px 2px;
  margin:0;
  cursor:pointer;
  line-height:0;
  color:inherit;
  border-radius:3px;
}

.nsrf-mm-toggle:focus-visible{ outline:2px solid var(--nsrf-mm-pink); outline-offset:2px; }

.nsrf-mm-caret{
  display:inline-block;
  width:7px; height:7px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  opacity:.55;
  transition:transform .22s ease, opacity .22s ease;
}

li.is-open > .nsrf-mm-toggle .nsrf-mm-caret{
  transform:translateY(1px) rotate(-135deg);
  opacity:1;
}

/* ------------------------------------------------------------------ panel */

.nsrf-mm-panel{
  position:fixed;
  top:var(--nsrf-mm-top);
  left:0; right:0;
  z-index:9998;
  background:#fff;
  border-top:1px solid var(--nsrf-mm-rule);
  box-shadow:0 24px 48px -20px rgba(7,16,80,.28), 0 2px 6px rgba(7,16,80,.06);
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .2s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility 0s linear .22s;
  text-align:left;
}

li.is-open > .nsrf-mm-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition:opacity .2s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility 0s;
}

.nsrf-mm-panel__inner{
  max-width:1344px;
  margin:0 auto;
  padding:38px 32px 44px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:40px;
  align-items:start;
}

.nsrf-mm-panel__inner:has(.nsrf-mm-promo){
  grid-template-columns:minmax(0,1fr) 272px;
}

.nsrf-mm-cols{
  display:grid;
  gap:30px 36px;
  grid-template-columns:repeat(var(--nsrf-mm-cols,4),minmax(0,1fr));
}

.nsrf-mm-panel[data-cols="2"] .nsrf-mm-cols{
  --nsrf-mm-cols:2;
  grid-template-columns:repeat(2,minmax(0,250px));
  justify-content:start;
}
.nsrf-mm-panel[data-cols="3"] .nsrf-mm-cols{ --nsrf-mm-cols:3; }
.nsrf-mm-panel[data-cols="4"] .nsrf-mm-cols{ --nsrf-mm-cols:4; }

/* ------------------------------------------------------- groups and links */

.nsrf-mm-group{ min-width:0; }

.nsrf-mm-group__title{
  display:block;
  font-family:var(--nsrf-mm-head);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--nsrf-mm-navy-70);
  margin:0 0 12px;
  padding:0 0 10px;
  border-bottom:1px solid var(--nsrf-mm-rule);
  text-decoration:none;
  transition:color .15s ease, border-color .15s ease;
}

a.nsrf-mm-group__title:hover,
a.nsrf-mm-group__title:focus-visible{
  color:var(--nsrf-mm-pink);
  border-bottom-color:var(--nsrf-mm-pink);
}

.nsrf-mm-list{
  list-style:none;
  margin:0;
  padding:0;
}

.nsrf-mm-li{ margin:0; padding:0; }
.nsrf-mm-li::before{ content:none !important; }

a.nsrf-mm-link{
  display:flex;
  padding:6px 0 !important;
  align-items:baseline;
  gap:8px;
  padding:6px 0;
  font-family:var(--nsrf-mm-body);
  font-size:14.5px;
  line-height:1.4;
  font-weight:500;
  color:var(--nsrf-mm-navy);
  text-decoration:none;
  transition:color .15s ease, transform .15s ease;
}

a.nsrf-mm-link .nsrf-mm-link__label{
  background-image:linear-gradient(var(--nsrf-mm-pink),var(--nsrf-mm-pink));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0 1px;
  transition:background-size .22s cubic-bezier(.2,.7,.3,1);
  padding-bottom:1px;
}

a.nsrf-mm-link:hover,
a.nsrf-mm-link:focus-visible{ color:var(--nsrf-mm-pink); }
a.nsrf-mm-link:hover .nsrf-mm-link__label,
a.nsrf-mm-link:focus-visible .nsrf-mm-link__label{ background-size:100% 1px; }

a.nsrf-mm-link.is-indented{
  padding-left:12px !important;
  margin-left:2px;
  font-size:13.5px;
  color:var(--nsrf-mm-navy-70);
  border-left:1px solid var(--nsrf-mm-rule);
}

a.nsrf-mm-link.is-current{ color:var(--nsrf-mm-pink); font-weight:700; }

.nsrf-mm-tag{
  flex:none;
  font-family:var(--nsrf-mm-head);
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--nsrf-mm-navy-70);
  border:1px solid var(--nsrf-mm-rule);
  border-radius:2px;
  padding:1px 4px;
  line-height:1.5;
}

/* Divi hides any <ul> nested inside a menu item, since that is how it drives
   its own dropdowns. The panel lists are not dropdowns, so opt them out. */

ul.nsrf-mega-menu .nsrf-mm-panel ul,
.et_mobile_menu .nsrf-mm-panel ul{
  position:static !important;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  left:auto !important;
  top:auto !important;
  padding:0 !important;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  transform:none !important;
  transition:none !important;
}

ul.nsrf-mega-menu .nsrf-mm-panel li,
.et_mobile_menu .nsrf-mm-panel li{
  position:static !important;
  display:block !important;
  float:none !important;
  clear:none !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  visibility:visible !important;
  opacity:1 !important;
  border:0;
  background:none;
  line-height:inherit;
}

ul.nsrf-mega-menu .nsrf-mm-panel a,
.et_mobile_menu .nsrf-mm-panel a{
  visibility:visible !important;
  opacity:1 !important;
  width:auto !important;
}

/* ----------------------------------------------------------------- search */

.nsrf-mm-search{
  display:flex;
  align-items:stretch;
  margin-top:14px;
  border:1px solid var(--nsrf-mm-rule);
  border-radius:4px;
  overflow:hidden;
  background:var(--nsrf-mm-tint);
  transition:border-color .15s ease, box-shadow .15s ease;
}

.nsrf-mm-search:focus-within{
  border-color:var(--nsrf-mm-pink);
  box-shadow:0 0 0 3px rgba(196,46,126,.12);
}

.nsrf-mm-search input[type="search"]{
  flex:1 1 auto;
  min-width:0;
  border:0;
  background:transparent;
  padding:8px 10px;
  font-family:var(--nsrf-mm-body);
  font-size:13px;
  color:var(--nsrf-mm-navy);
}

.nsrf-mm-search input[type="search"]:focus{ outline:none; }
.nsrf-mm-search input[type="search"]::placeholder{ color:var(--nsrf-mm-navy-70); }

.nsrf-mm-search button{
  flex:none;
  border:0;
  background:var(--nsrf-mm-navy);
  color:#fff;
  padding:0 11px;
  cursor:pointer;
  display:flex;
  align-items:center;
  transition:background .15s ease;
}

.nsrf-mm-search button:hover{ background:var(--nsrf-mm-pink); }
.nsrf-mm-search button:focus-visible{ outline:2px solid var(--nsrf-mm-pink); outline-offset:-2px; }
.nsrf-mm-search svg{ width:15px; height:15px; fill:currentColor; }

/* -------------------------------------------------- promo / contact card */

.nsrf-mm-promo{
  background:var(--nsrf-mm-tint);
  border:1px solid var(--nsrf-mm-rule);
  border-radius:6px;
  padding:20px 20px 8px;
  align-self:start;
}

.nsrf-mm-promo__title{
  font-family:var(--nsrf-mm-head);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--nsrf-mm-pink);
  margin:0 0 14px;
}

a.nsrf-mm-promo__item{
  display:block;
  position:relative;
  padding:0 22px 16px 0;
  margin-bottom:14px;
  border-bottom:1px solid var(--nsrf-mm-rule);
  text-decoration:none;
  color:var(--nsrf-mm-navy);
}

a.nsrf-mm-promo__item:last-of-type{ border-bottom:0; }

.nsrf-mm-promo__label{
  display:block;
  font-family:var(--nsrf-mm-head);
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  transition:color .15s ease;
}

.nsrf-mm-promo__desc{
  display:block;
  margin-top:4px;
  font-family:var(--nsrf-mm-body);
  font-size:12.5px;
  line-height:1.45;
  color:var(--nsrf-mm-navy-70);
}

.nsrf-mm-promo__arrow{
  position:absolute;
  right:0; top:0;
  color:var(--nsrf-mm-navy-45);
  transition:transform .2s cubic-bezier(.2,.7,.3,1), color .15s ease;
}

a.nsrf-mm-promo__item:hover .nsrf-mm-promo__label,
a.nsrf-mm-promo__item:focus-visible .nsrf-mm-promo__label{ color:var(--nsrf-mm-pink); }
a.nsrf-mm-promo__item:hover .nsrf-mm-promo__arrow,
a.nsrf-mm-promo__item:focus-visible .nsrf-mm-promo__arrow{ transform:translateX(4px); color:var(--nsrf-mm-pink); }

.nsrf-mm-contact__addr{
  font-family:var(--nsrf-mm-body);
  font-size:13px;
  line-height:1.5;
  color:var(--nsrf-mm-navy-70);
  margin:0 0 14px;
}

a.nsrf-mm-contact__row{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:7px 0;
  border-top:1px solid var(--nsrf-mm-rule);
  text-decoration:none;
  font-family:var(--nsrf-mm-body);
  font-size:13.5px;
  color:var(--nsrf-mm-navy);
}

.nsrf-mm-contact__k{
  flex:none;
  width:46px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--nsrf-mm-navy-70);
}

a.nsrf-mm-contact__row:hover .nsrf-mm-contact__v,
a.nsrf-mm-contact__row:focus-visible .nsrf-mm-contact__v{ color:var(--nsrf-mm-pink); }

/* --------------------------------------------------------------- shade

   The Divi header builds several nested stacking contexts, so an overlay
   parked on <body> paints above the panel however high its z-index. Hanging
   the shade off the bottom edge of the panel keeps both in one context.
   ---------------------------------------------------------------------- */

.nsrf-mm-panel::before{
  content:"";
  position:absolute;
  top:100%;
  left:0; right:0;
  height:100vh;
  background:rgba(7,16,80,.26);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

li.is-open > .nsrf-mm-panel::before{
  opacity:1;
  pointer-events:auto;
}

/* -------------------------------------------- placeholder pages (stubs) */

.nsrf-placeholder{
  border:1px solid var(--nsrf-mm-rule);
  border-left:3px solid var(--nsrf-mm-amber);
  background:var(--nsrf-mm-tint);
  border-radius:4px;
  padding:22px 26px;
  max-width:640px;
  margin:8px 0 28px;
}

.nsrf-placeholder__eyebrow{
  font-family:var(--nsrf-mm-head);
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#9a6212;
  margin:0 0 8px;
}

.nsrf-placeholder__body{
  font-family:var(--nsrf-mm-body);
  font-size:15px;
  line-height:1.6;
  color:var(--nsrf-mm-navy);
  margin:0;
}

a.nsrf-placeholder__back{
  display:inline-block;
  margin-top:14px;
  font-family:var(--nsrf-mm-body);
  font-size:14px;
  font-weight:600;
  color:var(--nsrf-mm-pink);
  text-decoration:none;
}

a.nsrf-placeholder__back:hover{ text-decoration:underline; }

/* ------------------------------------------------------ narrower desktop */

@media (max-width:1180px){
  .nsrf-mm-panel__inner{ padding:32px 24px 36px; gap:28px; }
  .nsrf-mm-panel__inner:has(.nsrf-mm-promo){ grid-template-columns:minmax(0,1fr) 230px; }
  .nsrf-mm-cols{ gap:26px 26px; }
}

@media (max-width:1024px){
  .nsrf-mm-panel[data-cols="4"] .nsrf-mm-cols{ --nsrf-mm-cols:2; }
}

/* -------------------------------------------------------- mobile drawer

   Below 980px Divi swaps to its own drawer and clones the list into
   .et_mobile_menu. The panels come with it, so they are restyled here as
   plain accordions rather than floating layers.
   ---------------------------------------------------------------------- */

@media (max-width:980px){

  .nsrf-mm-panel::before{ display:none; }

  ul.nsrf-mega-menu > li.nsrf-mm-item,
  .et_mobile_menu li.nsrf-mm-item{
    display:block;
    position:relative;
    padding-right:0;
  }

  .et_mobile_menu li.nsrf-mm-item > a.nsrf-mm-top{
    display:block;
    padding-right:52px !important;
  }

  .nsrf-mm-toggle{
    position:absolute;
    top:0; right:0;
    width:48px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-left:1px solid var(--nsrf-mm-rule);
  }

  .nsrf-mm-caret{ width:8px; height:8px; opacity:.7; }

  .nsrf-mm-panel{
    position:static;
    box-shadow:none;
    border-top:0;
    background:var(--nsrf-mm-tint);
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    transition:none;
  }

  li.is-open > .nsrf-mm-panel{ display:block; }

  .nsrf-mm-panel__inner{
    display:block;
    padding:6px 16px 18px;
  }

  .nsrf-mm-cols{ display:block; }

  .nsrf-mm-group{ margin-bottom:18px; }

  .nsrf-mm-group__title{ margin-bottom:8px; padding-bottom:7px; }

  a.nsrf-mm-link{ padding:7px 0; font-size:15px; }

  .nsrf-mm-promo{ margin-top:4px; padding:16px 16px 6px; }

  .nsrf-mm-search{ margin-bottom:4px; }
}

/* --------------------------------------------------------- housekeeping */

@media (prefers-reduced-motion:reduce){
  .nsrf-mm-panel,
  .nsrf-mm-caret,
  a.nsrf-mm-link,
  a.nsrf-mm-link .nsrf-mm-link__label,
  .nsrf-mm-promo__arrow,
  ul.nsrf-mega-menu > li > a.nsrf-mm-top::after{
    transition-duration:.01ms !important;
  }
}

@media print{
  .nsrf-mm-panel,
  .nsrf-mm-toggle{ display:none !important; }
}

/* ------------------------------------------------------ governance docs */

.nsrf-govdocs{ margin:34px 0 8px; }

.nsrf-govdocs__list{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  border-top:1px solid var(--nsrf-mm-rule);
  max-width:660px;
}

.nsrf-govdocs__item{ margin:0; padding:0; border-bottom:1px solid var(--nsrf-mm-rule); }
.nsrf-govdocs__item::before{ content:none !important; }
.nsrf-govdocs__item:target{ background:rgba(246,173,85,.16); }

.nsrf-govdocs__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 4px;
  font-family:var(--nsrf-mm-body);
  font-size:15.5px;
  font-weight:500;
  color:var(--nsrf-mm-navy);
  text-decoration:none;
  transition:color .15s ease, padding-left .15s ease;
}

a.nsrf-govdocs__link:hover,
a.nsrf-govdocs__link:focus-visible{ color:var(--nsrf-mm-pink); padding-left:8px; }
.nsrf-govdocs__link.is-pending{ color:var(--nsrf-mm-navy-70); }

.nsrf-govdocs__type{
  flex:none;
  font-family:var(--nsrf-mm-head);
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--nsrf-mm-navy);
  background:var(--nsrf-mm-tint);
  border:1px solid var(--nsrf-mm-rule);
  border-radius:2px;
  padding:3px 7px;
}

.nsrf-govdocs__type.is-pending{
  color:#9a6212;
  background:rgba(246,173,85,.16);
  border-color:rgba(246,173,85,.5);
}

/* -------------------------------------------------------- mobile drawer

   Divi hangs its drawer off the burger at roughly half the screen width,
   which is far too tight for panel content. Make it a full-width sheet
   under the header bar instead, and hold the panel typography down against
   Divi's larger mobile menu sizes.
   ---------------------------------------------------------------------- */

@media (max-width:980px){

  .et-l--header .et_pb_menu .et_mobile_menu{
    position:fixed !important;
    top:var(--nsrf-mm-top) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    max-height:calc(100vh - var(--nsrf-mm-top));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    border-top:1px solid var(--nsrf-mm-rule);
    box-shadow:0 20px 40px -18px rgba(7,16,80,.3);
  }

  .et_mobile_menu .nsrf-mm-group__title{
    font-size:11px !important;
    line-height:1.35 !important;
    font-weight:700 !important;
    letter-spacing:.11em !important;
    padding:0 0 8px !important;
    margin:0 0 6px !important;
    border-bottom:1px solid var(--nsrf-mm-rule) !important;
  }

  .et_mobile_menu a.nsrf-mm-link{
    font-size:15px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
    padding:9px 0 !important;
    border-bottom:0 !important;
  }

  .et_mobile_menu .nsrf-mm-li + .nsrf-mm-li > a.nsrf-mm-link{
    border-top:1px solid rgba(7,16,80,.07) !important;
  }

  .et_mobile_menu a.nsrf-mm-link.is-indented{
    padding-left:12px !important;
    font-size:14px !important;
  }

  .et_mobile_menu .nsrf-mm-promo__label{ font-size:15px !important; }
  .et_mobile_menu .nsrf-mm-promo__desc{ font-size:12.5px !important; }
  .et_mobile_menu .nsrf-mm-promo__title{ font-size:11px !important; }
  .et_mobile_menu .nsrf-mm-contact__addr{ font-size:13px !important; }
  .et_mobile_menu a.nsrf-mm-contact__row{ font-size:13.5px !important; border-bottom:0 !important; }

  /* Divi underlines every drawer link; the panel supplies its own rhythm. */
  .et_mobile_menu .nsrf-mm-panel a{ border-bottom:0 !important; }

  .et_mobile_menu li.nsrf-mm-item > a.nsrf-mm-top{
    font-size:16px !important;
    font-weight:600 !important;
  }
}

/* ------------------------------------------------ drawer CTA and header

   Below the drawer breakpoint the Support Our Work button sat beside the
   burger at nearly the width of the logo, and wrapped onto two lines. It is
   hidden there and rebuilt as the first row of the drawer instead, where it
   reads as a destination rather than crowding the masthead.
   -------------------------------------------------------------------- */

@media (max-width:980px){

  .et-l--header .et_pb_button_module_wrapper{ display:none !important; }

  .et_mobile_menu li.nsrf-mm-drawer-cta{
    margin:0 !important;
    padding:10px 16px !important;
    border-bottom:1px solid var(--nsrf-mm-rule) !important;
    background:#fff;
  }

  .et_mobile_menu li.nsrf-mm-drawer-cta > a{
    display:block !important;
    padding:12px 16px !important;
    border:0 !important;
    border-radius:5px;
    background:var(--nsrf-mm-navy);
    color:#fff !important;
    font-family:var(--nsrf-mm-head);
    font-size:15px !important;
    font-weight:600 !important;
    text-align:center;
    text-decoration:none !important;
  }

  .et_mobile_menu li.nsrf-mm-drawer-cta > a:hover,
  .et_mobile_menu li.nsrf-mm-drawer-cta > a:focus-visible{
    background:var(--nsrf-mm-pink);
    color:#fff !important;
  }

  /* Bigger tap target on the disclosure, and a clearer top-level row. */
  .et_mobile_menu li.nsrf-mm-item > a.nsrf-mm-top{
    padding-top:13px !important;
    padding-bottom:13px !important;
  }

  .nsrf-mm-toggle{ width:56px; height:50px; }

  /* Polylang renders its switcher as a parent item wrapping a single child,
     which in the drawer reads as two identical rows. Show one. */
  .et_mobile_menu li.pll-parent-menu-item > ul.sub-menu{ display:none !important; }
}

/* --------------------------------------------------------- 31 Aug 2026
   Closed panels must not hit-test. Panel links are forced
   visibility:visible (at opacity:0) to beat Divi sub-menu hiding, so every
   CLOSED fixed-position panel was intercepting the open panel hovers and
   clicks at the same coordinates (e.g. clicking "Research Clusters" hit the
   Contact panel invisible "Find Help and Supports"). */
@media (min-width:981px){
  .nsrf-mm-panel{ pointer-events:none; }
  li.is-open > .nsrf-mm-panel{ pointer-events:auto; }
}

/* A site-wide link-hover bar (a::after, 2px purple) doubles up with the
   panel links own pink underline — suppress it inside panels. */
a.nsrf-mm-link::after,
a.nsrf-mm-group__title::after{ display:none !important; }

/* 1 Sep 2026: the governance list now renders inside the Divi content column,
   where Divi list styles (disc, 1em indent, item padding) outrank ours. */
.et_pb_column .nsrf-govdocs__list,
.et_pb_column .nsrf-govdocs__item{ list-style:none !important; padding-left:0 !important; margin-left:0 !important; }
.et_pb_column .nsrf-govdocs__item{ padding-bottom:0 !important; }
.nsrf-govdocs{ margin-top:36px; }

/* ------------------------------------------------------------ 21 Sep 2026
   Group titles with no sub-items (At a Glance, Our Impact, Research Clusters)
   are destinations in their own right, so they render as bordered buttons
   rather than section labels over an empty column. */
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;
  border:1px solid var(--nsrf-mm-rule);border-radius:10px;
  background:#fff;color:var(--nsrf-mm-navy);
  transition:border-color .15s ease,background-color .15s ease,color .15s ease;
}
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title::after{
  display:inline-block !important;content:"\2192";font-size:15px;line-height:1;letter-spacing:0;
  position:static !important;width:auto !important;height:auto !important;background:none !important;opacity:1 !important;margin:0 !important;inset:auto !important;transform:none !important;visibility:visible !important;
  transition:transform .15s ease;
}
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title:hover,
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title:focus-visible{
  border-color:var(--nsrf-mm-navy);background:var(--nsrf-mm-tint);color:var(--nsrf-mm-navy);
}
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title:hover::after,
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title:focus-visible::after{transform:translateX(3px) !important;}
.nsrf-mm-group:not(:has(.nsrf-mm-list)) > a.nsrf-mm-group__title:focus-visible{outline:2px solid var(--nsrf-mm-navy);outline-offset:2px;}

/* ------------------------------------------------------------ 28 Sep 2026
   Group titles with no page of their own (Policies, Findings) render as <p>
   and picked up the smaller label style. Match the linked group titles. */
.nsrf-mm-panel p.nsrf-mm-group__title{font-size:15px !important;font-weight:600 !important;letter-spacing:1.5px !important;color:rgb(45,49,66) !important;padding:0 0 10px !important;line-height:14px !important;}

/* 7 Oct 2026: keep panel section titles on one row wherever there is room, so the
   headings line up across columns. The two-column panels (Self-Harm Registry,
   Contact) were capped at 250px, which wrapped "About the Self-Harm Registry"
   onto two lines and pushed its list below its neighbour. Columns now grow to fit
   their content, and a title that must wrap is balanced rather than orphaned. */
.nsrf-mm-group__title{ text-wrap:balance; }
@media (min-width:981px){
  .nsrf-mm-panel[data-cols="2"] .nsrf-mm-cols{
    grid-template-columns:repeat(2,minmax(250px,max-content));
  }
  .nsrf-mm-panel[data-cols="2"] .nsrf-mm-group__title{ white-space:nowrap; }
}

/* ==========================================================
   Main menu chevrons: align with labels, make them bolder
   ========================================================== */

/* 1. Desktop: give the toggle the same 8px bottom gap as the
      label link, so both centre on the same line.
      Mobile (≤980px) keeps its own 48×44 tap target. */
@media (min-width: 981px) {
  ul.nsrf-mega-menu > li.nsrf-mm-item > .nsrf-mm-toggle {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 4px 8px 3px;
  }
}

/* 2. Bolder, darker chevron: 2px stroke in brand navy, full opacity */
ul.nsrf-mega-menu .nsrf-mm-caret {
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border-right: 2px solid #1B2D5B;
  border-bottom: 2px solid #1B2D5B;
  border-bottom-right-radius: 1px;   /* softens the point slightly */
  opacity: 1;
  transform: translateY(-2px) rotate(45deg);  /* -2px optically centres the "V" */
}

/* 3. Open state: flips to point up, in brand pink to match the underline */
ul.nsrf-mega-menu > li.is-open > .nsrf-mm-toggle .nsrf-mm-caret {
  border-color: #D6378E;
  transform: translateY(2px) rotate(-135deg); /* +2px keeps the "^" centred */
}