/* nav: the three product links, the Sign in link, and the menu that replaces
   them when the header has no room. No JavaScript: the menu is a <details>. */

.top nav{gap:24px}

/* the plain links in the bar: the same face, size and colour as the Sign in link */
.top nav a.nav-link{display:flex;align-items:center;font:400 15px/1 var(--sans);color:var(--on-dark2);padding:10px 0;min-height:44px}
.top nav a.nav-link:hover{color:var(--on-dark)}
/* the page you are on wears the primary colour: no bar, no pill */
.top nav a[aria-current="page"]{color:var(--on-dark)}

/* the menu: the summary is the toggle, the list is a panel that wears the
   header's own background, with the items separated by a rule */
.menu{border-top:0;display:none} /* style.css gives every <details> the FAQ divider */
.menu summary{list-style:none;cursor:pointer;display:flex;justify-content:flex-start;align-items:center;gap:7px;font:400 15px/1 var(--sans);color:var(--on-dark2);padding:10px 0;min-height:44px}
.menu summary::-webkit-details-marker{display:none}
.menu summary::after{content:"+";font:400 15px/1 var(--sans);color:currentColor}
.menu[open] summary::after{content:"\2212"}
.menu summary:hover,.menu[open] summary{color:var(--on-dark)}
.top{position:relative} /* the panel hangs from the header, not from the summary */
/* the panel runs the full width of the page, its items line up with the brand.
   The links take their colour from the context they sit in (style.css, hero.css). */
.menu-list{position:absolute;left:calc(-1 * var(--wrap-pad));right:calc(-1 * var(--wrap-pad));top:100%;z-index:20;display:grid;background:var(--g1);--menu-rule:var(--rule-dark);border-top:1px solid var(--menu-rule);border-bottom:1px solid var(--menu-rule)}
/* .menu in the selector outranks style.css hiding the nav links at 640px */
.top nav .menu .menu-list a{display:flex;align-items:center;min-height:44px;padding:0 var(--wrap-pad);font:400 15px/1 var(--sans)}
.top nav .menu .menu-list a + a{border-top:1px solid var(--menu-rule)}
/* the items run edge to edge, so the focus ring goes inside */
.top nav .menu-list a:focus-visible{outline-offset:-3px}

@media (max-width:768px){
  /* the narrow screens have no room for five items in the bar: the menu takes over */
  .menu{display:block}
  .top nav a.nav-link{display:none}
  .top nav{gap:14px}
}

@media (max-width:480px){
  /* the header is tight here: the brand and the button give up width */
  .top .brand{font-size:22px}
  .top nav{gap:10px}
  .top nav .btn{font-size:14px;padding:0 10px}
}
