/* "Resources" menu in the site header: six links in two rows of three. Same look as the other header links. */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1; transition: background-color .2s ease;
}
.nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { background: rgba(20, 18, 24, .05); }
.nav-dd-btn.is-current { background: var(--yellow, #F6DC82); }
.nav-dd-btn:focus-visible { outline: 2px solid #141218; outline-offset: 2px; }
.nav-dd-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-dd.is-open .nav-dd-btn svg { transform: rotate(180deg); }

.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 80;
  width: min(800px, calc(100vw - 32px)); padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 50px -14px rgba(20, 18, 24, .28), inset 0 0 0 1px rgba(20, 18, 24, .08);
}
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd-menu[hidden] { display: none; }
.nav .nav-dd-menu a {
  display: flex; align-items: flex-start; gap: 14px; height: auto; padding: 14px 14px; border-radius: 14px;
  font-size: 15px; font-weight: 600; line-height: 1.25; color: #141218; text-decoration: none; background: transparent;
}
.nav .nav-dd-menu a:hover, .nav .nav-dd-menu a:focus-visible { background: #F3F1EE; }
.nav .nav-dd-menu a[aria-current="page"] { background: #F3F1EE; }
.nav-dd-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #141218;
}
.nav-dd-ic svg { width: 18px; height: 18px; }
.nav-dd-menu .t { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; }
.nav-dd-menu .t small { font-size: 13px; font-weight: 400; line-height: 1.45; color: #6B6776; }

/* Phone menu: one clean list. Every option has the same height and inner padding, the text lines up with the
   logo, and the highlight reaches a little past the text on both sides. The Resources group sits between two
   thin lines, under a small label that starts where the link text starts. */
.hdr.menu-open .nav { padding-left: 24px; padding-right: 24px; max-height: calc(100vh - 76px); max-height: calc(100svh - 76px); overflow-y: auto; overscroll-behavior: contain; }
.hdr.menu-open .nav > a:not(.nav-cta),
.hdr.menu-open .nav .nav-dd-menu a {
  margin-inline: -12px; padding: 0 12px; height: 52px; min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 500;
}
.hdr.menu-open .nav > a:not(.nav-cta):active,
.hdr.menu-open .nav .nav-dd-menu a:active { background: rgba(20, 18, 24, .05); }
.hdr.menu-open .nav > a[aria-current="page"] { background: var(--yellow, #F6DC82); }
.hdr.menu-open .nav .nav-dd {
  display: flex; flex-direction: column; margin: 8px 0; padding: 8px 0;
  border-top: 1px solid rgba(20, 18, 24, .08); border-bottom: 1px solid rgba(20, 18, 24, .08);
}
.hdr.menu-open .nav .nav-dd-btn {
  height: auto; padding: 8px 0 6px; justify-content: flex-start; background: transparent; cursor: default; pointer-events: none;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B6776;
}
.hdr.menu-open .nav .nav-dd-btn svg { display: none; }
.hdr.menu-open .nav .nav-dd-menu {
  display: flex !important; flex-direction: column; position: static; transform: none; width: auto; padding: 0; gap: 0;
  background: transparent; box-shadow: none; border-radius: 0;
}
.hdr.menu-open .nav .nav-dd-menu::before { display: none; }
.hdr.menu-open .nav .nav-dd-menu a { align-items: center; }
.hdr.menu-open .nav .nav-dd-menu a:hover { background: transparent; }
.hdr.menu-open .nav .nav-dd-menu a[aria-current="page"] { background: var(--yellow, #F6DC82); }
.hdr.menu-open .nav .nav-dd-menu a .nav-dd-ic, .hdr.menu-open .nav .nav-dd-menu a small { display: none; }
.hdr.menu-open .nav .nav-dd-menu .t { padding-top: 0; }
.hdr.menu-open .nav .nav-cta { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { .nav-dd-btn, .nav-dd-btn svg { transition: none; } }
