/* Site navigation (Nov 2026): Training (the six department pages and the Spanish page), Pricing and Resources (the
   comparison, the research and the FAQ), the same on the home page and every public page. Plain links inside <details>, so
   they work without JavaScript and search engines read every one. Wide screens: in the top bar, after the logo.
   Phones and tablets: a slim row under the top bar that scrolls away with the page. */
.nav-items { display: flex; align-items: center; gap: 2px; }
.site-nav { display: none; margin-left: 20px; }
.m-nav { border-bottom: 1px solid var(--line); }
.m-nav .nav-items { height: 48px; }
@media (min-width: 860px) {
  .nav .site-nav { display: flex; }
  .m-nav { display: none; }
}

.nav-items > a, .dd > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; color: var(--ink-2); text-decoration: none;
  white-space: nowrap; cursor: pointer; list-style: none; user-select: none;
}
.m-nav .nav-items > a:first-child, .m-nav .nav-items > .dd:first-child > summary { margin-left: -12px; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::marker { content: ""; }
.nav-items > a:hover, .dd > summary:hover, .dd[open] > summary { background: var(--surface-hover); color: var(--ink); }
.nav-items > a[aria-current="page"], .dd.here > summary { color: var(--ink); }
.nav-items > a:focus-visible, .dd > summary:focus-visible, .dd-panel a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dd { position: relative; }
.dd-chev { width: 12px; height: 12px; flex: none; transition: transform var(--t-fast, 150ms) ease; }
.dd[open] .dd-chev { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; display: grid; min-width: 250px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
}
.dd-end .dd-panel { left: auto; right: 0; }
.dd-panel a {
  padding: 9px 12px; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
}
.dd-panel a:hover { background: var(--surface-hover); color: var(--ink); }
.dd-panel a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.dd-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@media (max-width: 400px) {
  .dd-panel { min-width: 232px; }
}
